Class PaymentStatusDraftBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentStatusDraftBuilder
- All Implemented Interfaces:
Builder<PaymentStatusDraft>
PaymentStatusDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentStatusDraft paymentStatusDraft = PaymentStatusDraft.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentStatusDraft with checking for non-null required valuesbuilds PaymentStatusDraft 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()
ResourceIdentifier 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 PaymentStatusDraftBuilder
of()
factory method for an instance of PaymentStatusDraftBuilderstatic PaymentStatusDraftBuilder
of
(PaymentStatusDraft template) create builder for PaymentStatusDraft instancestate
(StateResourceIdentifier state) ResourceIdentifier to a State.ResourceIdentifier to a State.ResourceIdentifier to a State.
-
Constructor Details
-
PaymentStatusDraftBuilder
public PaymentStatusDraftBuilder()
-
-
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
public PaymentStatusDraftBuilder state(Function<StateResourceIdentifierBuilder, StateResourceIdentifierBuilder> builder) ResourceIdentifier to a State.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
withState
public PaymentStatusDraftBuilder withState(Function<StateResourceIdentifierBuilder, StateResourceIdentifier> builder) ResourceIdentifier to a State.
- Parameters:
builder
- function to build the state value- Returns:
- Builder
-
state
ResourceIdentifier 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
ResourceIdentifier to a State.
- Returns:
- state
-
build
builds PaymentStatusDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentStatusDraft>
- Returns:
- PaymentStatusDraft
-
buildUnchecked
builds PaymentStatusDraft without checking for non-null required values- Returns:
- PaymentStatusDraft
-
of
factory method for an instance of PaymentStatusDraftBuilder- Returns:
- builder
-
of
create builder for PaymentStatusDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-