Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::CarRentalDatum::Total
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentCaptureParams::PaymentDetails::CarRentalDatum::Total
- Defined in:
- lib/stripe/params/payment_intent_capture_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
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.
676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 676 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.
662 663 664 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 662 def amount @amount end |
#currency ⇒ Object
Currency of the amount.
664 665 666 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 664 def currency @currency end |
#discounts ⇒ Object
Discount details for the rental.
666 667 668 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 666 def discounts @discounts end |
#extra_charges ⇒ Object
Additional charges for the rental.
668 669 670 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 668 def extra_charges @extra_charges end |
#rate_per_unit ⇒ Object
Rate per unit for the rental.
670 671 672 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 670 def rate_per_unit @rate_per_unit end |
#rate_unit ⇒ Object
Unit of measurement for the rate.
672 673 674 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 672 def rate_unit @rate_unit end |
#tax ⇒ Object
Tax breakdown for the rental.
674 675 676 |
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 674 def tax @tax end |