Interface PaymentMethodInfo
public interface PaymentMethodInfo
PaymentMethodInfo
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodInfo paymentMethodInfo = PaymentMethodInfo.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentMethodInfoBuilder
builder()
builder factory method for PaymentMethodInfostatic PaymentMethodInfoBuilder
builder
(PaymentMethodInfo template) create builder for PaymentMethodInfo instancestatic PaymentMethodInfo
deepCopy
(PaymentMethodInfo template) factory method to create a deep copy of PaymentMethodInfoPayment method used, for example, credit card, or cash advance.@Valid LocalizedString
getName()
Localizable name of the payment method.Payment service that processes the Payment (for example, a PSP).static PaymentMethodInfo
of()
factory methodstatic PaymentMethodInfo
of
(PaymentMethodInfo template) factory method to create a shallow copy PaymentMethodInfovoid
Payment method used, for example, credit card, or cash advance.void
setName
(LocalizedString name) Localizable name of the payment method.void
setPaymentInterface
(String paymentInterface) Payment service that processes the Payment (for example, a PSP).static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodInfo>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodInfo
(Function<PaymentMethodInfo, T> helper) accessor map function
-
Method Details
-
getPaymentInterface
String getPaymentInterface()Payment service that processes the Payment (for example, a PSP). Once set, it cannot be changed. The combination of
paymentInterface
and theinterfaceId
of a Payment must be unique.- Returns:
- paymentInterface
-
getMethod
String getMethod()Payment method used, for example, credit card, or cash advance.
- Returns:
- method
-
getName
Localizable name of the payment method.
- Returns:
- name
-
setPaymentInterface
Payment service that processes the Payment (for example, a PSP). Once set, it cannot be changed. The combination of
paymentInterface
and theinterfaceId
of a Payment must be unique.- Parameters:
paymentInterface
- value to be set
-
setMethod
Payment method used, for example, credit card, or cash advance.
- Parameters:
method
- value to be set
-
setName
Localizable name of the payment method.
- Parameters:
name
- 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
-
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
-