Class: Telnyx::Models::MessagingHostedNumberOrderValidateCodesResponse::Data::PhoneNumber
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::MessagingHostedNumberOrderValidateCodesResponse::Data::PhoneNumber
- Defined in:
- lib/telnyx/models/messaging_hosted_number_order_validate_codes_response.rb
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
- #phone_number ⇒ String
- #status ⇒ Symbol, Telnyx::Models::MessagingHostedNumberOrderValidateCodesResponse::Data::PhoneNumber::Status
Instance Method Summary collapse
- #initialize(phone_number:, status:) ⇒ Object constructor
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(phone_number:, status:) ⇒ Object
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 |
# File 'lib/telnyx/models/messaging_hosted_number_order_validate_codes_response.rb', line 32 class PhoneNumber < Telnyx::Internal::Type::BaseModel # @!attribute phone_number # # @return [String] required :phone_number, String # @!attribute status # # @return [Symbol, Telnyx::Models::MessagingHostedNumberOrderValidateCodesResponse::Data::PhoneNumber::Status] required :status, enum: -> { Telnyx::Models::MessagingHostedNumberOrderValidateCodesResponse::Data::PhoneNumber::Status } # @!method initialize(phone_number:, status:) # @param phone_number [String] # @param status [Symbol, Telnyx::Models::MessagingHostedNumberOrderValidateCodesResponse::Data::PhoneNumber::Status] # @see Telnyx::Models::MessagingHostedNumberOrderValidateCodesResponse::Data::PhoneNumber#status module Status extend Telnyx::Internal::Type::Enum VERIFIED = :verified REJECTED = :rejected ALREADY_VERIFIED = :already_verified # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#phone_number ⇒ String
36 |
# File 'lib/telnyx/models/messaging_hosted_number_order_validate_codes_response.rb', line 36 required :phone_number, String |
#status ⇒ Symbol, Telnyx::Models::MessagingHostedNumberOrderValidateCodesResponse::Data::PhoneNumber::Status
41 42 |
# File 'lib/telnyx/models/messaging_hosted_number_order_validate_codes_response.rb', line 41 required :status, enum: -> { Telnyx::Models::MessagingHostedNumberOrderValidateCodesResponse::Data::PhoneNumber::Status } |