Class: Stripe::TestHelpers::Issuing::TransactionService::CreateForceCaptureParams::PurchaseDetails::Fleet::ReportedBreakdown

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



146
147
148
149
150
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 146

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.



138
139
140
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 138

def fuel
  @fuel
end

#non_fuelObject

Breakdown of non-fuel portion of the purchase.



141
142
143
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 141

def non_fuel
  @non_fuel
end

#taxObject

Information about tax included in this transaction.



144
145
146
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 144

def tax
  @tax
end