class

Stripe::SourceTransaction

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

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.

Constants

ERROR_MESSAGE_FOR__TYPE = "invalid value for \"_type\", must be one of [ach_credit_transfer, ach_debit, alipay, bancontact, card, card_present, eps, giropay, ideal, klarna, multibanco, p24, sepa_debit, sofort, three_d_secure, wechat]."
ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [source_transaction]."
MAX_LENGTH_FOR_ID = 5000
MAX_LENGTH_FOR_SOURCE = 5000
MAX_LENGTH_FOR_STATUS = 5000
VALID_VALUES_FOR__TYPE = String.static_array("ach_credit_transfer", "ach_debit", "alipay", "bancontact", "card", "card_present", "eps", "giropay", "ideal", "klarna", "multibanco", "p24", "sepa_debit", "sofort", "three_d_secure", "wechat")
VALID_VALUES_FOR_OBJECT = String.static_array("source_transaction")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, amount : Int64 | Nil = nil, created : Int64 | Nil = nil, currency : String | Nil = nil, id : String | Nil = nil, livemode : Bool | Nil = nil, object : String | Nil = nil, source : String | Nil = nil, status : String | Nil = nil, _type : String | Nil = nil, ach_credit_transfer : Stripe::SourceTransactionAchCreditTransferData | Nil = nil, chf_credit_transfer : Stripe::SourceTransactionChfCreditTransferData | Nil = nil, gbp_credit_transfer : Stripe::SourceTransactionGbpCreditTransferData | Nil = nil, paper_check : Stripe::SourceTransactionPaperCheckData | Nil = nil, sepa_credit_transfer : Stripe::SourceTransactionSepaCreditTransferData | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

_type

The type of source this transaction is attached to.

Source
_type=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] _type Object to be assigned

Source
ach_credit_transfer
Source
ach_credit_transfer=(new_value : Stripe::SourceTransactionAchCreditTransferData | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] ach_credit_transfer Object to be assigned

Source
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.

Source
amount=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] amount Object to be assigned

Source
chf_credit_transfer
Source
chf_credit_transfer=(new_value : Stripe::SourceTransactionChfCreditTransferData | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] chf_credit_transfer Object to be assigned

Source
created

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

Source
created=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] created Object to be assigned

Source
currency

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

Source
currency=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned

Source
gbp_credit_transfer
Source
gbp_credit_transfer=(new_value : Stripe::SourceTransactionGbpCreditTransferData | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] gbp_credit_transfer Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

id

Unique identifier for the object.

Source
id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
livemode

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

Source
livemode=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] livemode Object to be assigned

Source
object

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

Source
object=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned

Source
paper_check
Source
paper_check=(new_value : Stripe::SourceTransactionPaperCheckData | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] paper_check Object to be assigned

Source
sepa_credit_transfer
Source
sepa_credit_transfer=(new_value : Stripe::SourceTransactionSepaCreditTransferData | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] sepa_credit_transfer Object to be assigned

Source
source

The ID of the source this transaction is attached to.

Source
source=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] source Object to be assigned

Source
status

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

Source
status=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source