Interface PaymentChangeTransactionTimestampAction
- All Superinterfaces:
PaymentUpdateAction
,ResourceUpdateAction<PaymentUpdateAction>
PaymentChangeTransactionTimestampAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentChangeTransactionTimestampAction paymentChangeTransactionTimestampAction = PaymentChangeTransactionTimestampAction.builder()
.transactionId("{transactionId}")
.timestamp(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentChangeTransactionTimestampAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentChangeTransactionTimestampActioncreate builder for PaymentChangeTransactionTimestampAction instancefactory method to create a deep copy of PaymentChangeTransactionTimestampAction@NotNull ZonedDateTime
Timestamp of the Transaction as reported by the payment service.@NotNull String
Unique identifier of the Transaction.of()
factory methodof
(PaymentChangeTransactionTimestampAction template) factory method to create a shallow copy PaymentChangeTransactionTimestampActionvoid
setTimestamp
(ZonedDateTime timestamp) Timestamp of the Transaction as reported by the payment service.void
setTransactionId
(String transactionId) Unique identifier of the Transaction.static com.fasterxml.jackson.core.type.TypeReference<PaymentChangeTransactionTimestampAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentChangeTransactionTimestampAction
(Function<PaymentChangeTransactionTimestampAction, 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
-
CHANGE_TRANSACTION_TIMESTAMP
discriminator value for PaymentChangeTransactionTimestampAction- See Also:
-
-
Method Details
-
getTransactionId
Unique identifier of the Transaction.
- Returns:
- transactionId
-
getTimestamp
Timestamp of the Transaction as reported by the payment service.
- Returns:
- timestamp
-
setTransactionId
Unique identifier of the Transaction.
- Parameters:
transactionId
- value to be set
-
setTimestamp
Timestamp of the Transaction as reported by the payment service.
- Parameters:
timestamp
- value to be set
-
of
factory method- Returns:
- instance of PaymentChangeTransactionTimestampAction
-
of
factory method to create a shallow copy PaymentChangeTransactionTimestampAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static PaymentChangeTransactionTimestampAction deepCopy(@Nullable PaymentChangeTransactionTimestampAction template) factory method to create a deep copy of PaymentChangeTransactionTimestampAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentChangeTransactionTimestampAction- Returns:
- builder
-
builder
static PaymentChangeTransactionTimestampActionBuilder builder(PaymentChangeTransactionTimestampAction template) create builder for PaymentChangeTransactionTimestampAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentChangeTransactionTimestampAction
default <T> T withPaymentChangeTransactionTimestampAction(Function<PaymentChangeTransactionTimestampAction, 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<PaymentChangeTransactionTimestampAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-