Interface PaymentLabel
- All Superinterfaces:
Label
PaymentLabel
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentLabel paymentLabel = PaymentLabel.builder()
.key("{key}")
.amountPlanned(amountPlannedBuilder -> amountPlannedBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentLabelBuilder
builder()
builder factory method for PaymentLabelstatic PaymentLabelBuilder
builder
(PaymentLabel template) create builder for PaymentLabel instancestatic PaymentLabel
deepCopy
(PaymentLabel template) factory method to create a deep copy of PaymentLabel@NotNull @Valid Money
Money value the Payment intends to receive from the Customer.@NotNull String
getKey()
User-defined unique identifier of the Payment.@NotNull String
getType()
static PaymentLabel
of()
factory methodstatic PaymentLabel
of
(PaymentLabel template) factory method to create a shallow copy PaymentLabelvoid
setAmountPlanned
(Money amountPlanned) Money value the Payment intends to receive from the Customer.void
User-defined unique identifier of the Payment.static com.fasterxml.jackson.core.type.TypeReference<PaymentLabel>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentLabel
(Function<PaymentLabel, T> helper) accessor map function
-
Field Details
-
PAYMENT_LABEL
discriminator value for PaymentLabel- See Also:
-
-
Method Details
-
getType
-
getKey
User-defined unique identifier of the Payment.
- Returns:
- key
-
getAmountPlanned
Money value the Payment intends to receive from the Customer.
- Returns:
- amountPlanned
-
setKey
User-defined unique identifier of the Payment.
- Parameters:
key
- value to be set
-
setAmountPlanned
Money value the Payment intends to receive from the Customer.
- Parameters:
amountPlanned
- value to be set
-
of
factory method- Returns:
- instance of PaymentLabel
-
of
factory method to create a shallow copy PaymentLabel- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PaymentLabel- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentLabel- Returns:
- builder
-
builder
create builder for PaymentLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentLabel
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-