Class: Telnyx::Models::BundlePricing::BillingBundleRetrieveResponse::Data::BundleLimit

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

Defined Under Namespace

Modules: Direction

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(id:, created_at:, metric:, service:, updated_at:, billing_service: nil, country: nil, country_code: nil, country_iso: nil, direction: nil, limit: nil, rate: nil, types: nil) ⇒ Object

Parameters:

  • id (String)
  • created_at (Date)
  • metric (String)
  • service (String)
  • updated_at (Date)
  • billing_service (String) (defaults to: nil)
  • country (String) (defaults to: nil)

    Use country_iso instead

  • country_code (Integer) (defaults to: nil)
  • country_iso (String) (defaults to: nil)
  • direction (Symbol, Telnyx::Models::BundlePricing::BillingBundleRetrieveResponse::Data::BundleLimit::Direction) (defaults to: nil)

    An enumeration.

  • limit (Integer) (defaults to: nil)
  • rate (String) (defaults to: nil)
  • types (Array<String>) (defaults to: nil)


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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 83

class BundleLimit < Telnyx::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [String]
  required :id, String

  # @!attribute created_at
  #
  #   @return [Date]
  required :created_at, Date

  # @!attribute metric
  #
  #   @return [String]
  required :metric, String

  # @!attribute service
  #
  #   @return [String]
  required :service, String

  # @!attribute updated_at
  #
  #   @return [Date]
  required :updated_at, Date

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

  # @!attribute country
  #   @deprecated Use country_iso instead
  #
  #   Use country_iso instead
  #
  #   @return [String, nil]
  optional :country, String

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

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

  # @!attribute direction
  #   An enumeration.
  #
  #   @return [Symbol, Telnyx::Models::BundlePricing::BillingBundleRetrieveResponse::Data::BundleLimit::Direction, nil]
  optional :direction,
           enum: -> { Telnyx::Models::BundlePricing::BillingBundleRetrieveResponse::Data::BundleLimit::Direction }

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

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

  # @!attribute types
  #
  #   @return [Array<String>, nil]
  optional :types, Telnyx::Internal::Type::ArrayOf[String]

  # @!method initialize(id:, created_at:, metric:, service:, updated_at:, billing_service: nil, country: nil, country_code: nil, country_iso: nil, direction: nil, limit: nil, rate: nil, types: nil)
  #   @param id [String]
  #
  #   @param created_at [Date]
  #
  #   @param metric [String]
  #
  #   @param service [String]
  #
  #   @param updated_at [Date]
  #
  #   @param billing_service [String]
  #
  #   @param country [String] Use country_iso instead
  #
  #   @param country_code [Integer]
  #
  #   @param country_iso [String]
  #
  #   @param direction [Symbol, Telnyx::Models::BundlePricing::BillingBundleRetrieveResponse::Data::BundleLimit::Direction] An enumeration.
  #
  #   @param limit [Integer]
  #
  #   @param rate [String]
  #
  #   @param types [Array<String>]

  # An enumeration.
  #
  # @see Telnyx::Models::BundlePricing::BillingBundleRetrieveResponse::Data::BundleLimit#direction
  module Direction
    extend Telnyx::Internal::Type::Enum

    INBOUND = :inbound
    OUTBOUND = :outbound

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

Instance Attribute Details

#billing_serviceString?

Returns:

  • (String, nil)


112
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 112

optional :billing_service, String

#countryString?

Deprecated.

Use country_iso instead

Use country_iso instead

Returns:

  • (String, nil)


120
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 120

optional :country, String

#country_codeInteger?

Returns:

  • (Integer, nil)


125
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 125

optional :country_code, Integer

#country_isoString?

Returns:

  • (String, nil)


130
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 130

optional :country_iso, String

#created_atDate

Returns:

  • (Date)


92
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 92

required :created_at, Date

#directionSymbol, ...

An enumeration.



136
137
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 136

optional :direction,
enum: -> { Telnyx::Models::BundlePricing::BillingBundleRetrieveResponse::Data::BundleLimit::Direction }

#idString

Returns:

  • (String)


87
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 87

required :id, String

#limitInteger?

Returns:

  • (Integer, nil)


142
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 142

optional :limit, Integer

#metricString

Returns:

  • (String)


97
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 97

required :metric, String

#rateString?

Returns:

  • (String, nil)


147
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 147

optional :rate, String

#serviceString

Returns:

  • (String)


102
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 102

required :service, String

#typesArray<String>?

Returns:

  • (Array<String>, nil)


152
# File 'lib/telnyx/models/bundle_pricing/billing_bundle_retrieve_response.rb', line 152

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

#updated_atDate

Returns:

  • (Date)


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

required :updated_at, Date