Class: Stripe::TokenService::CreateParams::Person::UsCfpbData::EthnicityDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/token_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of EthnicityDetails.



982
983
984
985
# File 'lib/stripe/services/token_service.rb', line 982

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

Instance Attribute Details

#ethnicityObject

The persons ethnicity



978
979
980
# File 'lib/stripe/services/token_service.rb', line 978

def ethnicity
  @ethnicity
end

#ethnicity_otherObject

Please specify your origin, when other is selected.



980
981
982
# File 'lib/stripe/services/token_service.rb', line 980

def ethnicity_other
  @ethnicity_other
end