View Source ExOAPI.Stripe.Schemas.SourceTransaction (exoapi_stripe v0.1.4)

description: 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.

:ach_credit_transfer :: ExOAPI.Stripe.Schemas.SourceTransactionAchCreditTransferData

:amount :: :integer

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.

:chf_credit_transfer :: ExOAPI.Stripe.Schemas.SourceTransactionChfCreditTransferData

:created :: :integer

Time at which the object was created. Measured in seconds since the Unix epoch.

:currency :: :string

Three-letter ISO currency code, in lowercase. Must be a supported currency.

:gbp_credit_transfer :: ExOAPI.Stripe.Schemas.SourceTransactionGbpCreditTransferData

:id :: :string

Unique identifier for the object.

:livemode :: :boolean

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

:object :: :string

String representing the object's type. Objects of the same type share the same value.

:paper_check :: ExOAPI.Stripe.Schemas.SourceTransactionPaperCheckData

:sepa_credit_transfer :: ExOAPI.Stripe.Schemas.SourceTransactionSepaCreditTransferData

:source :: ExOAPI.Stripe.Schemas.Source

The ID of the source this transaction is attached to.

:status :: :string

The status of the transaction, one of succeeded, pending, or failed.

:type :: :string

The type of source this transaction is attached to.

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.SourceTransaction{
  ach_credit_transfer:
    ExOAPI.Stripe.Schemas.SourceTransactionAchCreditTransferData.t() | nil,
  amount: integer() | nil,
  chf_credit_transfer:
    ExOAPI.Stripe.Schemas.SourceTransactionChfCreditTransferData.t() | nil,
  created: integer() | nil,
  currency: String.t() | nil,
  gbp_credit_transfer:
    ExOAPI.Stripe.Schemas.SourceTransactionGbpCreditTransferData.t() | nil,
  id: String.t() | nil,
  livemode: boolean() | nil,
  object: :source_transaction | nil,
  paper_check: ExOAPI.Stripe.Schemas.SourceTransactionPaperCheckData.t() | nil,
  sepa_credit_transfer:
    ExOAPI.Stripe.Schemas.SourceTransactionSepaCreditTransferData.t() | nil,
  source: String.t() | nil,
  status: String.t() | nil,
  type:
    (:wechat
     | :three_d_secure
     | :sofort
     | :sepa_debit
     | :p24
     | :multibanco
     | :klarna
     | :ideal
     | :giropay
     | :eps
     | :card_present
     | :card
     | :bancontact
     | :alipay
     | :ach_debit
     | :ach_credit_transfer)
    | nil
}

Link to this section Functions

Link to this function

changeset(struct \\ %__MODULE__{}, params)

View Source
@spec changeset(t(), params()) :: Ecto.Changeset.t()