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 55f63f1 commit b5c7b6e
Show file tree
Hide file tree
Showing 39 changed files with 225 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
@JsonDeserialize(as = CategoryImportImpl.class)
public interface CategoryImport extends ImportResource {

/**
* <p>User-defined unique identifier. If a Category with this <code>key</code> exists, it will be updated with the imported data.</p>
* @return key
*/
@NotNull
@JsonProperty("key")
public String getKey();

/**
* <p>Maps to <code>Category.name</code>.</p>
* @return name
Expand Down Expand Up @@ -129,6 +137,13 @@ public interface CategoryImport extends ImportResource {
@JsonProperty("custom")
public Custom getCustom();

/**
* <p>User-defined unique identifier. If a Category with this <code>key</code> exists, it will be updated with the imported data.</p>
* @param key value to be set
*/

public void setKey(final String key);

/**
* <p>Maps to <code>Category.name</code>.</p>
* @param name value to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class CategoryImportBuilder implements Builder<CategoryImport> {
private com.commercetools.importapi.models.customfields.Custom custom;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Category with this <code>key</code> exists, it will be updated with the imported data.</p>
* @param key value to be set
* @return Builder
*/
Expand Down Expand Up @@ -467,7 +467,7 @@ public CategoryImportBuilder custom(@Nullable final com.commercetools.importapi.
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Category with this <code>key</code> exists, it will be updated with the imported data.</p>
* @return key
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public CategoryImportImpl() {
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Category with this <code>key</code> exists, it will be updated with the imported data.</p>
*/

public String getKey() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ public interface ImportResourceType extends JsonEnum {
*/
ImportResourceType CATEGORY = ImportResourceTypeEnum.CATEGORY;
/**
<p>The <a href="ctp:import:type:CustomerImport">Customer import</a> resource type.</p>
*/
ImportResourceType CUSTOMER = ImportResourceTypeEnum.CUSTOMER;
/**
<p>The <a href="ctp:import:type:InventoryImport">Inventory import</a> resource type.</p>
*/
ImportResourceType INVENTORY = ImportResourceTypeEnum.INVENTORY;
/**
<p>The <a href="ctp:import:type:OrderImport">Order import</a> resource type.</p>
Expand Down Expand Up @@ -61,22 +71,15 @@ public interface ImportResourceType extends JsonEnum {
*/
ImportResourceType PRODUCT_VARIANT_PATCH = ImportResourceTypeEnum.PRODUCT_VARIANT_PATCH;
/**
<p>The <a href="ctp:import:type:CustomerImport">Customer import</a> resource type.</p>
*/
ImportResourceType CUSTOMER = ImportResourceTypeEnum.CUSTOMER;
/**
<p>The <a href="ctp:import:type:InventoryImport">Inventory import</a> resource type.</p>
*/
ImportResourceType INVENTORY = ImportResourceTypeEnum.INVENTORY;
/**
<p>The <a href="ctp:import:type:StandalonePriceImport">Standalone Price import</a> resource type.</p>
*/
ImportResourceType STANDALONE_PRICE = ImportResourceTypeEnum.STANDALONE_PRICE;
/**
<p>The <a href="ctp:import:type:TypeImport">Type import</a> resource type.</p>
*/
ImportResourceType TYPE = ImportResourceTypeEnum.TYPE;

/**
Expand All @@ -88,6 +91,16 @@ enum ImportResourceTypeEnum implements ImportResourceType {
*/
CATEGORY("category"),

/**
* customer
*/
CUSTOMER("customer"),

/**
* inventory
*/
INVENTORY("inventory"),

/**
* order
*/
Expand Down Expand Up @@ -128,16 +141,6 @@ enum ImportResourceTypeEnum implements ImportResourceType {
*/
PRODUCT_VARIANT_PATCH("product-variant-patch"),

/**
* customer
*/
CUSTOMER("customer"),

/**
* inventory
*/
INVENTORY("inventory"),

/**
* standalone-price
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
@JsonDeserialize(as = CustomerImportImpl.class)
public interface CustomerImport extends ImportResource {

/**
* <p>User-defined unique identifier. If a Customer with this <code>key</code> exists, it will be updated with the imported data.</p>
* @return key
*/
@NotNull
@JsonProperty("key")
public String getKey();

/**
* <p>Maps to <code>Customer.customerNumber</code>.</p>
* @return customerNumber
Expand Down Expand Up @@ -225,6 +233,13 @@ public interface CustomerImport extends ImportResource {
@JsonProperty("authenticationMode")
public AuthenticationMode getAuthenticationMode();

/**
* <p>User-defined unique identifier. If a Customer with this <code>key</code> exists, it will be updated with the imported data.</p>
* @param key value to be set
*/

public void setKey(final String key);

/**
* <p>Maps to <code>Customer.customerNumber</code>.</p>
* @param customerNumber value to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class CustomerImportBuilder implements Builder<CustomerImport> {
private com.commercetools.importapi.models.customers.AuthenticationMode authenticationMode;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Customer with this <code>key</code> exists, it will be updated with the imported data.</p>
* @param key value to be set
* @return Builder
*/
Expand Down Expand Up @@ -624,7 +624,7 @@ public CustomerImportBuilder authenticationMode(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Customer with this <code>key</code> exists, it will be updated with the imported data.</p>
* @return key
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public CustomerImportImpl() {
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Customer with this <code>key</code> exists, it will be updated with the imported data.</p>
*/

public String getKey() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
@JsonDeserialize(as = InventoryImportImpl.class)
public interface InventoryImport extends ImportResource {

/**
* <p>User-defined unique identifier. If an InventoryEntry with this <code>key</code> exists, it will be updated with the imported data.</p>
* @return key
*/
@NotNull
@JsonProperty("key")
public String getKey();

/**
* <p>Maps to <code>Inventory.sku</code></p>
* @return sku
Expand Down Expand Up @@ -85,6 +93,13 @@ public interface InventoryImport extends ImportResource {
@JsonProperty("custom")
public Custom getCustom();

/**
* <p>User-defined unique identifier. If an InventoryEntry with this <code>key</code> exists, it will be updated with the imported data.</p>
* @param key value to be set
*/

public void setKey(final String key);

/**
* <p>Maps to <code>Inventory.sku</code></p>
* @param sku value to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class InventoryImportBuilder implements Builder<InventoryImport> {
private com.commercetools.importapi.models.customfields.Custom custom;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If an InventoryEntry with this <code>key</code> exists, it will be updated with the imported data.</p>
* @param key value to be set
* @return Builder
*/
Expand Down Expand Up @@ -173,7 +173,7 @@ public InventoryImportBuilder custom(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If an InventoryEntry with this <code>key</code> exists, it will be updated with the imported data.</p>
* @return key
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public InventoryImportImpl() {
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If an InventoryEntry with this <code>key</code> exists, it will be updated with the imported data.</p>
*/

public String getKey() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
public interface PriceImport extends ImportResource {

/**
* <p>User-defined unique identifier for the Embedded Price.</p>
* <p>User-defined unique identifier for the Embedded Price. If a Price with this <code>key</code> exists on the specified <code>productVariant</code>, it will be updated with the imported data.</p>
* @return key
*/
@NotNull
Expand Down Expand Up @@ -153,7 +153,7 @@ public interface PriceImport extends ImportResource {
public ProductKeyReference getProduct();

/**
* <p>User-defined unique identifier for the Embedded Price.</p>
* <p>User-defined unique identifier for the Embedded Price. If a Price with this <code>key</code> exists on the specified <code>productVariant</code>, it will be updated with the imported data.</p>
* @param key value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class PriceImportBuilder implements Builder<PriceImport> {
private com.commercetools.importapi.models.common.ProductKeyReference product;

/**
* <p>User-defined unique identifier for the Embedded Price.</p>
* <p>User-defined unique identifier for the Embedded Price. If a Price with this <code>key</code> exists on the specified <code>productVariant</code>, it will be updated with the imported data.</p>
* @param key value to be set
* @return Builder
*/
Expand Down Expand Up @@ -448,7 +448,7 @@ public PriceImportBuilder product(final com.commercetools.importapi.models.commo
}

/**
* <p>User-defined unique identifier for the Embedded Price.</p>
* <p>User-defined unique identifier for the Embedded Price. If a Price with this <code>key</code> exists on the specified <code>productVariant</code>, it will be updated with the imported data.</p>
* @return key
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public PriceImportImpl() {
}

/**
* <p>User-defined unique identifier for the Embedded Price.</p>
* <p>User-defined unique identifier for the Embedded Price. If a Price with this <code>key</code> exists on the specified <code>productVariant</code>, it will be updated with the imported data.</p>
*/

public String getKey() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@
@JsonDeserialize(as = ProductDraftImportImpl.class)
public interface ProductDraftImport extends ImportResource {

/**
* <p>User-defined unique identifier. If a Product with this <code>key</code> exists, it will be updated with the imported data.</p>
* @return key
*/
@NotNull
@JsonProperty("key")
public String getKey();

/**
* <p>The <code>productType</code> of a Product. Maps to <code>Product.productType</code>. The Reference to the ProductType with which the ProductDraft is associated. If referenced ProductType does not exist, the <code>state</code> of the ImportOperation will be set to <code>unresolved</code> until the necessary ProductType is created.</p>
* @return productType
Expand Down Expand Up @@ -197,6 +205,13 @@ public interface ProductDraftImport extends ImportResource {
@JsonProperty("priceMode")
public ProductPriceModeEnum getPriceMode();

/**
* <p>User-defined unique identifier. If a Product with this <code>key</code> exists, it will be updated with the imported data.</p>
* @param key value to be set
*/

public void setKey(final String key);

/**
* <p>The <code>productType</code> of a Product. Maps to <code>Product.productType</code>. The Reference to the ProductType with which the ProductDraft is associated. If referenced ProductType does not exist, the <code>state</code> of the ImportOperation will be set to <code>unresolved</code> until the necessary ProductType is created.</p>
* @param productType value to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class ProductDraftImportBuilder implements Builder<ProductDraftImport> {
private com.commercetools.importapi.models.common.ProductPriceModeEnum priceMode;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Product with this <code>key</code> exists, it will be updated with the imported data.</p>
* @param key value to be set
* @return Builder
*/
Expand Down Expand Up @@ -788,7 +788,7 @@ public ProductDraftImportBuilder priceMode(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Product with this <code>key</code> exists, it will be updated with the imported data.</p>
* @return key
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public ProductDraftImportImpl() {
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Product with this <code>key</code> exists, it will be updated with the imported data.</p>
*/

public String getKey() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@
@JsonDeserialize(as = ProductImportImpl.class)
public interface ProductImport extends ImportResource {

/**
* <p>User-defined unique identifier. If a Product with this <code>key</code> exists, it will be updated with the imported data.</p>
* @return key
*/
@NotNull
@JsonProperty("key")
public String getKey();

/**
* <p>Maps to <code>Product.name</code>.</p>
* @return name
Expand Down Expand Up @@ -181,6 +189,13 @@ public interface ProductImport extends ImportResource {
@JsonProperty("priceMode")
public ProductPriceModeEnum getPriceMode();

/**
* <p>User-defined unique identifier. If a Product with this <code>key</code> exists, it will be updated with the imported data.</p>
* @param key value to be set
*/

public void setKey(final String key);

/**
* <p>Maps to <code>Product.name</code>.</p>
* @param name value to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class ProductImportBuilder implements Builder<ProductImport> {
private com.commercetools.importapi.models.common.ProductPriceModeEnum priceMode;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Product with this <code>key</code> exists, it will be updated with the imported data.</p>
* @param key value to be set
* @return Builder
*/
Expand Down Expand Up @@ -648,7 +648,7 @@ public ProductImportBuilder priceMode(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a Product with this <code>key</code> exists, it will be updated with the imported data.</p>
* @return key
*/

Expand Down
Loading

0 comments on commit b5c7b6e

Please sign in to comment.