Skip to content

Commit d1a4436

Browse files
committed
build(codegen): updating SDK
1 parent 6af52ac commit d1a4436

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

.changeset/changes_api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
- added type `PaymentTransactionInterfaceIdSetMessage`
1111
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
1212
- added type `PaymentSetTransactionInterfaceIdAction`
13+
- added type `DiscountCombinationMode`
14+
- added type `DiscountsConfiguration`
15+
- added type `ProjectSetDiscountsConfigurationAction`
1316
- added type `SearchFuzzyExpression`
1417
- added type `SearchFuzzyValue`
1518
</details>
@@ -56,5 +59,6 @@
5659
- added property `interfaceId` to type `MyTransactionDraft`
5760
- added property `interfaceId` to type `Transaction`
5861
- added property `interfaceId` to type `TransactionDraft`
62+
- added property `discounts` to type `Project`
5963
- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
6064
</details>

changes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
- added type `PaymentTransactionInterfaceIdSetMessage`
77
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
88
- added type `PaymentSetTransactionInterfaceIdAction`
9+
- added type `DiscountCombinationMode`
10+
- added type `DiscountsConfiguration`
11+
- added type `ProjectSetDiscountsConfigurationAction`
912
- added type `SearchFuzzyExpression`
1013
- added type `SearchFuzzyValue`
1114
</details>
@@ -52,5 +55,6 @@
5255
- added property `interfaceId` to type `MyTransactionDraft`
5356
- added property `interfaceId` to type `Transaction`
5457
- added property `interfaceId` to type `TransactionDraft`
58+
- added property `discounts` to type `Project`
5559
- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
5660
</details>

packages/platform-sdk/src/generated/models/project.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,28 @@ export enum CustomerSearchStatusValues {
131131
}
132132

133133
export type CustomerSearchStatus = 'Activated' | 'Deactivated' | (string & {})
134+
/**
135+
* Defines how Product Discounts and Cart Discounts are combined for every Cart in a Project.
136+
*
137+
*/
138+
export enum DiscountCombinationModeValues {
139+
BestDeal = 'BestDeal',
140+
Stacking = 'Stacking',
141+
}
142+
143+
export type DiscountCombinationMode = 'BestDeal' | 'Stacking' | (string & {})
144+
/**
145+
* Holds the configuration for behavior of Product and Cart Discounts.
146+
*
147+
*/
148+
export interface DiscountsConfiguration {
149+
/**
150+
* Indicates how Product Discounts and Cart Discounts should be combined. Default value is `Stacking`.
151+
*
152+
*
153+
*/
154+
readonly discountCombinationMode: DiscountCombinationMode
155+
}
134156
/**
135157
* Represents a RFC 7662 compliant [OAuth 2.0 Token Introspection](https://datatracker.ietf.org/doc/html/rfc7662) endpoint. For more information, see [Requesting an access token using an external OAuth 2.0 server](/../api/authorization#request-an-access-token-using-an-external-oauth-server).
136158
*
@@ -259,6 +281,12 @@ export interface Project {
259281
*
260282
*/
261283
readonly businessUnits?: BusinessUnitConfiguration
284+
/**
285+
* Holds configuration specific to discounts, including how Product and Cart Discounts are combined in every Cart of the Project.
286+
*
287+
*
288+
*/
289+
readonly discounts: DiscountsConfiguration
262290
}
263291
export interface ProjectUpdate {
264292
/**
@@ -292,6 +320,7 @@ export type ProjectUpdateAction =
292320
| ProjectChangeShoppingListsConfigurationAction
293321
| ProjectChangeTaxRoundingModeAction
294322
| ProjectSetBusinessUnitAssociateRoleOnCreationAction
323+
| ProjectSetDiscountsConfigurationAction
295324
| ProjectSetExternalOAuthAction
296325
| ProjectSetShippingRateInputTypeAction
297326
export interface IProjectUpdateAction {
@@ -573,6 +602,16 @@ export interface ProjectSetBusinessUnitAssociateRoleOnCreationAction
573602
*/
574603
readonly associateRole: AssociateRoleResourceIdentifier
575604
}
605+
export interface ProjectSetDiscountsConfigurationAction
606+
extends IProjectUpdateAction {
607+
readonly action: 'setDiscountsConfiguration'
608+
/**
609+
* Configuration for the behavior of Cart and Product Discounts in the Project.
610+
*
611+
*
612+
*/
613+
readonly discountsConfiguration: DiscountsConfiguration
614+
}
576615
export interface ProjectSetExternalOAuthAction extends IProjectUpdateAction {
577616
readonly action: 'setExternalOAuth'
578617
/**

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,4 @@ ea7ba668e4084d845f2f3871c239999f43613b28
465465
7c8466665829aaf9142b056c57fe5b32c4072076
466466
263e58a9f68bacfe67cd292b203c956d5ae9f264
467467
780cff25cc0c08ba669762069bb264848aa5f6d5
468+
503a69044e9969bc058a116a7f7ecd4556c85258

0 commit comments

Comments
 (0)