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
-
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()
Reference to a State.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) Reference to a State.Reference to a State.withState
(Function<StateReferenceBuilder, StateReference> builder) Reference to a State.
-
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
Reference to a State.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
Reference to a State.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
state
Reference to a 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
Reference to a State.
- 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
-