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

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

Defined Under Namespace

Classes: Fleet, Flight, Fuel, Lodging, Receipt

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(fleet: nil, flight: nil, fuel: nil, lodging: nil, receipt: nil, reference: nil) ⇒ PurchaseDetails

Returns a new instance of PurchaseDetails.



284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 284

def initialize(
  fleet: nil,
  flight: nil,
  fuel: nil,
  lodging: nil,
  receipt: nil,
  reference: nil
)
  @fleet = fleet
  @flight = flight
  @fuel = fuel
  @lodging = lodging
  @receipt = receipt
  @reference = reference
end

Instance Attribute Details

#fleetObject

Fleet-specific information for transactions using Fleet cards.



272
273
274
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 272

def fleet
  @fleet
end

#flightObject

Information about the flight that was purchased with this transaction.



274
275
276
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 274

def flight
  @flight
end

#fuelObject

Information about fuel that was purchased with this transaction.



276
277
278
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 276

def fuel
  @fuel
end

#lodgingObject

Information about lodging that was purchased with this transaction.



278
279
280
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 278

def lodging
  @lodging
end

#receiptObject

The line items in the purchase.



280
281
282
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 280

def receipt
  @receipt
end

#referenceObject

A merchant-specific order number.



282
283
284
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 282

def reference
  @reference
end