Class: Stripe::ChargeCaptureParams::PaymentDetails::LodgingDatum::Total::Tax::Tax
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ChargeCaptureParams::PaymentDetails::LodgingDatum::Total::Tax::Tax
- Defined in:
- lib/stripe/params/charge_capture_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Tax amount in cents.
-
#rate ⇒ Object
Tax rate.
-
#type ⇒ Object
Type of tax applied.
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.
1437 1438 1439 1440 1441 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1437 def initialize(amount: nil, rate: nil, type: nil) @amount = amount @rate = rate @type = type end |
Instance Attribute Details
#amount ⇒ Object
Tax amount in cents.
1431 1432 1433 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1431 def amount @amount end |
#rate ⇒ Object
Tax rate.
1433 1434 1435 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1433 def rate @rate end |
#type ⇒ Object
Type of tax applied.
1435 1436 1437 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1435 def type @type end |