Class PaymentMethodTokenBuilder
java.lang.Object
com.commercetools.api.models.payment_method.PaymentMethodTokenBuilder
- All Implemented Interfaces:
Builder<PaymentMethodToken>
PaymentMethodTokenBuilder
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()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds PaymentMethodToken with checking for non-null required valuesbuilds PaymentMethodToken without checking for non-null required valuesgetValue()Tokenized representation of the Payment Method.static PaymentMethodTokenBuilderof()factory method for an instance of PaymentMethodTokenBuilderstatic PaymentMethodTokenBuilderof(PaymentMethodToken template) create builder for PaymentMethodToken instanceTokenized representation of the Payment Method.
-
Constructor Details
-
PaymentMethodTokenBuilder
public PaymentMethodTokenBuilder()
-
-
Method Details
-
value
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- Returns:
- Builder
-
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
-
build
builds PaymentMethodToken with checking for non-null required values- Specified by:
buildin interfaceBuilder<PaymentMethodToken>- Returns:
- PaymentMethodToken
-
buildUnchecked
builds PaymentMethodToken without checking for non-null required values- Returns:
- PaymentMethodToken
-
of
factory method for an instance of PaymentMethodTokenBuilder- Returns:
- builder
-
of
create builder for PaymentMethodToken instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-