Class: Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data

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

Defined Under Namespace

Modules: RecordType Classes: CostInformation, Feature, RegionInformation

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(name: nil) ⇒ Object

Parameters:

  • name (String) (defaults to: nil)


22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 22

class Data < Telnyx::Internal::Type::BaseModel
  # @!attribute cost_information
  #
  #   @return [Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::CostInformation, nil]
  optional :cost_information,
           -> { Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::CostInformation }

  # @!attribute features
  #
  #   @return [Array<Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::Feature>, nil]
  optional :features,
           -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::Feature] }

  # @!attribute range
  #
  #   @return [Integer, nil]
  optional :range, Integer

  # @!attribute record_type
  #
  #   @return [Symbol, Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RecordType, nil]
  optional :record_type,
           enum: -> { Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RecordType }

  # @!attribute region_information
  #
  #   @return [Array<Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RegionInformation>, nil]
  optional :region_information,
           -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RegionInformation] }

  # @!attribute starting_number
  #
  #   @return [String, nil]
  optional :starting_number, String

  # @!method initialize(cost_information: nil, features: nil, range: nil, record_type: nil, region_information: nil, starting_number: nil)
  #   @param cost_information [Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::CostInformation]
  #   @param features [Array<Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::Feature>]
  #   @param range [Integer]
  #   @param record_type [Symbol, Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RecordType]
  #   @param region_information [Array<Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RegionInformation>]
  #   @param starting_number [String]

  # @see Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data#cost_information
  class CostInformation < Telnyx::Internal::Type::BaseModel
    # @!attribute currency
    #   The ISO 4217 code for the currency.
    #
    #   @return [String, nil]
    optional :currency, String

    # @!attribute monthly_cost
    #
    #   @return [String, nil]
    optional :monthly_cost, String

    # @!attribute upfront_cost
    #
    #   @return [String, nil]
    optional :upfront_cost, String

    # @!method initialize(currency: nil, monthly_cost: nil, upfront_cost: nil)
    #   @param currency [String] The ISO 4217 code for the currency.
    #
    #   @param monthly_cost [String]
    #
    #   @param upfront_cost [String]
  end

  class Feature < Telnyx::Internal::Type::BaseModel
    # @!attribute name
    #
    #   @return [String, nil]
    optional :name, String

    # @!method initialize(name: nil)
    #   @param name [String]
  end

  # @see Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data#record_type
  module RecordType
    extend Telnyx::Internal::Type::Enum

    AVAILABLE_PHONE_NUMBER_BLOCK = :available_phone_number_block

    # @!method self.values
    #   @return [Array<Symbol>]
  end

  class RegionInformation < Telnyx::Internal::Type::BaseModel
    # @!attribute region_name
    #
    #   @return [String, nil]
    optional :region_name, String

    # @!attribute region_type
    #
    #   @return [Symbol, Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RegionInformation::RegionType, nil]
    optional :region_type,
             enum: -> { Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RegionInformation::RegionType }

    # @!method initialize(region_name: nil, region_type: nil)
    #   @param region_name [String]
    #   @param region_type [Symbol, Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RegionInformation::RegionType]

    # @see Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RegionInformation#region_type
    module RegionType
      extend Telnyx::Internal::Type::Enum

      COUNTRY_CODE = :country_code
      RATE_CENTER = :rate_center
      STATE = :state
      LOCATION = :location

      # @!method self.values
      #   @return [Array<Symbol>]
    end
  end
end

Instance Attribute Details

#cost_informationTelnyx::Models::AvailablePhoneNumberBlockListResponse::Data::CostInformation?



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

optional :cost_information,
-> { Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::CostInformation }

#featuresArray<Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::Feature>?



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

optional :features,
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::Feature] }

#rangeInteger?

Returns:

  • (Integer, nil)


38
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 38

optional :range, Integer

#record_typeSymbol, ...



43
44
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 43

optional :record_type,
enum: -> { Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RecordType }

#region_informationArray<Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RegionInformation>?



49
50
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 49

optional :region_information,
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RegionInformation] }

#starting_numberString?

Returns:

  • (String, nil)


55
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 55

optional :starting_number, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 107