Class: Stripe::Issuing::Transaction::CreateForceCaptureParams::PurchaseDetails::Flight::Segment
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Issuing::Transaction::CreateForceCaptureParams::PurchaseDetails::Flight::Segment
- Defined in:
- lib/stripe/resources/issuing/transaction.rb
Instance Attribute Summary collapse
-
#arrival_airport_code ⇒ Object
The three-letter IATA airport code of the flight’s destination.
-
#carrier ⇒ Object
The airline carrier code.
-
#departure_airport_code ⇒ Object
The three-letter IATA airport code that the flight departed from.
-
#flight_number ⇒ Object
The flight number.
-
#service_class ⇒ Object
The flight’s service class.
-
#stopover_allowed ⇒ Object
Whether a stopover is allowed on this flight.
Instance Method Summary collapse
-
#initialize(arrival_airport_code: nil, carrier: nil, departure_airport_code: nil, flight_number: nil, service_class: nil, stopover_allowed: nil) ⇒ Segment
constructor
A new instance of Segment.
Methods inherited from RequestParams
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.
562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 562 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_code ⇒ Object
The three-letter IATA airport code of the flight’s destination.
550 551 552 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 550 def arrival_airport_code @arrival_airport_code end |
#carrier ⇒ Object
The airline carrier code.
552 553 554 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 552 def carrier @carrier end |
#departure_airport_code ⇒ Object
The three-letter IATA airport code that the flight departed from.
554 555 556 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 554 def departure_airport_code @departure_airport_code end |
#flight_number ⇒ Object
The flight number.
556 557 558 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 556 def flight_number @flight_number end |
#service_class ⇒ Object
The flight’s service class.
558 559 560 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 558 def service_class @service_class end |
#stopover_allowed ⇒ Object
Whether a stopover is allowed on this flight.
560 561 562 |
# File 'lib/stripe/resources/issuing/transaction.rb', line 560 def stopover_allowed @stopover_allowed end |