Class: Stripe::TestHelpers::Issuing::TransactionService::CreateUnlinkedRefundParams::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.



594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 594

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.



582
583
584
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 582

def fleet
  @fleet
end

#flightObject

Information about the flight that was purchased with this transaction.



584
585
586
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 584

def flight
  @flight
end

#fuelObject

Information about fuel that was purchased with this transaction.



586
587
588
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 586

def fuel
  @fuel
end

#lodgingObject

Information about lodging that was purchased with this transaction.



588
589
590
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 588

def lodging
  @lodging
end

#receiptObject

The line items in the purchase.



590
591
592
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 590

def receipt
  @receipt
end

#referenceObject

A merchant-specific order number.



592
593
594
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 592

def reference
  @reference
end