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 PaymentMethodDraftBuilder
builder()
builder factory method for PaymentMethodDraftstatic PaymentMethodDraftBuilder
builder
(PaymentMethodDraft template) create builder for PaymentMethodDraft instancecopyDeep()
static PaymentMethodDraft
deepCopy
(PaymentMethodDraft template) factory method to create a deep copy of PaymentMethodDraftReference to a BusinessUnit the PaymentMethod should belong to.@Valid CustomFieldsDraft
Custom Fields for the PaymentMethod.@Valid CustomerResourceIdentifier
Reference to a Customer the PaymentMethod should belong to.Set totrue
if 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 LocalizedString
getName()
Name of the PaymentMethod.Payment service that processes the Payment—for example, a PSP.Status of the PaymentMethod.@Valid PaymentMethodToken
getToken()
Tokenized representation of the PaymentMethod used by the payment interface.static PaymentMethodDraft
of()
factory methodstatic PaymentMethodDraft
of
(PaymentMethodDraft template) factory method to create a shallow copy PaymentMethodDraftvoid
setBusinessUnit
(BusinessUnitResourceIdentifier businessUnit) Reference to a BusinessUnit the PaymentMethod should belong to.void
setCustom
(CustomFieldsDraft custom) Custom Fields for the PaymentMethod.void
setCustomer
(CustomerResourceIdentifier customer) Reference to a Customer the PaymentMethod should belong to.void
setDefault
(Boolean _default) Set totrue
if the PaymentMethod should be the default.void
setInterfaceAccount
(String interfaceAccount) Account or instance of the payment interface when multiple accounts are used (per interface).void
User-defined unique identifier for the PaymentMethod.void
Payment method to use for the Payment—for example, a credit card or direct debit.void
setName
(LocalizedString name) Name of the PaymentMethod.void
setPaymentInterface
(String paymentInterface) Payment service that processes the Payment—for example, a PSP.void
setPaymentMethodStatus
(PaymentMethodStatus paymentMethodStatus) Status of the PaymentMethod.void
setToken
(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> T
withPaymentMethodDraft
(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
businessUnit
is 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
true
if 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
businessUnit
is 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
true
if 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
-