Class: Stripe::PaymentIntentUpdateParams::PaymentDetails::FlightDatum::Total
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentUpdateParams::PaymentDetails::FlightDatum::Total
- Defined in:
- lib/stripe/params/payment_intent_update_params.rb
Defined Under Namespace
Classes: Discounts, ExtraCharge, Tax
Instance Attribute Summary collapse
-
#amount ⇒ Object
Total flight amount.
-
#credit_reason ⇒ Object
Reason for credit.
-
#currency ⇒ Object
Total currency.
-
#discounts ⇒ Object
Discount details.
-
#extra_charges ⇒ Object
Additional charges.
-
#tax ⇒ Object
Tax breakdown.
Instance Method Summary collapse
-
#initialize(amount: nil, credit_reason: nil, currency: nil, discounts: nil, extra_charges: 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, credit_reason: nil, currency: nil, discounts: nil, extra_charges: nil, tax: nil) ⇒ Total
Returns a new instance of Total.
1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 |
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1423 def initialize( amount: nil, credit_reason: nil, currency: nil, discounts: nil, extra_charges: nil, tax: nil ) @amount = amount @credit_reason = credit_reason @currency = currency @discounts = discounts @extra_charges = extra_charges @tax = tax end |
Instance Attribute Details
#amount ⇒ Object
Total flight amount.
1411 1412 1413 |
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1411 def amount @amount end |
#credit_reason ⇒ Object
Reason for credit.
1413 1414 1415 |
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1413 def credit_reason @credit_reason end |
#currency ⇒ Object
Total currency.
1415 1416 1417 |
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1415 def currency @currency end |
#discounts ⇒ Object
Discount details.
1417 1418 1419 |
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1417 def discounts @discounts end |
#extra_charges ⇒ Object
Additional charges.
1419 1420 1421 |
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1419 def extra_charges @extra_charges end |
#tax ⇒ Object
Tax breakdown.
1421 1422 1423 |
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1421 def tax @tax end |