Class: Stripe::V2::Core::AccountTokenCreateParams::Identity

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/core/account_token_create_params.rb

Defined Under Namespace

Classes: Attestations, BusinessDetails, Individual

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, new, #to_h

Constructor Details

#initialize(attestations: nil, business_details: nil, entity_type: nil, individual: nil) ⇒ Identity

Returns a new instance of Identity.



1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1309

def initialize(
  attestations: nil,
  business_details: nil,
  entity_type: nil,
  individual: nil
)
  @attestations = attestations
  @business_details = business_details
  @entity_type = entity_type
  @individual = individual
end

Instance Attribute Details

#attestationsObject

Attestations from the identity's key people, e.g. owners, executives, directors, representatives.



1301
1302
1303
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1301

def attestations
  @attestations
end

#business_detailsObject

Information about the company or business.



1303
1304
1305
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1303

def business_details
  @business_details
end

#entity_typeObject

The entity type.



1305
1306
1307
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1305

def entity_type
  @entity_type
end

#individualObject

Information about the person represented by the account.



1307
1308
1309
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1307

def individual
  @individual
end

Class Method Details

.field_encodingsObject



1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1321

def self.field_encodings
  @field_encodings = {
    individual: {
      kind: :object,
      fields: {
        relationship: { kind: :object, fields: { percent_ownership: :decimal_string } },
      },
    },
  }
end