Interface CheckoutMessageOrderPayloadBaseData
public interface CheckoutMessageOrderPayloadBaseData
The data payload of all related order event messages.
Example to create an instance using the builder pattern
CheckoutMessageOrderPayloadBaseData checkoutMessageOrderPayloadBaseData = CheckoutMessageOrderPayloadBaseData.builder()
.projectKey("{projectKey}")
.cart(cartBuilder -> cartBuilder)
.plusPayments(paymentsBuilder -> paymentsBuilder)
.plusErrors(errorsBuilder -> errorsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CheckoutMessageOrderPayloadBaseDatabuilder(CheckoutMessageOrderPayloadBaseData template) create builder for CheckoutMessageOrderPayloadBaseData instancecopyDeep()deepCopy(CheckoutMessageOrderPayloadBaseData template) factory method to create a deep copy of CheckoutMessageOrderPayloadBaseData@NotNull @Valid CartReferencegetCart()The Cart on which the change or action was performed.@NotNull @Valid List<ErrorObject>Errors associated with the order event.@NotNull @Valid List<PaymentReference>The Payments on which the change or action was performed.@NotNull Stringkeyof the Project where the order would belong to.of()factory methodof(CheckoutMessageOrderPayloadBaseData template) factory method to create a shallow copy CheckoutMessageOrderPayloadBaseDatavoidsetCart(CartReference cart) The Cart on which the change or action was performed.voidsetErrors(ErrorObject... errors) Errors associated with the order event.voidsetErrors(List<ErrorObject> errors) Errors associated with the order event.voidsetPayments(PaymentReference... payments) The Payments on which the change or action was performed.voidsetPayments(List<PaymentReference> payments) The Payments on which the change or action was performed.voidsetProjectKey(String projectKey) keyof the Project where the order would belong to.static com.fasterxml.jackson.core.type.TypeReference<CheckoutMessageOrderPayloadBaseData>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getProjectKey
keyof the Project where the order would belong to.- Returns:
- projectKey
-
getCart
The Cart on which the change or action was performed.
- Returns:
- cart
-
getPayments
The Payments on which the change or action was performed.
- Returns:
- payments
-
getErrors
Errors associated with the order event.
- Returns:
- errors
-
setProjectKey
keyof the Project where the order would belong to.- Parameters:
projectKey- value to be set
-
setCart
The Cart on which the change or action was performed.
- Parameters:
cart- value to be set
-
setPayments
The Payments on which the change or action was performed.
- Parameters:
payments- values to be set
-
setPayments
The Payments on which the change or action was performed.
- Parameters:
payments- values to be set
-
setErrors
Errors associated with the order event.
- Parameters:
errors- values to be set
-
setErrors
Errors associated with the order event.
- Parameters:
errors- values to be set
-
of
factory method- Returns:
- instance of CheckoutMessageOrderPayloadBaseData
-
of
factory method to create a shallow copy CheckoutMessageOrderPayloadBaseData- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CheckoutMessageOrderPayloadBaseData copyDeep() -
deepCopy
@Nullable static CheckoutMessageOrderPayloadBaseData deepCopy(@Nullable CheckoutMessageOrderPayloadBaseData template) factory method to create a deep copy of CheckoutMessageOrderPayloadBaseData- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CheckoutMessageOrderPayloadBaseData- Returns:
- builder
-
builder
static CheckoutMessageOrderPayloadBaseDataBuilder builder(CheckoutMessageOrderPayloadBaseData template) create builder for CheckoutMessageOrderPayloadBaseData instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCheckoutMessageOrderPayloadBaseData
default <T> T withCheckoutMessageOrderPayloadBaseData(Function<CheckoutMessageOrderPayloadBaseData, 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<CheckoutMessageOrderPayloadBaseData> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-