Class: Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel

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

Overview

See Also:

Defined Under Namespace

Modules: CreditReasonIndicator, RestrictedTicketIndicator, TicketChangeIndicator Classes: Ancillary, TripLeg

Instance Attribute Summary collapse

Class Method 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(ancillary: , computerized_reservation_system: , credit_reason_indicator: , departure_date: , origination_city_airport_code: , passenger_name: , restricted_ticket_indicator: , ticket_change_indicator: , ticket_number: , travel_agency_code: , travel_agency_name: , trip_legs: ) ⇒ Object

Fields specific to travel.

Parameters:



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


Instance Attribute Details

#ancillaryIncrease::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary?

Ancillary purchases in addition to the airfare.



7718
7719
7720
7721
7722
# File 'lib/increase/models/card_payment.rb', line 7718

required :ancillary,
-> {
  Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::Ancillary
},
nil?: true

#computerized_reservation_systemString?

Indicates the computerized reservation system used to book the ticket.

Returns:

  • (String, nil)


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

required :computerized_reservation_system, String, nil?: true

#credit_reason_indicatorSymbol, ...

Indicates the reason for a credit to the cardholder.



7734
7735
7736
7737
7738
# File 'lib/increase/models/card_payment.rb', line 7734

required :credit_reason_indicator,
enum: -> {
  Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::CreditReasonIndicator
},
nil?: true

#departure_dateDate?

Date of departure.

Returns:

  • (Date, nil)


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

required :departure_date, Date, nil?: true

#origination_city_airport_codeString?

Code for the originating city or airport.

Returns:

  • (String, nil)


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

required :origination_city_airport_code, String, nil?: true

#passenger_nameString?

Name of the passenger.

Returns:

  • (String, nil)


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

required :passenger_name, String, nil?: true

#restricted_ticket_indicatorSymbol, ...

Indicates whether this ticket is non-refundable.



7762
7763
7764
7765
7766
# File 'lib/increase/models/card_payment.rb', line 7762

required :restricted_ticket_indicator,
enum: -> {
  Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::RestrictedTicketIndicator
},
nil?: true

#ticket_change_indicatorSymbol, ...

Indicates why a ticket was changed.



7772
7773
7774
7775
7776
# File 'lib/increase/models/card_payment.rb', line 7772

required :ticket_change_indicator,
enum: -> {
  Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TicketChangeIndicator
},
nil?: true

#ticket_numberString?

Ticket number.

Returns:

  • (String, nil)


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

required :ticket_number, String, nil?: true

#travel_agency_codeString?

Code for the travel agency if the ticket was issued by a travel agency.

Returns:

  • (String, nil)


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

required :travel_agency_code, String, nil?: true

#travel_agency_nameString?

Name of the travel agency if the ticket was issued by a travel agency.

Returns:

  • (String, nil)


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

required :travel_agency_name, String, nil?: true

#trip_legsArray<Increase::Models::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg>?

Fields specific to each leg of the journey.



7800
7801
7802
7803
7804
# File 'lib/increase/models/card_payment.rb', line 7800

required :trip_legs,
-> {
  Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Travel::TripLeg]
},
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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