Interface PaymentMethodDraft
- All Superinterfaces:
Draft<PaymentMethodDraft>
Example to create an instance using the builder pattern
PaymentMethodDraft paymentMethodDraft = PaymentMethodDraft.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentMethodDraftBuilderbuilder()builder factory method for PaymentMethodDraftstatic PaymentMethodDraftBuilderbuilder(PaymentMethodDraft template) create builder for PaymentMethodDraft instancecopyDeep()static PaymentMethodDraftdeepCopy(PaymentMethodDraft template) factory method to create a deep copy of PaymentMethodDraftReference to a BusinessUnit the PaymentMethod should belong to.@Valid CustomFieldsDraftCustom Fields for the PaymentMethod.@Valid CustomerResourceIdentifierReference to a Customer the PaymentMethod should belong to.Set totrueif the PaymentMethod should be the default.Account or instance of the payment interface when multiple accounts are used (per interface).getKey()User-defined unique identifier for the PaymentMethod.Payment method to use for the Payment—for example, a credit card or direct debit.@Valid LocalizedStringgetName()Name of the PaymentMethod.Payment service that processes the Payment—for example, a PSP.Status of the PaymentMethod.@Valid PaymentMethodTokengetToken()Tokenized representation of the PaymentMethod used by the payment interface.static PaymentMethodDraftof()factory methodstatic PaymentMethodDraftof(PaymentMethodDraft template) factory method to create a shallow copy PaymentMethodDraftvoidsetBusinessUnit(BusinessUnitResourceIdentifier businessUnit) Reference to a BusinessUnit the PaymentMethod should belong to.voidsetCustom(CustomFieldsDraft custom) Custom Fields for the PaymentMethod.voidsetCustomer(CustomerResourceIdentifier customer) Reference to a Customer the PaymentMethod should belong to.voidsetDefault(Boolean _default) Set totrueif the PaymentMethod should be the default.voidsetInterfaceAccount(String interfaceAccount) Account or instance of the payment interface when multiple accounts are used (per interface).voidUser-defined unique identifier for the PaymentMethod.voidPayment method to use for the Payment—for example, a credit card or direct debit.voidsetName(LocalizedString name) Name of the PaymentMethod.voidsetPaymentInterface(String paymentInterface) Payment service that processes the Payment—for example, a PSP.voidsetPaymentMethodStatus(PaymentMethodStatus paymentMethodStatus) Status of the PaymentMethod.voidsetToken(PaymentMethodToken token) Tokenized representation of the PaymentMethod used by the payment interface.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPaymentMethodDraft(Function<PaymentMethodDraft, T> helper) accessor map function
-
Method Details
-
getKey
String getKey()User-defined unique identifier for the PaymentMethod.
- Returns:
- key
-
getName
Name of the PaymentMethod.
- Returns:
- name
-
getCustomer
Reference to a Customer the PaymentMethod should belong to.
If
businessUnitis set, the Customer must be an Associate of the Business Unit.- Returns:
- customer
-
getBusinessUnit
Reference to a BusinessUnit the PaymentMethod should belong to.
Only available for B2B-enabled Projects.
- Returns:
- businessUnit
-
getMethod
String getMethod()Payment method to use for the Payment—for example, a credit card or direct debit.
- Returns:
- method
-
getPaymentInterface
String getPaymentInterface()Payment service that processes the Payment—for example, a PSP.
- Returns:
- paymentInterface
-
getInterfaceAccount
String getInterfaceAccount()Account or instance of the payment interface when multiple accounts are used (per interface).
- Returns:
- interfaceAccount
-
getToken
Tokenized representation of the PaymentMethod used by the payment interface.
- Returns:
- token
-
getPaymentMethodStatus
PaymentMethodStatus getPaymentMethodStatus()Status of the PaymentMethod.
- Returns:
- paymentMethodStatus
-
getDefault
Boolean getDefault()Set to
trueif the PaymentMethod should be the default.The default applies per Customer, Business Unit, or the combination of both (Associate).
- Returns:
- default
-
getCustom
Custom Fields for the PaymentMethod.
- Returns:
- custom
-
setKey
User-defined unique identifier for the PaymentMethod.
- Parameters:
key- value to be set
-
setName
Name of the PaymentMethod.
- Parameters:
name- value to be set
-
setCustomer
Reference to a Customer the PaymentMethod should belong to.
If
businessUnitis set, the Customer must be an Associate of the Business Unit.- Parameters:
customer- value to be set
-
setBusinessUnit
Reference to a BusinessUnit the PaymentMethod should belong to.
Only available for B2B-enabled Projects.
- Parameters:
businessUnit- value to be set
-
setMethod
Payment method to use for the Payment—for example, a credit card or direct debit.
- Parameters:
method- value to be set
-
setPaymentInterface
Payment service that processes the Payment—for example, a PSP.
- Parameters:
paymentInterface- 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
-
setToken
Tokenized representation of the PaymentMethod used by the payment interface.
- Parameters:
token- value to be set
-
setPaymentMethodStatus
Status of the PaymentMethod.
- Parameters:
paymentMethodStatus- value to be set
-
setDefault
Set to
trueif the PaymentMethod should be the default.The default applies per Customer, Business Unit, or the combination of both (Associate).
- Parameters:
_default- value to be set
-
setCustom
Custom Fields for the PaymentMethod.
- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodDraft
-
of
factory method to create a shallow copy PaymentMethodDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodDraft copyDeep() -
deepCopy
factory method to create a deep copy of PaymentMethodDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodDraft- Returns:
- builder
-
builder
create builder for PaymentMethodDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodDraft
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
-