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 Stringdiscriminator 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 StringUnique identifier of the Transaction.of()factory methodof(PaymentSetTransactionInterfaceIdAction template) factory method to create a shallow copy PaymentSetTransactionInterfaceIdActionvoidsetInterfaceId(String interfaceId) Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.voidsetTransactionId(String transactionId) Unique identifier of the Transaction.static com.fasterxml.jackson.core.type.TypeReference<PaymentSetTransactionInterfaceIdAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPaymentSetTransactionInterfaceIdAction(Function<PaymentSetTransactionInterfaceIdAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateActionMethods 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
interfaceIdis 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
interfaceIdis 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:
copyDeepin 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
-