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

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/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.



131
132
133
134
135
# File 'lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb', line 131

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.



125
126
127
# File 'lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb', line 125

def fuel
  @fuel
end

#non_fuelObject

Breakdown of non-fuel portion of the purchase.



127
128
129
# File 'lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb', line 127

def non_fuel
  @non_fuel
end

#taxObject

Information about tax included in this transaction.



129
130
131
# File 'lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb', line 129

def tax
  @tax
end

Class Method Details

.field_encodingsObject



137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb', line 137

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