Class: Stripe::TokenCreateParams::Person::UsCfpbData::EthnicityDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/token_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(ethnicity: nil, ethnicity_other: nil) ⇒ EthnicityDetails

Returns a new instance of EthnicityDetails.



1108
1109
1110
1111
# File 'lib/stripe/params/token_create_params.rb', line 1108

def initialize(ethnicity: nil, ethnicity_other: nil)
  @ethnicity = ethnicity
  @ethnicity_other = ethnicity_other
end

Instance Attribute Details

#ethnicityObject

The persons ethnicity



1104
1105
1106
# File 'lib/stripe/params/token_create_params.rb', line 1104

def ethnicity
  @ethnicity
end

#ethnicity_otherObject

Please specify your origin, when other is selected.



1106
1107
1108
# File 'lib/stripe/params/token_create_params.rb', line 1106

def ethnicity_other
  @ethnicity_other
end