Class: Stripe::PaymentIntentCreateParams::PaymentDetails::LodgingDatum::Total
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentCreateParams::PaymentDetails::LodgingDatum::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 price of the lodging reservation in cents.
-
#cash_advances ⇒ Object
Cash advances in cents.
-
#currency ⇒ Object
Currency of the total amount.
-
#discounts ⇒ Object
Discount details for the lodging.
-
#extra_charges ⇒ Object
Additional charges for the lodging.
-
#prepaid_amount ⇒ Object
Prepaid amount in cents.
-
#tax ⇒ Object
Tax breakdown for the lodging reservation.
Instance Method Summary collapse
-
#initialize(amount: nil, cash_advances: nil, currency: nil, discounts: nil, extra_charges: nil, prepaid_amount: 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, cash_advances: nil, currency: nil, discounts: nil, extra_charges: nil, prepaid_amount: nil, tax: nil) ⇒ Total
Returns a new instance of Total.
1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1746 def initialize( amount: nil, cash_advances: nil, currency: nil, discounts: nil, extra_charges: nil, prepaid_amount: nil, tax: nil ) @amount = amount @cash_advances = cash_advances @currency = currency @discounts = discounts @extra_charges = extra_charges @prepaid_amount = prepaid_amount @tax = tax end |
Instance Attribute Details
#amount ⇒ Object
Total price of the lodging reservation in cents.
1732 1733 1734 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1732 def amount @amount end |
#cash_advances ⇒ Object
Cash advances in cents.
1734 1735 1736 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1734 def cash_advances @cash_advances end |
#currency ⇒ Object
Currency of the total amount.
1736 1737 1738 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1736 def currency @currency end |
#discounts ⇒ Object
Discount details for the lodging.
1738 1739 1740 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1738 def discounts @discounts end |
#extra_charges ⇒ Object
Additional charges for the lodging.
1740 1741 1742 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1740 def extra_charges @extra_charges end |
#prepaid_amount ⇒ Object
Prepaid amount in cents.
1742 1743 1744 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1742 def prepaid_amount @prepaid_amount end |
#tax ⇒ Object
Tax breakdown for the lodging reservation.
1744 1745 1746 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1744 def tax @tax end |