Class PaymentMethodInfoImpl

java.lang.Object
com.commercetools.api.models.payment.PaymentMethodInfoImpl
All Implemented Interfaces:
PaymentMethodInfo, io.vrap.rmf.base.client.ModelBase

public class PaymentMethodInfoImpl extends Object implements PaymentMethodInfo, io.vrap.rmf.base.client.ModelBase
PaymentMethodInfo
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Payment method used, for example, credit card, or cash advance.
    Localizable name of the payment method.
    Payment service that processes the Payment (for example, a PSP).
    int
     
    void
    setMethod(String method)
    Payment method used, for example, credit card, or cash advance.
    void
    Localizable name of the payment method.
    void
    setPaymentInterface(String paymentInterface)
    Payment service that processes the Payment (for example, a PSP).

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString

    Methods inherited from interface com.commercetools.api.models.payment.PaymentMethodInfo

    withPaymentMethodInfo
  • Constructor Details

    • PaymentMethodInfoImpl

      public PaymentMethodInfoImpl()
      create empty instance
  • Method Details

    • getPaymentInterface

      public String getPaymentInterface()

      Payment service that processes the Payment (for example, a PSP). Once set, it cannot be changed. The combination of paymentInterface and the interfaceId of a Payment must be unique.

      Specified by:
      getPaymentInterface in interface PaymentMethodInfo
      Returns:
      paymentInterface
    • getMethod

      public String getMethod()

      Payment method used, for example, credit card, or cash advance.

      Specified by:
      getMethod in interface PaymentMethodInfo
      Returns:
      method
    • getName

      public LocalizedString getName()

      Localizable name of the payment method.

      Specified by:
      getName in interface PaymentMethodInfo
      Returns:
      name
    • setPaymentInterface

      public void setPaymentInterface(String paymentInterface)
      Description copied from interface: PaymentMethodInfo

      Payment service that processes the Payment (for example, a PSP). Once set, it cannot be changed. The combination of paymentInterface and the interfaceId of a Payment must be unique.

      Specified by:
      setPaymentInterface in interface PaymentMethodInfo
      Parameters:
      paymentInterface - value to be set
    • setMethod

      public void setMethod(String method)
      Description copied from interface: PaymentMethodInfo

      Payment method used, for example, credit card, or cash advance.

      Specified by:
      setMethod in interface PaymentMethodInfo
      Parameters:
      method - value to be set
    • setName

      public void setName(LocalizedString name)
      Description copied from interface: PaymentMethodInfo

      Localizable name of the payment method.

      Specified by:
      setName in interface PaymentMethodInfo
      Parameters:
      name - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object