Class: Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight::Segment

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



477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 477

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.



460
461
462
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 460

def arrival_airport_code
  @arrival_airport_code
end

#carrierObject

The airline carrier code.



463
464
465
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 463

def carrier
  @carrier
end

#departure_airport_codeObject

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



466
467
468
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 466

def departure_airport_code
  @departure_airport_code
end

#flight_numberObject

The flight number.



469
470
471
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 469

def flight_number
  @flight_number
end

#service_classObject

The flight’s service class.



472
473
474
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 472

def service_class
  @service_class
end

#stopover_allowedObject

Whether a stopover is allowed on this flight.



475
476
477
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 475

def stopover_allowed
  @stopover_allowed
end