Skip to content

Commit cf24ced

Browse files
ct-sdks[bot]ajimae
authored andcommitted
build(codegen): updating SDK
1 parent 861e088 commit cf24ced

17 files changed

+208
-12
lines changed

.changeset/changes_api.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
'@commercetools/platform-sdk': minor
3+
---
4+
5+
**Api changes**
6+
7+
<details>
8+
<summary>Added Type(s)</summary>
9+
10+
- added type `PaymentTransactionInterfaceIdSetMessage`
11+
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
12+
- added type `PaymentSetTransactionInterfaceIdAction`
13+
- added type `SearchFuzzyExpression`
14+
- added type `SearchFuzzyValue`
15+
</details>
16+
17+
<details>
18+
<summary>Added QueryParameter(s)</summary>
19+
20+
- added query parameter `filter[attributes]` to method `get /{projectKey}/product-projections`
21+
- added query parameter `filter[attributes]` to method `get /{projectKey}/product-projections/key={key}`
22+
- added query parameter `filter[attributes]` to method `get /{projectKey}/product-projections/{ID}`
23+
- added query parameter `filter[attributes]` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}`
24+
- added query parameter `filter[attributes]` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}`
25+
</details>
26+
27+
<details>
28+
<summary>Required Property(s)</summary>
29+
30+
- changed property `variantSelection` of type `ProductSelectionProductAddedMessage` to be optional
31+
- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessage` to be optional
32+
- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
33+
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
34+
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
35+
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
36+
- changed property `variantSelection` of type `ProductSelectionProductAddedMessagePayload` to be optional
37+
- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessagePayload` to be optional
38+
- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
39+
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
40+
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
41+
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
42+
- changed property `startsAt` of type `RecurringOrderDraft` to be optional
43+
</details>
44+
45+
<details>
46+
<summary>Removed Property(s)</summary>
47+
48+
- :warning: removed property `skipConfiguration` from type `RecurringOrderSetOrderSkipConfigurationAction`
49+
</details>
50+
51+
<details>
52+
<summary>Added Property(s)</summary>
53+
54+
- added property `applicationMode` to type `CartDiscountValueRelative`
55+
- added property `applicationMode` to type `CartDiscountValueRelativeDraft`
56+
- added property `interfaceId` to type `MyTransactionDraft`
57+
- added property `interfaceId` to type `Transaction`
58+
- added property `interfaceId` to type `TransactionDraft`
59+
- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
60+
</details>

changes.md

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
**Api changes**
22

3+
<details>
4+
<summary>Added Type(s)</summary>
5+
6+
- added type `PaymentTransactionInterfaceIdSetMessage`
7+
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
8+
- added type `PaymentSetTransactionInterfaceIdAction`
9+
- added type `SearchFuzzyExpression`
10+
- added type `SearchFuzzyValue`
11+
</details>
12+
13+
<details>
14+
<summary>Added QueryParameter(s)</summary>
15+
16+
- added query parameter `filter[attributes]` to method `get /{projectKey}/product-projections`
17+
- added query parameter `filter[attributes]` to method `get /{projectKey}/product-projections/key={key}`
18+
- added query parameter `filter[attributes]` to method `get /{projectKey}/product-projections/{ID}`
19+
- added query parameter `filter[attributes]` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}`
20+
- added query parameter `filter[attributes]` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}`
21+
</details>
22+
323
<details>
424
<summary>Required Property(s)</summary>
525

@@ -15,20 +35,22 @@
1535
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
1636
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
1737
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
38+
- changed property `startsAt` of type `RecurringOrderDraft` to be optional
1839
</details>
1940

2041
<details>
21-
<summary>Added Property(s)</summary>
42+
<summary>Removed Property(s)</summary>
2243

23-
- added property `interfaceId` to type `MyTransactionDraft`
24-
- added property `interfaceId` to type `Transaction`
25-
- added property `interfaceId` to type `TransactionDraft`
44+
- :warning: removed property `skipConfiguration` from type `RecurringOrderSetOrderSkipConfigurationAction`
2645
</details>
2746

2847
<details>
29-
<summary>Added Type(s)</summary>
48+
<summary>Added Property(s)</summary>
3049

31-
- added type `PaymentTransactionInterfaceIdSetMessage`
32-
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
33-
- added type `PaymentSetTransactionInterfaceIdAction`
50+
- added property `applicationMode` to type `CartDiscountValueRelative`
51+
- added property `applicationMode` to type `CartDiscountValueRelativeDraft`
52+
- added property `interfaceId` to type `MyTransactionDraft`
53+
- added property `interfaceId` to type `Transaction`
54+
- added property `interfaceId` to type `TransactionDraft`
55+
- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
3456
</details>

packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-request-builder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export class ByProjectKeyCartDiscountsRequestBuilder {
105105
}
106106
/**
107107
* Creating a Cart Discount produces the [CartDiscountCreated](ctp:api:type:CartDiscountCreatedMessage) Message.
108+
*
108109
*/
109110
public post(methodArgs: {
110111
queryArgs?: {

packages/platform-sdk/src/generated/client/product-projections/by-project-key-in-store-key-by-store-key-product-projections-by-id-request-builder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestBuilde
4040
priceChannel?: string
4141
priceRecurrencePolicy?: string
4242
localeProjection?: string | string[]
43+
'filter[attributes]'?: string | string[]
4344
expand?: string | string[]
4445
[key: string]: QueryParam
4546
}

packages/platform-sdk/src/generated/client/product-projections/by-project-key-in-store-key-by-store-key-product-projections-key-by-key-request-builder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyRequestBu
4040
priceChannel?: string
4141
priceRecurrencePolicy?: string
4242
localeProjection?: string | string[]
43+
'filter[attributes]'?: string | string[]
4344
expand?: string | string[]
4445
[key: string]: QueryParam
4546
}

packages/platform-sdk/src/generated/client/product-projections/by-project-key-product-projections-by-id-request-builder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export class ByProjectKeyProductProjectionsByIDRequestBuilder {
3434
priceRecurrencePolicy?: string
3535
localeProjection?: string | string[]
3636
storeProjection?: string
37+
'filter[attributes]'?: string | string[]
3738
expand?: string | string[]
3839
[key: string]: QueryParam
3940
}

packages/platform-sdk/src/generated/client/product-projections/by-project-key-product-projections-key-by-key-request-builder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export class ByProjectKeyProductProjectionsKeyByKeyRequestBuilder {
3636
priceRecurrencePolicy?: string
3737
localeProjection?: string | string[]
3838
storeProjection?: string
39+
'filter[attributes]'?: string | string[]
3940
expand?: string | string[]
4041
[key: string]: QueryParam
4142
}

packages/platform-sdk/src/generated/client/product-projections/by-project-key-product-projections-request-builder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export class ByProjectKeyProductProjectionsRequestBuilder {
8585
priceRecurrencePolicy?: string
8686
localeProjection?: string | string[]
8787
storeProjection?: string
88+
'filter[attributes]'?: string | string[]
8889
expand?: string | string[]
8990
sort?: string | string[]
9091
limit?: number

packages/platform-sdk/src/generated/models/cart-discount.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,15 @@ export interface CartDiscountValueRelative extends ICartDiscountValue {
677677
*
678678
*/
679679
readonly permyriad: number
680+
/**
681+
* Indicates how the discount applies when using [CartDiscountPatternTarget](ctp:api:type:CartDiscountPatternTarget).
682+
*
683+
* - If the mode is `IndividualApplication`, the discounted percentage is applied on each unit's price. The units matching the `triggerPattern` are not considered.
684+
* - If the mode is `ProportionateDistribution` and `EvenDistribution` the discounted value is calculated from the total value of the units matching the `targetPattern` and distributed among the units matching the `targetPattern` or `triggerPattern`. These modes are allowed only if [CartDiscountPatternTarget](ctp:api:type:CartDiscountPatternTarget) `triggerPattern` is non-empty.
685+
*
686+
*
687+
*/
688+
readonly applicationMode?: DiscountApplicationMode
680689
}
681690
export interface CartDiscountValueRelativeDraft
682691
extends ICartDiscountValueDraft {
@@ -687,9 +696,18 @@ export interface CartDiscountValueRelativeDraft
687696
*
688697
*/
689698
readonly permyriad: number
699+
/**
700+
* Determines how the discount applies when using [CartDiscountPatternTarget](ctp:api:type:CartDiscountPatternTarget).
701+
*
702+
* - If the mode is `IndividualApplication`, the discounted percentage is applied on each unit's price. The units matching the `triggerPattern` are not considered.
703+
* - If the mode is `ProportionateDistribution` and `EvenDistribution` the discounted value is calculated from the total value of the units matching the `targetPattern` and distributed among the units matching the `targetPattern` or `triggerPattern`. These modes are allowed only if [CartDiscountPatternTarget](ctp:api:type:CartDiscountPatternTarget) `triggerPattern` is non-empty.
704+
*
705+
*
706+
*/
707+
readonly applicationMode?: DiscountApplicationMode
690708
}
691709
/**
692-
* This mode determines how absolute Discounts are applied on Line Items or Custom Line Items.
710+
* This mode determines how Discounts are distributed among items in a Cart.
693711
*
694712
*/
695713
export enum DiscountApplicationModeValues {
@@ -973,6 +991,10 @@ export interface CartDiscountChangeTargetAction
973991
/**
974992
* New value to set.
975993
*
994+
* For a [CartDiscountValueRelative](ctp:api:type:CartDiscountValueRelative), if `applicationMode` is set, the target must be [CartDiscountPatternTarget](ctp:api:type:CartDiscountPatternTarget).
995+
* If `applicationMode` is `ProportionateDistribution` or `EvenDistribution`, the [CartDiscountPatternTarget](ctp:api:type:CartDiscountPatternTarget) `triggerPattern` must be non-empty.
996+
* If either conditions are not met, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
997+
*
976998
*
977999
*/
9781000
readonly target: CartDiscountTarget
@@ -987,6 +1009,7 @@ export interface CartDiscountChangeValueAction
9871009
readonly action: 'changeValue'
9881010
/**
9891011
* New value to set.
1012+
*
9901013
* When trying to set a [CartDiscountValueGiftLineItemDraft](ctp:api:type:CartDiscountValueGiftLineItemDraft) an [InvalidInput](ctp:api:type:InvalidInputError) error is returned.
9911014
*
9921015
*

packages/platform-sdk/src/generated/models/recurring-order.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ export interface RecurringOrderDraft {
264264
*/
265265
readonly cartVersion: number
266266
/**
267-
* Date and time (UTC) when the RecurringOrder will start.
267+
* Date and time (UTC) when the RecurringOrder will start. When specified, the date and time must be in the future. If not specified, the recurring order will start immediately.
268268
*
269269
*
270270
*/
271-
readonly startsAt: string
271+
readonly startsAt?: string
272272
/**
273273
* Date and time (UTC) when the RecurringOrder will expire.
274274
*
@@ -614,7 +614,7 @@ export interface RecurringOrderSetOrderSkipConfigurationAction
614614
*
615615
*
616616
*/
617-
readonly skipConfiguration?: SkipConfigurationDraft
617+
readonly skipConfigurationInputDraft?: SkipConfigurationDraft
618618
/**
619619
* Date and time (UTC) the Recurring Order will expire and stop generating new orders.
620620
*

0 commit comments

Comments
 (0)