Class: Stripe::ChargeUpdateParams::PaymentDetails::FlightDatum::Total
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ChargeUpdateParams::PaymentDetails::FlightDatum::Total
- Defined in:
- lib/stripe/params/charge_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.
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 |
# File 'lib/stripe/params/charge_update_params.rb', line 1036 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.
1024 1025 1026 |
# File 'lib/stripe/params/charge_update_params.rb', line 1024 def amount @amount end |
#credit_reason ⇒ Object
Reason for credit.
1026 1027 1028 |
# File 'lib/stripe/params/charge_update_params.rb', line 1026 def credit_reason @credit_reason end |
#currency ⇒ Object
Total currency.
1028 1029 1030 |
# File 'lib/stripe/params/charge_update_params.rb', line 1028 def currency @currency end |
#discounts ⇒ Object
Discount details.
1030 1031 1032 |
# File 'lib/stripe/params/charge_update_params.rb', line 1030 def discounts @discounts end |
#extra_charges ⇒ Object
Additional charges.
1032 1033 1034 |
# File 'lib/stripe/params/charge_update_params.rb', line 1032 def extra_charges @extra_charges end |
#tax ⇒ Object
Tax breakdown.
1034 1035 1036 |
# File 'lib/stripe/params/charge_update_params.rb', line 1034 def tax @tax end |