Class SourceTransaction

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

public class SourceTransaction extends StripeObject implements HasId
Some payment methods have no required amount that a customer must send. Customers can be instructed to send any amount, and it can be made up of multiple transactions. As such, sources can have multiple associated transactions.
  • Constructor Details

    • SourceTransaction

      public SourceTransaction()
  • Method Details

    • getAchCreditTransfer

      public SourceTransaction.AchCreditTransfer getAchCreditTransfer()
    • getAmount

      public Long getAmount()
      A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount your customer has pushed to the receiver.
    • getChfCreditTransfer

      public SourceTransaction.ChfCreditTransfer getChfCreditTransfer()
    • getCreated

      public Long getCreated()
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • getCurrency

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

      public SourceTransaction.GbpCreditTransfer getGbpCreditTransfer()
    • 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 source_transaction.

    • getPaperCheck

      public SourceTransaction.PaperCheck getPaperCheck()
    • getSepaCreditTransfer

      public SourceTransaction.SepaCreditTransfer getSepaCreditTransfer()
    • getSource

      public String getSource()
      The ID of the source this transaction is attached to.
    • getStatus

      public String getStatus()
      The status of the transaction, one of succeeded, pending, or failed.
    • getType

      public String getType()
      The type of source this transaction is attached to.

      One of ach_credit_transfer, ach_debit, alipay, bancontact, card, card_present, eps, giropay, ideal, klarna, multibanco, p24, sepa_debit, sofort, three_d_secure, or wechat.

    • setAchCreditTransfer

      public void setAchCreditTransfer(SourceTransaction.AchCreditTransfer achCreditTransfer)
    • setAmount

      public void setAmount(Long amount)
      A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount your customer has pushed to the receiver.
    • setChfCreditTransfer

      public void setChfCreditTransfer(SourceTransaction.ChfCreditTransfer chfCreditTransfer)
    • setCreated

      public void setCreated(Long created)
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • setCurrency

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

      public void setGbpCreditTransfer(SourceTransaction.GbpCreditTransfer gbpCreditTransfer)
    • 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 source_transaction.

    • setPaperCheck

      public void setPaperCheck(SourceTransaction.PaperCheck paperCheck)
    • setSepaCreditTransfer

      public void setSepaCreditTransfer(SourceTransaction.SepaCreditTransfer sepaCreditTransfer)
    • setSource

      public void setSource(String source)
      The ID of the source this transaction is attached to.
    • setStatus

      public void setStatus(String status)
      The status of the transaction, one of succeeded, pending, or failed.
    • setType

      public void setType(String type)
      The type of source this transaction is attached to.

      One of ach_credit_transfer, ach_debit, alipay, bancontact, card, card_present, eps, giropay, ideal, klarna, multibanco, p24, sepa_debit, sofort, three_d_secure, or wechat.

    • 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