Skip to content

Commit

Permalink
Merge pull request #60 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
MicheleRezk authored Jun 22, 2021
2 parents e37d90c + 1d4ef44 commit ca01cde
Show file tree
Hide file tree
Showing 149 changed files with 325 additions and 188 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public partial class ApiClient : IApiClient

public string Scope { get; set;}

public DateTime CreatedAt { get; set;}
public DateTime? CreatedAt { get; set;}

public DateTime LastUsedAt { get; set;}
public DateTime? LastUsedAt { get; set;}

public DateTime DeleteAt { get; set;}
public DateTime? DeleteAt { get; set;}

public string Secret { get; set;}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ public partial interface IApiClient

string Scope { get; set;}

DateTime CreatedAt { get; set;}
DateTime? CreatedAt { get; set;}

DateTime LastUsedAt { get; set;}
DateTime? LastUsedAt { get; set;}

DateTime DeleteAt { get; set;}
DateTime? DeleteAt { get; set;}

string Secret { get; set;}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public partial class CartDiscount : ICartDiscount

public bool IsActive { get; set;}

public DateTime ValidFrom { get; set;}
public DateTime? ValidFrom { get; set;}

public DateTime ValidUntil { get; set;}
public DateTime? ValidUntil { get; set;}

public bool RequiresDiscountCode { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public partial class CartDiscountDraft : ICartDiscountDraft

public bool? IsActive { get; set;}

public DateTime ValidFrom { get; set;}
public DateTime? ValidFrom { get; set;}

public DateTime ValidUntil { get; set;}
public DateTime? ValidUntil { get; set;}

public bool RequiresDiscountCode { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial class CartDiscountSetValidFromAction : ICartDiscountSetValidFromA
{
public string Action { get; set;}

public DateTime ValidFrom { get; set;}
public DateTime? ValidFrom { get; set;}
public CartDiscountSetValidFromAction()
{
this.Action = "setValidFrom";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public partial class CartDiscountSetValidFromAndUntilAction : ICartDiscountSetVa
{
public string Action { get; set;}

public DateTime ValidFrom { get; set;}
public DateTime? ValidFrom { get; set;}

public DateTime ValidUntil { get; set;}
public DateTime? ValidUntil { get; set;}
public CartDiscountSetValidFromAndUntilAction()
{
this.Action = "setValidFromAndUntil";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial class CartDiscountSetValidUntilAction : ICartDiscountSetValidUnti
{
public string Action { get; set;}

public DateTime ValidUntil { get; set;}
public DateTime? ValidUntil { get; set;}
public CartDiscountSetValidUntilAction()
{
this.Action = "setValidUntil";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public partial interface ICartDiscount : IBaseResource

bool IsActive { get; set;}

DateTime ValidFrom { get; set;}
DateTime? ValidFrom { get; set;}

DateTime ValidUntil { get; set;}
DateTime? ValidUntil { get; set;}

bool RequiresDiscountCode { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ public partial interface ICartDiscountDraft

bool? IsActive { get; set;}

DateTime ValidFrom { get; set;}
DateTime? ValidFrom { get; set;}

DateTime ValidUntil { get; set;}
DateTime? ValidUntil { get; set;}

bool RequiresDiscountCode { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ namespace commercetools.Api.Models.CartDiscounts
[DeserializeAs(typeof(commercetools.Api.Models.CartDiscounts.CartDiscountSetValidFromAction))]
public partial interface ICartDiscountSetValidFromAction : ICartDiscountUpdateAction
{
DateTime ValidFrom { get; set;}
DateTime? ValidFrom { get; set;}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ namespace commercetools.Api.Models.CartDiscounts
[DeserializeAs(typeof(commercetools.Api.Models.CartDiscounts.CartDiscountSetValidFromAndUntilAction))]
public partial interface ICartDiscountSetValidFromAndUntilAction : ICartDiscountUpdateAction
{
DateTime ValidFrom { get; set;}
DateTime? ValidFrom { get; set;}

DateTime ValidUntil { get; set;}
DateTime? ValidUntil { get; set;}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ namespace commercetools.Api.Models.CartDiscounts
[DeserializeAs(typeof(commercetools.Api.Models.CartDiscounts.CartDiscountSetValidUntilAction))]
public partial interface ICartDiscountSetValidUntilAction : ICartDiscountUpdateAction
{
DateTime ValidUntil { get; set;}
DateTime? ValidUntil { get; set;}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public partial interface ILineItem

long Quantity { get; set;}

DateTime AddedAt { get; set;}
DateTime? AddedAt { get; set;}

List<IItemState> State { get; set;}

Expand All @@ -58,6 +58,6 @@ public partial interface ILineItem

IItemShippingDetails ShippingDetails { get; set;}

DateTime LastModifiedAt { get; set;}
DateTime? LastModifiedAt { get; set;}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public partial interface ILineItemDraft

long? Quantity { get; set;}

DateTime AddedAt { get; set;}
DateTime? AddedAt { get; set;}

IChannelResourceIdentifier SupplyChannel { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public partial class LineItem : ILineItem

public long Quantity { get; set;}

public DateTime AddedAt { get; set;}
public DateTime? AddedAt { get; set;}

public List<IItemState> State { get; set;}

Expand All @@ -57,6 +57,6 @@ public partial class LineItem : ILineItem

public IItemShippingDetails ShippingDetails { get; set;}

public DateTime LastModifiedAt { get; set;}
public DateTime? LastModifiedAt { get; set;}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public partial class LineItemDraft : ILineItemDraft

public long? Quantity { get; set;}

public DateTime AddedAt { get; set;}
public DateTime? AddedAt { get; set;}

public IChannelResourceIdentifier SupplyChannel { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace commercetools.Api.Models.Common
{
public partial class Address : IAddress
{
public string Id { get; set;}

public string Key { get; set;}

public string Title { get; set;}
Expand Down Expand Up @@ -59,8 +61,6 @@ public partial class Address : IAddress

public string ExternalId { get; set;}

public string Id { get; set;}

public ICustomFields Custom { get; set;}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace commercetools.Api.Models.Common
{
public partial class AddressDraft : IAddressDraft
{
public string Id { get; set;}

public string Key { get; set;}

public string Title { get; set;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ namespace commercetools.Api.Models.Common
{
public partial class BaseAddress : IBaseAddress
{
public string Id { get; set;}

public string Key { get; set;}

public string Title { get; set;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ namespace commercetools.Api.Models.Common
[DeserializeAs(typeof(commercetools.Api.Models.Common.Address))]
public partial interface IAddress : IBaseAddress
{
string Id { get; set;}

ICustomFields Custom { get; set;}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ namespace commercetools.Api.Models.Common
[DeserializeAs(typeof(commercetools.Api.Models.Common.BaseAddress))]
public partial interface IBaseAddress
{
string Id { get; set;}

string Key { get; set;}

string Title { get; set;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public partial interface IPrice

IChannelReference Channel { get; set;}

DateTime ValidFrom { get; set;}
DateTime? ValidFrom { get; set;}

DateTime ValidUntil { get; set;}
DateTime? ValidUntil { get; set;}

IDiscountedPrice Discounted { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public partial interface IPriceDraft

IChannelResourceIdentifier Channel { get; set;}

DateTime ValidFrom { get; set;}
DateTime? ValidFrom { get; set;}

DateTime ValidUntil { get; set;}
DateTime? ValidUntil { get; set;}

ICustomFieldsDraft Custom { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public partial interface IQueryPrice

IChannelReference Channel { get; set;}

DateTime ValidFrom { get; set;}
DateTime? ValidFrom { get; set;}

DateTime ValidUntil { get; set;}
DateTime? ValidUntil { get; set;}

IDiscountedPrice Discounted { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public partial interface IScopedPrice

IChannelReference Channel { get; set;}

DateTime ValidFrom { get; set;}
DateTime? ValidFrom { get; set;}

DateTime ValidUntil { get; set;}
DateTime? ValidUntil { get; set;}

IDiscountedPrice Discounted { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public partial class Price : IPrice

public IChannelReference Channel { get; set;}

public DateTime ValidFrom { get; set;}
public DateTime? ValidFrom { get; set;}

public DateTime ValidUntil { get; set;}
public DateTime? ValidUntil { get; set;}

public IDiscountedPrice Discounted { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public partial class PriceDraft : IPriceDraft

public IChannelResourceIdentifier Channel { get; set;}

public DateTime ValidFrom { get; set;}
public DateTime? ValidFrom { get; set;}

public DateTime ValidUntil { get; set;}
public DateTime? ValidUntil { get; set;}

public ICustomFieldsDraft Custom { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public partial class QueryPrice : IQueryPrice

public IChannelReference Channel { get; set;}

public DateTime ValidFrom { get; set;}
public DateTime? ValidFrom { get; set;}

public DateTime ValidUntil { get; set;}
public DateTime? ValidUntil { get; set;}

public IDiscountedPrice Discounted { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public partial class ScopedPrice : IScopedPrice

public IChannelReference Channel { get; set;}

public DateTime ValidFrom { get; set;}
public DateTime? ValidFrom { get; set;}

public DateTime ValidUntil { get; set;}
public DateTime? ValidUntil { get; set;}

public IDiscountedPrice Discounted { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial class Customer : ICustomer

public string Title { get; set;}

public DateTime DateOfBirth { get; set;}
public DateTime? DateOfBirth { get; set;}

public string CompanyName { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ public partial class CustomerDraft : ICustomerDraft

public string Title { get; set;}

[ObsoleteAttribute("This property is obsolete", false)]
public string AnonymousCartId { get; set;}

public ICartResourceIdentifier AnonymousCart { get; set;}

public string AnonymousId { get; set;}

public DateTime DateOfBirth { get; set;}
public DateTime? DateOfBirth { get; set;}

public string CompanyName { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial class CustomerSetDateOfBirthAction : ICustomerSetDateOfBirthActio
{
public string Action { get; set;}

public DateTime DateOfBirth { get; set;}
public DateTime? DateOfBirth { get; set;}
public CustomerSetDateOfBirthAction()
{
this.Action = "setDateOfBirth";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public partial class CustomerSignin : ICustomerSignin

public string Password { get; set;}

[ObsoleteAttribute("This property is obsolete", false)]
public string AnonymousCartId { get; set;}

public ICartResourceIdentifier AnonymousCart { get; set;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial class CustomerToken : ICustomerToken

public DateTime CreatedAt { get; set;}

public DateTime LastModifiedAt { get; set;}
public DateTime? LastModifiedAt { get; set;}

public string CustomerId { get; set;}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public partial interface ICustomer : IBaseResource

string Title { get; set;}

DateTime DateOfBirth { get; set;}
DateTime? DateOfBirth { get; set;}

string CompanyName { get; set;}

Expand Down
Loading

0 comments on commit ca01cde

Please sign in to comment.