Interface PaymentSetTransactionInterfaceIdAction
- All Superinterfaces:
PaymentUpdateAction
,ResourceUpdateAction<PaymentUpdateAction>
Setting the transaction interface ID produces the PaymentTransactionInterfaceIdSet Message.
Example to create an instance using the builder pattern
PaymentSetTransactionInterfaceIdAction paymentSetTransactionInterfaceIdAction = PaymentSetTransactionInterfaceIdAction.builder()
.transactionId("{transactionId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentSetTransactionInterfaceIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentSetTransactionInterfaceIdActioncreate builder for PaymentSetTransactionInterfaceIdAction instancecopyDeep()
factory method to create a deep copy of PaymentSetTransactionInterfaceIdActionIdentifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.@NotNull String
Unique identifier of the Transaction.of()
factory methodof
(PaymentSetTransactionInterfaceIdAction template) factory method to create a shallow copy PaymentSetTransactionInterfaceIdActionvoid
setInterfaceId
(String interfaceId) Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.void
setTransactionId
(String transactionId) Unique identifier of the Transaction.static com.fasterxml.jackson.core.type.TypeReference<PaymentSetTransactionInterfaceIdAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentSetTransactionInterfaceIdAction
(Function<PaymentSetTransactionInterfaceIdAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_TRANSACTION_INTERFACE_ID
discriminator value for PaymentSetTransactionInterfaceIdAction- See Also:
-
-
Method Details
-
getTransactionId
Unique identifier of the Transaction.
- Returns:
- transactionId
-
getInterfaceId
String getInterfaceId()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. If
interfaceId
is absent, this field will be removed from the specified Transaction, if it exists.- Returns:
- interfaceId
-
setTransactionId
Unique identifier of the Transaction.
- Parameters:
transactionId
- value to be set
-
setInterfaceId
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. If
interfaceId
is absent, this field will be removed from the specified Transaction, if it exists.- Parameters:
interfaceId
- value to be set
-
of
factory method- Returns:
- instance of PaymentSetTransactionInterfaceIdAction
-
of
factory method to create a shallow copy PaymentSetTransactionInterfaceIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentSetTransactionInterfaceIdAction copyDeep()- Specified by:
copyDeep
in interfacePaymentUpdateAction
-
deepCopy
@Nullable static PaymentSetTransactionInterfaceIdAction deepCopy(@Nullable PaymentSetTransactionInterfaceIdAction template) factory method to create a deep copy of PaymentSetTransactionInterfaceIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentSetTransactionInterfaceIdAction- Returns:
- builder
-
builder
static PaymentSetTransactionInterfaceIdActionBuilder builder(PaymentSetTransactionInterfaceIdAction template) create builder for PaymentSetTransactionInterfaceIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentSetTransactionInterfaceIdAction
default <T> T withPaymentSetTransactionInterfaceIdAction(Function<PaymentSetTransactionInterfaceIdAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<PaymentSetTransactionInterfaceIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-