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 9160107 commit 74b67c8
Show file tree
Hide file tree
Showing 31 changed files with 115 additions and 23 deletions.
13 changes: 13 additions & 0 deletions lib/commercetools-import/src/Models/Categories/CategoryImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ interface CategoryImport extends ImportResource
public const FIELD_ASSETS = 'assets';
public const FIELD_CUSTOM = 'custom';

/**
* <p>User-defined unique identifier. If a <a href="/../api/projects/categories#category">Category</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
*/
public function getKey();

/**
* <p>Maps to <code>Category.name</code>.</p>
*
Expand Down Expand Up @@ -119,6 +127,11 @@ public function getAssets();
*/
public function getCustom();

/**
* @param ?string $key
*/
public function setKey(?string $key): void;

/**
* @param ?LocalizedString $name
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ final class CategoryImportBuilder implements Builder
private $custom;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/categories#category">Category</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function __construct(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/categories#category">Category</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
*
* @return null|string
Expand Down
13 changes: 13 additions & 0 deletions lib/commercetools-import/src/Models/Customers/CustomerImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ interface CustomerImport extends ImportResource
public const FIELD_CUSTOM = 'custom';
public const FIELD_AUTHENTICATION_MODE = 'authenticationMode';

/**
* <p>User-defined unique identifier. If a <a href="/../api/projects/customers#customer">Customer</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
*/
public function getKey();

/**
* <p>Maps to <code>Customer.customerNumber</code>.</p>
*
Expand Down Expand Up @@ -230,6 +238,11 @@ public function getCustom();
*/
public function getAuthenticationMode();

/**
* @param ?string $key
*/
public function setKey(?string $key): void;

/**
* @param ?string $customerNumber
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ final class CustomerImportBuilder implements Builder
private $authenticationMode;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/customers#customer">Customer</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function __construct(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/customers#customer">Customer</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ interface InventoryImport extends ImportResource
public const FIELD_SUPPLY_CHANNEL = 'supplyChannel';
public const FIELD_CUSTOM = 'custom';

/**
* <p>User-defined unique identifier. If an <a href="/../api/projects/inventory#inventoryentry">InventoryEntry</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
*/
public function getKey();

/**
* <p>Maps to <code>Inventory.sku</code></p>
*
Expand Down Expand Up @@ -72,6 +80,11 @@ public function getSupplyChannel();
*/
public function getCustom();

/**
* @param ?string $key
*/
public function setKey(?string $key): void;

/**
* @param ?string $sku
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ final class InventoryImportBuilder implements Builder
private $custom;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If an <a href="/../api/projects/inventory#inventoryentry">InventoryEntry</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __construct(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If an <a href="/../api/projects/inventory#inventoryentry">InventoryEntry</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
*
* @return null|string
Expand Down
2 changes: 1 addition & 1 deletion lib/commercetools-import/src/Models/Prices/PriceImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ interface PriceImport extends ImportResource
public const FIELD_PRODUCT = 'product';

/**
* <p>User-defined unique identifier for the Embedded Price.</p>
* <p>User-defined unique identifier for the Embedded Price. If a <a href="/../api/types#price">Price</a> with this <code>key</code> exists on the specified <code>productVariant</code>, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ final class PriceImportBuilder implements Builder
private $product;

/**
* <p>User-defined unique identifier for the Embedded Price.</p>
* <p>User-defined unique identifier for the Embedded Price. If a <a href="/../api/types#price">Price</a> with this <code>key</code> exists on the specified <code>productVariant</code>, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function __construct(
}

/**
* <p>User-defined unique identifier for the Embedded Price.</p>
* <p>User-defined unique identifier for the Embedded Price. If a <a href="/../api/types#price">Price</a> with this <code>key</code> exists on the specified <code>productVariant</code>, it will be updated with the imported data.</p>
*
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ interface ProductDraftImport extends ImportResource
public const FIELD_PUBLISH = 'publish';
public const FIELD_PRICE_MODE = 'priceMode';

/**
* <p>User-defined unique identifier. If a <a href="/../api/projects/products#product">Product</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
*/
public function getKey();

/**
* <p>The <code>productType</code> of a <a href="/../api/projects/products#product">Product</a>.
* Maps to <code>Product.productType</code>.
Expand Down Expand Up @@ -195,6 +203,11 @@ public function getPublish();
*/
public function getPriceMode();

/**
* @param ?string $key
*/
public function setKey(?string $key): void;

/**
* @param ?ProductTypeKeyReference $productType
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ final class ProductDraftImportBuilder implements Builder
private $priceMode;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/products#product">Product</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function __construct(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/products#product">Product</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
*
* @return null|string
Expand Down
13 changes: 13 additions & 0 deletions lib/commercetools-import/src/Models/Products/ProductImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ interface ProductImport extends ImportResource
public const FIELD_PUBLISH = 'publish';
public const FIELD_PRICE_MODE = 'priceMode';

/**
* <p>User-defined unique identifier. If a <a href="/../api/projects/products#product">Product</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
*/
public function getKey();

/**
* <p>Maps to <code>Product.name</code>.</p>
*
Expand Down Expand Up @@ -178,6 +186,11 @@ public function getPublish();
*/
public function getPriceMode();

/**
* @param ?string $key
*/
public function setKey(?string $key): void;

/**
* @param ?LocalizedString $name
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ final class ProductImportBuilder implements Builder
private $priceMode;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/products#product">Product</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function __construct(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/products#product">Product</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ interface ProductTypeImport extends ImportResource
public const FIELD_DESCRIPTION = 'description';
public const FIELD_ATTRIBUTES = 'attributes';

/**
* <p>User-defined unique identifier. If a <a href="/../api/projects/productTypes#producttype">ProductType</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
*/
public function getKey();

/**
* <p>Maps to <code>ProductType.name</code>.</p>
*
Expand All @@ -42,6 +50,11 @@ public function getDescription();
*/
public function getAttributes();

/**
* @param ?string $key
*/
public function setKey(?string $key): void;

/**
* @param ?string $name
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ final class ProductTypeImportBuilder implements Builder
private $attributes;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/productTypes#producttype">ProductType</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __construct(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/productTypes#producttype">ProductType</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ interface ProductVariantImport extends ImportResource
public const FIELD_PUBLISH = 'publish';
public const FIELD_PRODUCT = 'product';

/**
* <p>User-defined unique identifier. If a <a href="/../api/projects/products#productvariant">ProductVariant</a> with this <code>key</code> exists on the specified <code>product</code>, it will be updated with the imported data.</p>
*
* @return null|string
*/
public function getKey();

/**
* <p>Maps to <code>ProductVariant.sku</code>.</p>
*
Expand Down Expand Up @@ -86,6 +94,11 @@ public function getPublish();
*/
public function getProduct();

/**
* @param ?string $key
*/
public function setKey(?string $key): void;

/**
* @param ?string $sku
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ final class ProductVariantImportBuilder implements Builder
private $product;

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/products#productvariant">ProductVariant</a> with this <code>key</code> exists on the specified <code>product</code>, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function __construct(
}

/**
* <p>User-defined unique identifier.</p>
* <p>User-defined unique identifier. If a <a href="/../api/projects/products#productvariant">ProductVariant</a> with this <code>key</code> exists on the specified <code>product</code>, it will be updated with the imported data.</p>
*
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface StandalonePriceImport extends ImportResource
public const FIELD_CUSTOM = 'custom';

/**
* <p>User-defined unique identifier for the Standalone Price.</p>
* <p>User-defined unique identifier for the Standalone Price. If a <a href="/../api/projects/standalone-prices#standaloneprice">StandalonePrice</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ final class StandalonePriceImportBuilder implements Builder
private $custom;

/**
* <p>User-defined unique identifier for the Standalone Price.</p>
* <p>User-defined unique identifier for the Standalone Price. If a <a href="/../api/projects/standalone-prices#standaloneprice">StandalonePrice</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function __construct(
}

/**
* <p>User-defined unique identifier for the Standalone Price.</p>
* <p>User-defined unique identifier for the Standalone Price. If a <a href="/../api/projects/standalone-prices#standaloneprice">StandalonePrice</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
*
* @return null|string
Expand Down
2 changes: 1 addition & 1 deletion lib/commercetools-import/src/Models/Types/TypeImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface TypeImport extends ImportResource
public const FIELD_FIELD_DEFINITIONS = 'fieldDefinitions';

/**
* <p>User-defined unique identifier for the Type.</p>
* <p>User-defined unique identifier for the Type. If a <a href="/../api/projects/types#type">Type</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ final class TypeImportBuilder implements Builder
private $fieldDefinitions;

/**
* <p>User-defined unique identifier for the Type.</p>
* <p>User-defined unique identifier for the Type. If a <a href="/../api/projects/types#type">Type</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct(
}

/**
* <p>User-defined unique identifier for the Type.</p>
* <p>User-defined unique identifier for the Type. If a <a href="/../api/projects/types#type">Type</a> with this <code>key</code> exists, it will be updated with the imported data.</p>
*
*
* @return null|string
Expand Down
Loading

0 comments on commit 74b67c8

Please sign in to comment.