Class PaymentImpl

java.lang.Object
com.commercetools.api.models.payment.PaymentImpl
All Implemented Interfaces:
BaseResource, Customizable<Payment>, DomainResource<Payment>, Identifiable<Payment>, Payment, PaymentMixin, Referencable<Payment>, ResourceIdentifiable<Payment>, Versioned<Payment>, WithKey, io.vrap.rmf.base.client.ModelBase

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

    • PaymentImpl

      public PaymentImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Payment.

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

      public Long getVersion()

      Current version of the Payment.

      Specified by:
      getVersion in interface BaseResource
      Specified by:
      getVersion in interface DomainResource<Payment>
      Specified by:
      getVersion in interface Payment
      Specified by:
      getVersion in interface Versioned<Payment>
      Returns:
      version
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the Payment was initially created.

      Specified by:
      getCreatedAt in interface BaseResource
      Specified by:
      getCreatedAt in interface Payment
      Returns:
      createdAt
    • getLastModifiedAt

      public ZonedDateTime getLastModifiedAt()

      Date and time (UTC) the Payment was last updated.

      Specified by:
      getLastModifiedAt in interface BaseResource
      Specified by:
      getLastModifiedAt in interface Payment
      Returns:
      lastModifiedAt
    • getLastModifiedBy

      public LastModifiedBy getLastModifiedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getLastModifiedBy in interface Payment
      Returns:
      lastModifiedBy
    • getCreatedBy

      public CreatedBy getCreatedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getCreatedBy in interface Payment
      Returns:
      createdBy
    • getCustomer

      public CustomerReference getCustomer()

      Reference to a Customer associated with the Payment.

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

      public String getAnonymousId()

      Anonymous session associated with the Payment.

      Specified by:
      getAnonymousId in interface Payment
      Returns:
      anonymousId
    • getInterfaceId

      public String getInterfaceId()

      Identifier used by the payment service that processes the Payment (for example, a PSP). The combination of interfaceId and the paymentInterface field on PaymentMethodInfo must be unique.

      Specified by:
      getInterfaceId in interface Payment
      Returns:
      interfaceId
    • 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 Payment
      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 Payment
      Returns:
      paymentMethodInfo
    • getPaymentStatus

      public PaymentStatus getPaymentStatus()

      Current status of the Payment.

      Specified by:
      getPaymentStatus in interface Payment
      Returns:
      paymentStatus
    • getTransactions

      public List<Transaction> getTransactions()

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

      Specified by:
      getTransactions in interface Payment
      Returns:
      transactions
    • getInterfaceInteractions

      public List<CustomFields> getInterfaceInteractions()

      Represents information exchange with the payment service, for example, a PSP. An interaction may be a request sent, or a response or notification received from the payment service.

      Specified by:
      getInterfaceInteractions in interface Payment
      Returns:
      interfaceInteractions
    • getCustom

      public CustomFields getCustom()

      Custom Fields for the Payment.

      Specified by:
      getCustom in interface Customizable<Payment>
      Specified by:
      getCustom in interface Payment
      Returns:
      custom
    • getKey

      public String getKey()

      User-defined unique identifier of the Payment.

      Specified by:
      getKey in interface Payment
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • setId

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

      Unique identifier of the Payment.

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

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

      Current version of the Payment.

      Specified by:
      setVersion in interface BaseResource
      Specified by:
      setVersion in interface Payment
      Parameters:
      version - value to be set
    • setCreatedAt

      public void setCreatedAt(ZonedDateTime createdAt)
      Description copied from interface: Payment

      Date and time (UTC) the Payment was initially created.

      Specified by:
      setCreatedAt in interface BaseResource
      Specified by:
      setCreatedAt in interface Payment
      Parameters:
      createdAt - value to be set
    • setLastModifiedAt

      public void setLastModifiedAt(ZonedDateTime lastModifiedAt)
      Description copied from interface: Payment

      Date and time (UTC) the Payment was last updated.

      Specified by:
      setLastModifiedAt in interface BaseResource
      Specified by:
      setLastModifiedAt in interface Payment
      Parameters:
      lastModifiedAt - value to be set
    • setLastModifiedBy

      public void setLastModifiedBy(LastModifiedBy lastModifiedBy)
      Description copied from interface: Payment

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setLastModifiedBy in interface Payment
      Parameters:
      lastModifiedBy - value to be set
    • setCreatedBy

      public void setCreatedBy(CreatedBy createdBy)
      Description copied from interface: Payment

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setCreatedBy in interface Payment
      Parameters:
      createdBy - value to be set
    • setCustomer

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

      Reference to a Customer associated with the Payment.

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

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

      Anonymous session associated with the Payment.

      Specified by:
      setAnonymousId in interface Payment
      Parameters:
      anonymousId - value to be set
    • setInterfaceId

      public void setInterfaceId(String interfaceId)
      Description copied from interface: Payment

      Identifier used by the payment service that processes the Payment (for example, a PSP). The combination of interfaceId and the paymentInterface field on PaymentMethodInfo must be unique.

      Specified by:
      setInterfaceId in interface Payment
      Parameters:
      interfaceId - value to be set
    • setAmountPlanned

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

      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 Payment
      Parameters:
      amountPlanned - value to be set
    • setPaymentMethodInfo

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

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

      Specified by:
      setPaymentMethodInfo in interface Payment
      Parameters:
      paymentMethodInfo - value to be set
    • setPaymentStatus

      public void setPaymentStatus(PaymentStatus paymentStatus)
      Description copied from interface: Payment

      Current status of the Payment.

      Specified by:
      setPaymentStatus in interface Payment
      Parameters:
      paymentStatus - value to be set
    • setTransactions

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

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

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

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

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

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

      public void setInterfaceInteractions(CustomFields... interfaceInteractions)
      Description copied from interface: Payment

      Represents information exchange with the payment service, for example, a PSP. An interaction may be a request sent, or a response or notification received from the payment service.

      Specified by:
      setInterfaceInteractions in interface Payment
      Parameters:
      interfaceInteractions - values to be set
    • setInterfaceInteractions

      public void setInterfaceInteractions(List<CustomFields> interfaceInteractions)
      Description copied from interface: Payment

      Represents information exchange with the payment service, for example, a PSP. An interaction may be a request sent, or a response or notification received from the payment service.

      Specified by:
      setInterfaceInteractions in interface Payment
      Parameters:
      interfaceInteractions - values to be set
    • setCustom

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

      Custom Fields for the Payment.

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

      public void setKey(String key)
      Description copied from interface: Payment

      User-defined unique identifier of the Payment.

      Specified by:
      setKey in interface Payment
      Parameters:
      key - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object