Class: Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Flight

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



760
761
762
763
764
765
766
767
768
769
770
771
772
# File 'lib/stripe/resources/issuing/authorization.rb', line 760

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.



750
751
752
# File 'lib/stripe/resources/issuing/authorization.rb', line 750

def departure_at
  @departure_at
end

#passenger_nameObject

The name of the passenger.



752
753
754
# File 'lib/stripe/resources/issuing/authorization.rb', line 752

def passenger_name
  @passenger_name
end

#refundableObject

Whether the ticket is refundable.



754
755
756
# File 'lib/stripe/resources/issuing/authorization.rb', line 754

def refundable
  @refundable
end

#segmentsObject

The legs of the trip.



756
757
758
# File 'lib/stripe/resources/issuing/authorization.rb', line 756

def segments
  @segments
end

#travel_agencyObject

The travel agency that issued the ticket.



758
759
760
# File 'lib/stripe/resources/issuing/authorization.rb', line 758

def travel_agency
  @travel_agency
end