Class: Stripe::TokenCreateParams::Person::SelfReportedIncome

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(amount: nil, currency: nil) ⇒ SelfReportedIncome

Returns a new instance of SelfReportedIncome.



1155
1156
1157
1158
# File 'lib/stripe/params/token_create_params.rb', line 1155

def initialize(amount: nil, currency: nil)
  @amount = amount
  @currency = currency
end

Instance Attribute Details

#amountObject

The amount in the minor currency unit (for example, cents for USD).



1151
1152
1153
# File 'lib/stripe/params/token_create_params.rb', line 1151

def amount
  @amount
end

#currencyObject

Three-letter ISO currency code, in lowercase. Must be a supported currency.



1153
1154
1155
# File 'lib/stripe/params/token_create_params.rb', line 1153

def currency
  @currency
end