Class: Increase::Models::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service

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

Defined Under Namespace

Modules: Category

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(category: , sub_category: ) ⇒ Object

Parameters:



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


Instance Attribute Details

#categorySymbol, ...

Category of the ancillary service.



6244
6245
6246
6247
6248
# File 'lib/increase/models/card_payment.rb', line 6244

required :category,
enum: -> {
  Increase::CardPayment::Element::CardRefund::PurchaseDetails::Travel::Ancillary::Service::Category
},
nil?: true

#sub_categoryString?

Sub-category of the ancillary service, free-form.

Returns:

  • (String, nil)


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

required :sub_category, String, nil?: true