Class: Stripe::TestHelpers::Issuing::AuthorizationCreateParams::Fleet::ReportedBreakdown
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::AuthorizationCreateParams::Fleet::ReportedBreakdown
- Defined in:
- lib/stripe/params/test_helpers/issuing/authorization_create_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.
100 101 102 103 104 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 100 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.
94 95 96 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 94 def fuel @fuel end |
#non_fuel ⇒ Object
Breakdown of non-fuel portion of the purchase.
96 97 98 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 96 def non_fuel @non_fuel end |
#tax ⇒ Object
Information about tax included in this transaction.
98 99 100 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 98 def tax @tax end |
Class Method Details
.field_encodings ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_create_params.rb', line 106 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 |