class

Stripe::ConnectJsAccountTokenSpecs

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

Constants

ERROR_MESSAGE_FOR_BUSINESS_TYPE = "invalid value for \"business_type\", must be one of [company, government_entity, individual, non_profit]."
VALID_VALUES_FOR_BUSINESS_TYPE = String.static_array("company", "government_entity", "individual", "non_profit")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, business_type : String | Nil = nil, company : Stripe::ConnectJsAccountTokenCompanySpecs | Nil = nil, individual : Stripe::IndividualSpecs | Nil = nil, tos_shown_and_accepted : Bool | 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

business_type

The business type.

Source
business_type=(new_value : String | Nil)

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

Source
company
Source
company=(new_value : Stripe::ConnectJsAccountTokenCompanySpecs | Nil)

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

individual
Source
individual=(new_value : Stripe::IndividualSpecs | Nil)

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

Whether the user described by the data in the token has been shown the Stripe Connected Account Agreement. When creating an account token to create a new Connect account, this value must be true.

Source
tos_shown_and_accepted=(new_value : Bool | Nil)

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