Interface PaymentInfo
public interface PaymentInfo
PaymentInfo
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentInfo paymentInfo = PaymentInfo.builder()
.plusPayments(paymentsBuilder -> paymentsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentInfoBuilderbuilder()builder factory method for PaymentInfostatic PaymentInfoBuilderbuilder(PaymentInfo template) create builder for PaymentInfo instancecopyDeep()static PaymentInfodeepCopy(PaymentInfo template) factory method to create a deep copy of PaymentInfostatic PaymentInfoof()factory methodstatic PaymentInfoof(PaymentInfo template) factory method to create a shallow copy PaymentInfovoidsetPayments(Reference... payments) set paymentsvoidsetPayments(List<Reference> payments) set paymentsstatic com.fasterxml.jackson.core.type.TypeReference<PaymentInfo>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPaymentInfo(Function<PaymentInfo, T> helper) accessor map function
-
Method Details
-
getPayments
- Returns:
- payments
-
setPayments
set payments- Parameters:
payments- values to be set
-
setPayments
set payments- Parameters:
payments- values to be set
-
of
factory method- Returns:
- instance of PaymentInfo
-
of
factory method to create a shallow copy PaymentInfo- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentInfo copyDeep() -
deepCopy
factory method to create a deep copy of PaymentInfo- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentInfo- Returns:
- builder
-
builder
create builder for PaymentInfo instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentInfo
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
-