Skip to content

Commit

Permalink
build(codegen): updating SDK (#907)
Browse files Browse the repository at this point in the history
Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
  • Loading branch information
ct-sdks[bot] authored Jan 14, 2025
1 parent 548c38e commit c5344e3
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 20 deletions.
22 changes: 14 additions & 8 deletions .changeset/changes_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
- added resource `/{projectKey}/in-store/key={storeKey}/business-units/{ID}`
</details>

<details>
<summary>Required Property(s)</summary>

- :warning: changed property `triggerPattern` of type `CartDiscountPatternTarget` to be required
</details>

<details>
<summary>Added Property(s)</summary>

- added property `inheritedStores` to type `BusinessUnit`
- added property `inheritedStores` to type `Company`
- added property `inheritedStores` to type `Division`
</details>

<details>
<summary>Added Method(s)</summary>

Expand All @@ -27,11 +41,3 @@
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().businessUnits().withId().post()`
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().businessUnits().withId().delete()`
</details>

<details>
<summary>Added Property(s)</summary>

- added property `inheritedStores` to type `BusinessUnit`
- added property `inheritedStores` to type `Company`
- added property `inheritedStores` to type `Division`
</details>
11 changes: 11 additions & 0 deletions .changeset/changes_history.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@commercetools/history-sdk': minor
---

**History changes**

<details>
<summary>Required Property(s)</summary>

- :warning: changed property `triggerPattern` of type `ChangeTargetPatternChangeValue` to be required
</details>
22 changes: 18 additions & 4 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
- added resource `/{projectKey}/in-store/key={storeKey}/business-units/{ID}`
</details>

<details>
<summary>Required Property(s)</summary>

- :warning: changed property `triggerPattern` of type `CartDiscountPatternTarget` to be required
</details>

<details>
<summary>Added Property(s)</summary>

- added property `inheritedStores` to type `BusinessUnit`
- added property `inheritedStores` to type `Company`
- added property `inheritedStores` to type `Division`
</details>

<details>
<summary>Added Method(s)</summary>

Expand All @@ -24,10 +38,10 @@
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().businessUnits().withId().delete()`
</details>

**History changes**

<details>
<summary>Added Property(s)</summary>
<summary>Required Property(s)</summary>

- added property `inheritedStores` to type `BusinessUnit`
- added property `inheritedStores` to type `Company`
- added property `inheritedStores` to type `Division`
- :warning: changed property `triggerPattern` of type `ChangeTargetPatternChangeValue` to be required
</details>
6 changes: 3 additions & 3 deletions packages/history-sdk/src/generated/models/change-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ export interface ChangeTargetMultiBuyLineItemsChangeValue {
export interface ChangeTargetPatternChangeValue {
readonly type: 'pattern'
/**
* Units of a (Custom) Line Item that triggered the discount application.
* Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
*
*
*/
readonly triggerPattern?: PatternComponent[]
readonly triggerPattern: PatternComponent[]
/**
* Units of (Custom) Line Items on which the Discount is applied.
* Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
*
*
*/
Expand Down
12 changes: 7 additions & 5 deletions packages/platform-sdk/src/generated/models/cart-discount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,21 +376,23 @@ export interface CartDiscountLineItemsTarget {
export interface CartDiscountPatternTarget {
readonly type: 'pattern'
/**
* Units of a (Custom) Line Item that trigger a discount application.
* Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
*
* Based on the availability of matching units, the `triggerPattern` can match multiple times, effecting the number of times the discount will be applied.
* Based on the availability of matching units, the `triggerPattern` can match multiple times, limiting the number of maximum times the discount will be applied.
* To further limit the discount application, set the `maxOccurrence`.
*
* If empty or not set, the Discount will apply indefinitely.
* If empty, the Discount will apply indefinitely.
*
*
*/
readonly triggerPattern?: PatternComponent[]
readonly triggerPattern: PatternComponent[]
/**
* Units of (Custom) Line Items on which the Discount is applied.
* Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
*
* Based on the availability of matching units and the limits from the `triggerPattern` or `maxOccurence`, the `targetPattern` can match multiple times.
*
* This array cannot be empty.
*
*
*/
readonly targetPattern: PatternComponent[]
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -355,3 +355,4 @@ b73499abe154d1ad727bd2903f32af55620fefa0
49ed024fa1e9414c92120a1883d6a26e69dc5201
d042ef009240bb55e9b5b18003aba682ec9baa98
e3d5bc9cb69146c5d1dd755ed5e8cf2f54566b3a
591d5eaefd1d56fd350895ccea401cb42f2f0ee8

0 comments on commit c5344e3

Please sign in to comment.