Class: Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/card_payment.rb

Defined Under Namespace

Modules: StopOverCode

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(carrier_code: , destination_city_airport_code: , fare_basis_code: , flight_number: , service_class: , stop_over_code: ) ⇒ Object

Parameters:

  • carrier_code (String, nil) (defaults to: )

    Carrier code (e.g., United Airlines, Jet Blue, etc.).

  • destination_city_airport_code (String, nil) (defaults to: )

    Code for the destination city or airport.

  • fare_basis_code (String, nil) (defaults to: )

    Fare basis code.

  • flight_number (String, nil) (defaults to: )

    Flight number.

  • service_class (String, nil) (defaults to: )

    Service class (e.g., first class, business class, etc.).

  • stop_over_code (Symbol, Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg::StopOverCode, nil) (defaults to: )

    Indicates whether a stopover is allowed on this ticket.



# File 'lib/increase/models/card_payment.rb', line 6451

Instance Attribute Details

#carrier_codeString?

Carrier code (e.g., United Airlines, Jet Blue, etc.).

Returns:

  • (String, nil)


6415
# File 'lib/increase/models/card_payment.rb', line 6415

required :carrier_code, String, nil?: true

#destination_city_airport_codeString?

Code for the destination city or airport.

Returns:

  • (String, nil)


6421
# File 'lib/increase/models/card_payment.rb', line 6421

required :destination_city_airport_code, String, nil?: true

#fare_basis_codeString?

Fare basis code.

Returns:

  • (String, nil)


6427
# File 'lib/increase/models/card_payment.rb', line 6427

required :fare_basis_code, String, nil?: true

#flight_numberString?

Flight number.

Returns:

  • (String, nil)


6433
# File 'lib/increase/models/card_payment.rb', line 6433

required :flight_number, String, nil?: true

#service_classString?

Service class (e.g., first class, business class, etc.).

Returns:

  • (String, nil)


6439
# File 'lib/increase/models/card_payment.rb', line 6439

required :service_class, String, nil?: true

#stop_over_codeSymbol, ...

Indicates whether a stopover is allowed on this ticket.



6445
6446
6447
6448
6449
# File 'lib/increase/models/card_payment.rb', line 6445

required :stop_over_code,
enum: -> {
  Increase::CardPayment::Element::CardRefund::PurchaseDetails::Travel::TripLeg::StopOverCode
},
nil?: true