Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,21 @@
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
</details>


<details>
<summary>Added Property(s)</summary>

- added property `interfaceId` to type `MyTransactionDraft`
- added property `interfaceId` to type `Transaction`
- added property `interfaceId` to type `TransactionDraft`
</details>


<details>
<summary>Added Type(s)</summary>

- added type `PaymentTransactionInterfaceIdSetMessage`
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
- added type `PaymentSetTransactionInterfaceIdAction`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -7264,6 +7264,7 @@ input MyTransactionDraft {
amount: MoneyInput!
interactionId: String
custom: CustomFieldsDraft
interfaceId: String
}

type NestedAttributeDefinitionType implements AttributeDefinitionType {
Expand Down Expand Up @@ -8316,6 +8317,13 @@ type PaymentTransactionAdded implements MessagePayload {
type: String!
}

type PaymentTransactionInterfaceIdSet implements MessagePayload {
transactionId: String!
newInterfaceId: String
oldInterfaceId: String
type: String!
}

type PaymentTransactionStateChanged implements MessagePayload {
transactionId: String!
state: TransactionState!
Expand Down Expand Up @@ -8361,6 +8369,7 @@ input PaymentUpdateAction {
setStatusInterfaceText: SetPaymentStatusInterfaceText
setTransactionCustomField: SetPaymentTransactionCustomField
setTransactionCustomType: SetPaymentTransactionCustomType
setTransactionInterfaceId: SetPaymentTransactionInterfaceId
transitionState: TransitionPaymentState
}

Expand Down Expand Up @@ -13130,6 +13139,11 @@ input SetPaymentTransactionCustomType {
transactionId: String!
}

input SetPaymentTransactionInterfaceId {
transactionId: String!
interfaceId: String
}

input SetProductAssetCustomField {
variantId: Int
sku: String
Expand Down Expand Up @@ -16088,6 +16102,7 @@ type Transaction {
interactionId: String
state: TransactionState!
custom: CustomFieldsType
interfaceId: String
}

input TransactionDraft {
Expand All @@ -16097,6 +16112,7 @@ input TransactionDraft {
interactionId: String
state: TransactionState
custom: CustomFieldsDraft
interfaceId: String
}

enum TransactionState {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ public interface MyTransactionDraft extends com.commercetools.api.models.Customi
@JsonProperty("custom")
public CustomFieldsDraft getCustom();

/**
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
* @return interfaceId
*/

@JsonProperty("interfaceId")
public String getInterfaceId();

/**
* <p>Date and time (UTC) the Transaction took place.</p>
* @param timestamp value to be set
Expand Down Expand Up @@ -114,6 +122,13 @@ public interface MyTransactionDraft extends com.commercetools.api.models.Customi

public void setCustom(final CustomFieldsDraft custom);

/**
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
* @param interfaceId value to be set
*/

public void setInterfaceId(final String interfaceId);

/**
* factory method
* @return instance of MyTransactionDraft
Expand All @@ -134,6 +149,7 @@ public static MyTransactionDraft of(final MyTransactionDraft template) {
instance.setAmount(template.getAmount());
instance.setInteractionId(template.getInteractionId());
instance.setCustom(template.getCustom());
instance.setInterfaceId(template.getInterfaceId());
return instance;
}

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public class MyTransactionDraftBuilder implements Builder<MyTransactionDraft> {
@Nullable
private com.commercetools.api.models.type.CustomFieldsDraft custom;

@Nullable
private String interfaceId;

/**
* <p>Date and time (UTC) the Transaction took place.</p>
* @param timestamp value to be set
Expand Down Expand Up @@ -142,6 +145,17 @@ public MyTransactionDraftBuilder custom(
return this;
}

/**
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
* @param interfaceId value to be set
* @return Builder
*/

public MyTransactionDraftBuilder interfaceId(@Nullable final String interfaceId) {
this.interfaceId = interfaceId;
return this;
}

/**
* <p>Date and time (UTC) the Transaction took place.</p>
* @return timestamp
Expand Down Expand Up @@ -190,22 +204,32 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
return this.custom;
}

/**
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
* @return interfaceId
*/

@Nullable
public String getInterfaceId() {
return this.interfaceId;
}

/**
* builds MyTransactionDraft with checking for non-null required values
* @return MyTransactionDraft
*/
public MyTransactionDraft build() {
Objects.requireNonNull(type, MyTransactionDraft.class + ": type is missing");
Objects.requireNonNull(amount, MyTransactionDraft.class + ": amount is missing");
return new MyTransactionDraftImpl(timestamp, type, amount, interactionId, custom);
return new MyTransactionDraftImpl(timestamp, type, amount, interactionId, custom, interfaceId);
}

/**
* builds MyTransactionDraft without checking for non-null required values
* @return MyTransactionDraft
*/
public MyTransactionDraft buildUnchecked() {
return new MyTransactionDraftImpl(timestamp, type, amount, interactionId, custom);
return new MyTransactionDraftImpl(timestamp, type, amount, interactionId, custom, interfaceId);
}

/**
Expand All @@ -228,6 +252,7 @@ public static MyTransactionDraftBuilder of(final MyTransactionDraft template) {
builder.amount = template.getAmount();
builder.interactionId = template.getInteractionId();
builder.custom = template.getCustom();
builder.interfaceId = template.getInterfaceId();
return builder;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public class MyTransactionDraftImpl implements MyTransactionDraft, ModelBase {

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

private String interfaceId;

/**
* create instance with all properties
*/
Expand All @@ -40,12 +42,14 @@ public class MyTransactionDraftImpl implements MyTransactionDraft, ModelBase {
@JsonProperty("type") final com.commercetools.api.models.payment.TransactionType type,
@JsonProperty("amount") final com.commercetools.api.models.common.Money amount,
@JsonProperty("interactionId") final String interactionId,
@JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom) {
@JsonProperty("custom") final com.commercetools.api.models.type.CustomFieldsDraft custom,
@JsonProperty("interfaceId") final String interfaceId) {
this.timestamp = timestamp;
this.type = type;
this.amount = amount;
this.interactionId = interactionId;
this.custom = custom;
this.interfaceId = interfaceId;
}

/**
Expand Down Expand Up @@ -94,6 +98,14 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
return this.custom;
}

/**
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
*/

public String getInterfaceId() {
return this.interfaceId;
}

public void setTimestamp(final java.time.ZonedDateTime timestamp) {
this.timestamp = timestamp;
}
Expand All @@ -114,6 +126,10 @@ public void setCustom(final com.commercetools.api.models.type.CustomFieldsDraft
this.custom = custom;
}

public void setInterfaceId(final String interfaceId) {
this.interfaceId = interfaceId;
}

@Override
public boolean equals(Object o) {
if (this == o)
Expand All @@ -129,11 +145,13 @@ public boolean equals(Object o) {
.append(amount, that.amount)
.append(interactionId, that.interactionId)
.append(custom, that.custom)
.append(interfaceId, that.interfaceId)
.append(timestamp, that.timestamp)
.append(type, that.type)
.append(amount, that.amount)
.append(interactionId, that.interactionId)
.append(custom, that.custom)
.append(interfaceId, that.interfaceId)
.isEquals();
}

Expand All @@ -144,6 +162,7 @@ public int hashCode() {
.append(amount)
.append(interactionId)
.append(custom)
.append(interfaceId)
.toHashCode();
}

Expand All @@ -154,6 +173,7 @@ public String toString() {
.append("amount", amount)
.append("interactionId", interactionId)
.append("custom", custom)
.append("interfaceId", interfaceId)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,14 @@ public static com.commercetools.api.models.message.PaymentTransactionAddedMessag
return com.commercetools.api.models.message.PaymentTransactionAddedMessageBuilder.of();
}

/**
* builder for paymentTransactionInterfaceIdSet subtype
* @return builder
*/
public static com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessageBuilder paymentTransactionInterfaceIdSetBuilder() {
return com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessageBuilder.of();
}

/**
* builder for paymentTransactionStateChanged subtype
* @return builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,10 @@ public com.commercetools.api.models.message.PaymentTransactionAddedMessageBuilde
return com.commercetools.api.models.message.PaymentTransactionAddedMessageBuilder.of();
}

public com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessageBuilder paymentTransactionInterfaceIdSetBuilder() {
return com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessageBuilder.of();
}

public com.commercetools.api.models.message.PaymentTransactionStateChangedMessageBuilder paymentTransactionStateChangedBuilder() {
return com.commercetools.api.models.message.PaymentTransactionStateChangedMessageBuilder.of();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,14 @@ public static com.commercetools.api.models.message.PaymentTransactionAddedMessag
return com.commercetools.api.models.message.PaymentTransactionAddedMessagePayloadBuilder.of();
}

/**
* builder for paymentTransactionInterfaceIdSet subtype
* @return builder
*/
public static com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessagePayloadBuilder paymentTransactionInterfaceIdSetBuilder() {
return com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessagePayloadBuilder.of();
}

/**
* builder for paymentTransactionStateChanged subtype
* @return builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,10 @@ public com.commercetools.api.models.message.PaymentTransactionAddedMessagePayloa
return com.commercetools.api.models.message.PaymentTransactionAddedMessagePayloadBuilder.of();
}

public com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessagePayloadBuilder paymentTransactionInterfaceIdSetBuilder() {
return com.commercetools.api.models.message.PaymentTransactionInterfaceIdSetMessagePayloadBuilder.of();
}

public com.commercetools.api.models.message.PaymentTransactionStateChangedMessagePayloadBuilder paymentTransactionStateChangedBuilder() {
return com.commercetools.api.models.message.PaymentTransactionStateChangedMessagePayloadBuilder.of();
}
Expand Down
Loading