Class: Stripe::PaymentIntentCreateParams::PaymentDetails::FlightDatum::Total::Tax::Tax
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentCreateParams::PaymentDetails::FlightDatum::Total::Tax::Tax
- Defined in:
- lib/stripe/params/payment_intent_create_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Tax amount.
-
#rate ⇒ Object
Tax rate.
-
#type ⇒ Object
Type of tax.
Instance Method Summary collapse
-
#initialize(amount: nil, rate: nil, type: nil) ⇒ Tax
constructor
A new instance of Tax.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(amount: nil, rate: nil, type: nil) ⇒ Tax
Returns a new instance of Tax.
1305 1306 1307 1308 1309 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1305 def initialize(amount: nil, rate: nil, type: nil) @amount = amount @rate = rate @type = type end |
Instance Attribute Details
#amount ⇒ Object
Tax amount.
1299 1300 1301 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1299 def amount @amount end |
#rate ⇒ Object
Tax rate.
1301 1302 1303 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1301 def rate @rate end |
#type ⇒ Object
Type of tax.
1303 1304 1305 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1303 def type @type end |