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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentLabelBuilderbuilder()builder factory method for PaymentLabelstatic PaymentLabelBuilderbuilder(PaymentLabel template) create builder for PaymentLabel instancecopyDeep()static PaymentLabeldeepCopy(PaymentLabel template) factory method to create a deep copy of PaymentLabel@NotNull @Valid MoneyMoney value the Payment intends to receive from the Customer.@NotNull StringgetKey()User-defined unique identifier of the Payment.@NotNull StringgetType()static PaymentLabelof()factory methodstatic PaymentLabelof(PaymentLabel template) factory method to create a shallow copy PaymentLabelvoidsetAmountPlanned(Money amountPlanned) Money value the Payment intends to receive from the Customer.voidUser-defined unique identifier of the Payment.static com.fasterxml.jackson.core.type.TypeReference<PaymentLabel>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPaymentLabel(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
-
copyDeep
PaymentLabel copyDeep() -
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
-