Skip to content

Commit 1b0ddf0

Browse files
Merge pull request #311 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 5891e93 + a2fc551 commit 1b0ddf0

14 files changed

+33
-24
lines changed

lib/commercetools-api/docs/RequestBuilder.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -859,8 +859,10 @@ $request = $builder
859859
```
860860
## `withProjectKey("projectKey")->asAssociate()->withAssociateIdValue("associateId")->inBusinessUnitKeyWithBusinessUnitKeyValue("businessUnitKey")->orders()->orderQuote()->post(null)`
861861

862-
Creates an Order from a [Quote](ctp:api:type:Cart) in a [BusinessUnit](ctp:api:type:BusinessUnit).
863-
Creating an Order fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) if the Quote does not reference the same BusinessUnit as the `businessUnitKey` path parameter.
862+
863+
Creates an Order from a [Quote](ctp:api:type:Quote) in a [BusinessUnit](ctp:api:type:BusinessUnit).
864+
865+
The Quote must reference the same Business Unit as the `businessUnitKey` path parameter, must have the `Pending` [state](ctp:api:type:QuoteState), and must be valid (not past the `validTo` date). If these criteria are not met, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
864866

865867
Specific Error Codes:
866868

@@ -5326,12 +5328,14 @@ $request = $builder
53265328
```
53275329
## `withProjectKey("projectKey")->inStoreKeyWithStoreKeyValue("storeKey")->orders()->orderQuote()->post(null)`
53285330

5329-
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
5331+
5332+
Creates an Order from a [Quote](ctp:api:type:Quote) in a [Store](ctp:api:type:Store). The referenced Quote must have the `Pending` [state](ctp:api:type:QuoteState) and must be valid (not past the `validTo` date); otherwise, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
5333+
5334+
Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
53305335

53315336
Specific Error Codes:
53325337

53335338
- [OutOfStock](ctp:api:type:OutOfStockError)
5334-
- [PriceChanged](ctp:api:type:PriceChangedError)
53355339
- [InvalidItemShippingDetails](ctp:api:type:InvalidItemShippingDetailsError)
53365340
- [InvalidOperation](ctp:api:type:InvalidOperationError)
53375341
- [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError)
@@ -7154,14 +7158,16 @@ $request = $builder
71547158
```
71557159
## `withProjectKey("projectKey")->me()->orders()->orderQuote()->post(null)`
71567160

7157-
When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyQuotes` [Permission](ctp:api:type:Permission).
71587161

7159-
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
7162+
Creates an Order from a [Quote](ctp:api:type:Quote). To create [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyQuotes` [Permission](ctp:api:type:Permission).
7163+
7164+
The referenced Quote must have the `Pending` [state](ctp:api:type:QuoteState) and must be valid (not past the `validTo` date); otherwise, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
7165+
7166+
Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
71607167

71617168
Specific Error Codes:
71627169

71637170
- [OutOfStock](ctp:api:type:OutOfStockError)
7164-
- [PriceChanged](ctp:api:type:PriceChangedError)
71657171
- [InvalidItemShippingDetails](ctp:api:type:InvalidItemShippingDetailsError)
71667172
- [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError)
71677173
- [AssociateMissingPermission](ctp:api:type:AssociateMissingPermissionError)
@@ -8309,15 +8315,17 @@ $request = $builder
83098315
```
83108316
## `withProjectKey("projectKey")->orders()->orderQuote()->post(null)`
83118317

8312-
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
8318+
8319+
Creates an Order from a Quote. The referenced Quote must have the `Pending` [state](ctp:api:type:QuoteState) and must be valid (not past the `validTo` date); otherwise, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
8320+
8321+
Produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
83138322

83148323
Specific Error Codes:
83158324

83168325
- [CountryNotConfiguredInStore](ctp:api:type:CountryNotConfiguredInStoreError)
83178326
- [InvalidItemShippingDetails](ctp:api:type:InvalidItemShippingDetailsError)
83188327
- [InvalidOperation](ctp:api:type:InvalidOperationError)
83198328
- [OutOfStock](ctp:api:type:OutOfStockError)
8320-
- [PriceChanged](ctp:api:type:PriceChangedError)
83218329

83228330

83238331
### Example

lib/commercetools-api/src/Models/Order/OrderFromQuoteDraft.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ interface OrderFromQuoteDraft extends JsonObject
2525
public const FIELD_STATE = 'state';
2626

2727
/**
28-
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.
29-
* If the referenced <a href="ctp:api:type:Quote">Quote</a> has expired (<code>validTo</code> check) or its <code>quoteState</code> is <code>Accepted</code>, <code>Declined</code>, or <code>Withdrawn</code>, the Order creation will fail.</p>
28+
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.</p>
29+
* <p>The <a href="ctp:api:type:Quote">Quote</a> must have the <code>Pending</code> <a href="ctp:api:type:QuoteState">state</a> and must be valid (not past the <code>validTo</code> date).</p>
3030
*
3131
3232
* @return null|QuoteResourceIdentifier

lib/commercetools-api/src/Models/Order/OrderFromQuoteDraftBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ final class OrderFromQuoteDraftBuilder implements Builder
7373
private $state;
7474

7575
/**
76-
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.
77-
* If the referenced <a href="ctp:api:type:Quote">Quote</a> has expired (<code>validTo</code> check) or its <code>quoteState</code> is <code>Accepted</code>, <code>Declined</code>, or <code>Withdrawn</code>, the Order creation will fail.</p>
76+
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.</p>
77+
* <p>The <a href="ctp:api:type:Quote">Quote</a> must have the <code>Pending</code> <a href="ctp:api:type:QuoteState">state</a> and must be valid (not past the <code>validTo</code> date).</p>
7878
*
7979
8080
* @return null|QuoteResourceIdentifier

lib/commercetools-api/src/Models/Order/OrderFromQuoteDraftModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public function __construct(
9696
}
9797

9898
/**
99-
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.
100-
* If the referenced <a href="ctp:api:type:Quote">Quote</a> has expired (<code>validTo</code> check) or its <code>quoteState</code> is <code>Accepted</code>, <code>Declined</code>, or <code>Withdrawn</code>, the Order creation will fail.</p>
99+
* <p><a href="ctp:api:type:ResourceIdentifier">ResourceIdentifier</a> to the Quote from which the Order is created.</p>
100+
* <p>The <a href="ctp:api:type:Quote">Quote</a> must have the <code>Pending</code> <a href="ctp:api:type:QuoteState">state</a> and must be valid (not past the <code>validTo</code> date).</p>
101101
*
102102
*
103103
* @return null|QuoteResourceIdentifier

lib/commercetools-api/src/Models/Quote/Quote.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function getCustomer();
159159
public function getCustomerGroup();
160160

161161
/**
162-
* <p>Expiration date for the Quote.</p>
162+
* <p>Expiration date for the Quote. Once a Quote expires, it cannot be ordered.</p>
163163
*
164164
165165
* @return null|DateTimeImmutable

lib/commercetools-api/src/Models/Quote/QuoteBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public function getCustomerGroup()
399399
}
400400

401401
/**
402-
* <p>Expiration date for the Quote.</p>
402+
* <p>Expiration date for the Quote. Once a Quote expires, it cannot be ordered.</p>
403403
*
404404
405405
* @return null|DateTimeImmutable

lib/commercetools-api/src/Models/Quote/QuoteChangeQuoteStateAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface QuoteChangeQuoteStateAction extends QuoteUpdateAction
1616
public const FIELD_QUOTE_STATE = 'quoteState';
1717

1818
/**
19-
* <p>New state to be set for the Quote.</p>
19+
* <p>New state to be set for the Quote, except <code>DeclinedForRenegotiation</code>. The <code>DeclinedForRenegotiation</code> state can be set only when performing a <a href="ctp:api:type:QuoteRequestQuoteRenegotiationAction">renegotiation request</a>.</p>
2020
*
2121
2222
* @return null|string

lib/commercetools-api/src/Models/Quote/QuoteChangeQuoteStateActionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class QuoteChangeQuoteStateActionBuilder implements Builder
2727
private $quoteState;
2828

2929
/**
30-
* <p>New state to be set for the Quote.</p>
30+
* <p>New state to be set for the Quote, except <code>DeclinedForRenegotiation</code>. The <code>DeclinedForRenegotiation</code> state can be set only when performing a <a href="ctp:api:type:QuoteRequestQuoteRenegotiationAction">renegotiation request</a>.</p>
3131
*
3232
3333
* @return null|string

lib/commercetools-api/src/Models/Quote/QuoteChangeQuoteStateActionModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function getAction()
6363
}
6464

6565
/**
66-
* <p>New state to be set for the Quote.</p>
66+
* <p>New state to be set for the Quote, except <code>DeclinedForRenegotiation</code>. The <code>DeclinedForRenegotiation</code> state can be set only when performing a <a href="ctp:api:type:QuoteRequestQuoteRenegotiationAction">renegotiation request</a>.</p>
6767
*
6868
*
6969
* @return null|string

lib/commercetools-api/src/Models/Quote/QuoteModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public function getCustomerGroup()
591591
}
592592

593593
/**
594-
* <p>Expiration date for the Quote.</p>
594+
* <p>Expiration date for the Quote. Once a Quote expires, it cannot be ordered.</p>
595595
*
596596
*
597597
* @return null|DateTimeImmutable

0 commit comments

Comments
 (0)