Interface PaymentMethodInfo
- All Superinterfaces:
PaymentMethodInfoMixin
Represents a snapshot of the PaymentMethod data used for a Payment.
Example to create an instance using the builder pattern
PaymentMethodInfo paymentMethodInfo = PaymentMethodInfo.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentMethodInfoBuilderbuilder()builder factory method for PaymentMethodInfostatic PaymentMethodInfoBuilderbuilder(PaymentMethodInfo template) create builder for PaymentMethodInfo instancecopyDeep()static PaymentMethodInfodeepCopy(PaymentMethodInfo template) factory method to create a deep copy of PaymentMethodInfo@Valid CustomFieldsCustom Fields of the PaymentMethodInfo.Account or instance of the payment interface when multiple accounts are used (per interface).Payment method used—for example, a credit card or direct debit.@Valid LocalizedStringgetName()Name of the Payment Method.Payment service that processes the Payment—for example, a PSP.@Valid PaymentMethodTokengetToken()Tokenized representation of the Payment Method used by the payment interface.static PaymentMethodInfoof()factory methodstatic PaymentMethodInfoof(PaymentMethodInfo template) factory method to create a shallow copy PaymentMethodInfovoidsetCustom(CustomFields custom) Custom Fields of the PaymentMethodInfo.voidsetInterfaceAccount(String interfaceAccount) Account or instance of the payment interface when multiple accounts are used (per interface).voidPayment method used—for example, a credit card or direct debit.voidsetName(LocalizedString name) Name of the Payment Method.voidsetPaymentInterface(String paymentInterface) Payment service that processes the Payment—for example, a PSP.voidsetToken(PaymentMethodToken token) Tokenized representation of the Payment Method used by the payment interface.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodInfo>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPaymentMethodInfo(Function<PaymentMethodInfo, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentMethodInfoMixin
toDraft
-
Method Details
-
getPaymentInterface
String getPaymentInterface()Payment service that processes the Payment—for example, a PSP. The combination of
paymentInterfaceand theinterfaceIdof a Payment is unique.- Specified by:
getPaymentInterfacein interfacePaymentMethodInfoMixin- Returns:
- paymentInterface
-
getMethod
String getMethod()Payment method used—for example, a credit card or direct debit.
- Specified by:
getMethodin interfacePaymentMethodInfoMixin- Returns:
- method
-
getName
Name of the Payment Method.
- Specified by:
getNamein interfacePaymentMethodInfoMixin- Returns:
- name
-
getToken
Tokenized representation of the Payment Method used by the payment interface.
- Specified by:
getTokenin interfacePaymentMethodInfoMixin- Returns:
- token
-
getInterfaceAccount
String getInterfaceAccount()Account or instance of the payment interface when multiple accounts are used (per interface).
- Specified by:
getInterfaceAccountin interfacePaymentMethodInfoMixin- Returns:
- interfaceAccount
-
getCustom
Custom Fields of the PaymentMethodInfo.
- Specified by:
getCustomin interfacePaymentMethodInfoMixin- Returns:
- custom
-
setPaymentInterface
Payment service that processes the Payment—for example, a PSP. The combination of
paymentInterfaceand theinterfaceIdof a Payment is unique.- Parameters:
paymentInterface- value to be set
-
setMethod
Payment method used—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 of the PaymentMethodInfo.
- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodInfo
-
of
factory method to create a shallow copy PaymentMethodInfo- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodInfo copyDeep() -
deepCopy
factory method to create a deep copy of PaymentMethodInfo- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodInfo- Returns:
- builder
-
builder
create builder for PaymentMethodInfo instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodInfo
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
-