sentdm 0.26.0 → 0.28.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 +40 -0
- data/README.md +1 -27
- data/lib/sentdm/client.rb +71 -8
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/models/contact_create_response.rb +249 -0
- data/lib/sentdm/models/contact_delete_params.rb +16 -2
- data/lib/sentdm/models/contact_list_response.rb +299 -16
- data/lib/sentdm/models/contact_retrieve_message_summary_response.rb +186 -0
- data/lib/sentdm/models/contact_retrieve_response.rb +249 -0
- data/lib/sentdm/models/contact_update_response.rb +249 -0
- data/lib/sentdm/models/conversation_list_messages_response.rb +436 -0
- data/lib/sentdm/models/conversation_list_response.rb +433 -0
- data/lib/sentdm/models/inbound_message_event.rb +52 -0
- data/lib/sentdm/models/inbound_message_event_payload.rb +81 -0
- data/lib/sentdm/models/me_retrieve_response.rb +242 -12
- data/lib/sentdm/models/message_event.rb +53 -0
- data/lib/sentdm/models/message_event_payload.rb +92 -0
- data/lib/sentdm/models/message_retrieve_activities_response.rb +165 -7
- data/lib/sentdm/models/message_retrieve_status_response.rb +74 -6
- data/lib/sentdm/models/message_send_response.rb +113 -28
- data/lib/sentdm/models/number_lookup_response.rb +74 -6
- data/lib/sentdm/models/profile_complete_response.rb +74 -6
- data/lib/sentdm/models/profile_create_params.rb +378 -26
- data/lib/sentdm/models/profile_create_response.rb +760 -0
- data/lib/sentdm/models/profile_delete_params.rb +16 -2
- data/lib/sentdm/models/profile_list_response.rb +825 -14
- data/lib/sentdm/models/profile_retrieve_response.rb +762 -0
- data/lib/sentdm/models/profile_update_params.rb +391 -24
- data/lib/sentdm/models/profile_update_response.rb +760 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +156 -3
- data/lib/sentdm/models/profiles/campaign_create_response.rb +420 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +17 -2
- data/lib/sentdm/models/profiles/campaign_list_response.rb +421 -0
- data/lib/sentdm/models/profiles/campaign_update_params.rb +156 -3
- data/lib/sentdm/models/profiles/campaign_update_response.rb +420 -0
- data/lib/sentdm/models/template_create_response.rb +209 -0
- data/lib/sentdm/models/template_event.rb +52 -0
- data/lib/sentdm/models/template_event_payload.rb +88 -0
- data/lib/sentdm/models/template_list_params.rb +9 -2
- data/lib/sentdm/models/template_list_response.rb +262 -16
- data/lib/sentdm/models/template_retrieve_response.rb +209 -0
- data/lib/sentdm/models/template_update_response.rb +209 -0
- data/lib/sentdm/models/user_invite_response.rb +201 -0
- data/lib/sentdm/models/user_list_response.rb +259 -14
- data/lib/sentdm/models/user_remove_params.rb +16 -2
- data/lib/sentdm/models/user_retrieve_response.rb +201 -0
- data/lib/sentdm/models/user_update_role_response.rb +201 -0
- data/lib/sentdm/models/webhook_create_response.rb +229 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +213 -13
- data/lib/sentdm/models/webhook_list_events_response.rb +207 -16
- data/lib/sentdm/models/webhook_list_response.rb +280 -15
- data/lib/sentdm/models/webhook_retrieve_response.rb +229 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +17 -2
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +74 -6
- data/lib/sentdm/models/webhook_test_response.rb +74 -6
- data/lib/sentdm/models/webhook_toggle_status_response.rb +229 -0
- data/lib/sentdm/models/webhook_update_response.rb +229 -0
- data/lib/sentdm/models.rb +11 -51
- data/lib/sentdm/resources/contacts.rb +30 -13
- data/lib/sentdm/resources/conversations.rb +12 -4
- data/lib/sentdm/resources/me.rb +6 -1
- data/lib/sentdm/resources/messages.rb +17 -5
- data/lib/sentdm/resources/numbers.rb +6 -1
- data/lib/sentdm/resources/profiles/campaigns.rb +47 -9
- data/lib/sentdm/resources/profiles.rb +137 -61
- data/lib/sentdm/resources/templates.rb +14 -8
- data/lib/sentdm/resources/users.rb +15 -10
- data/lib/sentdm/resources/webhooks.rb +19 -9
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +28 -32
- data/rbi/sentdm/client.rbi +71 -8
- data/rbi/sentdm/models/contact_create_response.rbi +407 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +19 -2
- data/rbi/sentdm/models/contact_list_response.rbi +527 -21
- data/rbi/sentdm/models/contact_retrieve_message_summary_response.rbi +397 -0
- data/rbi/sentdm/models/contact_retrieve_response.rbi +409 -0
- data/rbi/sentdm/models/contact_update_response.rbi +407 -0
- data/rbi/sentdm/models/conversation_list_messages_response.rbi +843 -0
- data/rbi/sentdm/models/conversation_list_response.rbi +819 -0
- data/rbi/sentdm/models/inbound_message_event.rbi +88 -0
- data/rbi/sentdm/models/inbound_message_event_payload.rbi +122 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +367 -16
- data/rbi/sentdm/models/message_event.rbi +86 -0
- data/rbi/sentdm/models/message_event_payload.rbi +132 -0
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +335 -11
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +148 -8
- data/rbi/sentdm/models/message_send_response.rbi +178 -32
- data/rbi/sentdm/models/number_lookup_response.rbi +135 -8
- data/rbi/sentdm/models/profile_complete_response.rbi +137 -8
- data/rbi/sentdm/models/profile_create_params.rbi +592 -42
- data/rbi/sentdm/models/profile_create_response.rbi +1226 -0
- data/rbi/sentdm/models/profile_delete_params.rbi +19 -2
- data/rbi/sentdm/models/profile_list_response.rbi +1366 -18
- data/rbi/sentdm/models/profile_retrieve_response.rbi +1230 -0
- data/rbi/sentdm/models/profile_update_params.rbi +610 -30
- data/rbi/sentdm/models/profile_update_response.rbi +1226 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +218 -4
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +674 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +14 -1
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +667 -0
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +218 -4
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +674 -0
- data/rbi/sentdm/models/template_create_response.rbi +349 -0
- data/rbi/sentdm/models/template_event.rbi +84 -0
- data/rbi/sentdm/models/template_event_payload.rbi +131 -0
- data/rbi/sentdm/models/template_list_params.rbi +10 -2
- data/rbi/sentdm/models/template_list_response.rbi +469 -21
- data/rbi/sentdm/models/template_retrieve_response.rbi +355 -0
- data/rbi/sentdm/models/template_update_response.rbi +349 -0
- data/rbi/sentdm/models/user_invite_response.rbi +336 -0
- data/rbi/sentdm/models/user_list_response.rbi +463 -18
- data/rbi/sentdm/models/user_remove_params.rbi +19 -2
- data/rbi/sentdm/models/user_retrieve_response.rbi +336 -0
- data/rbi/sentdm/models/user_update_role_response.rbi +341 -0
- data/rbi/sentdm/models/webhook_create_response.rbi +361 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +433 -16
- data/rbi/sentdm/models/webhook_list_events_response.rbi +379 -19
- data/rbi/sentdm/models/webhook_list_response.rbi +480 -19
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +363 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +14 -1
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +148 -8
- data/rbi/sentdm/models/webhook_test_response.rbi +135 -8
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +379 -0
- data/rbi/sentdm/models/webhook_update_response.rbi +361 -0
- data/rbi/sentdm/models.rbi +11 -53
- data/rbi/sentdm/resources/contacts.rbi +24 -9
- data/rbi/sentdm/resources/conversations.rbi +10 -2
- data/rbi/sentdm/resources/me.rbi +6 -1
- data/rbi/sentdm/resources/messages.rbi +17 -5
- data/rbi/sentdm/resources/numbers.rbi +6 -1
- data/rbi/sentdm/resources/profiles/campaigns.rbi +36 -6
- data/rbi/sentdm/resources/profiles.rbi +177 -68
- data/rbi/sentdm/resources/templates.rbi +15 -5
- data/rbi/sentdm/resources/users.rbi +12 -6
- data/rbi/sentdm/resources/webhooks.rbi +15 -5
- data/sig/sentdm/models/contact_create_response.rbs +216 -0
- data/sig/sentdm/models/contact_delete_params.rbs +10 -6
- data/sig/sentdm/models/contact_list_response.rbs +263 -20
- data/sig/sentdm/models/contact_retrieve_message_summary_response.rbs +182 -0
- data/sig/sentdm/models/contact_retrieve_response.rbs +216 -0
- data/sig/sentdm/models/contact_update_response.rbs +216 -0
- data/sig/sentdm/models/conversation_list_messages_response.rbs +404 -0
- data/sig/sentdm/models/conversation_list_response.rbs +404 -0
- data/sig/sentdm/models/inbound_message_event.rbs +39 -0
- data/sig/sentdm/models/inbound_message_event_payload.rbs +69 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +176 -18
- data/sig/sentdm/models/message_event.rbs +39 -0
- data/sig/sentdm/models/message_event_payload.rbs +72 -0
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +147 -12
- data/sig/sentdm/models/message_retrieve_status_response.rbs +71 -9
- data/sig/sentdm/models/message_send_response.rbs +71 -9
- data/sig/sentdm/models/number_lookup_response.rbs +71 -9
- data/sig/sentdm/models/profile_complete_response.rbs +71 -9
- data/sig/sentdm/models/profile_create_params.rbs +271 -24
- data/sig/sentdm/models/profile_create_response.rbs +559 -0
- data/sig/sentdm/models/profile_delete_params.rbs +10 -6
- data/sig/sentdm/models/profile_list_response.rbs +615 -15
- data/sig/sentdm/models/profile_retrieve_response.rbs +559 -0
- data/sig/sentdm/models/profile_update_params.rbs +263 -12
- data/sig/sentdm/models/profile_update_response.rbs +559 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +108 -4
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +357 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +15 -8
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +357 -0
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +108 -4
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +357 -0
- data/sig/sentdm/models/template_create_response.rbs +182 -0
- data/sig/sentdm/models/template_event.rbs +39 -0
- data/sig/sentdm/models/template_event_payload.rbs +76 -0
- data/sig/sentdm/models/template_list_response.rbs +230 -19
- data/sig/sentdm/models/template_retrieve_response.rbs +182 -0
- data/sig/sentdm/models/template_update_response.rbs +182 -0
- data/sig/sentdm/models/user_invite_response.rbs +177 -0
- data/sig/sentdm/models/user_list_response.rbs +233 -15
- data/sig/sentdm/models/user_remove_params.rbs +10 -6
- data/sig/sentdm/models/user_retrieve_response.rbs +177 -0
- data/sig/sentdm/models/user_update_role_response.rbs +177 -0
- data/sig/sentdm/models/webhook_create_response.rbs +208 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +203 -15
- data/sig/sentdm/models/webhook_list_events_response.rbs +160 -19
- data/sig/sentdm/models/webhook_list_response.rbs +255 -20
- data/sig/sentdm/models/webhook_retrieve_response.rbs +208 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +17 -8
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +71 -9
- data/sig/sentdm/models/webhook_test_response.rbs +71 -9
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +208 -0
- data/sig/sentdm/models/webhook_update_response.rbs +208 -0
- data/sig/sentdm/models.rbs +11 -51
- data/sig/sentdm/resources/contacts.rbs +4 -4
- data/sig/sentdm/resources/conversations.rbs +2 -2
- data/sig/sentdm/resources/profiles/campaigns.rbs +5 -5
- data/sig/sentdm/resources/profiles.rbs +11 -11
- data/sig/sentdm/resources/templates.rbs +3 -3
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +4 -4
- metadata +86 -98
- data/lib/sentdm/models/api_meta.rb +0 -34
- data/lib/sentdm/models/api_response_of_contact.rb +0 -46
- data/lib/sentdm/models/api_response_of_contact_message_summary.rb +0 -43
- data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +0 -43
- data/lib/sentdm/models/api_response_of_profile_detail.rb +0 -43
- data/lib/sentdm/models/api_response_of_user.rb +0 -43
- data/lib/sentdm/models/api_response_template.rb +0 -43
- data/lib/sentdm/models/api_response_webhook.rb +0 -43
- data/lib/sentdm/models/billing_contact_info.rb +0 -47
- data/lib/sentdm/models/brand_business_info.rb +0 -114
- data/lib/sentdm/models/brand_compliance_info.rb +0 -67
- data/lib/sentdm/models/brand_contact_info.rb +0 -58
- data/lib/sentdm/models/brands_brand_data.rb +0 -34
- data/lib/sentdm/models/contact_message_summary.rb +0 -76
- data/lib/sentdm/models/contact_response.rb +0 -126
- data/lib/sentdm/models/conversation_messages_list.rb +0 -245
- data/lib/sentdm/models/error_detail.rb +0 -42
- data/lib/sentdm/models/mutation_request.rb +0 -20
- data/lib/sentdm/models/pagination_meta.rb +0 -80
- data/lib/sentdm/models/payment_details.rb +0 -44
- data/lib/sentdm/models/profile_detail.rb +0 -597
- data/lib/sentdm/models/profile_settings.rb +0 -66
- data/lib/sentdm/models/profiles/api_response_of_brand_campaign.rb +0 -45
- data/lib/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rb +0 -45
- data/lib/sentdm/models/profiles/brand_campaign.rb +0 -247
- data/lib/sentdm/models/profiles/campaign_data.rb +0 -130
- data/lib/sentdm/models/profiles/campaign_use_case.rb +0 -71
- data/lib/sentdm/models/profiles/campaign_use_case_data.rb +0 -29
- data/lib/sentdm/models/template.rb +0 -90
- data/lib/sentdm/models/user_response.rb +0 -82
- data/lib/sentdm/models/webhook_event_type.rb +0 -45
- data/lib/sentdm/models/webhook_response.rb +0 -95
- data/rbi/sentdm/models/api_meta.rbi +0 -55
- data/rbi/sentdm/models/api_response_of_contact.rbi +0 -74
- data/rbi/sentdm/models/api_response_of_contact_message_summary.rbi +0 -79
- data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +0 -79
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +0 -74
- data/rbi/sentdm/models/api_response_of_user.rbi +0 -74
- data/rbi/sentdm/models/api_response_template.rbi +0 -74
- data/rbi/sentdm/models/api_response_webhook.rbi +0 -74
- data/rbi/sentdm/models/billing_contact_info.rbi +0 -65
- data/rbi/sentdm/models/brand_business_info.rbi +0 -162
- data/rbi/sentdm/models/brand_compliance_info.rbi +0 -84
- data/rbi/sentdm/models/brand_contact_info.rbi +0 -78
- data/rbi/sentdm/models/brands_brand_data.rbi +0 -65
- data/rbi/sentdm/models/contact_message_summary.rbi +0 -144
- data/rbi/sentdm/models/contact_response.rbi +0 -183
- data/rbi/sentdm/models/conversation_messages_list.rbi +0 -419
- data/rbi/sentdm/models/error_detail.rbi +0 -66
- data/rbi/sentdm/models/mutation_request.rbi +0 -32
- data/rbi/sentdm/models/pagination_meta.rbi +0 -135
- data/rbi/sentdm/models/payment_details.rbi +0 -59
- data/rbi/sentdm/models/profile_detail.rbi +0 -866
- data/rbi/sentdm/models/profile_settings.rbi +0 -86
- data/rbi/sentdm/models/profiles/api_response_of_brand_campaign.rbi +0 -81
- data/rbi/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbi +0 -76
- data/rbi/sentdm/models/profiles/brand_campaign.rbi +0 -299
- data/rbi/sentdm/models/profiles/campaign_data.rbi +0 -146
- data/rbi/sentdm/models/profiles/campaign_use_case.rbi +0 -110
- data/rbi/sentdm/models/profiles/campaign_use_case_data.rbi +0 -51
- data/rbi/sentdm/models/template.rbi +0 -129
- data/rbi/sentdm/models/user_response.rbi +0 -118
- data/rbi/sentdm/models/webhook_event_type.rbi +0 -74
- data/rbi/sentdm/models/webhook_response.rbi +0 -140
- data/sig/sentdm/models/api_meta.rbs +0 -27
- data/sig/sentdm/models/api_response_of_contact.rbs +0 -39
- data/sig/sentdm/models/api_response_of_contact_message_summary.rbs +0 -39
- data/sig/sentdm/models/api_response_of_conversation_messages_list.rbs +0 -39
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +0 -39
- data/sig/sentdm/models/api_response_of_user.rbs +0 -39
- data/sig/sentdm/models/api_response_template.rbs +0 -39
- data/sig/sentdm/models/api_response_webhook.rbs +0 -39
- data/sig/sentdm/models/billing_contact_info.rbs +0 -30
- data/sig/sentdm/models/brand_business_info.rbs +0 -89
- data/sig/sentdm/models/brand_compliance_info.rbs +0 -50
- data/sig/sentdm/models/brand_contact_info.rbs +0 -45
- data/sig/sentdm/models/brands_brand_data.rbs +0 -30
- data/sig/sentdm/models/contact_message_summary.rbs +0 -84
- data/sig/sentdm/models/contact_response.rbs +0 -111
- data/sig/sentdm/models/conversation_messages_list.rbs +0 -240
- data/sig/sentdm/models/error_detail.rbs +0 -39
- data/sig/sentdm/models/mutation_request.rbs +0 -15
- data/sig/sentdm/models/pagination_meta.rbs +0 -67
- data/sig/sentdm/models/payment_details.rbs +0 -30
- data/sig/sentdm/models/profile_detail.rbs +0 -469
- data/sig/sentdm/models/profile_settings.rbs +0 -50
- data/sig/sentdm/models/profiles/api_response_of_brand_campaign.rbs +0 -41
- data/sig/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbs +0 -41
- data/sig/sentdm/models/profiles/brand_campaign.rbs +0 -194
- data/sig/sentdm/models/profiles/campaign_data.rbs +0 -87
- data/sig/sentdm/models/profiles/campaign_use_case.rbs +0 -66
- data/sig/sentdm/models/profiles/campaign_use_case_data.rbs +0 -27
- data/sig/sentdm/models/template.rbs +0 -79
- data/sig/sentdm/models/user_response.rbs +0 -72
- data/sig/sentdm/models/webhook_event_type.rbs +0 -51
- data/sig/sentdm/models/webhook_response.rbs +0 -103
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
# @see Sentdm::Resources::Users#retrieve
|
|
6
|
-
class APIResponseOfUser < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data
|
|
8
|
-
# User response for v3 API
|
|
9
|
-
#
|
|
10
|
-
# @return [Sentdm::Models::UserResponse, nil]
|
|
11
|
-
optional :data, -> { Sentdm::UserResponse }, nil?: true
|
|
12
|
-
|
|
13
|
-
# @!attribute error
|
|
14
|
-
# Error information
|
|
15
|
-
#
|
|
16
|
-
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
17
|
-
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
18
|
-
|
|
19
|
-
# @!attribute meta
|
|
20
|
-
# Request and response metadata
|
|
21
|
-
#
|
|
22
|
-
# @return [Sentdm::Models::APIMeta, nil]
|
|
23
|
-
optional :meta, -> { Sentdm::APIMeta }
|
|
24
|
-
|
|
25
|
-
# @!attribute success
|
|
26
|
-
# Indicates whether the request was successful
|
|
27
|
-
#
|
|
28
|
-
# @return [Boolean, nil]
|
|
29
|
-
optional :success, Sentdm::Internal::Type::Boolean
|
|
30
|
-
|
|
31
|
-
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
32
|
-
# Standard API response envelope for all v3 endpoints
|
|
33
|
-
#
|
|
34
|
-
# @param data [Sentdm::Models::UserResponse, nil] User response for v3 API
|
|
35
|
-
#
|
|
36
|
-
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
37
|
-
#
|
|
38
|
-
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
39
|
-
#
|
|
40
|
-
# @param success [Boolean] Indicates whether the request was successful
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
# @see Sentdm::Resources::Templates#create
|
|
6
|
-
class APIResponseTemplate < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data
|
|
8
|
-
# Template response for v3 API
|
|
9
|
-
#
|
|
10
|
-
# @return [Sentdm::Models::Template, nil]
|
|
11
|
-
optional :data, -> { Sentdm::Template }, nil?: true
|
|
12
|
-
|
|
13
|
-
# @!attribute error
|
|
14
|
-
# Error information
|
|
15
|
-
#
|
|
16
|
-
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
17
|
-
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
18
|
-
|
|
19
|
-
# @!attribute meta
|
|
20
|
-
# Request and response metadata
|
|
21
|
-
#
|
|
22
|
-
# @return [Sentdm::Models::APIMeta, nil]
|
|
23
|
-
optional :meta, -> { Sentdm::APIMeta }
|
|
24
|
-
|
|
25
|
-
# @!attribute success
|
|
26
|
-
# Indicates whether the request was successful
|
|
27
|
-
#
|
|
28
|
-
# @return [Boolean, nil]
|
|
29
|
-
optional :success, Sentdm::Internal::Type::Boolean
|
|
30
|
-
|
|
31
|
-
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
32
|
-
# Standard API response envelope for all v3 endpoints
|
|
33
|
-
#
|
|
34
|
-
# @param data [Sentdm::Models::Template, nil] Template response for v3 API
|
|
35
|
-
#
|
|
36
|
-
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
37
|
-
#
|
|
38
|
-
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
39
|
-
#
|
|
40
|
-
# @param success [Boolean] Indicates whether the request was successful
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
# @see Sentdm::Resources::Webhooks#create
|
|
6
|
-
class APIResponseWebhook < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute data
|
|
8
|
-
# The response data (null if error)
|
|
9
|
-
#
|
|
10
|
-
# @return [Sentdm::Models::WebhookResponse, nil]
|
|
11
|
-
optional :data, -> { Sentdm::WebhookResponse }, nil?: true
|
|
12
|
-
|
|
13
|
-
# @!attribute error
|
|
14
|
-
# Error information
|
|
15
|
-
#
|
|
16
|
-
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
17
|
-
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
18
|
-
|
|
19
|
-
# @!attribute meta
|
|
20
|
-
# Request and response metadata
|
|
21
|
-
#
|
|
22
|
-
# @return [Sentdm::Models::APIMeta, nil]
|
|
23
|
-
optional :meta, -> { Sentdm::APIMeta }
|
|
24
|
-
|
|
25
|
-
# @!attribute success
|
|
26
|
-
# Indicates whether the request was successful
|
|
27
|
-
#
|
|
28
|
-
# @return [Boolean, nil]
|
|
29
|
-
optional :success, Sentdm::Internal::Type::Boolean
|
|
30
|
-
|
|
31
|
-
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
32
|
-
# Standard API response envelope for all v3 endpoints
|
|
33
|
-
#
|
|
34
|
-
# @param data [Sentdm::Models::WebhookResponse, nil] The response data (null if error)
|
|
35
|
-
#
|
|
36
|
-
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
37
|
-
#
|
|
38
|
-
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
39
|
-
#
|
|
40
|
-
# @param success [Boolean] Indicates whether the request was successful
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BillingContactInfo < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute email
|
|
7
|
-
# Email address where invoices will be sent (required)
|
|
8
|
-
#
|
|
9
|
-
# @return [String]
|
|
10
|
-
required :email, String
|
|
11
|
-
|
|
12
|
-
# @!attribute name
|
|
13
|
-
# Full name of the billing contact or company (required)
|
|
14
|
-
#
|
|
15
|
-
# @return [String]
|
|
16
|
-
required :name, String
|
|
17
|
-
|
|
18
|
-
# @!attribute address
|
|
19
|
-
# Billing address (optional). Free-form text including street, city, state, postal
|
|
20
|
-
# code, and country.
|
|
21
|
-
#
|
|
22
|
-
# @return [String, nil]
|
|
23
|
-
optional :address, String, nil?: true
|
|
24
|
-
|
|
25
|
-
# @!attribute phone
|
|
26
|
-
# Phone number for the billing contact (optional)
|
|
27
|
-
#
|
|
28
|
-
# @return [String, nil]
|
|
29
|
-
optional :phone, String, nil?: true
|
|
30
|
-
|
|
31
|
-
# @!method initialize(email:, name:, address: nil, phone: nil)
|
|
32
|
-
# Some parameter documentations has been truncated, see
|
|
33
|
-
# {Sentdm::Models::BillingContactInfo} for more details.
|
|
34
|
-
#
|
|
35
|
-
# Billing contact information for a profile. Required when billing_model is
|
|
36
|
-
# "profile" or "profile_and_organization".
|
|
37
|
-
#
|
|
38
|
-
# @param email [String] Email address where invoices will be sent (required)
|
|
39
|
-
#
|
|
40
|
-
# @param name [String] Full name of the billing contact or company (required)
|
|
41
|
-
#
|
|
42
|
-
# @param address [String, nil] Billing address (optional). Free-form text including street, city, state, postal
|
|
43
|
-
#
|
|
44
|
-
# @param phone [String, nil] Phone number for the billing contact (optional)
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandBusinessInfo < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute city
|
|
7
|
-
# City
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :city, String, nil?: true
|
|
11
|
-
|
|
12
|
-
# @!attribute country
|
|
13
|
-
# Country code (e.g., US, CA)
|
|
14
|
-
#
|
|
15
|
-
# @return [String, nil]
|
|
16
|
-
optional :country, String, nil?: true
|
|
17
|
-
|
|
18
|
-
# @!attribute country_of_registration
|
|
19
|
-
# Country where the business is registered
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :country_of_registration, String, api_name: :countryOfRegistration, nil?: true
|
|
23
|
-
|
|
24
|
-
# @!attribute entity_type
|
|
25
|
-
#
|
|
26
|
-
# @return [Symbol, Sentdm::Models::BrandBusinessInfo::EntityType, nil]
|
|
27
|
-
optional :entity_type,
|
|
28
|
-
enum: -> { Sentdm::BrandBusinessInfo::EntityType },
|
|
29
|
-
api_name: :entityType,
|
|
30
|
-
nil?: true
|
|
31
|
-
|
|
32
|
-
# @!attribute legal_name
|
|
33
|
-
# Legal business name
|
|
34
|
-
#
|
|
35
|
-
# @return [String, nil]
|
|
36
|
-
optional :legal_name, String, api_name: :legalName, nil?: true
|
|
37
|
-
|
|
38
|
-
# @!attribute postal_code
|
|
39
|
-
# Postal/ZIP code
|
|
40
|
-
#
|
|
41
|
-
# @return [String, nil]
|
|
42
|
-
optional :postal_code, String, api_name: :postalCode, nil?: true
|
|
43
|
-
|
|
44
|
-
# @!attribute state
|
|
45
|
-
# State/province code
|
|
46
|
-
#
|
|
47
|
-
# @return [String, nil]
|
|
48
|
-
optional :state, String, nil?: true
|
|
49
|
-
|
|
50
|
-
# @!attribute street
|
|
51
|
-
# Street address
|
|
52
|
-
#
|
|
53
|
-
# @return [String, nil]
|
|
54
|
-
optional :street, String, nil?: true
|
|
55
|
-
|
|
56
|
-
# @!attribute tax_id
|
|
57
|
-
# Tax ID/EIN number
|
|
58
|
-
#
|
|
59
|
-
# @return [String, nil]
|
|
60
|
-
optional :tax_id, String, api_name: :taxId, nil?: true
|
|
61
|
-
|
|
62
|
-
# @!attribute tax_id_type
|
|
63
|
-
# Type of tax ID (e.g., us_ein, ca_bn)
|
|
64
|
-
#
|
|
65
|
-
# @return [String, nil]
|
|
66
|
-
optional :tax_id_type, String, api_name: :taxIdType, nil?: true
|
|
67
|
-
|
|
68
|
-
# @!attribute url
|
|
69
|
-
# Business website URL
|
|
70
|
-
#
|
|
71
|
-
# @return [String, nil]
|
|
72
|
-
optional :url, String, nil?: true
|
|
73
|
-
|
|
74
|
-
# @!method initialize(city: nil, country: nil, country_of_registration: nil, entity_type: nil, legal_name: nil, postal_code: nil, state: nil, street: nil, tax_id: nil, tax_id_type: nil, url: nil)
|
|
75
|
-
# Business details and address for brand KYC
|
|
76
|
-
#
|
|
77
|
-
# @param city [String, nil] City
|
|
78
|
-
#
|
|
79
|
-
# @param country [String, nil] Country code (e.g., US, CA)
|
|
80
|
-
#
|
|
81
|
-
# @param country_of_registration [String, nil] Country where the business is registered
|
|
82
|
-
#
|
|
83
|
-
# @param entity_type [Symbol, Sentdm::Models::BrandBusinessInfo::EntityType, nil]
|
|
84
|
-
#
|
|
85
|
-
# @param legal_name [String, nil] Legal business name
|
|
86
|
-
#
|
|
87
|
-
# @param postal_code [String, nil] Postal/ZIP code
|
|
88
|
-
#
|
|
89
|
-
# @param state [String, nil] State/province code
|
|
90
|
-
#
|
|
91
|
-
# @param street [String, nil] Street address
|
|
92
|
-
#
|
|
93
|
-
# @param tax_id [String, nil] Tax ID/EIN number
|
|
94
|
-
#
|
|
95
|
-
# @param tax_id_type [String, nil] Type of tax ID (e.g., us_ein, ca_bn)
|
|
96
|
-
#
|
|
97
|
-
# @param url [String, nil] Business website URL
|
|
98
|
-
|
|
99
|
-
# @see Sentdm::Models::BrandBusinessInfo#entity_type
|
|
100
|
-
module EntityType
|
|
101
|
-
extend Sentdm::Internal::Type::Enum
|
|
102
|
-
|
|
103
|
-
PRIVATE_PROFIT = :PRIVATE_PROFIT
|
|
104
|
-
PUBLIC_PROFIT = :PUBLIC_PROFIT
|
|
105
|
-
NON_PROFIT = :NON_PROFIT
|
|
106
|
-
SOLE_PROPRIETOR = :SOLE_PROPRIETOR
|
|
107
|
-
GOVERNMENT = :GOVERNMENT
|
|
108
|
-
|
|
109
|
-
# @!method self.values
|
|
110
|
-
# @return [Array<Symbol>]
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
end
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandComplianceInfo < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute brand_relationship
|
|
7
|
-
#
|
|
8
|
-
# @return [Symbol, Sentdm::Models::TcrBrandRelationship]
|
|
9
|
-
required :brand_relationship, enum: -> { Sentdm::TcrBrandRelationship }, api_name: :brandRelationship
|
|
10
|
-
|
|
11
|
-
# @!attribute vertical
|
|
12
|
-
#
|
|
13
|
-
# @return [Symbol, Sentdm::Models::TcrVertical]
|
|
14
|
-
required :vertical, enum: -> { Sentdm::TcrVertical }
|
|
15
|
-
|
|
16
|
-
# @!attribute destination_countries
|
|
17
|
-
# List of destination countries for messaging
|
|
18
|
-
#
|
|
19
|
-
# @return [Array<Sentdm::Models::DestinationCountry>, nil]
|
|
20
|
-
optional :destination_countries,
|
|
21
|
-
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::DestinationCountry] },
|
|
22
|
-
api_name: :destinationCountries,
|
|
23
|
-
nil?: true
|
|
24
|
-
|
|
25
|
-
# @!attribute is_tcr_application
|
|
26
|
-
# Whether this is a TCR (Campaign Registry) application
|
|
27
|
-
#
|
|
28
|
-
# @return [Boolean, nil]
|
|
29
|
-
optional :is_tcr_application, Sentdm::Internal::Type::Boolean, api_name: :isTcrApplication, nil?: true
|
|
30
|
-
|
|
31
|
-
# @!attribute notes
|
|
32
|
-
# Additional notes about the business or use case
|
|
33
|
-
#
|
|
34
|
-
# @return [String, nil]
|
|
35
|
-
optional :notes, String, nil?: true
|
|
36
|
-
|
|
37
|
-
# @!attribute phone_number_prefix
|
|
38
|
-
# Phone number prefix for messaging (e.g., "+1")
|
|
39
|
-
#
|
|
40
|
-
# @return [String, nil]
|
|
41
|
-
optional :phone_number_prefix, String, api_name: :phoneNumberPrefix, nil?: true
|
|
42
|
-
|
|
43
|
-
# @!attribute primary_use_case
|
|
44
|
-
# Primary messaging use case description
|
|
45
|
-
#
|
|
46
|
-
# @return [String, nil]
|
|
47
|
-
optional :primary_use_case, String, api_name: :primaryUseCase, nil?: true
|
|
48
|
-
|
|
49
|
-
# @!method initialize(brand_relationship:, vertical:, destination_countries: nil, is_tcr_application: nil, notes: nil, phone_number_prefix: nil, primary_use_case: nil)
|
|
50
|
-
# Compliance and TCR information for brand registration
|
|
51
|
-
#
|
|
52
|
-
# @param brand_relationship [Symbol, Sentdm::Models::TcrBrandRelationship]
|
|
53
|
-
#
|
|
54
|
-
# @param vertical [Symbol, Sentdm::Models::TcrVertical]
|
|
55
|
-
#
|
|
56
|
-
# @param destination_countries [Array<Sentdm::Models::DestinationCountry>, nil] List of destination countries for messaging
|
|
57
|
-
#
|
|
58
|
-
# @param is_tcr_application [Boolean, nil] Whether this is a TCR (Campaign Registry) application
|
|
59
|
-
#
|
|
60
|
-
# @param notes [String, nil] Additional notes about the business or use case
|
|
61
|
-
#
|
|
62
|
-
# @param phone_number_prefix [String, nil] Phone number prefix for messaging (e.g., "+1")
|
|
63
|
-
#
|
|
64
|
-
# @param primary_use_case [String, nil] Primary messaging use case description
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandContactInfo < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute name
|
|
7
|
-
# Primary contact name (required)
|
|
8
|
-
#
|
|
9
|
-
# @return [String]
|
|
10
|
-
required :name, String
|
|
11
|
-
|
|
12
|
-
# @!attribute business_name
|
|
13
|
-
# Business/brand name
|
|
14
|
-
#
|
|
15
|
-
# @return [String, nil]
|
|
16
|
-
optional :business_name, String, api_name: :businessName, nil?: true
|
|
17
|
-
|
|
18
|
-
# @!attribute email
|
|
19
|
-
# Contact email address
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :email, String, nil?: true
|
|
23
|
-
|
|
24
|
-
# @!attribute phone
|
|
25
|
-
# Contact phone number in E.164 format
|
|
26
|
-
#
|
|
27
|
-
# @return [String, nil]
|
|
28
|
-
optional :phone, String, nil?: true
|
|
29
|
-
|
|
30
|
-
# @!attribute phone_country_code
|
|
31
|
-
# Contact phone country code (e.g., "1" for US)
|
|
32
|
-
#
|
|
33
|
-
# @return [String, nil]
|
|
34
|
-
optional :phone_country_code, String, api_name: :phoneCountryCode, nil?: true
|
|
35
|
-
|
|
36
|
-
# @!attribute role
|
|
37
|
-
# Contact's role in the business
|
|
38
|
-
#
|
|
39
|
-
# @return [String, nil]
|
|
40
|
-
optional :role, String, nil?: true
|
|
41
|
-
|
|
42
|
-
# @!method initialize(name:, business_name: nil, email: nil, phone: nil, phone_country_code: nil, role: nil)
|
|
43
|
-
# Contact information for brand KYC
|
|
44
|
-
#
|
|
45
|
-
# @param name [String] Primary contact name (required)
|
|
46
|
-
#
|
|
47
|
-
# @param business_name [String, nil] Business/brand name
|
|
48
|
-
#
|
|
49
|
-
# @param email [String, nil] Contact email address
|
|
50
|
-
#
|
|
51
|
-
# @param phone [String, nil] Contact phone number in E.164 format
|
|
52
|
-
#
|
|
53
|
-
# @param phone_country_code [String, nil] Contact phone country code (e.g., "1" for US)
|
|
54
|
-
#
|
|
55
|
-
# @param role [String, nil] Contact's role in the business
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandsBrandData < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute compliance
|
|
7
|
-
# Compliance and TCR information for brand registration
|
|
8
|
-
#
|
|
9
|
-
# @return [Sentdm::Models::BrandComplianceInfo]
|
|
10
|
-
required :compliance, -> { Sentdm::BrandComplianceInfo }
|
|
11
|
-
|
|
12
|
-
# @!attribute contact
|
|
13
|
-
# Contact information for brand KYC
|
|
14
|
-
#
|
|
15
|
-
# @return [Sentdm::Models::BrandContactInfo]
|
|
16
|
-
required :contact, -> { Sentdm::BrandContactInfo }
|
|
17
|
-
|
|
18
|
-
# @!attribute business
|
|
19
|
-
# Business details and address for brand KYC
|
|
20
|
-
#
|
|
21
|
-
# @return [Sentdm::Models::BrandBusinessInfo, nil]
|
|
22
|
-
optional :business, -> { Sentdm::BrandBusinessInfo }, nil?: true
|
|
23
|
-
|
|
24
|
-
# @!method initialize(compliance:, contact:, business: nil)
|
|
25
|
-
# Brand and KYC data grouped into contact, business, and compliance sections
|
|
26
|
-
#
|
|
27
|
-
# @param compliance [Sentdm::Models::BrandComplianceInfo] Compliance and TCR information for brand registration
|
|
28
|
-
#
|
|
29
|
-
# @param contact [Sentdm::Models::BrandContactInfo] Contact information for brand KYC
|
|
30
|
-
#
|
|
31
|
-
# @param business [Sentdm::Models::BrandBusinessInfo, nil] Business details and address for brand KYC
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class ContactMessageSummary < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute channel_scores
|
|
7
|
-
#
|
|
8
|
-
# @return [Array<Sentdm::Models::ContactMessageSummary::ChannelScore>, nil]
|
|
9
|
-
optional :channel_scores,
|
|
10
|
-
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::ContactMessageSummary::ChannelScore] }
|
|
11
|
-
|
|
12
|
-
# @!attribute channels_used
|
|
13
|
-
#
|
|
14
|
-
# @return [Array<String>, nil]
|
|
15
|
-
optional :channels_used, Sentdm::Internal::Type::ArrayOf[String]
|
|
16
|
-
|
|
17
|
-
# @!attribute contact_id
|
|
18
|
-
#
|
|
19
|
-
# @return [String, nil]
|
|
20
|
-
optional :contact_id, String
|
|
21
|
-
|
|
22
|
-
# @!attribute first_message_at
|
|
23
|
-
#
|
|
24
|
-
# @return [Time, nil]
|
|
25
|
-
optional :first_message_at, Time, nil?: true
|
|
26
|
-
|
|
27
|
-
# @!attribute last_message_at
|
|
28
|
-
#
|
|
29
|
-
# @return [Time, nil]
|
|
30
|
-
optional :last_message_at, Time, nil?: true
|
|
31
|
-
|
|
32
|
-
# @!attribute message_count
|
|
33
|
-
#
|
|
34
|
-
# @return [Integer, nil]
|
|
35
|
-
optional :message_count, Integer
|
|
36
|
-
|
|
37
|
-
# @!method initialize(channel_scores: nil, channels_used: nil, contact_id: nil, first_message_at: nil, last_message_at: nil, message_count: nil)
|
|
38
|
-
# @param channel_scores [Array<Sentdm::Models::ContactMessageSummary::ChannelScore>]
|
|
39
|
-
# @param channels_used [Array<String>]
|
|
40
|
-
# @param contact_id [String]
|
|
41
|
-
# @param first_message_at [Time, nil]
|
|
42
|
-
# @param last_message_at [Time, nil]
|
|
43
|
-
# @param message_count [Integer]
|
|
44
|
-
|
|
45
|
-
class ChannelScore < Sentdm::Internal::Type::BaseModel
|
|
46
|
-
# @!attribute channel
|
|
47
|
-
#
|
|
48
|
-
# @return [String, nil]
|
|
49
|
-
optional :channel, String
|
|
50
|
-
|
|
51
|
-
# @!attribute fail_score
|
|
52
|
-
# Percentage (0-100) of messages on this channel that ended in FAILED.
|
|
53
|
-
#
|
|
54
|
-
# @return [Integer, nil]
|
|
55
|
-
optional :fail_score, Integer
|
|
56
|
-
|
|
57
|
-
# @!attribute success_score
|
|
58
|
-
# Percentage (0-100) of messages on this channel that reached a successful
|
|
59
|
-
# terminal state: SENT/DELIVERED/READ for outbound, RECEIVED for inbound.
|
|
60
|
-
#
|
|
61
|
-
# @return [Integer, nil]
|
|
62
|
-
optional :success_score, Integer
|
|
63
|
-
|
|
64
|
-
# @!method initialize(channel: nil, fail_score: nil, success_score: nil)
|
|
65
|
-
# Some parameter documentations has been truncated, see
|
|
66
|
-
# {Sentdm::Models::ContactMessageSummary::ChannelScore} for more details.
|
|
67
|
-
#
|
|
68
|
-
# @param channel [String]
|
|
69
|
-
#
|
|
70
|
-
# @param fail_score [Integer] Percentage (0-100) of messages on this channel that ended in FAILED.
|
|
71
|
-
#
|
|
72
|
-
# @param success_score [Integer] Percentage (0-100) of messages on this channel that reached a successful termina
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
end
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class ContactResponse < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute id
|
|
7
|
-
# Unique identifier for the contact
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :id, String
|
|
11
|
-
|
|
12
|
-
# @!attribute available_channels
|
|
13
|
-
# Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
|
|
14
|
-
#
|
|
15
|
-
# @return [String, nil]
|
|
16
|
-
optional :available_channels, String
|
|
17
|
-
|
|
18
|
-
# @!attribute country_code
|
|
19
|
-
# Country calling code (e.g., 1 for US/Canada)
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :country_code, String
|
|
23
|
-
|
|
24
|
-
# @!attribute created_at
|
|
25
|
-
# When the contact was created
|
|
26
|
-
#
|
|
27
|
-
# @return [Time, nil]
|
|
28
|
-
optional :created_at, Time
|
|
29
|
-
|
|
30
|
-
# @!attribute default_channel
|
|
31
|
-
# Default messaging channel to use (e.g., "sms" or "whatsapp")
|
|
32
|
-
#
|
|
33
|
-
# @return [String, nil]
|
|
34
|
-
optional :default_channel, String
|
|
35
|
-
|
|
36
|
-
# @!attribute format_e164
|
|
37
|
-
# Phone number in E.164 format (e.g., +1234567890)
|
|
38
|
-
#
|
|
39
|
-
# @return [String, nil]
|
|
40
|
-
optional :format_e164, String
|
|
41
|
-
|
|
42
|
-
# @!attribute format_international
|
|
43
|
-
# Phone number in international format (e.g., +1 234-567-890)
|
|
44
|
-
#
|
|
45
|
-
# @return [String, nil]
|
|
46
|
-
optional :format_international, String
|
|
47
|
-
|
|
48
|
-
# @!attribute format_national
|
|
49
|
-
# Phone number in national format (e.g., (234) 567-890)
|
|
50
|
-
#
|
|
51
|
-
# @return [String, nil]
|
|
52
|
-
optional :format_national, String
|
|
53
|
-
|
|
54
|
-
# @!attribute format_rfc
|
|
55
|
-
# Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
|
|
56
|
-
#
|
|
57
|
-
# @return [String, nil]
|
|
58
|
-
optional :format_rfc, String
|
|
59
|
-
|
|
60
|
-
# @!attribute is_inherited
|
|
61
|
-
# Whether this is an inherited contact (read-only)
|
|
62
|
-
#
|
|
63
|
-
# @return [Boolean, nil]
|
|
64
|
-
optional :is_inherited, Sentdm::Internal::Type::Boolean
|
|
65
|
-
|
|
66
|
-
# @!attribute opt_out
|
|
67
|
-
# Whether the contact has opted out of messaging. Single source of truth — opt-out
|
|
68
|
-
# is per-contact, not per-channel.
|
|
69
|
-
#
|
|
70
|
-
# @return [Boolean, nil]
|
|
71
|
-
optional :opt_out, Sentdm::Internal::Type::Boolean
|
|
72
|
-
|
|
73
|
-
# @!attribute phone_number
|
|
74
|
-
# Phone number in original format
|
|
75
|
-
#
|
|
76
|
-
# @return [String, nil]
|
|
77
|
-
optional :phone_number, String
|
|
78
|
-
|
|
79
|
-
# @!attribute region_code
|
|
80
|
-
# ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
81
|
-
#
|
|
82
|
-
# @return [String, nil]
|
|
83
|
-
optional :region_code, String
|
|
84
|
-
|
|
85
|
-
# @!attribute updated_at
|
|
86
|
-
# When the contact was last updated
|
|
87
|
-
#
|
|
88
|
-
# @return [Time, nil]
|
|
89
|
-
optional :updated_at, Time, nil?: true
|
|
90
|
-
|
|
91
|
-
# @!method initialize(id: nil, available_channels: nil, country_code: nil, created_at: nil, default_channel: nil, format_e164: nil, format_international: nil, format_national: nil, format_rfc: nil, is_inherited: nil, opt_out: nil, phone_number: nil, region_code: nil, updated_at: nil)
|
|
92
|
-
# Some parameter documentations has been truncated, see
|
|
93
|
-
# {Sentdm::Models::ContactResponse} for more details.
|
|
94
|
-
#
|
|
95
|
-
# Contact response for v3 API Uses snake_case for JSON property names
|
|
96
|
-
#
|
|
97
|
-
# @param id [String] Unique identifier for the contact
|
|
98
|
-
#
|
|
99
|
-
# @param available_channels [String] Comma-separated list of available messaging channels (e.g., "sms,whatsapp")
|
|
100
|
-
#
|
|
101
|
-
# @param country_code [String] Country calling code (e.g., 1 for US/Canada)
|
|
102
|
-
#
|
|
103
|
-
# @param created_at [Time] When the contact was created
|
|
104
|
-
#
|
|
105
|
-
# @param default_channel [String] Default messaging channel to use (e.g., "sms" or "whatsapp")
|
|
106
|
-
#
|
|
107
|
-
# @param format_e164 [String] Phone number in E.164 format (e.g., +1234567890)
|
|
108
|
-
#
|
|
109
|
-
# @param format_international [String] Phone number in international format (e.g., +1 234-567-890)
|
|
110
|
-
#
|
|
111
|
-
# @param format_national [String] Phone number in national format (e.g., (234) 567-890)
|
|
112
|
-
#
|
|
113
|
-
# @param format_rfc [String] Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
|
|
114
|
-
#
|
|
115
|
-
# @param is_inherited [Boolean] Whether this is an inherited contact (read-only)
|
|
116
|
-
#
|
|
117
|
-
# @param opt_out [Boolean] Whether the contact has opted out of messaging. Single source of truth — opt-out
|
|
118
|
-
#
|
|
119
|
-
# @param phone_number [String] Phone number in original format
|
|
120
|
-
#
|
|
121
|
-
# @param region_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
|
|
122
|
-
#
|
|
123
|
-
# @param updated_at [Time, nil] When the contact was last updated
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
end
|