Class: Increase::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/transaction.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::Transaction::Source::CardRefund::PurchaseDetails::Travel::TripLeg::StopOverCode, nil) (defaults to: )

    Indicates whether a stopover is allowed on this ticket.



# File 'lib/increase/models/transaction.rb', line 3716


Instance Attribute Details

#carrier_codeString?

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

Returns:

  • (String, nil)


3680
# File 'lib/increase/models/transaction.rb', line 3680

required :carrier_code, String, nil?: true

#destination_city_airport_codeString?

Code for the destination city or airport.

Returns:

  • (String, nil)


3686
# File 'lib/increase/models/transaction.rb', line 3686

required :destination_city_airport_code, String, nil?: true

#fare_basis_codeString?

Fare basis code.

Returns:

  • (String, nil)


3692
# File 'lib/increase/models/transaction.rb', line 3692

required :fare_basis_code, String, nil?: true

#flight_numberString?

Flight number.

Returns:

  • (String, nil)


3698
# File 'lib/increase/models/transaction.rb', line 3698

required :flight_number, String, nil?: true

#service_classString?

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

Returns:

  • (String, nil)


3704
# File 'lib/increase/models/transaction.rb', line 3704

required :service_class, String, nil?: true

#stop_over_codeSymbol, ...

Indicates whether a stopover is allowed on this ticket.



3710
3711
3712
3713
3714
# File 'lib/increase/models/transaction.rb', line 3710

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