Class Transaction

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.financialconnections.Transaction
All Implemented Interfaces:
HasId, StripeObjectInterface

public class Transaction extends StripeObject implements HasId
A Transaction represents a real transaction that affects a Financial Connections Account balance.
  • Constructor Details

    • Transaction

      public Transaction()
  • Method Details

    • getAccount

      public String getAccount()
      The ID of the Financial Connections Account this transaction belongs to.
    • getAmount

      public Long getAmount()
      The amount of this transaction, in %s.
    • getCurrency

      public String getCurrency()
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • getDescription

      public String getDescription()
      The description of this transaction.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value.

      Equal to financial_connections.transaction.

    • getStatus

      public String getStatus()
      The status of the transaction.

      One of pending, posted, or void.

    • getStatusTransitions

      public Transaction.StatusTransitions getStatusTransitions()
    • getTransactedAt

      public Long getTransactedAt()
      Time at which the transaction was transacted. Measured in seconds since the Unix epoch.
    • getTransactionRefresh

      public String getTransactionRefresh()
      The transaction_refresh object that last updated or created this transaction.
    • getUpdated

      public Long getUpdated()
      Time at which the object was last updated. Measured in seconds since the Unix epoch.
    • setAccount

      public void setAccount(String account)
      The ID of the Financial Connections Account this transaction belongs to.
    • setAmount

      public void setAmount(Long amount)
      The amount of this transaction, in %s.
    • setCurrency

      public void setCurrency(String currency)
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • setDescription

      public void setDescription(String description)
      The description of this transaction.
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value.

      Equal to financial_connections.transaction.

    • setStatus

      public void setStatus(String status)
      The status of the transaction.

      One of pending, posted, or void.

    • setStatusTransitions

      public void setStatusTransitions(Transaction.StatusTransitions statusTransitions)
    • setTransactedAt

      public void setTransactedAt(Long transactedAt)
      Time at which the transaction was transacted. Measured in seconds since the Unix epoch.
    • setTransactionRefresh

      public void setTransactionRefresh(String transactionRefresh)
      The transaction_refresh object that last updated or created this transaction.
    • setUpdated

      public void setUpdated(Long updated)
      Time at which the object was last updated. Measured in seconds since the Unix epoch.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId