Class: Stripe::Issuing::Transaction::CreateForceCaptureParams::PurchaseDetails::Flight

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/issuing/transaction.rb

Defined Under Namespace

Classes: Segment

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(departure_at: nil, passenger_name: nil, refundable: nil, segments: nil, travel_agency: nil) ⇒ Flight

Returns a new instance of Flight.



547
548
549
550
551
552
553
554
555
556
557
558
559
# File 'lib/stripe/resources/issuing/transaction.rb', line 547

def initialize(
  departure_at: nil,
  passenger_name: nil,
  refundable: nil,
  segments: nil,
  travel_agency: nil
)
  @departure_at = departure_at
  @passenger_name = passenger_name
  @refundable = refundable
  @segments = segments
  @travel_agency = travel_agency
end

Instance Attribute Details

#departure_atObject

The time that the flight departed.



533
534
535
# File 'lib/stripe/resources/issuing/transaction.rb', line 533

def departure_at
  @departure_at
end

#passenger_nameObject

The name of the passenger.



536
537
538
# File 'lib/stripe/resources/issuing/transaction.rb', line 536

def passenger_name
  @passenger_name
end

#refundableObject

Whether the ticket is refundable.



539
540
541
# File 'lib/stripe/resources/issuing/transaction.rb', line 539

def refundable
  @refundable
end

#segmentsObject

The legs of the trip.



542
543
544
# File 'lib/stripe/resources/issuing/transaction.rb', line 542

def segments
  @segments
end

#travel_agencyObject

The travel agency that issued the ticket.



545
546
547
# File 'lib/stripe/resources/issuing/transaction.rb', line 545

def travel_agency
  @travel_agency
end