Class: Telnyx::Models::Rcs::EinBrandIdentifier

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/rcs/ein_brand_identifier.rb,
sig/telnyx/models/rcs/ein_brand_identifier.rbs

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(value:, identifier_type: :EIN) ⇒ EinBrandIdentifier

Returns a new instance of EinBrandIdentifier.

Parameters:

  • value (String)

    Nine digits, optionally formatted as NN-NNNNNNN.

  • identifier_type (Symbol, :EIN) (defaults to: :EIN)
  • value: (String)
  • identifier_type: (:EIN) (defaults to: :EIN)


# File 'lib/telnyx/models/rcs/ein_brand_identifier.rb', line 18

Instance Attribute Details

#identifier_typeSymbol, :EIN

Parameters:

  • value (:EIN)

Returns:

  • (Symbol, :EIN)


10
# File 'lib/telnyx/models/rcs/ein_brand_identifier.rb', line 10

required :identifier_type, const: :EIN

#valueString

Nine digits, optionally formatted as NN-NNNNNNN.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/telnyx/models/rcs/ein_brand_identifier.rb', line 16

required :value, String

Instance Method Details

#to_hash{ identifier_type: :EIN, value: String }

Returns:

  • ({ identifier_type: :EIN, value: String })


13
# File 'sig/telnyx/models/rcs/ein_brand_identifier.rbs', line 13

def to_hash: -> { identifier_type: :EIN, value: String }