Class: Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown

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

Defined Under Namespace

Classes: Fuel, NonFuel, Tax

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(fuel: nil, non_fuel: nil, tax: nil) ⇒ ReportedBreakdown

Returns a new instance of ReportedBreakdown.



94
95
96
97
98
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 94

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.



86
87
88
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 86

def fuel
  @fuel
end

#non_fuelObject

Breakdown of non-fuel portion of the purchase.



89
90
91
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 89

def non_fuel
  @non_fuel
end

#taxObject

Information about tax included in this transaction.



92
93
94
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 92

def tax
  @tax
end