Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Oct 27, 2023
1 parent 4de746e commit 037b37c
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ namespace commercetools.Sdk.ImportApi.Models.Categories
[DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Categories.CategoryImport))]
public partial interface ICategoryImport : IImportResource
{
new string Key { get; set; }

ILocalizedString Name { get; set; }

ILocalizedString Slug { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public enum ImportResourceType
[Description("category")]
Category,

[Description("customer")]
Customer,

[Description("inventory")]
Inventory,

[Description("order")]
Order,

Expand All @@ -37,12 +43,6 @@ public enum ImportResourceType
[Description("product-variant-patch")]
ProductVariantPatch,

[Description("customer")]
Customer,

[Description("inventory")]
Inventory,

[Description("standalone-price")]
StandalonePrice,

Expand Down Expand Up @@ -76,6 +76,12 @@ public interface IImportResourceType : IJsonName, IEnumerable<char>
public static IImportResourceType Category = new ImportResourceTypeWrapper
{ Value = ImportResourceType.Category, JsonName = "category" };

public static IImportResourceType Customer = new ImportResourceTypeWrapper
{ Value = ImportResourceType.Customer, JsonName = "customer" };

public static IImportResourceType Inventory = new ImportResourceTypeWrapper
{ Value = ImportResourceType.Inventory, JsonName = "inventory" };

public static IImportResourceType Order = new ImportResourceTypeWrapper
{ Value = ImportResourceType.Order, JsonName = "order" };

Expand All @@ -100,12 +106,6 @@ public interface IImportResourceType : IJsonName, IEnumerable<char>
public static IImportResourceType ProductVariantPatch = new ImportResourceTypeWrapper
{ Value = ImportResourceType.ProductVariantPatch, JsonName = "product-variant-patch" };

public static IImportResourceType Customer = new ImportResourceTypeWrapper
{ Value = ImportResourceType.Customer, JsonName = "customer" };

public static IImportResourceType Inventory = new ImportResourceTypeWrapper
{ Value = ImportResourceType.Inventory, JsonName = "inventory" };

public static IImportResourceType StandalonePrice = new ImportResourceTypeWrapper
{ Value = ImportResourceType.StandalonePrice, JsonName = "standalone-price" };

Expand All @@ -119,6 +119,8 @@ static IImportResourceType[] Values()
return new[]
{
Category ,
Customer ,
Inventory ,
Order ,
OrderPatch ,
Price ,
Expand All @@ -127,8 +129,6 @@ static IImportResourceType[] Values()
ProductType ,
ProductVariant ,
ProductVariantPatch ,
Customer ,
Inventory ,
StandalonePrice ,
Type
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace commercetools.Sdk.ImportApi.Models.Customers
[DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Customers.CustomerImport))]
public partial interface ICustomerImport : IImportResource
{
new string Key { get; set; }

string CustomerNumber { get; set; }

string Email { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ namespace commercetools.Sdk.ImportApi.Models.Inventories
[DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Inventories.InventoryImport))]
public partial interface IInventoryImport : IImportResource
{
new string Key { get; set; }

string Sku { get; set; }

long QuantityOnStock { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ namespace commercetools.Sdk.ImportApi.Models.Productdrafts
[DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Productdrafts.ProductDraftImport))]
public partial interface IProductDraftImport : IImportResource
{
new string Key { get; set; }

IProductTypeKeyReference ProductType { get; set; }

ILocalizedString Name { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ namespace commercetools.Sdk.ImportApi.Models.Products
[DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Products.ProductImport))]
public partial interface IProductImport : IImportResource
{
new string Key { get; set; }

ILocalizedString Name { get; set; }

IProductTypeKeyReference ProductType { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ namespace commercetools.Sdk.ImportApi.Models.Producttypes
[DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Producttypes.ProductTypeImport))]
public partial interface IProductTypeImport : IImportResource
{
new string Key { get; set; }

string Name { get; set; }

string Description { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ namespace commercetools.Sdk.ImportApi.Models.Productvariants
[DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Productvariants.ProductVariantImport))]
public partial interface IProductVariantImport : IImportResource
{
new string Key { get; set; }

string Sku { get; set; }

bool IsMasterVariant { get; set; }
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,4 @@ a42ea3414ae796fb2950409c4b0df88b49630af1
118a45bf478b36709843956b5e0e83373dad5aaf
c17d9815d8163758428e4d795d226da174d04a2f
a384c593b1d1c14c2f8d601afbe1b588521b860e
7942537a940b53819589e48a59e059ff708d5698

0 comments on commit 037b37c

Please sign in to comment.