Class: Telnyx::Models::Rcs::BrandResponse::Address

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/rcs/brand_response.rb,
sig/telnyx/models/rcs/brand_response.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(addresses:, brand_id:, capabilities:, contacts:, display_name:, identifiers:, legal_entity_type:, legal_name:, organization_type:, profile_id:, status:, website_url:) ⇒ Object

Parameters:



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
# File 'lib/telnyx/models/rcs/brand_response.rb', line 83

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

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

  # @!attribute country_code
  #   The two-letter ISO 3166-1 country code.
  #
  #   @return [String]
  required :country_code, String

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

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

  # @!attribute line_2
  #
  #   @return [String, nil]
  optional :line_2, String, nil?: true

  # @!method initialize(administrative_area:, city:, country_code:, line_1:, postal_code:, line_2: nil)
  #   @param administrative_area [String]
  #
  #   @param city [String]
  #
  #   @param country_code [String] The two-letter ISO 3166-1 country code.
  #
  #   @param line_1 [String]
  #
  #   @param postal_code [String]
  #
  #   @param line_2 [String, nil]
end

Instance Attribute Details

#administrative_areaString

Parameters:

  • value (String)

Returns:

  • (String)


87
# File 'lib/telnyx/models/rcs/brand_response.rb', line 87

required :administrative_area, String

#cityString

Parameters:

  • value (String)

Returns:

  • (String)


92
# File 'lib/telnyx/models/rcs/brand_response.rb', line 92

required :city, String

#country_codeString

The two-letter ISO 3166-1 country code.

Parameters:

  • value (String)

Returns:

  • (String)


98
# File 'lib/telnyx/models/rcs/brand_response.rb', line 98

required :country_code, String

#line_1String

Parameters:

  • value (String)

Returns:

  • (String)


103
# File 'lib/telnyx/models/rcs/brand_response.rb', line 103

required :line_1, String

#line_2String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


113
# File 'lib/telnyx/models/rcs/brand_response.rb', line 113

optional :line_2, String, nil?: true

#postal_codeString

Parameters:

  • value (String)

Returns:

  • (String)


108
# File 'lib/telnyx/models/rcs/brand_response.rb', line 108

required :postal_code, String

Instance Method Details

#to_hash{

Returns:

  • ({)


107
# File 'sig/telnyx/models/rcs/brand_response.rbs', line 107

def to_hash: -> {