Class Transaction

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

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

    • Transaction

      public Transaction()
  • Method Details

    • list

      public static TransactionCollection list(Map<String,Object> params) throws StripeException
      Returns a list of Financial Connections Transaction objects.
      Throws:
      StripeException
    • list

      public static TransactionCollection list(Map<String,Object> params, RequestOptions options) throws StripeException
      Returns a list of Financial Connections Transaction objects.
      Throws:
      StripeException
    • list

      public static TransactionCollection list(TransactionListParams params) throws StripeException
      Returns a list of Financial Connections Transaction objects.
      Throws:
      StripeException
    • list

      public static TransactionCollection list(TransactionListParams params, RequestOptions options) throws StripeException
      Returns a list of Financial Connections Transaction objects.
      Throws:
      StripeException
    • retrieve

      public static Transaction retrieve(String transaction) throws StripeException
      Retrieves the details of a Financial Connections Transaction.
      Throws:
      StripeException
    • retrieve

      public static Transaction retrieve(String transaction, RequestOptions options) throws StripeException
      Retrieves the details of a Financial Connections Transaction.
      Throws:
      StripeException
    • retrieve

      public static Transaction retrieve(String transaction, Map<String,Object> params, RequestOptions options) throws StripeException
      Retrieves the details of a Financial Connections Transaction.
      Throws:
      StripeException
    • retrieve

      public static Transaction retrieve(String transaction, TransactionRetrieveParams params, RequestOptions options) throws StripeException
      Retrieves the details of a Financial Connections Transaction.
      Throws:
      StripeException
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • 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 cents (or local equivalent).
    • 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 token of the transaction refresh 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 cents (or local equivalent).
    • 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 token of the transaction refresh 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