diff --git a/Version.props b/Version.props index a2bad4f..5618d07 100644 --- a/Version.props +++ b/Version.props @@ -1,9 +1,11 @@ - - 4.0.0-rc-2 - - ### New in 4.0.0-rc-2 - * Fix create listing request. - - + + 4.0.0-rc-3 + + ### New in 4.0.0-rc-3 + * Add RelistTransaction to SellerListing Post and Get Apis + ### New in 4.0.0-rc-2 + * Fix create listing request. + + diff --git a/src/GogoKit/Models/Request/NewSellerListing.cs b/src/GogoKit/Models/Request/NewSellerListing.cs index ab9b038..d6cdaa5 100644 --- a/src/GogoKit/Models/Request/NewSellerListing.cs +++ b/src/GogoKit/Models/Request/NewSellerListing.cs @@ -1,5 +1,5 @@ -using System; -using GogoKit.Models.Response; +using GogoKit.Models.Response; +using System; using System.Collections.Generic; using System.Runtime.Serialization; @@ -19,7 +19,7 @@ public class NewSellerListing [DataMember(Name = "face_value")] public Money FaceValue { get; set; } - + [DataMember(Name = "ticket_price")] public Money TicketPrice { get; set; } @@ -34,10 +34,10 @@ public class NewSellerListing [DataMember(Name = "listing_note_ids")] public IList ListingNoteIds { get; set; } - + [DataMember(Name = "notes")] public string Notes { get; set; } - + [DataMember(Name = "ticket_location_address_id")] public int? TicketLocationAddressId { get; set; } @@ -55,5 +55,11 @@ public class NewSellerListing [DataMember(Name = "barcodes")] public BarcodeUpload[] Barcodes { get; set; } + + /// + /// Used when relisting tickets previously purchased in the marketplace. + /// + [DataMember(Name = "relist_transaction_id")] + public int? RelistTransactionId { get; set; } } } diff --git a/src/GogoKit/Models/Response/Listing.cs b/src/GogoKit/Models/Response/Listing.cs index f60a546..6054d83 100644 --- a/src/GogoKit/Models/Response/Listing.cs +++ b/src/GogoKit/Models/Response/Listing.cs @@ -1,6 +1,6 @@ -using System.Runtime.Serialization; -using HalKit.Json; +using HalKit.Json; using HalKit.Models.Response; +using System.Runtime.Serialization; namespace GogoKit.Models.Response { diff --git a/src/GogoKit/Models/Response/RelistTransaction.cs b/src/GogoKit/Models/Response/RelistTransaction.cs new file mode 100644 index 0000000..8ae15da --- /dev/null +++ b/src/GogoKit/Models/Response/RelistTransaction.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; + +namespace GogoKit.Models.Response +{ + [DataContract(Name = "relist_transaction")] + public class RelistTransaction + { + /// + /// The Id of the transaction that this listing is created from + /// + [DataMember(Name = "id")] + public int? Id { get; set; } + } +} diff --git a/src/GogoKit/Models/Response/SellerListing.cs b/src/GogoKit/Models/Response/SellerListing.cs index 74da060..d31fcf9 100644 --- a/src/GogoKit/Models/Response/SellerListing.cs +++ b/src/GogoKit/Models/Response/SellerListing.cs @@ -1,9 +1,9 @@ -using System; +using GogoKit.Models.Request; using HalKit.Json; using HalKit.Models.Response; +using System; using System.Collections.Generic; using System.Runtime.Serialization; -using GogoKit.Models.Request; namespace GogoKit.Models.Response { @@ -78,6 +78,13 @@ public class SellerListing : EmbeddedSellerListing [Embedded("listing_notes")] public IList ListingNotes { get; set; } + /// + /// The model for the transaction that this listing was created from + /// + [DataMember(Name = "relist_transaction")] + [Embedded("relist_transaction")] + public RelistTransaction RelistTransaction { get; set; } + /// /// You can GET the href of this link to retrieve the /// resource for updating a .