telnyx 5.166.0 → 5.168.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +4 -0
- data/lib/telnyx/internal/default_flat_pagination.rb +7 -3
- data/lib/telnyx/internal/default_flat_pagination_for_inexplicit_number_orders.rb +7 -3
- data/lib/telnyx/internal/default_flat_pagination_top_level_array.rb +10 -8
- data/lib/telnyx/internal/default_pagination_for_log_messages.rb +7 -3
- data/lib/telnyx/internal/default_pagination_for_messaging_tollfree.rb +12 -3
- data/lib/telnyx/internal/default_pagination_for_queues.rb +12 -3
- data/lib/telnyx/internal/per_page_pagination.rb +8 -1
- data/lib/telnyx/internal/per_page_pagination_v2.rb +8 -1
- data/lib/telnyx/internal/type/converter.rb +2 -0
- data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +57 -1
- data/lib/telnyx/models/ai/assistant_a2_a_agent.rb +195 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +16 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +17 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +17 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +185 -48
- data/lib/telnyx/models/ai/inference_embedding.rb +16 -1
- data/lib/telnyx/models/ai/openai_create_response_params.rb +57 -1
- data/lib/telnyx/models/ai/telephony_settings.rb +15 -1
- data/lib/telnyx/models/compute/func_retrieve_logs_params.rb +66 -0
- data/lib/telnyx/models/compute/func_retrieve_logs_response.rb +161 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_params.rb +69 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_response.rb +137 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_params.rb +34 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_response.rb +101 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_params.rb +22 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_response.rb +94 -0
- data/lib/telnyx/models/compute/functions_observability_pagination_meta.rb +35 -0
- data/lib/telnyx/models/compute/logs_meta.rb +23 -0
- data/lib/telnyx/models/credential_connection.rb +4 -1
- data/lib/telnyx/models/email_inboxes/email_message.rb +12 -1
- data/lib/telnyx/models/email_message_batch_params.rb +4 -1
- data/lib/telnyx/models/email_message_batch_response.rb +1 -0
- data/lib/telnyx/models/fqdn_connection.rb +5 -2
- data/lib/telnyx/models/fqdn_connections/fqdn_authentication.rb +9 -2
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +210 -67
- data/lib/telnyx/models/messaging_messaging_profile.rb +284 -0
- data/lib/telnyx/models/messaging_profile.rb +0 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
- data/lib/telnyx/models/messaging_profile_create_response.rb +3 -3
- data/lib/telnyx/models/messaging_profile_delete_response.rb +3 -3
- data/lib/telnyx/models/messaging_profile_features.rb +26 -0
- data/lib/telnyx/models/messaging_profile_retrieve_response.rb +3 -3
- data/lib/telnyx/models/messaging_profile_update_params.rb +32 -1
- data/lib/telnyx/models/messaging_profile_update_response.rb +3 -3
- data/lib/telnyx/models/messaging_profiles/action_regenerate_secret_response.rb +3 -3
- data/lib/telnyx/models/uac_connection.rb +4 -1
- data/lib/telnyx/models/uac_external_settings.rb +6 -2
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +104 -1
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rb +22 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +207 -0
- data/lib/telnyx/models/whatsapp_account_update.rb +112 -0
- data/lib/telnyx/models/whatsapp_message_echo.rb +340 -0
- data/lib/telnyx/models/x402/credit_account/payment_list_params.rb +34 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_params.rb +24 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_response.rb +21 -0
- data/lib/telnyx/models/x402/credit_account/x402_transaction_record.rb +113 -0
- data/lib/telnyx/models.rb +10 -0
- data/lib/telnyx/resources/ai/anthropic/v1.rb +5 -1
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/ai/openai/chat.rb +6 -8
- data/lib/telnyx/resources/ai/openai.rb +5 -1
- data/lib/telnyx/resources/compute/funcs.rb +141 -0
- data/lib/telnyx/resources/compute.rb +18 -0
- data/lib/telnyx/resources/email_messages.rb +4 -2
- data/lib/telnyx/resources/messaging_profiles.rb +12 -4
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +22 -0
- data/lib/telnyx/resources/x402/credit_account/payments.rb +71 -0
- data/lib/telnyx/resources/x402/credit_account.rb +8 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +24 -0
- data/rbi/telnyx/client.rbi +3 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +139 -0
- data/rbi/telnyx/models/ai/assistant_a2_a_agent.rbi +345 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +29 -0
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +31 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +31 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +339 -91
- data/rbi/telnyx/models/ai/inference_embedding.rbi +29 -0
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +136 -0
- data/rbi/telnyx/models/ai/telephony_settings.rbi +23 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_params.rbi +130 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_response.rbi +410 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbi +102 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbi +231 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_params.rbi +59 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_response.rbi +213 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_params.rbi +40 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_response.rbi +252 -0
- data/rbi/telnyx/models/compute/functions_observability_pagination_meta.rbi +70 -0
- data/rbi/telnyx/models/compute/logs_meta.rbi +38 -0
- data/rbi/telnyx/models/credential_connection.rbi +8 -2
- data/rbi/telnyx/models/email_inboxes/email_message.rbi +22 -3
- data/rbi/telnyx/models/email_message_batch_params.rbi +6 -0
- data/rbi/telnyx/models/email_message_batch_response.rbi +5 -0
- data/rbi/telnyx/models/fqdn_connection.rbi +8 -2
- data/rbi/telnyx/models/fqdn_connections/fqdn_authentication.rbi +8 -2
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +450 -193
- data/rbi/telnyx/models/messaging_messaging_profile.rbi +463 -0
- data/rbi/telnyx/models/messaging_profile.rbi +4 -6
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +19 -0
- data/rbi/telnyx/models/messaging_profile_create_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profile_delete_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profile_features.rbi +43 -0
- data/rbi/telnyx/models/messaging_profile_retrieve_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +51 -0
- data/rbi/telnyx/models/messaging_profile_update_response.rbi +6 -4
- data/rbi/telnyx/models/messaging_profiles/action_regenerate_secret_response.rbi +4 -4
- data/rbi/telnyx/models/uac_connection.rbi +8 -2
- data/rbi/telnyx/models/uac_external_settings.rbi +10 -2
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +401 -0
- data/rbi/telnyx/models/whatsapp_account_update.rbi +236 -0
- data/rbi/telnyx/models/whatsapp_message_echo.rbi +611 -0
- data/rbi/telnyx/models/x402/credit_account/payment_list_params.rbi +64 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_params.rbi +42 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_response.rbi +53 -0
- data/rbi/telnyx/models/x402/credit_account/x402_transaction_record.rbi +219 -0
- data/rbi/telnyx/models.rbi +10 -0
- data/rbi/telnyx/resources/ai/anthropic/v1.rbi +14 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +12 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +21 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +23 -13
- data/rbi/telnyx/resources/ai/openai.rbi +14 -0
- data/rbi/telnyx/resources/compute/funcs.rbi +111 -0
- data/rbi/telnyx/resources/compute.rbi +15 -0
- data/rbi/telnyx/resources/email_messages.rbi +6 -2
- data/rbi/telnyx/resources/messaging_profiles.rbi +24 -1
- data/rbi/telnyx/resources/webhooks.rbi +6 -2
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +18 -0
- data/rbi/telnyx/resources/x402/credit_account/payments.rbi +60 -0
- data/rbi/telnyx/resources/x402/credit_account.rbi +5 -0
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +42 -0
- data/sig/telnyx/models/ai/assistant_a2_a_agent.rbs +140 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
- data/sig/telnyx/models/ai/chat_completion_request.rbs +128 -44
- data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +42 -0
- data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_params.rbs +69 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_response.rbs +210 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbs +66 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbs +149 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_params.rbs +38 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_response.rbs +131 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_params.rbs +22 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_response.rbs +117 -0
- data/sig/telnyx/models/compute/functions_observability_pagination_meta.rbs +45 -0
- data/sig/telnyx/models/compute/logs_meta.rbs +21 -0
- data/sig/telnyx/models/email_inboxes/email_message.rbs +12 -3
- data/sig/telnyx/models/email_message_batch_response.rbs +2 -0
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +207 -95
- data/sig/telnyx/models/messaging_messaging_profile.rbs +212 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +5 -0
- data/sig/telnyx/models/messaging_profile_create_response.rbs +8 -5
- data/sig/telnyx/models/messaging_profile_delete_response.rbs +8 -5
- data/sig/telnyx/models/messaging_profile_features.rbs +15 -0
- data/sig/telnyx/models/messaging_profile_retrieve_response.rbs +7 -5
- data/sig/telnyx/models/messaging_profile_update_params.rbs +19 -0
- data/sig/telnyx/models/messaging_profile_update_response.rbs +8 -5
- data/sig/telnyx/models/messaging_profiles/action_regenerate_secret_response.rbs +7 -5
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbs +25 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +201 -0
- data/sig/telnyx/models/whatsapp_account_update.rbs +107 -0
- data/sig/telnyx/models/whatsapp_message_echo.rbs +291 -0
- data/sig/telnyx/models/x402/credit_account/payment_list_params.rbs +36 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_response.rbs +26 -0
- data/sig/telnyx/models/x402/credit_account/x402_transaction_record.rbs +104 -0
- data/sig/telnyx/models.rbs +10 -0
- data/sig/telnyx/resources/ai/anthropic/v1.rbs +2 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai/openai/chat.rbs +3 -4
- data/sig/telnyx/resources/ai/openai.rbs +2 -0
- data/sig/telnyx/resources/compute/funcs.rbs +41 -0
- data/sig/telnyx/resources/compute.rbs +9 -0
- data/sig/telnyx/resources/messaging_profiles.rbs +5 -1
- data/sig/telnyx/resources/webhooks.rbs +6 -2
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +5 -0
- data/sig/telnyx/resources/x402/credit_account/payments.rbs +22 -0
- data/sig/telnyx/resources/x402/credit_account.rbs +2 -0
- metadata +74 -2
|
@@ -11,6 +11,15 @@ module Telnyx
|
|
|
11
11
|
# @return [Boolean, nil]
|
|
12
12
|
optional :calling_enabled, Telnyx::Internal::Type::Boolean
|
|
13
13
|
|
|
14
|
+
# @!attribute coexistence_state
|
|
15
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
16
|
+
# Cloud API number.
|
|
17
|
+
#
|
|
18
|
+
# @return [Symbol, Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState, nil]
|
|
19
|
+
optional :coexistence_state,
|
|
20
|
+
enum: -> { Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState },
|
|
21
|
+
nil?: true
|
|
22
|
+
|
|
14
23
|
# @!attribute created_at
|
|
15
24
|
#
|
|
16
25
|
# @return [Time, nil]
|
|
@@ -26,6 +35,13 @@ module Telnyx
|
|
|
26
35
|
# @return [Boolean, nil]
|
|
27
36
|
optional :enabled, Telnyx::Internal::Type::Boolean
|
|
28
37
|
|
|
38
|
+
# @!attribute is_on_biz_app
|
|
39
|
+
# Indicates whether the number is connected to both the WhatsApp Business app and
|
|
40
|
+
# Cloud API through WhatsApp Coexistence.
|
|
41
|
+
#
|
|
42
|
+
# @return [Boolean, nil]
|
|
43
|
+
optional :is_on_biz_app, Telnyx::Internal::Type::Boolean
|
|
44
|
+
|
|
29
45
|
# @!attribute phone_number
|
|
30
46
|
# Phone number in E164 format
|
|
31
47
|
#
|
|
@@ -54,6 +70,22 @@ module Telnyx
|
|
|
54
70
|
# @return [String, nil]
|
|
55
71
|
optional :status, String
|
|
56
72
|
|
|
73
|
+
# @!attribute sync_deadline
|
|
74
|
+
# Deadline for initiating the current coexistence synchronization cycle. This is
|
|
75
|
+
# null when no deadline applies.
|
|
76
|
+
#
|
|
77
|
+
# @return [Time, nil]
|
|
78
|
+
optional :sync_deadline, Time, nil?: true
|
|
79
|
+
|
|
80
|
+
# @!attribute sync_progress
|
|
81
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
82
|
+
# number is synchronizing.
|
|
83
|
+
#
|
|
84
|
+
# @return [Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress, nil]
|
|
85
|
+
optional :sync_progress,
|
|
86
|
+
-> { Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress },
|
|
87
|
+
nil?: true
|
|
88
|
+
|
|
57
89
|
# @!attribute user_id
|
|
58
90
|
# User ID
|
|
59
91
|
#
|
|
@@ -66,15 +98,23 @@ module Telnyx
|
|
|
66
98
|
# @return [String, nil]
|
|
67
99
|
optional :waba_id, String
|
|
68
100
|
|
|
69
|
-
# @!method initialize(calling_enabled: nil, created_at: nil, display_name: nil, enabled: nil, phone_number: nil, phone_number_id: nil, quality_rating: nil, record_type: nil, status: nil, user_id: nil, waba_id: nil)
|
|
101
|
+
# @!method initialize(calling_enabled: nil, coexistence_state: nil, created_at: nil, display_name: nil, enabled: nil, is_on_biz_app: nil, phone_number: nil, phone_number_id: nil, quality_rating: nil, record_type: nil, status: nil, sync_deadline: nil, sync_progress: nil, user_id: nil, waba_id: nil)
|
|
102
|
+
# Some parameter documentations has been truncated, see
|
|
103
|
+
# {Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse} for more
|
|
104
|
+
# details.
|
|
105
|
+
#
|
|
70
106
|
# @param calling_enabled [Boolean]
|
|
71
107
|
#
|
|
108
|
+
# @param coexistence_state [Symbol, Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::CoexistenceState, nil] Current lifecycle state for a coexistence number. This is null for a standard Cl
|
|
109
|
+
#
|
|
72
110
|
# @param created_at [Time]
|
|
73
111
|
#
|
|
74
112
|
# @param display_name [String]
|
|
75
113
|
#
|
|
76
114
|
# @param enabled [Boolean]
|
|
77
115
|
#
|
|
116
|
+
# @param is_on_biz_app [Boolean] Indicates whether the number is connected to both the WhatsApp Business app and
|
|
117
|
+
#
|
|
78
118
|
# @param phone_number [String] Phone number in E164 format
|
|
79
119
|
#
|
|
80
120
|
# @param phone_number_id [String] Whatsapp phone number ID
|
|
@@ -85,9 +125,72 @@ module Telnyx
|
|
|
85
125
|
#
|
|
86
126
|
# @param status [String]
|
|
87
127
|
#
|
|
128
|
+
# @param sync_deadline [Time, nil] Deadline for initiating the current coexistence synchronization cycle. This is n
|
|
129
|
+
#
|
|
130
|
+
# @param sync_progress [Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse::SyncProgress, nil] Synchronization progress. This object is returned only while a coexistence numbe
|
|
131
|
+
#
|
|
88
132
|
# @param user_id [String] User ID
|
|
89
133
|
#
|
|
90
134
|
# @param waba_id [String] WABA ID of Whatsapp business account
|
|
135
|
+
|
|
136
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
137
|
+
# Cloud API number.
|
|
138
|
+
#
|
|
139
|
+
# @see Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse#coexistence_state
|
|
140
|
+
module CoexistenceState
|
|
141
|
+
extend Telnyx::Internal::Type::Enum
|
|
142
|
+
|
|
143
|
+
PENDING_ONBOARDING = :pending_onboarding
|
|
144
|
+
SYNC_PENDING = :sync_pending
|
|
145
|
+
SYNCING = :syncing
|
|
146
|
+
SYNC_COMPLETE = :sync_complete
|
|
147
|
+
ACTIVE = :active
|
|
148
|
+
HISTORY_DECLINED = :history_declined
|
|
149
|
+
SYNC_DEADLINE_EXPIRED = :sync_deadline_expired
|
|
150
|
+
OFFBOARDED = :offboarded
|
|
151
|
+
DISCONNECTED = :disconnected
|
|
152
|
+
|
|
153
|
+
# @!method self.values
|
|
154
|
+
# @return [Array<Symbol>]
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# @see Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse#sync_progress
|
|
158
|
+
class SyncProgress < Telnyx::Internal::Type::BaseModel
|
|
159
|
+
# @!attribute contacts_status
|
|
160
|
+
#
|
|
161
|
+
# @return [String, nil]
|
|
162
|
+
optional :contacts_status, String
|
|
163
|
+
|
|
164
|
+
# @!attribute history_chunk_order
|
|
165
|
+
#
|
|
166
|
+
# @return [Integer, nil]
|
|
167
|
+
optional :history_chunk_order, Integer, nil?: true
|
|
168
|
+
|
|
169
|
+
# @!attribute history_phase
|
|
170
|
+
#
|
|
171
|
+
# @return [Integer, nil]
|
|
172
|
+
optional :history_phase, Integer, nil?: true
|
|
173
|
+
|
|
174
|
+
# @!attribute history_progress
|
|
175
|
+
#
|
|
176
|
+
# @return [Integer, nil]
|
|
177
|
+
optional :history_progress, Integer, nil?: true
|
|
178
|
+
|
|
179
|
+
# @!attribute history_status
|
|
180
|
+
#
|
|
181
|
+
# @return [String, nil]
|
|
182
|
+
optional :history_status, String
|
|
183
|
+
|
|
184
|
+
# @!method initialize(contacts_status: nil, history_chunk_order: nil, history_phase: nil, history_progress: nil, history_status: nil)
|
|
185
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
186
|
+
# number is synchronizing.
|
|
187
|
+
#
|
|
188
|
+
# @param contacts_status [String]
|
|
189
|
+
# @param history_chunk_order [Integer, nil]
|
|
190
|
+
# @param history_phase [Integer, nil]
|
|
191
|
+
# @param history_progress [Integer, nil]
|
|
192
|
+
# @param history_status [String]
|
|
193
|
+
end
|
|
91
194
|
end
|
|
92
195
|
end
|
|
93
196
|
end
|
|
@@ -26,6 +26,15 @@ module Telnyx
|
|
|
26
26
|
# @return [Boolean, nil]
|
|
27
27
|
optional :calling_enabled, Telnyx::Internal::Type::Boolean
|
|
28
28
|
|
|
29
|
+
# @!attribute coexistence_state
|
|
30
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
31
|
+
# Cloud API number.
|
|
32
|
+
#
|
|
33
|
+
# @return [Symbol, Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::CoexistenceState, nil]
|
|
34
|
+
optional :coexistence_state,
|
|
35
|
+
enum: -> { Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::CoexistenceState },
|
|
36
|
+
nil?: true
|
|
37
|
+
|
|
29
38
|
# @!attribute created_at
|
|
30
39
|
#
|
|
31
40
|
# @return [Time, nil]
|
|
@@ -41,6 +50,13 @@ module Telnyx
|
|
|
41
50
|
# @return [Boolean, nil]
|
|
42
51
|
optional :enabled, Telnyx::Internal::Type::Boolean
|
|
43
52
|
|
|
53
|
+
# @!attribute is_on_biz_app
|
|
54
|
+
# Indicates whether the number is connected to both the WhatsApp Business app and
|
|
55
|
+
# Cloud API through WhatsApp Coexistence.
|
|
56
|
+
#
|
|
57
|
+
# @return [Boolean, nil]
|
|
58
|
+
optional :is_on_biz_app, Telnyx::Internal::Type::Boolean
|
|
59
|
+
|
|
44
60
|
# @!attribute phone_number
|
|
45
61
|
# Phone number in E164 format
|
|
46
62
|
#
|
|
@@ -69,6 +85,22 @@ module Telnyx
|
|
|
69
85
|
# @return [String, nil]
|
|
70
86
|
optional :status, String
|
|
71
87
|
|
|
88
|
+
# @!attribute sync_deadline
|
|
89
|
+
# Deadline for initiating the current coexistence synchronization cycle. This is
|
|
90
|
+
# null when no deadline applies.
|
|
91
|
+
#
|
|
92
|
+
# @return [Time, nil]
|
|
93
|
+
optional :sync_deadline, Time, nil?: true
|
|
94
|
+
|
|
95
|
+
# @!attribute sync_progress
|
|
96
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
97
|
+
# number is synchronizing.
|
|
98
|
+
#
|
|
99
|
+
# @return [Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::SyncProgress, nil]
|
|
100
|
+
optional :sync_progress,
|
|
101
|
+
-> { Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::SyncProgress },
|
|
102
|
+
nil?: true
|
|
103
|
+
|
|
72
104
|
# @!attribute user_id
|
|
73
105
|
# User ID
|
|
74
106
|
#
|
|
@@ -81,15 +113,22 @@ module Telnyx
|
|
|
81
113
|
# @return [String, nil]
|
|
82
114
|
optional :waba_id, String
|
|
83
115
|
|
|
84
|
-
# @!method initialize(calling_enabled: nil, created_at: nil, display_name: nil, enabled: nil, phone_number: nil, phone_number_id: nil, quality_rating: nil, record_type: nil, status: nil, user_id: nil, waba_id: nil)
|
|
116
|
+
# @!method initialize(calling_enabled: nil, coexistence_state: nil, created_at: nil, display_name: nil, enabled: nil, is_on_biz_app: nil, phone_number: nil, phone_number_id: nil, quality_rating: nil, record_type: nil, status: nil, sync_deadline: nil, sync_progress: nil, user_id: nil, waba_id: nil)
|
|
117
|
+
# Some parameter documentations has been truncated, see
|
|
118
|
+
# {Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data} for more details.
|
|
119
|
+
#
|
|
85
120
|
# @param calling_enabled [Boolean]
|
|
86
121
|
#
|
|
122
|
+
# @param coexistence_state [Symbol, Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::CoexistenceState, nil] Current lifecycle state for a coexistence number. This is null for a standard Cl
|
|
123
|
+
#
|
|
87
124
|
# @param created_at [Time]
|
|
88
125
|
#
|
|
89
126
|
# @param display_name [String]
|
|
90
127
|
#
|
|
91
128
|
# @param enabled [Boolean]
|
|
92
129
|
#
|
|
130
|
+
# @param is_on_biz_app [Boolean] Indicates whether the number is connected to both the WhatsApp Business app and
|
|
131
|
+
#
|
|
93
132
|
# @param phone_number [String] Phone number in E164 format
|
|
94
133
|
#
|
|
95
134
|
# @param phone_number_id [String] Whatsapp phone number ID
|
|
@@ -100,9 +139,72 @@ module Telnyx
|
|
|
100
139
|
#
|
|
101
140
|
# @param status [String]
|
|
102
141
|
#
|
|
142
|
+
# @param sync_deadline [Time, nil] Deadline for initiating the current coexistence synchronization cycle. This is n
|
|
143
|
+
#
|
|
144
|
+
# @param sync_progress [Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data::SyncProgress, nil] Synchronization progress. This object is returned only while a coexistence numbe
|
|
145
|
+
#
|
|
103
146
|
# @param user_id [String] User ID
|
|
104
147
|
#
|
|
105
148
|
# @param waba_id [String] WABA ID of Whatsapp business account
|
|
149
|
+
|
|
150
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
151
|
+
# Cloud API number.
|
|
152
|
+
#
|
|
153
|
+
# @see Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data#coexistence_state
|
|
154
|
+
module CoexistenceState
|
|
155
|
+
extend Telnyx::Internal::Type::Enum
|
|
156
|
+
|
|
157
|
+
PENDING_ONBOARDING = :pending_onboarding
|
|
158
|
+
SYNC_PENDING = :sync_pending
|
|
159
|
+
SYNCING = :syncing
|
|
160
|
+
SYNC_COMPLETE = :sync_complete
|
|
161
|
+
ACTIVE = :active
|
|
162
|
+
HISTORY_DECLINED = :history_declined
|
|
163
|
+
SYNC_DEADLINE_EXPIRED = :sync_deadline_expired
|
|
164
|
+
OFFBOARDED = :offboarded
|
|
165
|
+
DISCONNECTED = :disconnected
|
|
166
|
+
|
|
167
|
+
# @!method self.values
|
|
168
|
+
# @return [Array<Symbol>]
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# @see Telnyx::Models::Whatsapp::PhoneNumberGetResponse::Data#sync_progress
|
|
172
|
+
class SyncProgress < Telnyx::Internal::Type::BaseModel
|
|
173
|
+
# @!attribute contacts_status
|
|
174
|
+
#
|
|
175
|
+
# @return [String, nil]
|
|
176
|
+
optional :contacts_status, String
|
|
177
|
+
|
|
178
|
+
# @!attribute history_chunk_order
|
|
179
|
+
#
|
|
180
|
+
# @return [Integer, nil]
|
|
181
|
+
optional :history_chunk_order, Integer, nil?: true
|
|
182
|
+
|
|
183
|
+
# @!attribute history_phase
|
|
184
|
+
#
|
|
185
|
+
# @return [Integer, nil]
|
|
186
|
+
optional :history_phase, Integer, nil?: true
|
|
187
|
+
|
|
188
|
+
# @!attribute history_progress
|
|
189
|
+
#
|
|
190
|
+
# @return [Integer, nil]
|
|
191
|
+
optional :history_progress, Integer, nil?: true
|
|
192
|
+
|
|
193
|
+
# @!attribute history_status
|
|
194
|
+
#
|
|
195
|
+
# @return [String, nil]
|
|
196
|
+
optional :history_status, String
|
|
197
|
+
|
|
198
|
+
# @!method initialize(contacts_status: nil, history_chunk_order: nil, history_phase: nil, history_progress: nil, history_status: nil)
|
|
199
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
200
|
+
# number is synchronizing.
|
|
201
|
+
#
|
|
202
|
+
# @param contacts_status [String]
|
|
203
|
+
# @param history_chunk_order [Integer, nil]
|
|
204
|
+
# @param history_phase [Integer, nil]
|
|
205
|
+
# @param history_progress [Integer, nil]
|
|
206
|
+
# @param history_status [String]
|
|
207
|
+
end
|
|
106
208
|
end
|
|
107
209
|
end
|
|
108
210
|
end
|
|
@@ -10,6 +10,15 @@ module Telnyx
|
|
|
10
10
|
# @return [Boolean, nil]
|
|
11
11
|
optional :calling_enabled, Telnyx::Internal::Type::Boolean
|
|
12
12
|
|
|
13
|
+
# @!attribute coexistence_state
|
|
14
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
15
|
+
# Cloud API number.
|
|
16
|
+
#
|
|
17
|
+
# @return [Symbol, Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState, nil]
|
|
18
|
+
optional :coexistence_state,
|
|
19
|
+
enum: -> { Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState },
|
|
20
|
+
nil?: true
|
|
21
|
+
|
|
13
22
|
# @!attribute created_at
|
|
14
23
|
#
|
|
15
24
|
# @return [Time, nil]
|
|
@@ -25,6 +34,13 @@ module Telnyx
|
|
|
25
34
|
# @return [Boolean, nil]
|
|
26
35
|
optional :enabled, Telnyx::Internal::Type::Boolean
|
|
27
36
|
|
|
37
|
+
# @!attribute is_on_biz_app
|
|
38
|
+
# Indicates whether the number is connected to both the WhatsApp Business app and
|
|
39
|
+
# Cloud API through WhatsApp Coexistence.
|
|
40
|
+
#
|
|
41
|
+
# @return [Boolean, nil]
|
|
42
|
+
optional :is_on_biz_app, Telnyx::Internal::Type::Boolean
|
|
43
|
+
|
|
28
44
|
# @!attribute phone_number
|
|
29
45
|
# Phone number in E164 format
|
|
30
46
|
#
|
|
@@ -53,6 +69,22 @@ module Telnyx
|
|
|
53
69
|
# @return [String, nil]
|
|
54
70
|
optional :status, String
|
|
55
71
|
|
|
72
|
+
# @!attribute sync_deadline
|
|
73
|
+
# Deadline for initiating the current coexistence synchronization cycle. This is
|
|
74
|
+
# null when no deadline applies.
|
|
75
|
+
#
|
|
76
|
+
# @return [Time, nil]
|
|
77
|
+
optional :sync_deadline, Time, nil?: true
|
|
78
|
+
|
|
79
|
+
# @!attribute sync_progress
|
|
80
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
81
|
+
# number is synchronizing.
|
|
82
|
+
#
|
|
83
|
+
# @return [Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress, nil]
|
|
84
|
+
optional :sync_progress,
|
|
85
|
+
-> { Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress },
|
|
86
|
+
nil?: true
|
|
87
|
+
|
|
56
88
|
# @!attribute user_id
|
|
57
89
|
# User ID
|
|
58
90
|
#
|
|
@@ -65,15 +97,22 @@ module Telnyx
|
|
|
65
97
|
# @return [String, nil]
|
|
66
98
|
optional :waba_id, String
|
|
67
99
|
|
|
68
|
-
# @!method initialize(calling_enabled: nil, created_at: nil, display_name: nil, enabled: nil, phone_number: nil, phone_number_id: nil, quality_rating: nil, record_type: nil, status: nil, user_id: nil, waba_id: nil)
|
|
100
|
+
# @!method initialize(calling_enabled: nil, coexistence_state: nil, created_at: nil, display_name: nil, enabled: nil, is_on_biz_app: nil, phone_number: nil, phone_number_id: nil, quality_rating: nil, record_type: nil, status: nil, sync_deadline: nil, sync_progress: nil, user_id: nil, waba_id: nil)
|
|
101
|
+
# Some parameter documentations has been truncated, see
|
|
102
|
+
# {Telnyx::Models::Whatsapp::PhoneNumberListResponse} for more details.
|
|
103
|
+
#
|
|
69
104
|
# @param calling_enabled [Boolean]
|
|
70
105
|
#
|
|
106
|
+
# @param coexistence_state [Symbol, Telnyx::Models::Whatsapp::PhoneNumberListResponse::CoexistenceState, nil] Current lifecycle state for a coexistence number. This is null for a standard Cl
|
|
107
|
+
#
|
|
71
108
|
# @param created_at [Time]
|
|
72
109
|
#
|
|
73
110
|
# @param display_name [String]
|
|
74
111
|
#
|
|
75
112
|
# @param enabled [Boolean]
|
|
76
113
|
#
|
|
114
|
+
# @param is_on_biz_app [Boolean] Indicates whether the number is connected to both the WhatsApp Business app and
|
|
115
|
+
#
|
|
77
116
|
# @param phone_number [String] Phone number in E164 format
|
|
78
117
|
#
|
|
79
118
|
# @param phone_number_id [String] Whatsapp phone number ID
|
|
@@ -84,9 +123,72 @@ module Telnyx
|
|
|
84
123
|
#
|
|
85
124
|
# @param status [String]
|
|
86
125
|
#
|
|
126
|
+
# @param sync_deadline [Time, nil] Deadline for initiating the current coexistence synchronization cycle. This is n
|
|
127
|
+
#
|
|
128
|
+
# @param sync_progress [Telnyx::Models::Whatsapp::PhoneNumberListResponse::SyncProgress, nil] Synchronization progress. This object is returned only while a coexistence numbe
|
|
129
|
+
#
|
|
87
130
|
# @param user_id [String] User ID
|
|
88
131
|
#
|
|
89
132
|
# @param waba_id [String] WABA ID of Whatsapp business account
|
|
133
|
+
|
|
134
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
135
|
+
# Cloud API number.
|
|
136
|
+
#
|
|
137
|
+
# @see Telnyx::Models::Whatsapp::PhoneNumberListResponse#coexistence_state
|
|
138
|
+
module CoexistenceState
|
|
139
|
+
extend Telnyx::Internal::Type::Enum
|
|
140
|
+
|
|
141
|
+
PENDING_ONBOARDING = :pending_onboarding
|
|
142
|
+
SYNC_PENDING = :sync_pending
|
|
143
|
+
SYNCING = :syncing
|
|
144
|
+
SYNC_COMPLETE = :sync_complete
|
|
145
|
+
ACTIVE = :active
|
|
146
|
+
HISTORY_DECLINED = :history_declined
|
|
147
|
+
SYNC_DEADLINE_EXPIRED = :sync_deadline_expired
|
|
148
|
+
OFFBOARDED = :offboarded
|
|
149
|
+
DISCONNECTED = :disconnected
|
|
150
|
+
|
|
151
|
+
# @!method self.values
|
|
152
|
+
# @return [Array<Symbol>]
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# @see Telnyx::Models::Whatsapp::PhoneNumberListResponse#sync_progress
|
|
156
|
+
class SyncProgress < Telnyx::Internal::Type::BaseModel
|
|
157
|
+
# @!attribute contacts_status
|
|
158
|
+
#
|
|
159
|
+
# @return [String, nil]
|
|
160
|
+
optional :contacts_status, String
|
|
161
|
+
|
|
162
|
+
# @!attribute history_chunk_order
|
|
163
|
+
#
|
|
164
|
+
# @return [Integer, nil]
|
|
165
|
+
optional :history_chunk_order, Integer, nil?: true
|
|
166
|
+
|
|
167
|
+
# @!attribute history_phase
|
|
168
|
+
#
|
|
169
|
+
# @return [Integer, nil]
|
|
170
|
+
optional :history_phase, Integer, nil?: true
|
|
171
|
+
|
|
172
|
+
# @!attribute history_progress
|
|
173
|
+
#
|
|
174
|
+
# @return [Integer, nil]
|
|
175
|
+
optional :history_progress, Integer, nil?: true
|
|
176
|
+
|
|
177
|
+
# @!attribute history_status
|
|
178
|
+
#
|
|
179
|
+
# @return [String, nil]
|
|
180
|
+
optional :history_status, String
|
|
181
|
+
|
|
182
|
+
# @!method initialize(contacts_status: nil, history_chunk_order: nil, history_phase: nil, history_progress: nil, history_status: nil)
|
|
183
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
184
|
+
# number is synchronizing.
|
|
185
|
+
#
|
|
186
|
+
# @param contacts_status [String]
|
|
187
|
+
# @param history_chunk_order [Integer, nil]
|
|
188
|
+
# @param history_phase [Integer, nil]
|
|
189
|
+
# @param history_progress [Integer, nil]
|
|
190
|
+
# @param history_status [String]
|
|
191
|
+
end
|
|
90
192
|
end
|
|
91
193
|
end
|
|
92
194
|
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Whatsapp
|
|
6
|
+
# @see Telnyx::Resources::Whatsapp::PhoneNumbers#retrieve_phone_number
|
|
7
|
+
class PhoneNumberRetrievePhoneNumberParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute phone_number
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :phone_number, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(phone_number:, request_options: {})
|
|
17
|
+
# @param phone_number [String]
|
|
18
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Whatsapp
|
|
6
|
+
# @see Telnyx::Resources::Whatsapp::PhoneNumbers#retrieve_phone_number
|
|
7
|
+
class PhoneNumberRetrievePhoneNumberResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data]
|
|
11
|
+
required :data, -> { Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data }
|
|
12
|
+
|
|
13
|
+
# @!method initialize(data:)
|
|
14
|
+
# @param data [Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data]
|
|
15
|
+
|
|
16
|
+
# @see Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse#data
|
|
17
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
18
|
+
# @!attribute calling_enabled
|
|
19
|
+
#
|
|
20
|
+
# @return [Boolean, nil]
|
|
21
|
+
optional :calling_enabled, Telnyx::Internal::Type::Boolean
|
|
22
|
+
|
|
23
|
+
# @!attribute coexistence_state
|
|
24
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
25
|
+
# Cloud API number.
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState, nil]
|
|
28
|
+
optional :coexistence_state,
|
|
29
|
+
enum: -> { Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState },
|
|
30
|
+
nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute created_at
|
|
33
|
+
#
|
|
34
|
+
# @return [Time, nil]
|
|
35
|
+
optional :created_at, Time
|
|
36
|
+
|
|
37
|
+
# @!attribute display_name
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :display_name, String
|
|
41
|
+
|
|
42
|
+
# @!attribute enabled
|
|
43
|
+
#
|
|
44
|
+
# @return [Boolean, nil]
|
|
45
|
+
optional :enabled, Telnyx::Internal::Type::Boolean
|
|
46
|
+
|
|
47
|
+
# @!attribute is_on_biz_app
|
|
48
|
+
# Indicates whether the number is connected to both the WhatsApp Business app and
|
|
49
|
+
# Cloud API through WhatsApp Coexistence.
|
|
50
|
+
#
|
|
51
|
+
# @return [Boolean, nil]
|
|
52
|
+
optional :is_on_biz_app, Telnyx::Internal::Type::Boolean
|
|
53
|
+
|
|
54
|
+
# @!attribute phone_number
|
|
55
|
+
# Phone number in E164 format
|
|
56
|
+
#
|
|
57
|
+
# @return [String, nil]
|
|
58
|
+
optional :phone_number, String
|
|
59
|
+
|
|
60
|
+
# @!attribute phone_number_id
|
|
61
|
+
# Whatsapp phone number ID
|
|
62
|
+
#
|
|
63
|
+
# @return [String, nil]
|
|
64
|
+
optional :phone_number_id, String
|
|
65
|
+
|
|
66
|
+
# @!attribute quality_rating
|
|
67
|
+
# Whatsapp quality rating
|
|
68
|
+
#
|
|
69
|
+
# @return [String, nil]
|
|
70
|
+
optional :quality_rating, String
|
|
71
|
+
|
|
72
|
+
# @!attribute record_type
|
|
73
|
+
#
|
|
74
|
+
# @return [String, nil]
|
|
75
|
+
optional :record_type, String
|
|
76
|
+
|
|
77
|
+
# @!attribute status
|
|
78
|
+
#
|
|
79
|
+
# @return [String, nil]
|
|
80
|
+
optional :status, String
|
|
81
|
+
|
|
82
|
+
# @!attribute sync_deadline
|
|
83
|
+
# Deadline for initiating the current coexistence synchronization cycle. This is
|
|
84
|
+
# null when no deadline applies.
|
|
85
|
+
#
|
|
86
|
+
# @return [Time, nil]
|
|
87
|
+
optional :sync_deadline, Time, nil?: true
|
|
88
|
+
|
|
89
|
+
# @!attribute sync_progress
|
|
90
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
91
|
+
# number is synchronizing.
|
|
92
|
+
#
|
|
93
|
+
# @return [Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::SyncProgress, nil]
|
|
94
|
+
optional :sync_progress,
|
|
95
|
+
-> { Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::SyncProgress },
|
|
96
|
+
nil?: true
|
|
97
|
+
|
|
98
|
+
# @!attribute user_id
|
|
99
|
+
# User ID
|
|
100
|
+
#
|
|
101
|
+
# @return [String, nil]
|
|
102
|
+
optional :user_id, String
|
|
103
|
+
|
|
104
|
+
# @!attribute waba_id
|
|
105
|
+
# WABA ID of Whatsapp business account
|
|
106
|
+
#
|
|
107
|
+
# @return [String, nil]
|
|
108
|
+
optional :waba_id, String
|
|
109
|
+
|
|
110
|
+
# @!method initialize(calling_enabled: nil, coexistence_state: nil, created_at: nil, display_name: nil, enabled: nil, is_on_biz_app: nil, phone_number: nil, phone_number_id: nil, quality_rating: nil, record_type: nil, status: nil, sync_deadline: nil, sync_progress: nil, user_id: nil, waba_id: nil)
|
|
111
|
+
# Some parameter documentations has been truncated, see
|
|
112
|
+
# {Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data} for
|
|
113
|
+
# more details.
|
|
114
|
+
#
|
|
115
|
+
# @param calling_enabled [Boolean]
|
|
116
|
+
#
|
|
117
|
+
# @param coexistence_state [Symbol, Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::CoexistenceState, nil] Current lifecycle state for a coexistence number. This is null for a standard Cl
|
|
118
|
+
#
|
|
119
|
+
# @param created_at [Time]
|
|
120
|
+
#
|
|
121
|
+
# @param display_name [String]
|
|
122
|
+
#
|
|
123
|
+
# @param enabled [Boolean]
|
|
124
|
+
#
|
|
125
|
+
# @param is_on_biz_app [Boolean] Indicates whether the number is connected to both the WhatsApp Business app and
|
|
126
|
+
#
|
|
127
|
+
# @param phone_number [String] Phone number in E164 format
|
|
128
|
+
#
|
|
129
|
+
# @param phone_number_id [String] Whatsapp phone number ID
|
|
130
|
+
#
|
|
131
|
+
# @param quality_rating [String] Whatsapp quality rating
|
|
132
|
+
#
|
|
133
|
+
# @param record_type [String]
|
|
134
|
+
#
|
|
135
|
+
# @param status [String]
|
|
136
|
+
#
|
|
137
|
+
# @param sync_deadline [Time, nil] Deadline for initiating the current coexistence synchronization cycle. This is n
|
|
138
|
+
#
|
|
139
|
+
# @param sync_progress [Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data::SyncProgress, nil] Synchronization progress. This object is returned only while a coexistence numbe
|
|
140
|
+
#
|
|
141
|
+
# @param user_id [String] User ID
|
|
142
|
+
#
|
|
143
|
+
# @param waba_id [String] WABA ID of Whatsapp business account
|
|
144
|
+
|
|
145
|
+
# Current lifecycle state for a coexistence number. This is null for a standard
|
|
146
|
+
# Cloud API number.
|
|
147
|
+
#
|
|
148
|
+
# @see Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data#coexistence_state
|
|
149
|
+
module CoexistenceState
|
|
150
|
+
extend Telnyx::Internal::Type::Enum
|
|
151
|
+
|
|
152
|
+
PENDING_ONBOARDING = :pending_onboarding
|
|
153
|
+
SYNC_PENDING = :sync_pending
|
|
154
|
+
SYNCING = :syncing
|
|
155
|
+
SYNC_COMPLETE = :sync_complete
|
|
156
|
+
ACTIVE = :active
|
|
157
|
+
HISTORY_DECLINED = :history_declined
|
|
158
|
+
SYNC_DEADLINE_EXPIRED = :sync_deadline_expired
|
|
159
|
+
OFFBOARDED = :offboarded
|
|
160
|
+
DISCONNECTED = :disconnected
|
|
161
|
+
|
|
162
|
+
# @!method self.values
|
|
163
|
+
# @return [Array<Symbol>]
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# @see Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse::Data#sync_progress
|
|
167
|
+
class SyncProgress < Telnyx::Internal::Type::BaseModel
|
|
168
|
+
# @!attribute contacts_status
|
|
169
|
+
#
|
|
170
|
+
# @return [String, nil]
|
|
171
|
+
optional :contacts_status, String
|
|
172
|
+
|
|
173
|
+
# @!attribute history_chunk_order
|
|
174
|
+
#
|
|
175
|
+
# @return [Integer, nil]
|
|
176
|
+
optional :history_chunk_order, Integer, nil?: true
|
|
177
|
+
|
|
178
|
+
# @!attribute history_phase
|
|
179
|
+
#
|
|
180
|
+
# @return [Integer, nil]
|
|
181
|
+
optional :history_phase, Integer, nil?: true
|
|
182
|
+
|
|
183
|
+
# @!attribute history_progress
|
|
184
|
+
#
|
|
185
|
+
# @return [Integer, nil]
|
|
186
|
+
optional :history_progress, Integer, nil?: true
|
|
187
|
+
|
|
188
|
+
# @!attribute history_status
|
|
189
|
+
#
|
|
190
|
+
# @return [String, nil]
|
|
191
|
+
optional :history_status, String
|
|
192
|
+
|
|
193
|
+
# @!method initialize(contacts_status: nil, history_chunk_order: nil, history_phase: nil, history_progress: nil, history_status: nil)
|
|
194
|
+
# Synchronization progress. This object is returned only while a coexistence
|
|
195
|
+
# number is synchronizing.
|
|
196
|
+
#
|
|
197
|
+
# @param contacts_status [String]
|
|
198
|
+
# @param history_chunk_order [Integer, nil]
|
|
199
|
+
# @param history_phase [Integer, nil]
|
|
200
|
+
# @param history_progress [Integer, nil]
|
|
201
|
+
# @param history_status [String]
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
end
|