Class: Increase::Models::CardPayment::Element::CardSettlement::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::CardSettlement::PurchaseDetails::Travel::TripLeg::StopOverCode, nil) (defaults to: )

    Indicates whether a stopover is allowed on this ticket.



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


Instance Attribute Details

#carrier_codeString?

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

Returns:

  • (String, nil)


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

required :carrier_code, String, nil?: true

#destination_city_airport_codeString?

Code for the destination city or airport.

Returns:

  • (String, nil)


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

required :destination_city_airport_code, String, nil?: true

#fare_basis_codeString?

Fare basis code.

Returns:

  • (String, nil)


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

required :fare_basis_code, String, nil?: true

#flight_numberString?

Flight number.

Returns:

  • (String, nil)


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

required :flight_number, String, nil?: true

#service_classString?

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

Returns:

  • (String, nil)


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

required :service_class, String, nil?: true

#stop_over_codeSymbol, ...

Indicates whether a stopover is allowed on this ticket.



8119
8120
8121
8122
8123
# File 'lib/increase/models/card_payment.rb', line 8119

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