Class: Stripe::ChargeCaptureParams::PaymentDetails::LodgingDatum::Total
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ChargeCaptureParams::PaymentDetails::LodgingDatum::Total
- Defined in:
- lib/stripe/params/charge_capture_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.
1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1468 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.
1454 1455 1456 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1454 def amount @amount end |
#cash_advances ⇒ Object
Cash advances in cents.
1456 1457 1458 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1456 def cash_advances @cash_advances end |
#currency ⇒ Object
Currency of the total amount.
1458 1459 1460 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1458 def currency @currency end |
#discounts ⇒ Object
Discount details for the lodging.
1460 1461 1462 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1460 def discounts @discounts end |
#extra_charges ⇒ Object
Additional charges for the lodging.
1462 1463 1464 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1462 def extra_charges @extra_charges end |
#prepaid_amount ⇒ Object
Prepaid amount in cents.
1464 1465 1466 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1464 def prepaid_amount @prepaid_amount end |
#tax ⇒ Object
Tax breakdown for the lodging reservation.
1466 1467 1468 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1466 def tax @tax end |