Class: Stripe::PaymentIntentCreateParams::PaymentDetails::CarRentalDatum::Total
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentCreateParams::PaymentDetails::CarRentalDatum::Total
- Defined in:
- lib/stripe/params/payment_intent_create_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.
805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 805 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.
791 792 793 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 791 def amount @amount end |
#currency ⇒ Object
Currency of the amount.
793 794 795 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 793 def currency @currency end |
#discounts ⇒ Object
Discount details for the rental.
795 796 797 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 795 def discounts @discounts end |
#extra_charges ⇒ Object
Additional charges for the rental.
797 798 799 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 797 def extra_charges @extra_charges end |
#rate_per_unit ⇒ Object
Rate per unit for the rental.
799 800 801 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 799 def rate_per_unit @rate_per_unit end |
#rate_unit ⇒ Object
Unit of measurement for the rate.
801 802 803 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 801 def rate_unit @rate_unit end |
#tax ⇒ Object
Tax breakdown for the rental.
803 804 805 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 803 def tax @tax end |