Class: Stripe::PaymentIntentCreateParams::PaymentDetails::FlightDatum::Total
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentCreateParams::PaymentDetails::FlightDatum::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 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.
1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1305 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.
1293 1294 1295 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1293 def amount @amount end |
#credit_reason ⇒ Object
Reason for credit.
1295 1296 1297 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1295 def credit_reason @credit_reason end |
#currency ⇒ Object
Total currency.
1297 1298 1299 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1297 def currency @currency end |
#discounts ⇒ Object
Discount details.
1299 1300 1301 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1299 def discounts @discounts end |
#extra_charges ⇒ Object
Additional charges.
1301 1302 1303 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1301 def extra_charges @extra_charges end |
#tax ⇒ Object
Tax breakdown.
1303 1304 1305 |
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1303 def tax @tax end |