Class PaymentStatusBuilder

java.lang.Object
com.commercetools.api.models.payment.PaymentStatusBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<PaymentStatus>

public class PaymentStatusBuilder extends Object implements io.vrap.rmf.base.client.Builder<PaymentStatus>
PaymentStatusBuilder
Example to create an instance using the builder pattern

     PaymentStatus paymentStatus = PaymentStatus.builder()
             .build()
 
  • Constructor Details

    • PaymentStatusBuilder

      public PaymentStatusBuilder()
  • Method Details

    • interfaceCode

      public PaymentStatusBuilder interfaceCode(@Nullable String interfaceCode)

      External reference that identifies the current status of the Payment.

      Parameters:
      interfaceCode - value to be set
      Returns:
      Builder
    • interfaceText

      public PaymentStatusBuilder interfaceText(@Nullable String 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

      @Nullable public String getInterfaceCode()

      External reference that identifies the current status of the Payment.

      Returns:
      interfaceCode
    • getInterfaceText

      @Nullable public String getInterfaceText()

      Text describing the current status of the Payment.

      Returns:
      interfaceText
    • getState

      @Nullable public StateReference getState()

      Reference to a State.

      Returns:
      state
    • build

      public PaymentStatus build()
      builds PaymentStatus with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<PaymentStatus>
      Returns:
      PaymentStatus
    • buildUnchecked

      public PaymentStatus buildUnchecked()
      builds PaymentStatus without checking for non-null required values
      Returns:
      PaymentStatus
    • of

      public static PaymentStatusBuilder of()
      factory method for an instance of PaymentStatusBuilder
      Returns:
      builder
    • of

      public static PaymentStatusBuilder of(PaymentStatus template)
      create builder for PaymentStatus instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder