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

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



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

#fuelObject

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_fuelObject

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

#taxObject

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_encodingsObject



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