Interface PaymentMethodInfoDraft
- All Superinterfaces:
Draft<PaymentMethodInfoDraft>
Example to create an instance using the builder pattern
PaymentMethodInfoDraft paymentMethodInfoDraft = PaymentMethodInfoDraft.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodInfoDraftbuilder
(PaymentMethodInfoDraft template) create builder for PaymentMethodInfoDraft instancecopyDeep()
static PaymentMethodInfoDraft
deepCopy
(PaymentMethodInfoDraft template) factory method to create a deep copy of PaymentMethodInfoDraft@Valid CustomFieldsDraft
Custom fields for the PaymentMethodInfo.Account or instance of the payment interface when multiple accounts are used (per interface).Payment method to use—for example, a credit card or direct debit.@Valid LocalizedString
getName()
Name of the Payment Method.Payment service that processes the Payment—for example, a PSP.@Valid PaymentMethodToken
getToken()
Tokenized representation of the Payment Method used by the payment interface.static PaymentMethodInfoDraft
of()
factory methodstatic PaymentMethodInfoDraft
of
(PaymentMethodInfoDraft template) factory method to create a shallow copy PaymentMethodInfoDraftvoid
setCustom
(CustomFieldsDraft custom) Custom fields for the PaymentMethodInfo.void
setInterfaceAccount
(String interfaceAccount) Account or instance of the payment interface when multiple accounts are used (per interface).void
Payment method to use—for example, a credit card or direct debit.void
setName
(LocalizedString name) Name of the Payment Method.void
setPaymentInterface
(String paymentInterface) Payment service that processes the Payment—for example, a PSP.void
setToken
(PaymentMethodToken token) Tokenized representation of the Payment Method used by the payment interface.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodInfoDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getPaymentInterface
String getPaymentInterface()Payment service that processes the Payment—for example, a PSP. The combination of
paymentInterface
and theinterfaceId
of a Payment must be unique.The value cannot be modified after it is set.
- Returns:
- paymentInterface
-
getMethod
String getMethod()Payment method to use—for example, a credit card or direct debit.
- Returns:
- method
-
getName
Name of the Payment Method.
- Returns:
- name
-
getToken
Tokenized representation of the Payment Method used by the payment interface.
- Returns:
- token
-
getInterfaceAccount
String getInterfaceAccount()Account or instance of the payment interface when multiple accounts are used (per interface).
- Returns:
- interfaceAccount
-
getCustom
Custom fields for the PaymentMethodInfo.
- Returns:
- custom
-
setPaymentInterface
Payment service that processes the Payment—for example, a PSP. The combination of
paymentInterface
and theinterfaceId
of a Payment must be unique.The value cannot be modified after it is set.
- Parameters:
paymentInterface
- value to be set
-
setMethod
Payment method to use—for example, a credit card or direct debit.
- Parameters:
method
- value to be set
-
setName
Name of the Payment Method.
- Parameters:
name
- value to be set
-
setToken
Tokenized representation of the Payment Method used by the payment interface.
- Parameters:
token
- value to be set
-
setInterfaceAccount
Account or instance of the payment interface when multiple accounts are used (per interface).
- Parameters:
interfaceAccount
- value to be set
-
setCustom
Custom fields for the PaymentMethodInfo.
- Parameters:
custom
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodInfoDraft
-
of
factory method to create a shallow copy PaymentMethodInfoDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodInfoDraft copyDeep() -
deepCopy
factory method to create a deep copy of PaymentMethodInfoDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodInfoDraft- Returns:
- builder
-
builder
create builder for PaymentMethodInfoDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodInfoDraft
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
-