Class: Telnyx::Models::CountryCoverageAPI

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/country_coverage.rb

Defined Under Namespace

Classes: Local, TollFree

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(features: nil, full_pstn_replacement: nil, international_sms: nil, p2p: nil, quickship: nil, reservable: nil) ⇒ Object

Parameters:

  • features (Array<String>) (defaults to: nil)
  • full_pstn_replacement (Boolean) (defaults to: nil)
  • international_sms (Boolean) (defaults to: nil)
  • p2p (Boolean) (defaults to: nil)
  • quickship (Boolean) (defaults to: nil)
  • reservable (Boolean) (defaults to: nil)


# File 'lib/telnyx/models/country_coverage.rb', line 88

Instance Attribute Details

#codeString?

Country ISO code

Returns:

  • (String, nil)


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

optional :code, String

#featuresArray<String>?

Set of features supported

Returns:

  • (Array<String>, nil)


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

optional :features, Telnyx::Internal::Type::ArrayOf[String]

#international_smsBoolean?

Returns:

  • (Boolean, nil)


21
# File 'lib/telnyx/models/country_coverage.rb', line 21

optional :international_sms, Telnyx::Internal::Type::Boolean

#inventory_coverageBoolean?

Indicates whether country can be queried with inventory coverage endpoint

Returns:

  • (Boolean, nil)


27
# File 'lib/telnyx/models/country_coverage.rb', line 27

optional :inventory_coverage, Telnyx::Internal::Type::Boolean

#localTelnyx::Models::CountryCoverageAPI::Local?



32
# File 'lib/telnyx/models/country_coverage.rb', line 32

optional :local, -> { Telnyx::CountryCoverageAPI::Local }

#mobileHash{Symbol=>Object}?

Returns:

  • (Hash{Symbol=>Object}, nil)


37
# File 'lib/telnyx/models/country_coverage.rb', line 37

optional :mobile, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

#nationalHash{Symbol=>Object}?

Returns:

  • (Hash{Symbol=>Object}, nil)


42
# File 'lib/telnyx/models/country_coverage.rb', line 42

optional :national, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

#numbersBoolean?

Returns:

  • (Boolean, nil)


47
# File 'lib/telnyx/models/country_coverage.rb', line 47

optional :numbers, Telnyx::Internal::Type::Boolean

#p2pBoolean?

Returns:

  • (Boolean, nil)


52
# File 'lib/telnyx/models/country_coverage.rb', line 52

optional :p2p, Telnyx::Internal::Type::Boolean

#phone_number_typeArray<String>?

Phone number type

Returns:

  • (Array<String>, nil)


58
# File 'lib/telnyx/models/country_coverage.rb', line 58

optional :phone_number_type, Telnyx::Internal::Type::ArrayOf[String]

#quickshipBoolean?

Supports quickship

Returns:

  • (Boolean, nil)


64
# File 'lib/telnyx/models/country_coverage.rb', line 64

optional :quickship, Telnyx::Internal::Type::Boolean

#regionString?

Geographic region (e.g., AMER, EMEA, APAC)

Returns:

  • (String, nil)


70
# File 'lib/telnyx/models/country_coverage.rb', line 70

optional :region, String, nil?: true

#reservableBoolean?

Supports reservable

Returns:

  • (Boolean, nil)


76
# File 'lib/telnyx/models/country_coverage.rb', line 76

optional :reservable, Telnyx::Internal::Type::Boolean

#shared_costHash{Symbol=>Object}?

Returns:

  • (Hash{Symbol=>Object}, nil)


81
# File 'lib/telnyx/models/country_coverage.rb', line 81

optional :shared_cost, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

#toll_freeTelnyx::Models::CountryCoverageAPI::TollFree?



86
# File 'lib/telnyx/models/country_coverage.rb', line 86

optional :toll_free, -> { Telnyx::CountryCoverageAPI::TollFree }