Skip to content

Commit

Permalink
Merge pull request #14 from viagogo/external-listing-id
Browse files Browse the repository at this point in the history
Add `external_id` and `notes` to create listing payload
  • Loading branch information
akilburge committed Feb 8, 2016
2 parents 9f8ff26 + a01eb13 commit c7114da
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 21 deletions.
3 changes: 3 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### New in 0.8.0 (Released 2016/02/)
* Add `external_id` and `notes` to create seller listing payloads

### New in 0.7.1 (Released 2016/02/05)
* Add BatchClient to IViagogoClient

Expand Down
8 changes: 4 additions & 4 deletions SolutionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
[assembly: AssemblyProductAttribute("GogoKit")]
[assembly: AssemblyCompanyAttribute("viagogo")]
[assembly: AssemblyCopyrightAttribute("Copyright viagogo 2016")]
[assembly: AssemblyVersionAttribute("0.7.0")]
[assembly: AssemblyFileVersionAttribute("0.7.0")]
[assembly: AssemblyInformationalVersionAttribute("0.7.0")]
[assembly: AssemblyVersionAttribute("0.8.0")]
[assembly: AssemblyFileVersionAttribute("0.8.0")]
[assembly: AssemblyInformationalVersionAttribute("0.8.0")]
[assembly: ComVisibleAttribute(false)]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "0.7.0";
internal const string Version = "0.8.0";
}
}
3 changes: 3 additions & 0 deletions src/GogoKit/Models/Request/NewRequestedEventSellerListing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ namespace GogoKit.Models.Request
[DataContract]
public class NewRequestedEventSellerListing : NewSellerListing
{
[DataMember(Name = "notes")]
public string Notes { get; set; }

[DataMember(Name = "event")]
public EmbeddedEvent Event { get; set; }

Expand Down
3 changes: 3 additions & 0 deletions src/GogoKit/Models/Request/NewSellerListing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ public class NewSellerListing

[DataMember(Name = "guarantee_payment_method_id")]
public int? GuaranteePaymentMethodId { get; set; }

[DataMember(Name = "external_id")]
public string ExternalId { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/GogoKit/Models/Response/EmbeddedCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace GogoKit.Models.Response
public class EmbeddedCategory : Resource
{
[DataMember(Name = "id")]
public int Id { get; set; }
public int? Id { get; set; }

[DataMember(Name = "name")]
public string Name { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/GogoKit/Models/Response/EmbeddedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace GogoKit.Models.Response
public class EmbeddedEvent : Resource
{
[DataMember(Name = "id")]
public int Id { get; set; }
public int? Id { get; set; }

[DataMember(Name = "name")]
public string Name { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/GogoKit/Models/Response/EmbeddedVenue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace GogoKit.Models.Response
public class EmbeddedVenue : Resource
{
[DataMember(Name = "id")]
public int Id { get; set; }
public int? Id { get; set; }

[DataMember(Name = "name")]
public string Name { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/GogoKit/Models/Response/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Event : EmbeddedEvent
public DateTimeOffset? EndDate { get; set; }

[DataMember(Name = "date_confirmed")]
public bool DateConfirmed { get; set; }
public bool? DateConfirmed { get; set; }

[DataMember(Name = "min_ticket_price")]
public Money MinTicketPrice { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/GogoKit/Models/Response/Listing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace GogoKit.Models.Response
public class Listing : Resource
{
[DataMember(Name = "id")]
public int Id { get; set; }
public int? Id { get; set; }

[DataMember(Name = "number_of_tickets")]
public int? NumberOfTickets { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions src/GogoKit/Models/Response/ListingConstraints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ public class ListingConstraints : Resource
public Money MaxTicketPrice { get; set; }

[DataMember(Name = "min_number_of_tickets")]
public int MinNumberOfTickets { get; set; }
public int? MinNumberOfTickets { get; set; }

[DataMember(Name = "max_number_of_tickets")]
public int MaxNumberOfTickets { get; set; }
public int? MaxNumberOfTickets { get; set; }

[DataMember(Name = "ticket_location_required")]
public bool IsTicketLocationRequired { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/GogoKit/Models/Response/ListingNote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace GogoKit.Models.Response
public class ListingNote : Resource
{
[DataMember(Name = "id")]
public int Id { get; set; }
public int? Id { get; set; }

[DataMember(Name = "note")]
public string Note { get; set; }
Expand Down
6 changes: 3 additions & 3 deletions src/GogoKit/Models/Response/PagedResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ namespace GogoKit.Models.Response
public class PagedResource<T> : Resource where T : Resource
{
[DataMember(Name = "total_items")]
public int TotalItems { get; set; }
public int? TotalItems { get; set; }

[DataMember(Name = "page")]
public int Page { get; set; }
public int? Page { get; set; }

[DataMember(Name = "page_size")]
public int PageSize { get; set; }
public int? PageSize { get; set; }

[Embedded("items")]
public IReadOnlyList<T> Items { get; set; }
Expand Down
3 changes: 3 additions & 0 deletions src/GogoKit/Models/Response/SellerListing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public class SellerListing : Resource
[DataMember(Name = "ticket_proceeds")]
public Money TicketProceeds { get; set; }

[DataMember(Name = "external_id")]
public string ExternalId { get; set; }

[Embedded("event")]
public EmbeddedEvent Event { get; set; }

Expand Down
6 changes: 0 additions & 6 deletions src/GogoKit/Models/Response/Venue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ namespace GogoKit.Models.Response
[DataContract]
public class Venue : EmbeddedVenue
{
[DataMember(Name = "id")]
public int Id { get; set; }

[DataMember(Name = "name")]
public string Name { get; set; }

[DataMember(Name = "address_1")]
public string AddressLine1 { get; set; }

Expand Down

0 comments on commit c7114da

Please sign in to comment.