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

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



89
90
91
92
93
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 89

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.



83
84
85
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 83

def fuel
  @fuel
end

#non_fuelObject

Breakdown of non-fuel portion of the purchase.



85
86
87
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 85

def non_fuel
  @non_fuel
end

#taxObject

Information about tax included in this transaction.



87
88
89
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 87

def tax
  @tax
end

Class Method Details

.field_encodingsObject



95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 95

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