Class: Stripe::ChargeCaptureParams::PaymentDetails::FlightDatum::Total
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ChargeCaptureParams::PaymentDetails::FlightDatum::Total
- Defined in:
- lib/stripe/params/charge_capture_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.
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1120 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.
1108 1109 1110 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1108 def amount @amount end |
#credit_reason ⇒ Object
Reason for credit.
1110 1111 1112 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1110 def credit_reason @credit_reason end |
#currency ⇒ Object
Total currency.
1112 1113 1114 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1112 def currency @currency end |
#discounts ⇒ Object
Discount details.
1114 1115 1116 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1114 def discounts @discounts end |
#extra_charges ⇒ Object
Additional charges.
1116 1117 1118 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1116 def extra_charges @extra_charges end |
#tax ⇒ Object
Tax breakdown.
1118 1119 1120 |
# File 'lib/stripe/params/charge_capture_params.rb', line 1118 def tax @tax end |