Class: Stripe::Issuing::AuthorizationCaptureParams::PurchaseDetails::Fleet::ReportedBreakdown
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Issuing::AuthorizationCaptureParams::PurchaseDetails::Fleet::ReportedBreakdown
- Defined in:
- lib/stripe/params/issuing/authorization_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.
88 89 90 91 92 |
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 88 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.
82 83 84 |
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 82 def fuel @fuel end |
#non_fuel ⇒ Object
Breakdown of non-fuel portion of the purchase.
84 85 86 |
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 84 def non_fuel @non_fuel end |
#tax ⇒ Object
Information about tax included in this transaction.
86 87 88 |
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 86 def tax @tax end |
Class Method Details
.field_encodings ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/stripe/params/issuing/authorization_capture_params.rb', line 94 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 |