Skip to content

Commit 9f990ea

Browse files
authored
Merge branch 'main' into support-35419
2 parents a7538fc + 8bd0e07 commit 9f990ea

File tree

71 files changed

+2734
-135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2734
-135
lines changed

changes.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,21 @@
1717
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
1818
</details>
1919

20+
21+
<details>
22+
<summary>Added Property(s)</summary>
23+
24+
- added property `interfaceId` to type `MyTransactionDraft`
25+
- added property `interfaceId` to type `Transaction`
26+
- added property `interfaceId` to type `TransactionDraft`
27+
</details>
28+
29+
30+
<details>
31+
<summary>Added Type(s)</summary>
32+
33+
- added type `PaymentTransactionInterfaceIdSetMessage`
34+
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
35+
- added type `PaymentSetTransactionInterfaceIdAction`
36+
</details>
37+

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7264,6 +7264,7 @@ input MyTransactionDraft {
72647264
amount: MoneyInput!
72657265
interactionId: String
72667266
custom: CustomFieldsDraft
7267+
interfaceId: String
72677268
}
72687269

72697270
type NestedAttributeDefinitionType implements AttributeDefinitionType {
@@ -8316,6 +8317,13 @@ type PaymentTransactionAdded implements MessagePayload {
83168317
type: String!
83178318
}
83188319

8320+
type PaymentTransactionInterfaceIdSet implements MessagePayload {
8321+
transactionId: String!
8322+
newInterfaceId: String
8323+
oldInterfaceId: String
8324+
type: String!
8325+
}
8326+
83198327
type PaymentTransactionStateChanged implements MessagePayload {
83208328
transactionId: String!
83218329
state: TransactionState!
@@ -8361,6 +8369,7 @@ input PaymentUpdateAction {
83618369
setStatusInterfaceText: SetPaymentStatusInterfaceText
83628370
setTransactionCustomField: SetPaymentTransactionCustomField
83638371
setTransactionCustomType: SetPaymentTransactionCustomType
8372+
setTransactionInterfaceId: SetPaymentTransactionInterfaceId
83648373
transitionState: TransitionPaymentState
83658374
}
83668375

@@ -10891,6 +10900,8 @@ type RecurringOrder implements Versioned {
1089110900
customerRef: Reference
1089210901
customer: Customer
1089310902
customerEmail: String
10903+
storeRef: KeyReference
10904+
store: Store
1089410905
id: String!
1089510906
version: Long!
1089610907
createdAt: DateTime!
@@ -13128,6 +13139,11 @@ input SetPaymentTransactionCustomType {
1312813139
transactionId: String!
1312913140
}
1313013141

13142+
input SetPaymentTransactionInterfaceId {
13143+
transactionId: String!
13144+
interfaceId: String
13145+
}
13146+
1313113147
input SetProductAssetCustomField {
1313213148
variantId: Int
1313313149
sku: String
@@ -16086,6 +16102,7 @@ type Transaction {
1608616102
interactionId: String
1608716103
state: TransactionState!
1608816104
custom: CustomFieldsType
16105+
interfaceId: String
1608916106
}
1609016107

1609116108
input TransactionDraft {
@@ -16095,6 +16112,7 @@ input TransactionDraft {
1609516112
interactionId: String
1609616113
state: TransactionState
1609716114
custom: CustomFieldsDraft
16115+
interfaceId: String
1609816116
}
1609916117

1610016118
enum TransactionState {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Gets the current or staged representation of a <a href="https://docs.commercetools.com/apis/ctp:api:type:Product" rel="nofollow">Product</a> by its ID in the specified <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a>. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionLocales" rel="nofollow">locale</a>, <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionPrices" rel="nofollow">price</a>, and <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionInventoryEntries" rel="nofollow">inventory</a>.</p>
24-
* <p>If <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductSelection" rel="nofollow">ProductSelection</a> is used, it affects the <span>availability of the Product</span> in the specified Store.</p>
25-
* <p>If a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductTailoring" rel="nofollow">ProductTailoring</a> exists for the Product with the given <code>id</code> and the given Store, this endpoint returns the ProductProjection with tailored data.</p>
26-
* <p>When used with an API Client that has the <code>view_published_products:{projectKey}</code> scope, this endpoint only returns published (current) Product Projections.</p>
23+
* <p>Gets the current or staged representation of a <a href="https://docs.commercetools.com/apis/ctp:api:type:Product" rel="nofollow">Product</a> by its ID in the specified <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a>. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionLocales" rel="nofollow">locale</a>, <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionPrices" rel="nofollow">price</a>, and <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionInventoryEntries" rel="nofollow">inventory</a>. If <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductSelection" rel="nofollow">ProductSelection</a> is used, it affects the <span>availability of the Product</span> in the specified Store. If a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductTailoring" rel="nofollow">ProductTailoring</a> exists for the Product with the given <code>id</code> and the given Store, this endpoint returns the ProductProjection with tailored data. When used with an API Client that has the <code>view_published_products:{projectKey}</code> scope, this endpoint only returns published (current) Product Projections.</p>
2724
*
2825
* <hr>
2926
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
* <p>Gets the current or staged representation of a <a href="https://docs.commercetools.com/apis/ctp:api:type:Product" rel="nofollow">Product</a> by its key in the specified <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a>. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionLocales" rel="nofollow">locale</a>, <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionPrices" rel="nofollow">price</a>, and <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionInventoryEntries" rel="nofollow">inventory</a>.</p>
24-
* <p>If <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductSelection" rel="nofollow">ProductSelection</a> is used, it affects the <span>availability of the Product</span> in the specified Store.</p>
25-
* <p>If a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductTailoring" rel="nofollow">ProductTailoring</a> exists for the Product with the given <code>key</code> and the given Store, this endpoint returns the ProductProjection with tailored data.</p>
26-
* <p>When used with an API Client that has the <code>view_published_products:{projectKey}</code> scope, this endpoint only returns published (current) Product Projections.</p>
23+
* <p>Gets the current or staged representation of a <a href="https://docs.commercetools.com/apis/ctp:api:type:Product" rel="nofollow">Product</a> by its key in the specified <a href="https://docs.commercetools.com/apis/ctp:api:type:Store" rel="nofollow">Store</a>. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionLocales" rel="nofollow">locale</a>, <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionPrices" rel="nofollow">price</a>, and <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductProjectionInventoryEntries" rel="nofollow">inventory</a>. If <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductSelection" rel="nofollow">ProductSelection</a> is used, it affects the <span>availability of the Product</span> in the specified Store. If a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductTailoring" rel="nofollow">ProductTailoring</a> exists for the Product with the given <code>key</code> and the given Store, this endpoint returns the ProductProjection with tailored data. When used with an API Client that has the <code>view_published_products:{projectKey}</code> scope, this endpoint only returns published (current) Product Projections.</p>
2724
*
2825
* <hr>
2926
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetDeleteDaysAfterLastModificationAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
/**
1616
* <p>Number of days after the last modification before a Cart is deleted.</p>
17+
* <p>Carts with <a href="https://docs.commercetools.com/apis/ctp:api:type:CartOrigin" rel="nofollow">CartOrigin</a> <code>RecurringOrder</code> are not affected by this update action.</p>
1718
* <p>If a <a href="https://docs.commercetools.com/apis/ctp:api:type:ChangeSubscription" rel="nofollow">ChangeSubscription</a> exists for Carts, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ResourceDeletedDeliveryPayload" rel="nofollow">ResourceDeletedDeliveryPayload</a> is sent.</p>
1819
*
1920
* <hr>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetDeleteDaysAfterLastModificationActionImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
/**
2020
* <p>Number of days after the last modification before a Cart is deleted.</p>
21+
* <p>Carts with <a href="https://docs.commercetools.com/apis/ctp:api:type:CartOrigin" rel="nofollow">CartOrigin</a> <code>RecurringOrder</code> are not affected by this update action.</p>
2122
* <p>If a <a href="https://docs.commercetools.com/apis/ctp:api:type:ChangeSubscription" rel="nofollow">ChangeSubscription</a> exists for Carts, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ResourceDeletedDeliveryPayload" rel="nofollow">ResourceDeletedDeliveryPayload</a> is sent.</p>
2223
*/
2324
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/Price.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public interface Price extends com.commercetools.api.models.Customizable<Price>,
106106

107107
/**
108108
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">relative discount</a> has been applied and the fraction part of the DiscountedPrice <code>value</code> is 0.5, the <code>value</code> is rounded in favor of the customer with <span>half-down rounding</span>.</p>
109+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
109110
* @return discounted
110111
*/
111112
@Valid
@@ -195,6 +196,7 @@ public interface Price extends com.commercetools.api.models.Customizable<Price>,
195196

196197
/**
197198
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">relative discount</a> has been applied and the fraction part of the DiscountedPrice <code>value</code> is 0.5, the <code>value</code> is rounded in favor of the customer with <span>half-down rounding</span>.</p>
199+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
198200
* @param discounted value to be set
199201
*/
200202

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ public PriceBuilder validUntil(@Nullable final java.time.ZonedDateTime validUnti
213213

214214
/**
215215
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">relative discount</a> has been applied and the fraction part of the DiscountedPrice <code>value</code> is 0.5, the <code>value</code> is rounded in favor of the customer with <span>half-down rounding</span>.</p>
216+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
216217
* @param builder function to build the discounted value
217218
* @return Builder
218219
*/
@@ -225,6 +226,7 @@ public PriceBuilder discounted(
225226

226227
/**
227228
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">relative discount</a> has been applied and the fraction part of the DiscountedPrice <code>value</code> is 0.5, the <code>value</code> is rounded in favor of the customer with <span>half-down rounding</span>.</p>
229+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
228230
* @param builder function to build the discounted value
229231
* @return Builder
230232
*/
@@ -237,6 +239,7 @@ public PriceBuilder withDiscounted(
237239

238240
/**
239241
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">relative discount</a> has been applied and the fraction part of the DiscountedPrice <code>value</code> is 0.5, the <code>value</code> is rounded in favor of the customer with <span>half-down rounding</span>.</p>
242+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
240243
* @param discounted value to be set
241244
* @return Builder
242245
*/
@@ -493,6 +496,7 @@ public java.time.ZonedDateTime getValidUntil() {
493496

494497
/**
495498
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">relative discount</a> has been applied and the fraction part of the DiscountedPrice <code>value</code> is 0.5, the <code>value</code> is rounded in favor of the customer with <span>half-down rounding</span>.</p>
499+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
496500
* @return discounted
497501
*/
498502

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/common/PriceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public java.time.ZonedDateTime getValidUntil() {
147147

148148
/**
149149
* <p>Is set if a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscount" rel="nofollow">ProductDiscount</a> has been applied. If set, the API uses the DiscountedPrice value for the <span>Line Item price selection</span>. When a <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueRelative" rel="nofollow">relative discount</a> has been applied and the fraction part of the DiscountedPrice <code>value</code> is 0.5, the <code>value</code> is rounded in favor of the customer with <span>half-down rounding</span>.</p>
150+
* <p>If an <a href="https://docs.commercetools.com/apis/ctp:api:type:ProductDiscountValueAbsolute" rel="nofollow">absolute discount</a> value exceeds the price of the Product Variant, the discounted price is a negative value.</p>
150151
*/
151152

152153
public com.commercetools.api.models.common.DiscountedPrice getDiscounted() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyTransactionDraft.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ public interface MyTransactionDraft extends com.commercetools.api.models.Customi
7979
@JsonProperty("custom")
8080
public CustomFieldsDraft getCustom();
8181

82+
/**
83+
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
84+
* @return interfaceId
85+
*/
86+
87+
@JsonProperty("interfaceId")
88+
public String getInterfaceId();
89+
8290
/**
8391
* <p>Date and time (UTC) the Transaction took place.</p>
8492
* @param timestamp value to be set
@@ -114,6 +122,13 @@ public interface MyTransactionDraft extends com.commercetools.api.models.Customi
114122

115123
public void setCustom(final CustomFieldsDraft custom);
116124

125+
/**
126+
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
127+
* @param interfaceId value to be set
128+
*/
129+
130+
public void setInterfaceId(final String interfaceId);
131+
117132
/**
118133
* factory method
119134
* @return instance of MyTransactionDraft
@@ -134,6 +149,7 @@ public static MyTransactionDraft of(final MyTransactionDraft template) {
134149
instance.setAmount(template.getAmount());
135150
instance.setInteractionId(template.getInteractionId());
136151
instance.setCustom(template.getCustom());
152+
instance.setInterfaceId(template.getInterfaceId());
137153
return instance;
138154
}
139155

@@ -155,6 +171,7 @@ public static MyTransactionDraft deepCopy(@Nullable final MyTransactionDraft tem
155171
instance.setAmount(com.commercetools.api.models.common.Money.deepCopy(template.getAmount()));
156172
instance.setInteractionId(template.getInteractionId());
157173
instance.setCustom(com.commercetools.api.models.type.CustomFieldsDraft.deepCopy(template.getCustom()));
174+
instance.setInterfaceId(template.getInterfaceId());
158175
return instance;
159176
}
160177

0 commit comments

Comments
 (0)