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.



903
904
905
906
907
908
909
910
911
912
913
914
915
# File 'lib/stripe/resources/issuing/authorization.rb', line 903

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.



889
890
891
# File 'lib/stripe/resources/issuing/authorization.rb', line 889

def departure_at
  @departure_at
end

#passenger_nameObject

The name of the passenger.



892
893
894
# File 'lib/stripe/resources/issuing/authorization.rb', line 892

def passenger_name
  @passenger_name
end

#refundableObject

Whether the ticket is refundable.



895
896
897
# File 'lib/stripe/resources/issuing/authorization.rb', line 895

def refundable
  @refundable
end

#segmentsObject

The legs of the trip.



898
899
900
# File 'lib/stripe/resources/issuing/authorization.rb', line 898

def segments
  @segments
end

#travel_agencyObject

The travel agency that issued the ticket.



901
902
903
# File 'lib/stripe/resources/issuing/authorization.rb', line 901

def travel_agency
  @travel_agency
end