Skip to content

Commit

Permalink
build(codegen): updating SDK (#789)
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 Aug 22, 2024
1 parent af2a168 commit 42a3ccd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changeset/changes_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
- added property `approvalRuleMode` to type `CompanyDraft`
- added property `approvalRuleMode` to type `Division`
- added property `approvalRuleMode` to type `DivisionDraft`
- added property `applicationMode` to type `CartDiscountValueAbsolute`
- added property `applicationMode` to type `CartDiscountValueAbsoluteDraft`
- added property `addressId` to type `BusinessUnitAddressCustomFieldAddedMessage`
- added property `addressId` to type `BusinessUnitAddressCustomFieldChangedMessage`
- added property `addressId` to type `BusinessUnitAddressCustomFieldRemovedMessage`
Expand Down Expand Up @@ -126,6 +128,7 @@

- added type `BusinessUnitApprovalRuleMode`
- added type `BusinessUnitChangeApprovalRuleModeAction`
- added type `DiscountApplicationMode`
- added type `CartChangeLineItemsOrderAction`
- added type `CustomerIndexingProgress`
- added type `CustomerIndexingStatus`
Expand Down
3 changes: 3 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
- added property `approvalRuleMode` to type `CompanyDraft`
- added property `approvalRuleMode` to type `Division`
- added property `approvalRuleMode` to type `DivisionDraft`
- added property `applicationMode` to type `CartDiscountValueAbsolute`
- added property `applicationMode` to type `CartDiscountValueAbsoluteDraft`
- added property `addressId` to type `BusinessUnitAddressCustomFieldAddedMessage`
- added property `addressId` to type `BusinessUnitAddressCustomFieldChangedMessage`
- added property `addressId` to type `BusinessUnitAddressCustomFieldRemovedMessage`
Expand Down Expand Up @@ -122,6 +124,7 @@

- added type `BusinessUnitApprovalRuleMode`
- added type `BusinessUnitChangeApprovalRuleModeAction`
- added type `DiscountApplicationMode`
- added type `CartChangeLineItemsOrderAction`
- added type `CustomerIndexingProgress`
- added type `CustomerIndexingStatus`
Expand Down
23 changes: 23 additions & 0 deletions packages/platform-sdk/src/generated/models/cart-discount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,12 @@ export interface CartDiscountValueAbsolute {
*
*/
readonly money: CentPrecisionMoney[]
/**
* Determines how the discount is applied on [CartDiscountLineItemTarget](ctp:api:type:CartDiscountLineItemsTarget) and [CartDiscountCustomLineItemTarget](ctp:api:type:CartDiscountCustomLineItemsTarget).
*
*
*/
readonly applicationMode?: DiscountApplicationMode
}
export type CartDiscountValueDraft =
| CartDiscountValueAbsoluteDraft
Expand All @@ -448,6 +454,14 @@ export interface CartDiscountValueAbsoluteDraft {
*
*/
readonly money: Money[]
/**
* Determines how the discount applies on [CartDiscountLineItemTarget](ctp:api:type:CartDiscountLineItemsTarget) and [CartDiscountCustomLineItemTarget](ctp:api:type:CartDiscountCustomLineItemsTarget).
*
* If not set, the default behavior is `ProportionateDistribution`.
*
*
*/
readonly applicationMode?: DiscountApplicationMode
}
/**
* Sets the [DiscountedLineItemPrice](ctp:api:type:DiscountedLineItemPrice) of the [CartDiscountLineItemsTarget](ctp:api:type:CartDiscountLineItemsTarget) or [CartDiscountCustomLineItemsTarget](ctp:api:type:CartDiscountCustomLineItemsTarget) to the value specified in the `money` field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the `money` field, this Discount is not applied. If the `quantity` of the Line Item eligible for the Discount is greater than `1`, the fixed price discount is only applied to the Line Item portion for which the `money` value is lesser than their current price.
Expand Down Expand Up @@ -563,6 +577,15 @@ export interface CartDiscountValueRelativeDraft {
*/
readonly permyriad: number
}
/**
* This mode determines how absolute Discounts are applied on Line Items or Custom Line Items.
*
*/
export type DiscountApplicationMode =
| 'EvenDistribution'
| 'IndividualApplication'
| 'ProportionateDistribution'
| string
/**
* This Discount target is similar to `MultiBuyLineItems`, but is applied on Custom Line Items instead of Line Items.
*
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,4 @@ aa1065bc2b62370c10a6fd7f49098bd9ec71c3ad
9b3af920548866a0b9804f2ed2396d5ee45ef1bc
ab4dd4a6e46c77f13c03d43fe3628f37509c95b4
9fafdcce46660fc8908b89d215d54744fb51cef5
9fb04dae472dbd5e7e4749ba34c1bb12161336bb

0 comments on commit 42a3ccd

Please sign in to comment.