Class MyPaymentImpl

java.lang.Object
com.commercetools.api.models.me.MyPaymentImpl
All Implemented Interfaces:
Customizable<MyPayment>, DomainResource<MyPayment>, Identifiable<MyPayment>, MyPayment, Versioned<MyPayment>, io.vrap.rmf.base.client.ModelBase

public class MyPaymentImpl extends Object implements MyPayment, io.vrap.rmf.base.client.ModelBase
MyPayment
  • Constructor Details

    • MyPaymentImpl

      public MyPaymentImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Payment.

      Specified by:
      getId in interface DomainResource<MyPayment>
      Specified by:
      getId in interface Identifiable<MyPayment>
      Specified by:
      getId in interface MyPayment
      Specified by:
      getId in interface Versioned<MyPayment>
      Returns:
      id
    • getVersion

      public Long getVersion()

      Current version of the Payment.

      Specified by:
      getVersion in interface DomainResource<MyPayment>
      Specified by:
      getVersion in interface MyPayment
      Specified by:
      getVersion in interface Versioned<MyPayment>
      Returns:
      version
    • getCustomer

      public CustomerReference getCustomer()

      Reference to a Customer associated with the Payment. Set automatically with a password flow token. Either customer or anonymousId is present.

      Specified by:
      getCustomer in interface MyPayment
      Returns:
      customer
    • getAnonymousId

      public String getAnonymousId()

      Anonymous session associated with the Payment. Set automatically with a token for an anonymous session. Either customer or anonymousId is present.

      Specified by:
      getAnonymousId in interface MyPayment
      Returns:
      anonymousId
    • getAmountPlanned

      public CentPrecisionMoney getAmountPlanned()

      Money value the Payment intends to receive from the customer. The value typically matches the Cart or Order gross total.

      Specified by:
      getAmountPlanned in interface MyPayment
      Returns:
      amountPlanned
    • getPaymentMethodInfo

      public PaymentMethodInfo getPaymentMethodInfo()

      Information regarding the payment interface (for example, a PSP), and the specific payment method used.

      Specified by:
      getPaymentMethodInfo in interface MyPayment
      Returns:
      paymentMethodInfo
    • getTransactions

      public List<Transaction> getTransactions()

      Financial transactions of the Payment. Each Transaction has a TransactionType and a TransactionState.

      Specified by:
      getTransactions in interface MyPayment
      Returns:
      transactions
    • getCustom

      public CustomFields getCustom()

      Custom Fields defined for the Payment.

      Specified by:
      getCustom in interface Customizable<MyPayment>
      Specified by:
      getCustom in interface MyPayment
      Returns:
      custom
    • setId

      public void setId(String id)
      Description copied from interface: MyPayment

      Unique identifier of the Payment.

      Specified by:
      setId in interface MyPayment
      Parameters:
      id - value to be set
    • setVersion

      public void setVersion(Long version)
      Description copied from interface: MyPayment

      Current version of the Payment.

      Specified by:
      setVersion in interface MyPayment
      Parameters:
      version - value to be set
    • setCustomer

      public void setCustomer(CustomerReference customer)
      Description copied from interface: MyPayment

      Reference to a Customer associated with the Payment. Set automatically with a password flow token. Either customer or anonymousId is present.

      Specified by:
      setCustomer in interface MyPayment
      Parameters:
      customer - value to be set
    • setAnonymousId

      public void setAnonymousId(String anonymousId)
      Description copied from interface: MyPayment

      Anonymous session associated with the Payment. Set automatically with a token for an anonymous session. Either customer or anonymousId is present.

      Specified by:
      setAnonymousId in interface MyPayment
      Parameters:
      anonymousId - value to be set
    • setAmountPlanned

      public void setAmountPlanned(CentPrecisionMoney amountPlanned)
      Description copied from interface: MyPayment

      Money value the Payment intends to receive from the customer. The value typically matches the Cart or Order gross total.

      Specified by:
      setAmountPlanned in interface MyPayment
      Parameters:
      amountPlanned - value to be set
    • setPaymentMethodInfo

      public void setPaymentMethodInfo(PaymentMethodInfo paymentMethodInfo)
      Description copied from interface: MyPayment

      Information regarding the payment interface (for example, a PSP), and the specific payment method used.

      Specified by:
      setPaymentMethodInfo in interface MyPayment
      Parameters:
      paymentMethodInfo - value to be set
    • setTransactions

      public void setTransactions(Transaction... transactions)
      Description copied from interface: MyPayment

      Financial transactions of the Payment. Each Transaction has a TransactionType and a TransactionState.

      Specified by:
      setTransactions in interface MyPayment
      Parameters:
      transactions - values to be set
    • setTransactions

      public void setTransactions(List<Transaction> transactions)
      Description copied from interface: MyPayment

      Financial transactions of the Payment. Each Transaction has a TransactionType and a TransactionState.

      Specified by:
      setTransactions in interface MyPayment
      Parameters:
      transactions - values to be set
    • setCustom

      public void setCustom(CustomFields custom)
      Description copied from interface: MyPayment

      Custom Fields defined for the Payment.

      Specified by:
      setCustom in interface Customizable<MyPayment>
      Specified by:
      setCustom in interface MyPayment
      Parameters:
      custom - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object