Class: Stripe::Issuing::TransactionCreateUnlinkedRefundParams::PurchaseDetails::Fleet::ReportedBreakdown
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Issuing::TransactionCreateUnlinkedRefundParams::PurchaseDetails::Fleet::ReportedBreakdown
- Defined in:
- lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#fuel ⇒ Object
Breakdown of fuel portion of the purchase.
-
#non_fuel ⇒ Object
Breakdown of non-fuel portion of the purchase.
-
#tax ⇒ Object
Information about tax included in this transaction.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(fuel: nil, non_fuel: nil, tax: nil) ⇒ ReportedBreakdown
constructor
A new instance of ReportedBreakdown.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(fuel: nil, non_fuel: nil, tax: nil) ⇒ ReportedBreakdown
Returns a new instance of ReportedBreakdown.
139 140 141 142 143 |
# File 'lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb', line 139 def initialize(fuel: nil, non_fuel: nil, tax: nil) @fuel = fuel @non_fuel = non_fuel @tax = tax end |
Instance Attribute Details
#fuel ⇒ Object
Breakdown of fuel portion of the purchase.
133 134 135 |
# File 'lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb', line 133 def fuel @fuel end |
#non_fuel ⇒ Object
Breakdown of non-fuel portion of the purchase.
135 136 137 |
# File 'lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb', line 135 def non_fuel @non_fuel end |
#tax ⇒ Object
Information about tax included in this transaction.
137 138 139 |
# File 'lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb', line 137 def tax @tax end |
Class Method Details
.field_encodings ⇒ Object
145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb', line 145 def self.field_encodings @field_encodings = { fuel: { kind: :object, fields: { gross_amount_decimal: :decimal_string } }, non_fuel: { kind: :object, fields: { gross_amount_decimal: :decimal_string } }, tax: { kind: :object, fields: { local_amount_decimal: :decimal_string, national_amount_decimal: :decimal_string, }, }, } end |