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
|
@@ -2,11 +2,11 @@ module Sentdm
|
|
|
2
2
|
module Models
|
|
3
3
|
type profile_create_params =
|
|
4
4
|
{
|
|
5
|
-
allow_contact_sharing: bool
|
|
6
|
-
allow_template_sharing: bool
|
|
7
|
-
billing_contact: Sentdm::
|
|
5
|
+
allow_contact_sharing: bool?,
|
|
6
|
+
allow_template_sharing: bool?,
|
|
7
|
+
billing_contact: Sentdm::ProfileCreateParams::BillingContact?,
|
|
8
8
|
billing_model: String?,
|
|
9
|
-
brand: Sentdm::
|
|
9
|
+
brand: Sentdm::ProfileCreateParams::Brand?,
|
|
10
10
|
description: String?,
|
|
11
11
|
icon: String?,
|
|
12
12
|
inherit_contacts: bool?,
|
|
@@ -14,7 +14,7 @@ module Sentdm
|
|
|
14
14
|
inherit_tcr_campaign: bool?,
|
|
15
15
|
inherit_templates: bool?,
|
|
16
16
|
name: String,
|
|
17
|
-
payment_details: Sentdm::PaymentDetails?,
|
|
17
|
+
payment_details: Sentdm::ProfileCreateParams::PaymentDetails?,
|
|
18
18
|
sandbox: bool,
|
|
19
19
|
short_name: String?,
|
|
20
20
|
whatsapp_business_account: Sentdm::ProfileCreateParams::WhatsappBusinessAccount?,
|
|
@@ -27,19 +27,15 @@ module Sentdm
|
|
|
27
27
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
28
28
|
include Sentdm::Internal::Type::RequestParameters
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
attr_accessor allow_contact_sharing: bool?
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
attr_accessor allow_template_sharing: bool?
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
def allow_template_sharing=: (bool) -> bool
|
|
37
|
-
|
|
38
|
-
attr_accessor billing_contact: Sentdm::BillingContactInfo?
|
|
34
|
+
attr_accessor billing_contact: Sentdm::ProfileCreateParams::BillingContact?
|
|
39
35
|
|
|
40
36
|
attr_accessor billing_model: String?
|
|
41
37
|
|
|
42
|
-
attr_accessor brand: Sentdm::
|
|
38
|
+
attr_accessor brand: Sentdm::ProfileCreateParams::Brand?
|
|
43
39
|
|
|
44
40
|
attr_accessor description: String?
|
|
45
41
|
|
|
@@ -57,7 +53,7 @@ module Sentdm
|
|
|
57
53
|
|
|
58
54
|
def name=: (String) -> String
|
|
59
55
|
|
|
60
|
-
attr_accessor payment_details: Sentdm::PaymentDetails?
|
|
56
|
+
attr_accessor payment_details: Sentdm::ProfileCreateParams::PaymentDetails?
|
|
61
57
|
|
|
62
58
|
attr_reader sandbox: bool?
|
|
63
59
|
|
|
@@ -76,11 +72,11 @@ module Sentdm
|
|
|
76
72
|
def x_profile_id=: (String) -> String
|
|
77
73
|
|
|
78
74
|
def initialize: (
|
|
79
|
-
?allow_contact_sharing: bool
|
|
80
|
-
?allow_template_sharing: bool
|
|
81
|
-
?billing_contact: Sentdm::
|
|
75
|
+
?allow_contact_sharing: bool?,
|
|
76
|
+
?allow_template_sharing: bool?,
|
|
77
|
+
?billing_contact: Sentdm::ProfileCreateParams::BillingContact?,
|
|
82
78
|
?billing_model: String?,
|
|
83
|
-
?brand: Sentdm::
|
|
79
|
+
?brand: Sentdm::ProfileCreateParams::Brand?,
|
|
84
80
|
?description: String?,
|
|
85
81
|
?icon: String?,
|
|
86
82
|
?inherit_contacts: bool?,
|
|
@@ -88,7 +84,7 @@ module Sentdm
|
|
|
88
84
|
?inherit_tcr_campaign: bool?,
|
|
89
85
|
?inherit_templates: bool?,
|
|
90
86
|
?name: String,
|
|
91
|
-
?payment_details: Sentdm::PaymentDetails?,
|
|
87
|
+
?payment_details: Sentdm::ProfileCreateParams::PaymentDetails?,
|
|
92
88
|
?sandbox: bool,
|
|
93
89
|
?short_name: String?,
|
|
94
90
|
?whatsapp_business_account: Sentdm::ProfileCreateParams::WhatsappBusinessAccount?,
|
|
@@ -98,11 +94,11 @@ module Sentdm
|
|
|
98
94
|
) -> void
|
|
99
95
|
|
|
100
96
|
def to_hash: -> {
|
|
101
|
-
allow_contact_sharing: bool
|
|
102
|
-
allow_template_sharing: bool
|
|
103
|
-
billing_contact: Sentdm::
|
|
97
|
+
allow_contact_sharing: bool?,
|
|
98
|
+
allow_template_sharing: bool?,
|
|
99
|
+
billing_contact: Sentdm::ProfileCreateParams::BillingContact?,
|
|
104
100
|
billing_model: String?,
|
|
105
|
-
brand: Sentdm::
|
|
101
|
+
brand: Sentdm::ProfileCreateParams::Brand?,
|
|
106
102
|
description: String?,
|
|
107
103
|
icon: String?,
|
|
108
104
|
inherit_contacts: bool?,
|
|
@@ -110,7 +106,7 @@ module Sentdm
|
|
|
110
106
|
inherit_tcr_campaign: bool?,
|
|
111
107
|
inherit_templates: bool?,
|
|
112
108
|
name: String,
|
|
113
|
-
payment_details: Sentdm::PaymentDetails?,
|
|
109
|
+
payment_details: Sentdm::ProfileCreateParams::PaymentDetails?,
|
|
114
110
|
sandbox: bool,
|
|
115
111
|
short_name: String?,
|
|
116
112
|
whatsapp_business_account: Sentdm::ProfileCreateParams::WhatsappBusinessAccount?,
|
|
@@ -119,6 +115,257 @@ module Sentdm
|
|
|
119
115
|
request_options: Sentdm::RequestOptions
|
|
120
116
|
}
|
|
121
117
|
|
|
118
|
+
type billing_contact =
|
|
119
|
+
{ email: String, name: String, address: String?, phone: String? }
|
|
120
|
+
|
|
121
|
+
class BillingContact < Sentdm::Internal::Type::BaseModel
|
|
122
|
+
attr_accessor email: String
|
|
123
|
+
|
|
124
|
+
attr_accessor name: String
|
|
125
|
+
|
|
126
|
+
attr_accessor address: String?
|
|
127
|
+
|
|
128
|
+
attr_accessor phone: String?
|
|
129
|
+
|
|
130
|
+
def initialize: (
|
|
131
|
+
email: String,
|
|
132
|
+
name: String,
|
|
133
|
+
?address: String?,
|
|
134
|
+
?phone: String?
|
|
135
|
+
) -> void
|
|
136
|
+
|
|
137
|
+
def to_hash: -> {
|
|
138
|
+
email: String,
|
|
139
|
+
name: String,
|
|
140
|
+
address: String?,
|
|
141
|
+
phone: String?
|
|
142
|
+
}
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
type brand =
|
|
146
|
+
{
|
|
147
|
+
compliance: Sentdm::ProfileCreateParams::Brand::Compliance,
|
|
148
|
+
contact: Sentdm::ProfileCreateParams::Brand::Contact,
|
|
149
|
+
business: Sentdm::ProfileCreateParams::Brand::Business?
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
class Brand < Sentdm::Internal::Type::BaseModel
|
|
153
|
+
attr_accessor compliance: Sentdm::ProfileCreateParams::Brand::Compliance
|
|
154
|
+
|
|
155
|
+
attr_accessor contact: Sentdm::ProfileCreateParams::Brand::Contact
|
|
156
|
+
|
|
157
|
+
attr_accessor business: Sentdm::ProfileCreateParams::Brand::Business?
|
|
158
|
+
|
|
159
|
+
def initialize: (
|
|
160
|
+
compliance: Sentdm::ProfileCreateParams::Brand::Compliance,
|
|
161
|
+
contact: Sentdm::ProfileCreateParams::Brand::Contact,
|
|
162
|
+
?business: Sentdm::ProfileCreateParams::Brand::Business?
|
|
163
|
+
) -> void
|
|
164
|
+
|
|
165
|
+
def to_hash: -> {
|
|
166
|
+
compliance: Sentdm::ProfileCreateParams::Brand::Compliance,
|
|
167
|
+
contact: Sentdm::ProfileCreateParams::Brand::Contact,
|
|
168
|
+
business: Sentdm::ProfileCreateParams::Brand::Business?
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
type compliance =
|
|
172
|
+
{
|
|
173
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
174
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
175
|
+
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
176
|
+
is_tcr_application: bool?,
|
|
177
|
+
notes: String?,
|
|
178
|
+
phone_number_prefix: String?
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
class Compliance < Sentdm::Internal::Type::BaseModel
|
|
182
|
+
attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
|
|
183
|
+
|
|
184
|
+
attr_accessor vertical: Sentdm::Models::tcr_vertical
|
|
185
|
+
|
|
186
|
+
attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
|
|
187
|
+
|
|
188
|
+
attr_accessor is_tcr_application: bool?
|
|
189
|
+
|
|
190
|
+
attr_accessor notes: String?
|
|
191
|
+
|
|
192
|
+
attr_accessor phone_number_prefix: String?
|
|
193
|
+
|
|
194
|
+
def initialize: (
|
|
195
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
196
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
197
|
+
?destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
198
|
+
?is_tcr_application: bool?,
|
|
199
|
+
?notes: String?,
|
|
200
|
+
?phone_number_prefix: String?
|
|
201
|
+
) -> void
|
|
202
|
+
|
|
203
|
+
def to_hash: -> {
|
|
204
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
205
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
206
|
+
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
207
|
+
is_tcr_application: bool?,
|
|
208
|
+
notes: String?,
|
|
209
|
+
phone_number_prefix: String?
|
|
210
|
+
}
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
type contact =
|
|
214
|
+
{
|
|
215
|
+
name: String,
|
|
216
|
+
business_name: String?,
|
|
217
|
+
email: String?,
|
|
218
|
+
phone: String?,
|
|
219
|
+
phone_country_code: String?,
|
|
220
|
+
role: String?
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
class Contact < Sentdm::Internal::Type::BaseModel
|
|
224
|
+
attr_accessor name: String
|
|
225
|
+
|
|
226
|
+
attr_accessor business_name: String?
|
|
227
|
+
|
|
228
|
+
attr_accessor email: String?
|
|
229
|
+
|
|
230
|
+
attr_accessor phone: String?
|
|
231
|
+
|
|
232
|
+
attr_accessor phone_country_code: String?
|
|
233
|
+
|
|
234
|
+
attr_accessor role: String?
|
|
235
|
+
|
|
236
|
+
def initialize: (
|
|
237
|
+
name: String,
|
|
238
|
+
?business_name: String?,
|
|
239
|
+
?email: String?,
|
|
240
|
+
?phone: String?,
|
|
241
|
+
?phone_country_code: String?,
|
|
242
|
+
?role: String?
|
|
243
|
+
) -> void
|
|
244
|
+
|
|
245
|
+
def to_hash: -> {
|
|
246
|
+
name: String,
|
|
247
|
+
business_name: String?,
|
|
248
|
+
email: String?,
|
|
249
|
+
phone: String?,
|
|
250
|
+
phone_country_code: String?,
|
|
251
|
+
role: String?
|
|
252
|
+
}
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
type business =
|
|
256
|
+
{
|
|
257
|
+
city: String?,
|
|
258
|
+
country: String?,
|
|
259
|
+
country_of_registration: String?,
|
|
260
|
+
entity_type: Sentdm::Models::ProfileCreateParams::Brand::Business::entity_type?,
|
|
261
|
+
legal_name: String?,
|
|
262
|
+
postal_code: String?,
|
|
263
|
+
state: String?,
|
|
264
|
+
street: String?,
|
|
265
|
+
tax_id: String?,
|
|
266
|
+
tax_id_type: String?,
|
|
267
|
+
url: String?
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
class Business < Sentdm::Internal::Type::BaseModel
|
|
271
|
+
attr_accessor city: String?
|
|
272
|
+
|
|
273
|
+
attr_accessor country: String?
|
|
274
|
+
|
|
275
|
+
attr_accessor country_of_registration: String?
|
|
276
|
+
|
|
277
|
+
attr_accessor entity_type: Sentdm::Models::ProfileCreateParams::Brand::Business::entity_type?
|
|
278
|
+
|
|
279
|
+
attr_accessor legal_name: String?
|
|
280
|
+
|
|
281
|
+
attr_accessor postal_code: String?
|
|
282
|
+
|
|
283
|
+
attr_accessor state: String?
|
|
284
|
+
|
|
285
|
+
attr_accessor street: String?
|
|
286
|
+
|
|
287
|
+
attr_accessor tax_id: String?
|
|
288
|
+
|
|
289
|
+
attr_accessor tax_id_type: String?
|
|
290
|
+
|
|
291
|
+
attr_accessor url: String?
|
|
292
|
+
|
|
293
|
+
def initialize: (
|
|
294
|
+
?city: String?,
|
|
295
|
+
?country: String?,
|
|
296
|
+
?country_of_registration: String?,
|
|
297
|
+
?entity_type: Sentdm::Models::ProfileCreateParams::Brand::Business::entity_type?,
|
|
298
|
+
?legal_name: String?,
|
|
299
|
+
?postal_code: String?,
|
|
300
|
+
?state: String?,
|
|
301
|
+
?street: String?,
|
|
302
|
+
?tax_id: String?,
|
|
303
|
+
?tax_id_type: String?,
|
|
304
|
+
?url: String?
|
|
305
|
+
) -> void
|
|
306
|
+
|
|
307
|
+
def to_hash: -> {
|
|
308
|
+
city: String?,
|
|
309
|
+
country: String?,
|
|
310
|
+
country_of_registration: String?,
|
|
311
|
+
entity_type: Sentdm::Models::ProfileCreateParams::Brand::Business::entity_type?,
|
|
312
|
+
legal_name: String?,
|
|
313
|
+
postal_code: String?,
|
|
314
|
+
state: String?,
|
|
315
|
+
street: String?,
|
|
316
|
+
tax_id: String?,
|
|
317
|
+
tax_id_type: String?,
|
|
318
|
+
url: String?
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
type entity_type =
|
|
322
|
+
:PRIVATE_PROFIT
|
|
323
|
+
| :PUBLIC_PROFIT
|
|
324
|
+
| :NON_PROFIT
|
|
325
|
+
| :SOLE_PROPRIETOR
|
|
326
|
+
| :GOVERNMENT
|
|
327
|
+
|
|
328
|
+
module EntityType
|
|
329
|
+
extend Sentdm::Internal::Type::Enum
|
|
330
|
+
|
|
331
|
+
PRIVATE_PROFIT: :PRIVATE_PROFIT
|
|
332
|
+
PUBLIC_PROFIT: :PUBLIC_PROFIT
|
|
333
|
+
NON_PROFIT: :NON_PROFIT
|
|
334
|
+
SOLE_PROPRIETOR: :SOLE_PROPRIETOR
|
|
335
|
+
GOVERNMENT: :GOVERNMENT
|
|
336
|
+
|
|
337
|
+
def self?.values: -> ::Array[Sentdm::Models::ProfileCreateParams::Brand::Business::entity_type]
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
type payment_details =
|
|
343
|
+
{ card_number: String, cvc: String, expiry: String, zip_code: String }
|
|
344
|
+
|
|
345
|
+
class PaymentDetails < Sentdm::Internal::Type::BaseModel
|
|
346
|
+
attr_accessor card_number: String
|
|
347
|
+
|
|
348
|
+
attr_accessor cvc: String
|
|
349
|
+
|
|
350
|
+
attr_accessor expiry: String
|
|
351
|
+
|
|
352
|
+
attr_accessor zip_code: String
|
|
353
|
+
|
|
354
|
+
def initialize: (
|
|
355
|
+
card_number: String,
|
|
356
|
+
cvc: String,
|
|
357
|
+
expiry: String,
|
|
358
|
+
zip_code: String
|
|
359
|
+
) -> void
|
|
360
|
+
|
|
361
|
+
def to_hash: -> {
|
|
362
|
+
card_number: String,
|
|
363
|
+
cvc: String,
|
|
364
|
+
expiry: String,
|
|
365
|
+
zip_code: String
|
|
366
|
+
}
|
|
367
|
+
end
|
|
368
|
+
|
|
122
369
|
type whatsapp_business_account =
|
|
123
370
|
{ access_token: String, waba_id: String, phone_number_id: String? }
|
|
124
371
|
|