Interface PaymentMethodToken
public interface PaymentMethodToken
PaymentMethodToken
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentMethodToken paymentMethodToken = PaymentMethodToken.builder()
.value("{value}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentMethodTokenBuilder
builder()
builder factory method for PaymentMethodTokenstatic PaymentMethodTokenBuilder
builder
(PaymentMethodToken template) create builder for PaymentMethodToken instancecopyDeep()
static PaymentMethodToken
deepCopy
(PaymentMethodToken template) factory method to create a deep copy of PaymentMethodToken@NotNull String
getValue()
Tokenized representation of the Payment Method.static PaymentMethodToken
of()
factory methodstatic PaymentMethodToken
of
(PaymentMethodToken template) factory method to create a shallow copy PaymentMethodTokenvoid
Tokenized representation of the Payment Method.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodToken>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodToken
(Function<PaymentMethodToken, T> helper) accessor map function
-
Method Details
-
getValue
Tokenized representation of the Payment Method.
It is displayed in the following instances:
- in the payload of an API Extension for Payments and PaymentMethods
- when querying Payments and PaymentMethods
It is masked in the following instances:
- in the payload of Payment and PaymentMethod messages
- when querying MyPayments
- in referenced Payments and PaymentMethods embedded through Reference Expansion
- Returns:
- value
-
setValue
Tokenized representation of the Payment Method.
It is displayed in the following instances:
- in the payload of an API Extension for Payments and PaymentMethods
- when querying Payments and PaymentMethods
It is masked in the following instances:
- in the payload of Payment and PaymentMethod messages
- when querying MyPayments
- in referenced Payments and PaymentMethods embedded through Reference Expansion
- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodToken
-
of
factory method to create a shallow copy PaymentMethodToken- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodToken copyDeep() -
deepCopy
factory method to create a deep copy of PaymentMethodToken- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodToken- Returns:
- builder
-
builder
create builder for PaymentMethodToken instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodToken
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
-