Class: Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams::PurchaseDetails::Fleet::ReportedBreakdown
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams::PurchaseDetails::Fleet::ReportedBreakdown
- Defined in:
- lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_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.
132 133 134 135 136 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 132 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.
126 127 128 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 126 def fuel @fuel end |
#non_fuel ⇒ Object
Breakdown of non-fuel portion of the purchase.
128 129 130 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 128 def non_fuel @non_fuel end |
#tax ⇒ Object
Information about tax included in this transaction.
130 131 132 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 130 def tax @tax end |
Class Method Details
.field_encodings ⇒ Object
138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 138 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 |