Interface CheckoutMessagePaymentsPayloadBaseData
public interface CheckoutMessagePaymentsPayloadBaseData
The data
payload of all payment related event messages.
Example to create an instance using the builder pattern
CheckoutMessagePaymentsPayloadBaseData checkoutMessagePaymentsPayloadBaseData = CheckoutMessagePaymentsPayloadBaseData.builder()
.projectKey("{projectKey}")
.payment(paymentBuilder -> paymentBuilder)
.transactionId("{transactionId}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CheckoutMessagePaymentsPayloadBaseDatacreate builder for CheckoutMessagePaymentsPayloadBaseData instancecopyDeep()
factory method to create a deep copy of CheckoutMessagePaymentsPayloadBaseData@Valid CartReference
getCart()
The Cart on which the change or action was performed.@Valid OrderReference
getOrder()
The Order on which the change or action was performed.@NotNull @Valid PaymentReference
The Payment on which the change or action was performed.@NotNull String
key
of the Project where the payment was made.@NotNull String
id
of the Transaction.of()
factory methodof
(CheckoutMessagePaymentsPayloadBaseData template) factory method to create a shallow copy CheckoutMessagePaymentsPayloadBaseDatavoid
setCart
(CartReference cart) The Cart on which the change or action was performed.void
setOrder
(OrderReference order) The Order on which the change or action was performed.void
setPayment
(PaymentReference payment) The Payment on which the change or action was performed.void
setProjectKey
(String projectKey) key
of the Project where the payment was made.void
setTransactionId
(String transactionId) id
of the Transaction.static com.fasterxml.jackson.core.type.TypeReference<CheckoutMessagePaymentsPayloadBaseData>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCheckoutMessagePaymentsPayloadBaseData
(Function<CheckoutMessagePaymentsPayloadBaseData, T> helper) accessor map function
-
Method Details
-
getProjectKey
key
of the Project where the payment was made.- Returns:
- projectKey
-
getPayment
The Payment on which the change or action was performed.
- Returns:
- payment
-
getTransactionId
id
of the Transaction.- Returns:
- transactionId
-
getCart
The Cart on which the change or action was performed.
- Returns:
- cart
-
getOrder
The Order on which the change or action was performed.
- Returns:
- order
-
setProjectKey
key
of the Project where the payment was made.- Parameters:
projectKey
- value to be set
-
setPayment
The Payment on which the change or action was performed.
- Parameters:
payment
- value to be set
-
setTransactionId
id
of the Transaction.- Parameters:
transactionId
- value to be set
-
setCart
The Cart on which the change or action was performed.
- Parameters:
cart
- value to be set
-
setOrder
The Order on which the change or action was performed.
- Parameters:
order
- value to be set
-
of
factory method- Returns:
- instance of CheckoutMessagePaymentsPayloadBaseData
-
of
factory method to create a shallow copy CheckoutMessagePaymentsPayloadBaseData- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
CheckoutMessagePaymentsPayloadBaseData copyDeep() -
deepCopy
@Nullable static CheckoutMessagePaymentsPayloadBaseData deepCopy(@Nullable CheckoutMessagePaymentsPayloadBaseData template) factory method to create a deep copy of CheckoutMessagePaymentsPayloadBaseData- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CheckoutMessagePaymentsPayloadBaseData- Returns:
- builder
-
builder
static CheckoutMessagePaymentsPayloadBaseDataBuilder builder(CheckoutMessagePaymentsPayloadBaseData template) create builder for CheckoutMessagePaymentsPayloadBaseData instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCheckoutMessagePaymentsPayloadBaseData
default <T> T withCheckoutMessagePaymentsPayloadBaseData(Function<CheckoutMessagePaymentsPayloadBaseData, 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<CheckoutMessagePaymentsPayloadBaseData> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-