Class: Stripe::ChargeUpdateParams::PaymentDetails::CarRentalDatum::Total
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ChargeUpdateParams::PaymentDetails::CarRentalDatum::Total
- Defined in:
- lib/stripe/params/charge_update_params.rb
Defined Under Namespace
Classes: Discounts, ExtraCharge, Tax
Instance Attribute Summary collapse
-
#amount ⇒ Object
Total amount in cents.
-
#currency ⇒ Object
Currency of the amount.
-
#discounts ⇒ Object
Discount details for the rental.
-
#extra_charges ⇒ Object
Additional charges for the rental.
-
#rate_per_unit ⇒ Object
Rate per unit for the rental.
-
#rate_unit ⇒ Object
Unit of measurement for the rate.
-
#tax ⇒ Object
Tax breakdown for the rental.
Instance Method Summary collapse
-
#initialize(amount: nil, currency: nil, discounts: nil, extra_charges: nil, rate_per_unit: nil, rate_unit: nil, tax: nil) ⇒ Total
constructor
A new instance of Total.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(amount: nil, currency: nil, discounts: nil, extra_charges: nil, rate_per_unit: nil, rate_unit: nil, tax: nil) ⇒ Total
Returns a new instance of Total.
489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 |
# File 'lib/stripe/params/charge_update_params.rb', line 489 def initialize( amount: nil, currency: nil, discounts: nil, extra_charges: nil, rate_per_unit: nil, rate_unit: nil, tax: nil ) @amount = amount @currency = currency @discounts = discounts @extra_charges = extra_charges @rate_per_unit = rate_per_unit @rate_unit = rate_unit @tax = tax end |
Instance Attribute Details
#amount ⇒ Object
Total amount in cents.
475 476 477 |
# File 'lib/stripe/params/charge_update_params.rb', line 475 def amount @amount end |
#currency ⇒ Object
Currency of the amount.
477 478 479 |
# File 'lib/stripe/params/charge_update_params.rb', line 477 def currency @currency end |
#discounts ⇒ Object
Discount details for the rental.
479 480 481 |
# File 'lib/stripe/params/charge_update_params.rb', line 479 def discounts @discounts end |
#extra_charges ⇒ Object
Additional charges for the rental.
481 482 483 |
# File 'lib/stripe/params/charge_update_params.rb', line 481 def extra_charges @extra_charges end |
#rate_per_unit ⇒ Object
Rate per unit for the rental.
483 484 485 |
# File 'lib/stripe/params/charge_update_params.rb', line 483 def rate_per_unit @rate_per_unit end |
#rate_unit ⇒ Object
Unit of measurement for the rate.
485 486 487 |
# File 'lib/stripe/params/charge_update_params.rb', line 485 def rate_unit @rate_unit end |
#tax ⇒ Object
Tax breakdown for the rental.
487 488 489 |
# File 'lib/stripe/params/charge_update_params.rb', line 487 def tax @tax end |