Class: Stripe::TestHelpers::Issuing::TransactionService::CreateUnlinkedRefundParams::PurchaseDetails::Flight::Segment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(arrival_airport_code: nil, carrier: nil, departure_airport_code: nil, flight_number: nil, service_class: nil, stopover_allowed: nil) ⇒ Segment

Returns a new instance of Segment.



552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 552

def initialize(
  arrival_airport_code: nil,
  carrier: nil,
  departure_airport_code: nil,
  flight_number: nil,
  service_class: nil,
  stopover_allowed: nil
)
  @arrival_airport_code = arrival_airport_code
  @carrier = carrier
  @departure_airport_code = departure_airport_code
  @flight_number = flight_number
  @service_class = service_class
  @stopover_allowed = stopover_allowed
end

Instance Attribute Details

#arrival_airport_codeObject

The three-letter IATA airport code of the flight’s destination.



535
536
537
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 535

def arrival_airport_code
  @arrival_airport_code
end

#carrierObject

The airline carrier code.



538
539
540
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 538

def carrier
  @carrier
end

#departure_airport_codeObject

The three-letter IATA airport code that the flight departed from.



541
542
543
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 541

def departure_airport_code
  @departure_airport_code
end

#flight_numberObject

The flight number.



544
545
546
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 544

def flight_number
  @flight_number
end

#service_classObject

The flight’s service class.



547
548
549
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 547

def service_class
  @service_class
end

#stopover_allowedObject

Whether a stopover is allowed on this flight.



550
551
552
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 550

def stopover_allowed
  @stopover_allowed
end