class

Stripe::PaymentMethodData

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

Constants

ERROR_MESSAGE_FOR__TYPE = "invalid value for \"_type\", must be one of [financial_account, us_bank_account]."
VALID_VALUES_FOR__TYPE = String.static_array("financial_account", "us_bank_account")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, _type : String | Nil = nil, billing_details : Stripe::BillingDetailsInnerParams | Nil = nil, financial_account : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, us_bank_account : Stripe::PaymentMethodParam | 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 the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.

Source
_type=(new_value : String | Nil)

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

Source
billing_details
Source
billing_details=(new_value : Stripe::BillingDetailsInnerParams | Nil)

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

Source
financial_account

Required if type is set to financial_account. The FinancialAccount ID to send funds to.

Source
financial_account=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] financial_account 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

list_invalid_properties

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

Source
metadata
Source
metadata=(new_value : Hash(String, String) | Nil)

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

Source
us_bank_account
Source
us_bank_account=(new_value : Stripe::PaymentMethodParam | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] us_bank_account 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