Class: Stripe::TestHelpers::Issuing::TransactionCreateUnlinkedRefundParams::PurchaseDetails::Fleet::ReportedBreakdown

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb

Defined Under Namespace

Classes: Fuel, NonFuel, Tax

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.



140
141
142
143
144
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 140

def initialize(fuel: nil, non_fuel: nil, tax: nil)
  @fuel = fuel
  @non_fuel = non_fuel
  @tax = tax
end

Instance Attribute Details

#fuelObject

Breakdown of fuel portion of the purchase.



134
135
136
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 134

def fuel
  @fuel
end

#non_fuelObject

Breakdown of non-fuel portion of the purchase.



136
137
138
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 136

def non_fuel
  @non_fuel
end

#taxObject

Information about tax included in this transaction.



138
139
140
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 138

def tax
  @tax
end

Class Method Details

.field_encodingsObject



146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 146

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