Class: Telnyx::Models::Enterprises::Reputation::NumberAssociateResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/enterprises/reputation/number_associate_response.rb

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: nil, created_at: nil, enterprise_id: nil, phone_number: nil, updated_at: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)

    Unique identifier

  • created_at (Time) (defaults to: nil)

    When the number was associated

  • enterprise_id (String) (defaults to: nil)

    ID of the associated enterprise

  • phone_number (String) (defaults to: nil)

    Phone number in E.164 format

  • updated_at (Time) (defaults to: nil)

    When the record was last updated



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
# File 'lib/telnyx/models/enterprises/reputation/number_associate_response.rb', line 24

class Data < Telnyx::Internal::Type::BaseModel
  # @!attribute id
  #   Unique identifier
  #
  #   @return [String, nil]
  optional :id, String

  # @!attribute created_at
  #   When the number was associated
  #
  #   @return [Time, nil]
  optional :created_at, Time

  # @!attribute enterprise_id
  #   ID of the associated enterprise
  #
  #   @return [String, nil]
  optional :enterprise_id, String

  # @!attribute phone_number
  #   Phone number in E.164 format
  #
  #   @return [String, nil]
  optional :phone_number, String

  # @!attribute updated_at
  #   When the record was last updated
  #
  #   @return [Time, nil]
  optional :updated_at, Time

  # @!method initialize(id: nil, created_at: nil, enterprise_id: nil, phone_number: nil, updated_at: nil)
  #   @param id [String] Unique identifier
  #
  #   @param created_at [Time] When the number was associated
  #
  #   @param enterprise_id [String] ID of the associated enterprise
  #
  #   @param phone_number [String] Phone number in E.164 format
  #
  #   @param updated_at [Time] When the record was last updated
end

Instance Attribute Details

#created_atTime?

When the number was associated

Returns:

  • (Time, nil)


35
# File 'lib/telnyx/models/enterprises/reputation/number_associate_response.rb', line 35

optional :created_at, Time

#enterprise_idString?

ID of the associated enterprise

Returns:

  • (String, nil)


41
# File 'lib/telnyx/models/enterprises/reputation/number_associate_response.rb', line 41

optional :enterprise_id, String

#idString?

Unique identifier

Returns:

  • (String, nil)


29
# File 'lib/telnyx/models/enterprises/reputation/number_associate_response.rb', line 29

optional :id, String

#phone_numberString?

Phone number in E.164 format

Returns:

  • (String, nil)


47
# File 'lib/telnyx/models/enterprises/reputation/number_associate_response.rb', line 47

optional :phone_number, String

#updated_atTime?

When the record was last updated

Returns:

  • (Time, nil)


53
# File 'lib/telnyx/models/enterprises/reputation/number_associate_response.rb', line 53

optional :updated_at, Time