Class: Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::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.



376
377
378
379
380
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 376

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.



370
371
372
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 370

def fuel
  @fuel
end

#non_fuelObject

Breakdown of non-fuel portion of the purchase.



372
373
374
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 372

def non_fuel
  @non_fuel
end

#taxObject

Information about tax included in this transaction.



374
375
376
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 374

def tax
  @tax
end