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.



1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1056

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.



1048
1049
1050
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1048

def attestations
  @attestations
end

#business_detailsObject

Information about the company or business.



1050
1051
1052
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1050

def business_details
  @business_details
end

#entity_typeObject

The entity type.



1052
1053
1054
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1052

def entity_type
  @entity_type
end

#individualObject

Information about the person represented by the account.



1054
1055
1056
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1054

def individual
  @individual
end

Class Method Details

.field_encodingsObject



1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
# File 'lib/stripe/params/v2/core/account_token_create_params.rb', line 1068

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