Skip to content

Commit c8c4957

Browse files
committed
build(codegen): updating SDK
1 parent 40726f2 commit c8c4957

29 files changed

Lines changed: 54 additions & 53 deletions

lib/commercetools-api/docs/RequestBuilder.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,7 @@ The following applies to the new Cart:
23972397
- Line items and Custom Line Items are reset to their initial [state](/projects/carts#itemstate).
23982398
- It contains no payments or delivery information.
23992399
- It contains up-to-date Tax Rates, Prices, and Line Item product data.
2400-
- The [CartState](/projects/carts#cartstate) is `Active`.
2400+
- The [CartState](ctp:api:type:CartState) is `Active`.
24012401
- If using the `customerGroup` field (for a single Customer Group) and the referenced Customer switched to another Customer Group, the new Cart is automatically updated to reflect the new group and corresponding prices.
24022402
- If using the `customerGroupAssignments` field (for multiple Customer Groups), the Cart no longer keeps a direct reference to a Customer Group. If a Customer’s group assignments change, the Cart and its Line Item prices are not updated automatically. Prices are only updated when the Cart is changed via a [direct update action](/projects/carts#update-actions).
24032403

@@ -3889,7 +3889,7 @@ $request = $builder
38893889

38903890
The My Business Unit endpoint does not support assigning existing Customers to a Business Unit.
38913891
Associates with the `UpdateAssociates` [Permission](ctp:api:type:Permission) can use this endpoint to create a new Customer and associate it with the Business Unit.
3892-
If the required [Permission](/projects/associate-roles#permission) is missing, an [AssociateMissingPermission](/errors#associatemissingpermission) error is returned.
3892+
If the required [Permission](ctp:api:type:Permission) is missing, an [AssociateMissingPermission](ctp:api:type:AssociateMissingPermissionError) error is returned.
38933893

38943894

38953895
### Example
@@ -4571,7 +4571,7 @@ The following applies to the new Cart:
45714571
- Line items and Custom Line Items are reset to their initial [state](/projects/carts#itemstate).
45724572
- It contains no payments or delivery information.
45734573
- It contains up-to-date Tax Rates, Prices, and Line Item product data.
4574-
- The [CartState](/projects/carts#cartstate) is `Active`.
4574+
- The [CartState](ctp:api:type:CartState) is `Active`.
45754575
- If using the `customerGroup` field (for a single Customer Group) and the referenced Customer switched to another Customer Group, the new Cart is automatically updated to reflect the new group and corresponding prices.
45764576
- If using the `customerGroupAssignments` field (for multiple Customer Groups), the Cart no longer keeps a direct reference to a Customer Group. If a Customer’s group assignments change, the Cart and its Line Item prices are not updated automatically. Prices are only updated when the Cart is changed via a [direct update action](/projects/carts#update-actions).
45774577

@@ -6716,7 +6716,7 @@ $request = $builder
67166716

67176717
Retrieves a ShoppingList with the provided `id` in a [Store](ctp:api:type:Store).
67186718
If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different Store,
6719-
the [ResourceNotFound](/errors#404-not-found-1) error is returned.
6719+
the [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
67206720

67216721

67226722
### Example
@@ -6751,7 +6751,7 @@ $request = $builder
67516751

67526752
Updates a ShoppingList in a [Store](ctp:api:type:Store) using one or more [update actions](/api/projects/shoppingLists#update-actions).
67536753
If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different Store,
6754-
the [ResourceNotFound](/errors#404-not-found-1) error is returned.
6754+
the [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
67556755

67566756

67576757
### Example
@@ -6770,7 +6770,7 @@ $request = $builder
67706770

67716771
Deletes a ShoppingList in a [Store](ctp:api:type:Store).
67726772
If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different Store,
6773-
the [ResourceNotFound](/errors#404-not-found-1) error is returned.
6773+
the [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
67746774

67756775

67766776
### Example
@@ -6789,7 +6789,7 @@ $request = $builder
67896789

67906790
Retrieves a ShoppingList with the provided `key` in a [Store](ctp:api:type:Store).
67916791
If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different Store,
6792-
the [ResourceNotFound](/errors#404-not-found-1) error is returned.
6792+
the [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
67936793

67946794

67956795
### Example
@@ -6824,7 +6824,7 @@ $request = $builder
68246824

68256825
Updates a ShoppingList in a [Store](ctp:api:type:Store) using one or more [update actions](/api/projects/shoppingLists#update-actions).
68266826
If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different Store,
6827-
the [ResourceNotFound](/errors#404-not-found-1) error is returned.
6827+
the [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
68286828

68296829

68306830
### Example
@@ -6843,7 +6843,7 @@ $request = $builder
68436843

68446844
Deletes a ShoppingList in a [Store](ctp:api:type:Store).
68456845
If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different Store,
6846-
the [ResourceNotFound](/errors#404-not-found-1) error is returned.
6846+
the [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
68476847

68486848

68496849
### Example
@@ -7346,7 +7346,7 @@ $request = $builder
73467346
```
73477347
## `withProjectKey("projectKey")->me()->businessUnits()->post(null)`
73487348

7349-
Automatically assigns the Associate to the Business Unit in the default [Associate Role](ctp:api:type:AssociateRole) defined in [BusinessUnitConfiguration](ctp:api:type:BusinessUnitConfiguration). If there is no default Associate Role configured, this request fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) error. When creating a Division, the Associate must have the `AddChildUnits` [Permission](ctp:api:type:Permission) in the parent unit. If the required [Permission](/projects/associate-roles#permission) is missing, an [AssociateMissingPermission](/errors#associatemissingpermission) error is returned.
7349+
Automatically assigns the Associate to the Business Unit in the default [Associate Role](ctp:api:type:AssociateRole) defined in [BusinessUnitConfiguration](ctp:api:type:BusinessUnitConfiguration). If there is no default Associate Role configured, this request fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) error. When creating a Division, the Associate must have the `AddChildUnits` [Permission](ctp:api:type:Permission) in the parent unit. If the required [Permission](ctp:api:type:Permission) is missing, an [AssociateMissingPermission](ctp:api:type:AssociateMissingPermissionError) error is returned.
73507350

73517351

73527352
### Example
@@ -7900,7 +7900,7 @@ $request = $builder
79007900
```
79017901
## `withProjectKey("projectKey")->me()->payments()->post(null)`
79027902

7903-
Creates a [Payment](/projects/me-payments#mypayment) for the authenticated Customer or anonymous user.
7903+
Creates a Payment for the authenticated Customer or anonymous user.
79047904
Creating a Payment produces the [PaymentCreated](ctp:api:type:PaymentCreatedMessage) Message.
79057905

79067906

@@ -7917,7 +7917,7 @@ $request = $builder
79177917
```
79187918
## `withProjectKey("projectKey")->me()->payments()->withId("ID")->get()`
79197919

7920-
Retrieves a [Payment](/projects/me-payments#mypayment) with the provided `id` for the authenticated Customer or anonymous user.
7920+
Retrieves a Payment with the provided `id` for the authenticated Customer or anonymous user.
79217921

79227922
### Example
79237923
```php
@@ -7933,7 +7933,7 @@ $request = $builder
79337933
```
79347934
## `withProjectKey("projectKey")->me()->payments()->withId("ID")->head()`
79357935

7936-
Checks if a [Payment](/projects/me-payments#mypayment) exists with the provided `id` for the authenticated Customer or anonymous user. Returns a `200` status if the Payment exists, or a `404` status otherwise.
7936+
Checks if a Payment exists with the provided `id` for the authenticated Customer or anonymous user. Returns a `200` status if the Payment exists, or a `404` status otherwise.
79377937

79387938
### Example
79397939
```php
@@ -7949,7 +7949,7 @@ $request = $builder
79497949
```
79507950
## `withProjectKey("projectKey")->me()->payments()->withId("ID")->post(null)`
79517951

7952-
Updates a [Payment](/projects/me-payments#mypayment) for the authenticated Customer or anonymous user using one or more [update actions](/api/projects/me-payments#update-actions).
7952+
Updates a Payment for the authenticated Customer or anonymous user using one or more [update actions](/api/projects/me-payments#update-actions).
79537953
You can only update a Payment if it has no [Transactions](ctp:api:type:Transaction).
79547954

79557955

@@ -7967,7 +7967,7 @@ $request = $builder
79677967
```
79687968
## `withProjectKey("projectKey")->me()->payments()->withId("ID")->delete()`
79697969

7970-
Deletes a [Payment](/projects/me-payments#mypayment) with the provided `id` for the authenticated Customer or anonymous user.
7970+
Deletes a Payment with the provided `id` for the authenticated Customer or anonymous user.
79717971
You can only delete a Payment if it has no [Transactions](ctp:api:type:Transaction).
79727972

79737973

@@ -8744,7 +8744,7 @@ $request = $builder
87448744
Creates an OrderEdit in the Project.
87458745
You can either create multiple Order Edits for an Order and apply them sequentially to an Order, or create multiple Order Edits parallelly (as alternatives to each other) and apply one of them to the Order.
87468746

8747-
You can only create an Order Edit if the [InventoryMode](/projects/carts#inventorymode) of the Order and its [LineItems](/projects/carts#lineitem) is `None`.
8747+
You can only create an Order Edit if the [InventoryMode](ctp:api:type:InventoryMode) of the Order and its [LineItems](/projects/carts#lineitem) is `None`.
87488748

87498749

87508750
### Example
@@ -11556,7 +11556,7 @@ $request = $builder
1155611556
```
1155711557
## `withProjectKey("projectKey")->shippingMethods()->matchingLocation()->get()`
1155811558

11559-
Retrieves the active ShippingMethods that can ship to the provided [Location](/projects/zones#location).
11559+
Retrieves the active ShippingMethods that can ship to the provided [Location](ctp:api:type:Location).
1156011560

1156111561
The following applies:
1156211562

lib/commercetools-api/src/Models/Common/CentPrecisionMoneyBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ final class CentPrecisionMoneyBuilder implements Builder
4444
* <li>Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as <code>500</code>).</li>
4545
* <li>The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as <code>5</code>).</li>
4646
* </ul>
47-
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
47+
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
4848
*
4949
5050
* @return null|int

lib/commercetools-api/src/Models/Common/CentPrecisionMoneyModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function __construct(
6666
* <li>Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as <code>500</code>).</li>
6767
* <li>The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as <code>5</code>).</li>
6868
* </ul>
69-
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
69+
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
7070
*
7171
*
7272
* @return null|int

lib/commercetools-api/src/Models/Common/HighPrecisionMoneyBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final class HighPrecisionMoneyBuilder implements Builder
5050
* <li>Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as <code>500</code>).</li>
5151
* <li>The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as <code>5</code>).</li>
5252
* </ul>
53-
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
53+
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
5454
*
5555
5656
* @return null|int

lib/commercetools-api/src/Models/Common/HighPrecisionMoneyDraft.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function getFractionDigits();
2525

2626
/**
2727
* <p>Amount in 1 / (10 ^ <code>fractionDigits</code>) of a currency.</p>
28-
* <p><code>preciseAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
28+
* <p><code>preciseAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
2929
*
3030
3131
* @return null|int
@@ -35,7 +35,7 @@ public function getPreciseAmount();
3535
/**
3636
* <p>Amount in the smallest indivisible unit of a currency. This field is optional for high precision. If provided, it is checked for validity. Example:</p>
3737
* <p>A Price of 1.015 USD can be rounded either to 1.01 USD or 1.02 USD. If it lies outside of this range, an error message stating that centAmount must be rounded correctly will be returned.</p>
38-
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
38+
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
3939
* <p>If <code>centAmount</code> is not provided, the API calculates the value automatically using the default rounding mode half even.</p>
4040
*
4141

lib/commercetools-api/src/Models/Common/HighPrecisionMoneyDraftBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class HighPrecisionMoneyDraftBuilder implements Builder
4747
/**
4848
* <p>Amount in the smallest indivisible unit of a currency. This field is optional for high precision. If provided, it is checked for validity. Example:</p>
4949
* <p>A Price of 1.015 USD can be rounded either to 1.01 USD or 1.02 USD. If it lies outside of this range, an error message stating that centAmount must be rounded correctly will be returned.</p>
50-
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
50+
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
5151
* <p>If <code>centAmount</code> is not provided, the API calculates the value automatically using the default rounding mode half even.</p>
5252
*
5353
@@ -82,7 +82,7 @@ public function getFractionDigits()
8282

8383
/**
8484
* <p>Amount in 1 / (10 ^ <code>fractionDigits</code>) of a currency.</p>
85-
* <p><code>preciseAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
85+
* <p><code>preciseAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
8686
*
8787
8888
* @return null|int

lib/commercetools-api/src/Models/Common/HighPrecisionMoneyDraftModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function __construct(
7171
/**
7272
* <p>Amount in the smallest indivisible unit of a currency. This field is optional for high precision. If provided, it is checked for validity. Example:</p>
7373
* <p>A Price of 1.015 USD can be rounded either to 1.01 USD or 1.02 USD. If it lies outside of this range, an error message stating that centAmount must be rounded correctly will be returned.</p>
74-
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
74+
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
7575
* <p>If <code>centAmount</code> is not provided, the API calculates the value automatically using the default rounding mode half even.</p>
7676
*
7777
*
@@ -153,7 +153,7 @@ public function getFractionDigits()
153153

154154
/**
155155
* <p>Amount in 1 / (10 ^ <code>fractionDigits</code>) of a currency.</p>
156-
* <p><code>preciseAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
156+
* <p><code>preciseAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
157157
*
158158
*
159159
* @return null|int

lib/commercetools-api/src/Models/Common/HighPrecisionMoneyModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function __construct(
7474
* <li>Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as <code>500</code>).</li>
7575
* <li>The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as <code>5</code>).</li>
7676
* </ul>
77-
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
77+
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
7878
*
7979
*
8080
* @return null|int

lib/commercetools-api/src/Models/Common/Money.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface Money extends JsonObject
2222
* <li>Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as <code>500</code>).</li>
2323
* <li>The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as <code>5</code>).</li>
2424
* </ul>
25-
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
25+
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
2626
*
2727
2828
* @return null|int

lib/commercetools-api/src/Models/Common/MoneyBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ final class MoneyBuilder implements Builder
3838
* <li>Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as <code>500</code>).</li>
3939
* <li>The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as <code>5</code>).</li>
4040
* </ul>
41-
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="/errors#moneyoverflow">MoneyOverflow</a> error will be returned.</p>
41+
* <p><code>centAmount</code> is represented as 64-bit integers. If this limit is exceeded, a <a href="ctp:api:type:MoneyOverflowError">MoneyOverflow</a> error will be returned.</p>
4242
*
4343
4444
* @return null|int

0 commit comments

Comments
 (0)