Skip to content

Commit 4078230

Browse files
Merge pull request #987 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 95677dd + 2a3b31c commit 4078230

File tree

43 files changed

+2551
-14
lines changed

Some content is hidden

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

43 files changed

+2551
-14
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: 16 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

@@ -13130,6 +13139,11 @@ input SetPaymentTransactionCustomType {
1313013139
transactionId: String!
1313113140
}
1313213141

13142+
input SetPaymentTransactionInterfaceId {
13143+
transactionId: String!
13144+
interfaceId: String
13145+
}
13146+
1313313147
input SetProductAssetCustomField {
1313413148
variantId: Int
1313513149
sku: String
@@ -16088,6 +16102,7 @@ type Transaction {
1608816102
interactionId: String
1608916103
state: TransactionState!
1609016104
custom: CustomFieldsType
16105+
interfaceId: String
1609116106
}
1609216107

1609316108
input TransactionDraft {
@@ -16097,6 +16112,7 @@ input TransactionDraft {
1609716112
interactionId: String
1609816113
state: TransactionState
1609916114
custom: CustomFieldsDraft
16115+
interfaceId: String
1610016116
}
1610116117

1610216118
enum TransactionState {

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

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

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public class MyTransactionDraftBuilder implements Builder<MyTransactionDraft> {
3838
@Nullable
3939
private com.commercetools.api.models.type.CustomFieldsDraft custom;
4040

41+
@Nullable
42+
private String interfaceId;
43+
4144
/**
4245
* <p>Date and time (UTC) the Transaction took place.</p>
4346
* @param timestamp value to be set
@@ -142,6 +145,17 @@ public MyTransactionDraftBuilder custom(
142145
return this;
143146
}
144147

148+
/**
149+
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
150+
* @param interfaceId value to be set
151+
* @return Builder
152+
*/
153+
154+
public MyTransactionDraftBuilder interfaceId(@Nullable final String interfaceId) {
155+
this.interfaceId = interfaceId;
156+
return this;
157+
}
158+
145159
/**
146160
* <p>Date and time (UTC) the Transaction took place.</p>
147161
* @return timestamp
@@ -190,22 +204,32 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
190204
return this.custom;
191205
}
192206

207+
/**
208+
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
209+
* @return interfaceId
210+
*/
211+
212+
@Nullable
213+
public String getInterfaceId() {
214+
return this.interfaceId;
215+
}
216+
193217
/**
194218
* builds MyTransactionDraft with checking for non-null required values
195219
* @return MyTransactionDraft
196220
*/
197221
public MyTransactionDraft build() {
198222
Objects.requireNonNull(type, MyTransactionDraft.class + ": type is missing");
199223
Objects.requireNonNull(amount, MyTransactionDraft.class + ": amount is missing");
200-
return new MyTransactionDraftImpl(timestamp, type, amount, interactionId, custom);
224+
return new MyTransactionDraftImpl(timestamp, type, amount, interactionId, custom, interfaceId);
201225
}
202226

203227
/**
204228
* builds MyTransactionDraft without checking for non-null required values
205229
* @return MyTransactionDraft
206230
*/
207231
public MyTransactionDraft buildUnchecked() {
208-
return new MyTransactionDraftImpl(timestamp, type, amount, interactionId, custom);
232+
return new MyTransactionDraftImpl(timestamp, type, amount, interactionId, custom, interfaceId);
209233
}
210234

211235
/**
@@ -228,6 +252,7 @@ public static MyTransactionDraftBuilder of(final MyTransactionDraft template) {
228252
builder.amount = template.getAmount();
229253
builder.interactionId = template.getInteractionId();
230254
builder.custom = template.getCustom();
255+
builder.interfaceId = template.getInterfaceId();
231256
return builder;
232257
}
233258

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public class MyTransactionDraftImpl implements MyTransactionDraft, ModelBase {
3232

3333
private com.commercetools.api.models.type.CustomFieldsDraft custom;
3434

35+
private String interfaceId;
36+
3537
/**
3638
* create instance with all properties
3739
*/
@@ -40,12 +42,14 @@ public class MyTransactionDraftImpl implements MyTransactionDraft, ModelBase {
4042
@JsonProperty("type") final com.commercetools.api.models.payment.TransactionType type,
4143
@JsonProperty("amount") final com.commercetools.api.models.common.Money amount,
4244
@JsonProperty("interactionId") final String interactionId,
43-
@JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom) {
45+
@JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom,
46+
@JsonProperty("interfaceId") final String interfaceId) {
4447
this.timestamp = timestamp;
4548
this.type = type;
4649
this.amount = amount;
4750
this.interactionId = interactionId;
4851
this.custom = custom;
52+
this.interfaceId = interfaceId;
4953
}
5054

5155
/**
@@ -94,6 +98,14 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
9498
return this.custom;
9599
}
96100

101+
/**
102+
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
103+
*/
104+
105+
public String getInterfaceId() {
106+
return this.interfaceId;
107+
}
108+
97109
public void setTimestamp(final java.time.ZonedDateTime timestamp) {
98110
this.timestamp = timestamp;
99111
}
@@ -114,6 +126,10 @@ public void setCustom(final com.commercetools.api.models.type.CustomFieldsDraft
114126
this.custom = custom;
115127
}
116128

129+
public void setInterfaceId(final String interfaceId) {
130+
this.interfaceId = interfaceId;
131+
}
132+
117133
@Override
118134
public boolean equals(Object o) {
119135
if (this == o)
@@ -129,11 +145,13 @@ public boolean equals(Object o) {
129145
.append(amount, that.amount)
130146
.append(interactionId, that.interactionId)
131147
.append(custom, that.custom)
148+
.append(interfaceId, that.interfaceId)
132149
.append(timestamp, that.timestamp)
133150
.append(type, that.type)
134151
.append(amount, that.amount)
135152
.append(interactionId, that.interactionId)
136153
.append(custom, that.custom)
154+
.append(interfaceId, that.interfaceId)
137155
.isEquals();
138156
}
139157

@@ -144,6 +162,7 @@ public int hashCode() {
144162
.append(amount)
145163
.append(interactionId)
146164
.append(custom)
165+
.append(interfaceId)
147166
.toHashCode();
148167
}
149168

@@ -154,6 +173,7 @@ public String toString() {
154173
.append("amount", amount)
155174
.append("interactionId", interactionId)
156175
.append("custom", custom)
176+
.append("interfaceId", interfaceId)
157177
.build();
158178
}
159179

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,6 +1789,14 @@ public static com.commercetools.api.models.message.PaymentTransactionAddedMessag
17891789
return com.commercetools.api.models.message.PaymentTransactionAddedMessageBuilder.of();
17901790
}
17911791

1792+
/**
1793+
* builder for paymentTransactionInterfaceIdSet subtype
1794+
* @return builder
1795+
*/
1796+
public static com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessageBuilder paymentTransactionInterfaceIdSetBuilder() {
1797+
return com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessageBuilder.of();
1798+
}
1799+
17921800
/**
17931801
* builder for paymentTransactionStateChanged subtype
17941802
* @return builder

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,10 @@ public com.commercetools.api.models.message.PaymentTransactionAddedMessageBuilde
787787
return com.commercetools.api.models.message.PaymentTransactionAddedMessageBuilder.of();
788788
}
789789

790+
public com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessageBuilder paymentTransactionInterfaceIdSetBuilder() {
791+
return com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessageBuilder.of();
792+
}
793+
790794
public com.commercetools.api.models.message.PaymentTransactionStateChangedMessageBuilder paymentTransactionStateChangedBuilder() {
791795
return com.commercetools.api.models.message.PaymentTransactionStateChangedMessageBuilder.of();
792796
}

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,14 @@ public static com.commercetools.api.models.message.PaymentTransactionAddedMessag
16131613
return com.commercetools.api.models.message.PaymentTransactionAddedMessagePayloadBuilder.of();
16141614
}
16151615

1616+
/**
1617+
* builder for paymentTransactionInterfaceIdSet subtype
1618+
* @return builder
1619+
*/
1620+
public static com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessagePayloadBuilder paymentTransactionInterfaceIdSetBuilder() {
1621+
return com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessagePayloadBuilder.of();
1622+
}
1623+
16161624
/**
16171625
* builder for paymentTransactionStateChanged subtype
16181626
* @return builder

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,10 @@ public com.commercetools.api.models.message.PaymentTransactionAddedMessagePayloa
787787
return com.commercetools.api.models.message.PaymentTransactionAddedMessagePayloadBuilder.of();
788788
}
789789

790+
public com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessagePayloadBuilder paymentTransactionInterfaceIdSetBuilder() {
791+
return com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessagePayloadBuilder.of();
792+
}
793+
790794
public com.commercetools.api.models.message.PaymentTransactionStateChangedMessagePayloadBuilder paymentTransactionStateChangedBuilder() {
791795
return com.commercetools.api.models.message.PaymentTransactionStateChangedMessagePayloadBuilder.of();
792796
}

0 commit comments

Comments
 (0)