Class PaymentStatusBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentStatusBuilder
- All Implemented Interfaces:
Builder<PaymentStatus>
PaymentStatusBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentStatus paymentStatus = PaymentStatus.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentStatus with checking for non-null required valuesbuilds PaymentStatus without checking for non-null required valuesExternal reference that identifies the current status of the Payment.Text describing the current status of the Payment.getState()
interfaceCode
(String interfaceCode) External reference that identifies the current status of the Payment.interfaceText
(String interfaceText) Text describing the current status of the Payment.static PaymentStatusBuilder
of()
factory method for an instance of PaymentStatusBuilderstatic PaymentStatusBuilder
of
(PaymentStatus template) create builder for PaymentStatus instancestate
(StateReference state) withState
(Function<StateReferenceBuilder, StateReference> builder)
-
Constructor Details
-
PaymentStatusBuilder
public PaymentStatusBuilder()
-
-
Method Details
-
interfaceCode
External reference that identifies the current status of the Payment.
- Parameters:
interfaceCode
- value to be set- Returns:
- Builder
-
interfaceText
Text describing the current status of the Payment.
- Parameters:
interfaceText
- value to be set- Returns:
- Builder
-
state
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
state
- Parameters:
state
- value to be set- Returns:
- Builder
-
getInterfaceCode
External reference that identifies the current status of the Payment.
- Returns:
- interfaceCode
-
getInterfaceText
Text describing the current status of the Payment.
- Returns:
- interfaceText
-
getState
- Returns:
- state
-
build
builds PaymentStatus with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentStatus>
- Returns:
- PaymentStatus
-
buildUnchecked
builds PaymentStatus without checking for non-null required values- Returns:
- PaymentStatus
-
of
factory method for an instance of PaymentStatusBuilder- Returns:
- builder
-
of
create builder for PaymentStatus instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-