Stripe::Source
Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object
Source objects allow you to accept a variety of payment methods. They represent a customer's payment instrument, and can be used with the Stripe API just like a Card object: once chargeable, they can be charged, or can be attached to customers. Stripe doesn't recommend using the deprecated Sources API. We recommend that you adopt the PaymentMethods API. This newer API provides access to our latest features and payment method types. Related guides: Sources API and Sources & Customers.
Constants
Constructors
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance methods
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
The type of the source. The type is a payment method, one of ach_credit_transfer, ach_debit, alipay, bancontact, card, card_present, eps, giropay, ideal, multibanco, klarna, p24, sepa_debit, sofort, three_d_secure, or wechat. An additional hash is included on the source with a name matching this value. It contains additional information specific to the payment method used.
Custom attribute writer method checking allowed values (enum). @param [Object] _type Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] ach_credit_transfer Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] ach_debit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] acss_debit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] alipay Object to be assigned
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 total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for single_use sources.
Custom attribute writer method checking allowed values (enum). @param [Object] amount Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] au_becs_debit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] bancontact Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] card Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] card_present Object to be assigned
The client secret of the source. Used for client-side retrieval using a publishable key.
Custom attribute writer method checking allowed values (enum). @param [Object] client_secret Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] code_verification Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] created Object to be assigned
Three-letter ISO code for the currency associated with the source. This is the currency for which the source will be chargeable once ready. Required for single_use sources.
Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned
The ID of the customer to which this source is attached. This will not be present when the source has not been attached to a customer.
Custom attribute writer method checking allowed values (enum). @param [Object] customer Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] eps Object to be assigned
The authentication flow of the source. flow is one of redirect, receiver, code_verification, none.
Custom attribute writer method checking allowed values (enum). @param [Object] flow Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] giropay Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] ideal Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] klarna Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
Custom attribute writer method checking allowed values (enum). @param [Object] livemode Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] multibanco Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] owner Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] p24 Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] receiver Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] redirect Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] sepa_credit_transfer Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] sepa_debit Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] sofort Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] source_order Object to be assigned
Extra information about a source. This will appear on your customer's statement every time you charge the source.
Custom attribute writer method checking allowed values (enum). @param [Object] statement_descriptor Object to be assigned
The status of the source, one of canceled, chargeable, consumed, failed, or pending. Only chargeable sources can be used to create a charge.
Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] three_d_secure Object to be assigned
Either reusable or single_use. Whether this source should be reusable or not. Some source types may or may not be reusable by construction, while others may leave the option at creation. If an incompatible value is passed, an error will be returned.
Custom attribute writer method checking allowed values (enum). @param [Object] usage Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid
Custom attribute writer method checking allowed values (enum). @param [Object] wechat Object to be assigned