Skip to content

Commit f67ca0c

Browse files
authored
Update generated SDKs (#1166)
* build(codegen): updating SDK * build(codegen): updating SDK --------- Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
1 parent 65943fb commit f67ca0c

File tree

7 files changed

+182
-1
lines changed

7 files changed

+182
-1
lines changed

.changeset/changes_api.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,19 @@
2020
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
2121
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
2222
</details>
23+
24+
<details>
25+
<summary>Added Property(s)</summary>
26+
27+
- added property `interfaceId` to type `MyTransactionDraft`
28+
- added property `interfaceId` to type `Transaction`
29+
- added property `interfaceId` to type `TransactionDraft`
30+
</details>
31+
32+
<details>
33+
<summary>Added Type(s)</summary>
34+
35+
- added type `PaymentTransactionInterfaceIdSetMessage`
36+
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
37+
- added type `PaymentSetTransactionInterfaceIdAction`
38+
</details>

changes.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,19 @@
1616
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
1717
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
1818
</details>
19+
20+
<details>
21+
<summary>Added Property(s)</summary>
22+
23+
- added property `interfaceId` to type `MyTransactionDraft`
24+
- added property `interfaceId` to type `Transaction`
25+
- added property `interfaceId` to type `TransactionDraft`
26+
</details>
27+
28+
<details>
29+
<summary>Added Type(s)</summary>
30+
31+
- added type `PaymentTransactionInterfaceIdSetMessage`
32+
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
33+
- added type `PaymentSetTransactionInterfaceIdAction`
34+
</details>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,11 @@ export interface MyTransactionDraft {
10871087
*
10881088
*/
10891089
readonly custom?: CustomFieldsDraft
1090+
/**
1091+
* Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.
1092+
*
1093+
*/
1094+
readonly interfaceId?: string
10901095
}
10911096
export interface ReplicaMyCartDraft {
10921097
/**

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

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ export type Message =
334334
| PaymentStatusInterfaceCodeSetMessage
335335
| PaymentStatusStateTransitionMessage
336336
| PaymentTransactionAddedMessage
337+
| PaymentTransactionInterfaceIdSetMessage
337338
| PaymentTransactionStateChangedMessage
338339
| ProductAddedToCategoryMessage
339340
| ProductCreatedMessage
@@ -15309,6 +15310,88 @@ export interface PaymentTransactionAddedMessage extends IMessage {
1530915310
*/
1531015311
readonly transaction: Transaction
1531115312
}
15313+
/**
15314+
* Generated after a successful [Set Transaction InterfaceId](ctp:api:type:PaymentSetTransactionInterfaceIdAction) update action.
15315+
*
15316+
*/
15317+
export interface PaymentTransactionInterfaceIdSetMessage extends IMessage {
15318+
readonly type: 'PaymentTransactionInterfaceIdSet'
15319+
/**
15320+
* Unique identifier of the Message. Can be used to track which Messages have been processed.
15321+
*
15322+
*/
15323+
readonly id: string
15324+
/**
15325+
* Version of a resource. In case of Messages, this is always `1`.
15326+
*
15327+
*/
15328+
readonly version: number
15329+
/**
15330+
* Date and time (UTC) the Message was generated.
15331+
*
15332+
*/
15333+
readonly createdAt: string
15334+
/**
15335+
* Value of `createdAt`.
15336+
*
15337+
*/
15338+
readonly lastModifiedAt: string
15339+
/**
15340+
* IDs and references that last modified the Message.
15341+
*
15342+
*
15343+
*/
15344+
readonly lastModifiedBy?: LastModifiedBy
15345+
/**
15346+
* IDs and references that created the Message.
15347+
*
15348+
*
15349+
*/
15350+
readonly createdBy?: CreatedBy
15351+
/**
15352+
* Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1.
15353+
* `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource.
15354+
*
15355+
*
15356+
*/
15357+
readonly sequenceNumber: number
15358+
/**
15359+
* [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed.
15360+
*
15361+
*
15362+
*/
15363+
readonly resource: Reference
15364+
/**
15365+
* Version of the resource on which the change or action was performed.
15366+
*
15367+
*
15368+
*/
15369+
readonly resourceVersion: number
15370+
/**
15371+
* User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers.
15372+
*
15373+
*
15374+
*/
15375+
readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers
15376+
/**
15377+
* Unique identifier of the [Transaction](ctp:api:type:Transaction).
15378+
*
15379+
*
15380+
*/
15381+
readonly transactionId: string
15382+
/**
15383+
* Identifier used by the payment service that processes the Payment (for example, a PSP) after [Set Transaction InterfaceId](ctp:api:type:PaymentSetTransactionInterfaceIdAction) update action.
15384+
*
15385+
*
15386+
*/
15387+
readonly newInterfaceId?: string
15388+
/**
15389+
* Identifier used by the payment service that processes the Payment (for example, a PSP) before the [Set Transaction InterfaceId](ctp:api:type:PaymentSetTransactionInterfaceIdAction) update action.
15390+
*
15391+
*
15392+
*/
15393+
readonly oldInterfaceId?: string
15394+
}
1531215395
/**
1531315396
* Generated after a successful [Change TransactionState](ctp:api:type:PaymentChangeTransactionStateAction) update action.
1531415397
*
@@ -23838,6 +23921,7 @@ export type MessagePayload =
2383823921
| PaymentStatusInterfaceCodeSetMessagePayload
2383923922
| PaymentStatusStateTransitionMessagePayload
2384023923
| PaymentTransactionAddedMessagePayload
23924+
| PaymentTransactionInterfaceIdSetMessagePayload
2384123925
| PaymentTransactionStateChangedMessagePayload
2384223926
| ProductAddedToCategoryMessagePayload
2384323927
| ProductCreatedMessagePayload
@@ -27683,6 +27767,32 @@ export interface PaymentTransactionAddedMessagePayload extends IMessagePayload {
2768327767
*/
2768427768
readonly transaction: Transaction
2768527769
}
27770+
/**
27771+
* Generated after a successful [Set Transaction InterfaceId](ctp:api:type:PaymentSetTransactionInterfaceIdAction) update action.
27772+
*
27773+
*/
27774+
export interface PaymentTransactionInterfaceIdSetMessagePayload
27775+
extends IMessagePayload {
27776+
readonly type: 'PaymentTransactionInterfaceIdSet'
27777+
/**
27778+
* Unique identifier of the [Transaction](ctp:api:type:Transaction).
27779+
*
27780+
*
27781+
*/
27782+
readonly transactionId: string
27783+
/**
27784+
* Identifier used by the payment service that processes the Payment (for example, a PSP) after [Set Transaction InterfaceId](ctp:api:type:PaymentSetTransactionInterfaceIdAction) update action.
27785+
*
27786+
*
27787+
*/
27788+
readonly newInterfaceId?: string
27789+
/**
27790+
* Identifier used by the payment service that processes the Payment (for example, a PSP) before the [Set Transaction InterfaceId](ctp:api:type:PaymentSetTransactionInterfaceIdAction) update action.
27791+
*
27792+
*
27793+
*/
27794+
readonly oldInterfaceId?: string
27795+
}
2768627796
/**
2768727797
* Generated after a successful [Change TransactionState](ctp:api:type:PaymentChangeTransactionStateAction) update action.
2768827798
*

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ export type PaymentUpdateAction =
413413
| PaymentSetStatusInterfaceTextAction
414414
| PaymentSetTransactionCustomFieldAction
415415
| PaymentSetTransactionCustomTypeAction
416+
| PaymentSetTransactionInterfaceIdAction
416417
| PaymentTransitionStateAction
417418
export interface IPaymentUpdateAction {
418419
/**
@@ -462,6 +463,11 @@ export interface Transaction {
462463
*
463464
*/
464465
readonly custom?: CustomFields
466+
/**
467+
* Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.
468+
*
469+
*/
470+
readonly interfaceId?: string
465471
}
466472
export interface TransactionDraft {
467473
/**
@@ -496,6 +502,11 @@ export interface TransactionDraft {
496502
*
497503
*/
498504
readonly custom?: CustomFieldsDraft
505+
/**
506+
* Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.
507+
*
508+
*/
509+
readonly interfaceId?: string
499510
}
500511
/**
501512
* Transactions can be in one of the following States:
@@ -957,6 +968,27 @@ export interface PaymentSetTransactionCustomTypeAction
957968
*/
958969
readonly fields?: FieldContainer
959970
}
971+
/**
972+
* Setting the transaction interface ID produces the [PaymentTransactionInterfaceIdSet](ctp:api:type:PaymentTransactionInterfaceIdSetMessage) Message.
973+
*
974+
*/
975+
export interface PaymentSetTransactionInterfaceIdAction
976+
extends IPaymentUpdateAction {
977+
readonly action: 'setTransactionInterfaceId'
978+
/**
979+
* Unique identifier of the [Transaction](ctp:api:type:Transaction).
980+
*
981+
*
982+
*/
983+
readonly transactionId: string
984+
/**
985+
* Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction. It must be unique across all transactions.
986+
* If `interfaceId` is absent, this field will be removed from the specified Transaction, if it exists.
987+
*
988+
*
989+
*/
990+
readonly interfaceId?: string
991+
}
960992
/**
961993
* If the Payment has no current [State](ctp:api:type:State), `initial` must be `true` for the new State.
962994
* If the existing State has transitions set, the new State must be a valid transition.

packages/platform-sdk/src/generated/models/product-search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export interface ProductSearchProjectionParams {
156156
* they are used for projections based on [locale](ctp:api:type:ProductProjectionLocales), [price](ctp:api:type:ProductProjectionPrices),
157157
* and [inventory](ctp:api:type:ProductProjectionInventoryEntries).
158158
* For Projects with active [Product Selections](/../api/projects/product-selections), the API does not take the [availability of the Product in the specified Store](/../api/projects/stores#products-available-in-store) into account.
159-
* [Product Tailoring](/../api/projects/product-tailoring) modifies the product information returned in API responses, but evaluating [query expressions](/../api/search-query-language#simple-expressions) is restricted to the original product information.
159+
* [Product Tailoring](/../api/projects/product-tailoring) modifies the product information returned in API responses. However, you can only specify [query expressions](/../api/search-query-language#simple-expressions) for the original product data, not for tailored data.
160160
*
161161
*
162162
*/

references.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,3 +458,5 @@ e111bc9d132c5da4dc43085c1983efa8cbdf91d3
458458
e60554cf51abaeb40bb26716fb27ada4c135b40f
459459
0ccd9d7c7f9d43d7c437c69ec81c50b0d4ddc641
460460
8944651449b819cb620a4a763e0432bdf57cd708
461+
f890eb4fa0cfcd4c9ee767edd8106a4690a4dd7b
462+
946b77339c0aa1f9205ccf4966e26de47cac11f3

0 commit comments

Comments
 (0)