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,45 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
# @see Sentdm::Resources::Profiles::Campaigns#create
|
|
7
|
-
class APIResponseOfBrandCampaign < Sentdm::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute data
|
|
9
|
-
# A 10DLC campaign registered for a brand.
|
|
10
|
-
#
|
|
11
|
-
# @return [Sentdm::Models::Profiles::BrandCampaign, nil]
|
|
12
|
-
optional :data, -> { Sentdm::Profiles::BrandCampaign }, nil?: true
|
|
13
|
-
|
|
14
|
-
# @!attribute error
|
|
15
|
-
# Error information
|
|
16
|
-
#
|
|
17
|
-
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
18
|
-
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
19
|
-
|
|
20
|
-
# @!attribute meta
|
|
21
|
-
# Request and response metadata
|
|
22
|
-
#
|
|
23
|
-
# @return [Sentdm::Models::APIMeta, nil]
|
|
24
|
-
optional :meta, -> { Sentdm::APIMeta }
|
|
25
|
-
|
|
26
|
-
# @!attribute success
|
|
27
|
-
# Indicates whether the request was successful
|
|
28
|
-
#
|
|
29
|
-
# @return [Boolean, nil]
|
|
30
|
-
optional :success, Sentdm::Internal::Type::Boolean
|
|
31
|
-
|
|
32
|
-
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
33
|
-
# Standard API response envelope for all v3 endpoints
|
|
34
|
-
#
|
|
35
|
-
# @param data [Sentdm::Models::Profiles::BrandCampaign, nil] A 10DLC campaign registered for a brand.
|
|
36
|
-
#
|
|
37
|
-
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
38
|
-
#
|
|
39
|
-
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
40
|
-
#
|
|
41
|
-
# @param success [Boolean] Indicates whether the request was successful
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
# @see Sentdm::Resources::Profiles::Campaigns#list
|
|
7
|
-
class APIResponseOfListOfBrandCampaign < Sentdm::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute data
|
|
9
|
-
# The response data (null if error)
|
|
10
|
-
#
|
|
11
|
-
# @return [Array<Sentdm::Models::Profiles::BrandCampaign>, nil]
|
|
12
|
-
optional :data, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Profiles::BrandCampaign] }, nil?: true
|
|
13
|
-
|
|
14
|
-
# @!attribute error
|
|
15
|
-
# Error information
|
|
16
|
-
#
|
|
17
|
-
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
18
|
-
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
19
|
-
|
|
20
|
-
# @!attribute meta
|
|
21
|
-
# Request and response metadata
|
|
22
|
-
#
|
|
23
|
-
# @return [Sentdm::Models::APIMeta, nil]
|
|
24
|
-
optional :meta, -> { Sentdm::APIMeta }
|
|
25
|
-
|
|
26
|
-
# @!attribute success
|
|
27
|
-
# Indicates whether the request was successful
|
|
28
|
-
#
|
|
29
|
-
# @return [Boolean, nil]
|
|
30
|
-
optional :success, Sentdm::Internal::Type::Boolean
|
|
31
|
-
|
|
32
|
-
# @!method initialize(data: nil, error: nil, meta: nil, success: nil)
|
|
33
|
-
# Standard API response envelope for all v3 endpoints
|
|
34
|
-
#
|
|
35
|
-
# @param data [Array<Sentdm::Models::Profiles::BrandCampaign>, nil] The response data (null if error)
|
|
36
|
-
#
|
|
37
|
-
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
38
|
-
#
|
|
39
|
-
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
40
|
-
#
|
|
41
|
-
# @param success [Boolean] Indicates whether the request was successful
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
class BrandCampaign < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute id
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :id, String
|
|
11
|
-
|
|
12
|
-
# @!attribute billed_date
|
|
13
|
-
#
|
|
14
|
-
# @return [Time, nil]
|
|
15
|
-
optional :billed_date, Time, api_name: :billedDate, nil?: true
|
|
16
|
-
|
|
17
|
-
# @!attribute brand_id
|
|
18
|
-
#
|
|
19
|
-
# @return [String, nil]
|
|
20
|
-
optional :brand_id, String, api_name: :brandId, nil?: true
|
|
21
|
-
|
|
22
|
-
# @!attribute cost
|
|
23
|
-
#
|
|
24
|
-
# @return [Float, nil]
|
|
25
|
-
optional :cost, Float, nil?: true
|
|
26
|
-
|
|
27
|
-
# @!attribute created_at
|
|
28
|
-
#
|
|
29
|
-
# @return [Time, nil]
|
|
30
|
-
optional :created_at, Time, api_name: :createdAt
|
|
31
|
-
|
|
32
|
-
# @!attribute customer_id
|
|
33
|
-
#
|
|
34
|
-
# @return [String, nil]
|
|
35
|
-
optional :customer_id, String, api_name: :customerId
|
|
36
|
-
|
|
37
|
-
# @!attribute dca_elections_complete
|
|
38
|
-
# True once every carrier has completed its DCA election and the campaign is
|
|
39
|
-
# operationally ready for traffic.
|
|
40
|
-
#
|
|
41
|
-
# @return [Boolean, nil]
|
|
42
|
-
optional :dca_elections_complete,
|
|
43
|
-
Sentdm::Internal::Type::Boolean,
|
|
44
|
-
api_name: :dcaElectionsComplete,
|
|
45
|
-
nil?: true
|
|
46
|
-
|
|
47
|
-
# @!attribute dca_elections_completed_at
|
|
48
|
-
#
|
|
49
|
-
# @return [Time, nil]
|
|
50
|
-
optional :dca_elections_completed_at, Time, api_name: :dcaElectionsCompletedAt, nil?: true
|
|
51
|
-
|
|
52
|
-
# @!attribute description
|
|
53
|
-
#
|
|
54
|
-
# @return [String, nil]
|
|
55
|
-
optional :description, String
|
|
56
|
-
|
|
57
|
-
# @!attribute has_submission_transaction
|
|
58
|
-
# True when the one-time campaign submission fee has already been charged.
|
|
59
|
-
#
|
|
60
|
-
# @return [Boolean, nil]
|
|
61
|
-
optional :has_submission_transaction,
|
|
62
|
-
Sentdm::Internal::Type::Boolean,
|
|
63
|
-
api_name: :hasSubmissionTransaction
|
|
64
|
-
|
|
65
|
-
# @!attribute help_keywords
|
|
66
|
-
#
|
|
67
|
-
# @return [String, nil]
|
|
68
|
-
optional :help_keywords, String, api_name: :helpKeywords, nil?: true
|
|
69
|
-
|
|
70
|
-
# @!attribute help_message
|
|
71
|
-
#
|
|
72
|
-
# @return [String, nil]
|
|
73
|
-
optional :help_message, String, api_name: :helpMessage, nil?: true
|
|
74
|
-
|
|
75
|
-
# @!attribute message_flow
|
|
76
|
-
#
|
|
77
|
-
# @return [String, nil]
|
|
78
|
-
optional :message_flow, String, api_name: :messageFlow, nil?: true
|
|
79
|
-
|
|
80
|
-
# @!attribute name
|
|
81
|
-
#
|
|
82
|
-
# @return [String, nil]
|
|
83
|
-
optional :name, String
|
|
84
|
-
|
|
85
|
-
# @!attribute optin_keywords
|
|
86
|
-
#
|
|
87
|
-
# @return [String, nil]
|
|
88
|
-
optional :optin_keywords, String, api_name: :optinKeywords, nil?: true
|
|
89
|
-
|
|
90
|
-
# @!attribute optin_message
|
|
91
|
-
#
|
|
92
|
-
# @return [String, nil]
|
|
93
|
-
optional :optin_message, String, api_name: :optinMessage, nil?: true
|
|
94
|
-
|
|
95
|
-
# @!attribute optout_keywords
|
|
96
|
-
#
|
|
97
|
-
# @return [String, nil]
|
|
98
|
-
optional :optout_keywords, String, api_name: :optoutKeywords, nil?: true
|
|
99
|
-
|
|
100
|
-
# @!attribute optout_message
|
|
101
|
-
#
|
|
102
|
-
# @return [String, nil]
|
|
103
|
-
optional :optout_message, String, api_name: :optoutMessage, nil?: true
|
|
104
|
-
|
|
105
|
-
# @!attribute privacy_policy_link
|
|
106
|
-
#
|
|
107
|
-
# @return [String, nil]
|
|
108
|
-
optional :privacy_policy_link, String, api_name: :privacyPolicyLink, nil?: true
|
|
109
|
-
|
|
110
|
-
# @!attribute status
|
|
111
|
-
#
|
|
112
|
-
# @return [Symbol, Sentdm::Models::Profiles::BrandCampaign::Status, nil]
|
|
113
|
-
optional :status, enum: -> { Sentdm::Profiles::BrandCampaign::Status }, nil?: true
|
|
114
|
-
|
|
115
|
-
# @!attribute submitted_at
|
|
116
|
-
#
|
|
117
|
-
# @return [Time, nil]
|
|
118
|
-
optional :submitted_at, Time, api_name: :submittedAt, nil?: true
|
|
119
|
-
|
|
120
|
-
# @!attribute submitted_to_tcr
|
|
121
|
-
#
|
|
122
|
-
# @return [Boolean, nil]
|
|
123
|
-
optional :submitted_to_tcr, Sentdm::Internal::Type::Boolean, api_name: :submittedToTCR
|
|
124
|
-
|
|
125
|
-
# @!attribute tcr_campaign_id
|
|
126
|
-
# The Campaign Registry identifier, once the campaign has been accepted.
|
|
127
|
-
#
|
|
128
|
-
# @return [String, nil]
|
|
129
|
-
optional :tcr_campaign_id, String, api_name: :tcrCampaignId, nil?: true
|
|
130
|
-
|
|
131
|
-
# @!attribute tcr_sync_error
|
|
132
|
-
# Surfaced so customers can see why a submission did not reach the registry.
|
|
133
|
-
#
|
|
134
|
-
# @return [String, nil]
|
|
135
|
-
optional :tcr_sync_error, String, api_name: :tcrSyncError, nil?: true
|
|
136
|
-
|
|
137
|
-
# @!attribute terms_and_conditions_link
|
|
138
|
-
#
|
|
139
|
-
# @return [String, nil]
|
|
140
|
-
optional :terms_and_conditions_link, String, api_name: :termsAndConditionsLink, nil?: true
|
|
141
|
-
|
|
142
|
-
# @!attribute type
|
|
143
|
-
# Campaign type (for example KYC or App).
|
|
144
|
-
#
|
|
145
|
-
# @return [String, nil]
|
|
146
|
-
optional :type, String
|
|
147
|
-
|
|
148
|
-
# @!attribute updated_at
|
|
149
|
-
#
|
|
150
|
-
# @return [Time, nil]
|
|
151
|
-
optional :updated_at, Time, api_name: :updatedAt, nil?: true
|
|
152
|
-
|
|
153
|
-
# @!attribute use_cases
|
|
154
|
-
#
|
|
155
|
-
# @return [Array<Sentdm::Models::Profiles::CampaignUseCase>, nil]
|
|
156
|
-
optional :use_cases,
|
|
157
|
-
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Profiles::CampaignUseCase] },
|
|
158
|
-
api_name: :useCases
|
|
159
|
-
|
|
160
|
-
# @!attribute volume
|
|
161
|
-
# Expected messaging volume for this campaign — customer-supplied on
|
|
162
|
-
# create/update, and the input to both the TCR usecase classification (LOW_VOLUME
|
|
163
|
-
# vs MIXED/specific) and the campaign fee tier. Surfaced so customers can read
|
|
164
|
-
# back the value they set.
|
|
165
|
-
#
|
|
166
|
-
# @return [String, nil]
|
|
167
|
-
optional :volume, String, nil?: true
|
|
168
|
-
|
|
169
|
-
# @!method initialize(id: nil, billed_date: nil, brand_id: nil, cost: nil, created_at: nil, customer_id: nil, dca_elections_complete: nil, dca_elections_completed_at: nil, description: nil, has_submission_transaction: nil, help_keywords: nil, help_message: nil, message_flow: nil, name: nil, optin_keywords: nil, optin_message: nil, optout_keywords: nil, optout_message: nil, privacy_policy_link: nil, status: nil, submitted_at: nil, submitted_to_tcr: nil, tcr_campaign_id: nil, tcr_sync_error: nil, terms_and_conditions_link: nil, type: nil, updated_at: nil, use_cases: nil, volume: nil)
|
|
170
|
-
# Some parameter documentations has been truncated, see
|
|
171
|
-
# {Sentdm::Models::Profiles::BrandCampaign} for more details.
|
|
172
|
-
#
|
|
173
|
-
# A 10DLC campaign registered for a brand.
|
|
174
|
-
#
|
|
175
|
-
# @param id [String]
|
|
176
|
-
#
|
|
177
|
-
# @param billed_date [Time, nil]
|
|
178
|
-
#
|
|
179
|
-
# @param brand_id [String, nil]
|
|
180
|
-
#
|
|
181
|
-
# @param cost [Float, nil]
|
|
182
|
-
#
|
|
183
|
-
# @param created_at [Time]
|
|
184
|
-
#
|
|
185
|
-
# @param customer_id [String]
|
|
186
|
-
#
|
|
187
|
-
# @param dca_elections_complete [Boolean, nil] True once every carrier has completed its DCA election and the campaign is
|
|
188
|
-
#
|
|
189
|
-
# @param dca_elections_completed_at [Time, nil]
|
|
190
|
-
#
|
|
191
|
-
# @param description [String]
|
|
192
|
-
#
|
|
193
|
-
# @param has_submission_transaction [Boolean] True when the one-time campaign submission fee has already been charged.
|
|
194
|
-
#
|
|
195
|
-
# @param help_keywords [String, nil]
|
|
196
|
-
#
|
|
197
|
-
# @param help_message [String, nil]
|
|
198
|
-
#
|
|
199
|
-
# @param message_flow [String, nil]
|
|
200
|
-
#
|
|
201
|
-
# @param name [String]
|
|
202
|
-
#
|
|
203
|
-
# @param optin_keywords [String, nil]
|
|
204
|
-
#
|
|
205
|
-
# @param optin_message [String, nil]
|
|
206
|
-
#
|
|
207
|
-
# @param optout_keywords [String, nil]
|
|
208
|
-
#
|
|
209
|
-
# @param optout_message [String, nil]
|
|
210
|
-
#
|
|
211
|
-
# @param privacy_policy_link [String, nil]
|
|
212
|
-
#
|
|
213
|
-
# @param status [Symbol, Sentdm::Models::Profiles::BrandCampaign::Status, nil]
|
|
214
|
-
#
|
|
215
|
-
# @param submitted_at [Time, nil]
|
|
216
|
-
#
|
|
217
|
-
# @param submitted_to_tcr [Boolean]
|
|
218
|
-
#
|
|
219
|
-
# @param tcr_campaign_id [String, nil] The Campaign Registry identifier, once the campaign has been accepted.
|
|
220
|
-
#
|
|
221
|
-
# @param tcr_sync_error [String, nil] Surfaced so customers can see why a submission did not reach the registry.
|
|
222
|
-
#
|
|
223
|
-
# @param terms_and_conditions_link [String, nil]
|
|
224
|
-
#
|
|
225
|
-
# @param type [String] Campaign type (for example KYC or App).
|
|
226
|
-
#
|
|
227
|
-
# @param updated_at [Time, nil]
|
|
228
|
-
#
|
|
229
|
-
# @param use_cases [Array<Sentdm::Models::Profiles::CampaignUseCase>]
|
|
230
|
-
#
|
|
231
|
-
# @param volume [String, nil] Expected messaging volume for this campaign — customer-supplied on create/update
|
|
232
|
-
|
|
233
|
-
# @see Sentdm::Models::Profiles::BrandCampaign#status
|
|
234
|
-
module Status
|
|
235
|
-
extend Sentdm::Internal::Type::Enum
|
|
236
|
-
|
|
237
|
-
SENT_CREATED = :SENT_CREATED
|
|
238
|
-
ACTIVE = :ACTIVE
|
|
239
|
-
EXPIRED = :EXPIRED
|
|
240
|
-
|
|
241
|
-
# @!method self.values
|
|
242
|
-
# @return [Array<Symbol>]
|
|
243
|
-
end
|
|
244
|
-
end
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
end
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
class CampaignData < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute description
|
|
8
|
-
# Campaign description
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :description, String
|
|
12
|
-
|
|
13
|
-
# @!attribute name
|
|
14
|
-
# Campaign name
|
|
15
|
-
#
|
|
16
|
-
# @return [String]
|
|
17
|
-
required :name, String
|
|
18
|
-
|
|
19
|
-
# @!attribute type
|
|
20
|
-
# Campaign type (e.g., "KYC", "App")
|
|
21
|
-
#
|
|
22
|
-
# @return [String]
|
|
23
|
-
required :type, String
|
|
24
|
-
|
|
25
|
-
# @!attribute use_cases
|
|
26
|
-
# List of use cases with sample messages
|
|
27
|
-
#
|
|
28
|
-
# @return [Array<Sentdm::Models::Profiles::CampaignUseCaseData>]
|
|
29
|
-
required :use_cases,
|
|
30
|
-
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::Profiles::CampaignUseCaseData] },
|
|
31
|
-
api_name: :useCases
|
|
32
|
-
|
|
33
|
-
# @!attribute help_keywords
|
|
34
|
-
# Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
|
|
35
|
-
#
|
|
36
|
-
# @return [String, nil]
|
|
37
|
-
optional :help_keywords, String, api_name: :helpKeywords, nil?: true
|
|
38
|
-
|
|
39
|
-
# @!attribute help_message
|
|
40
|
-
# Message sent when user requests help
|
|
41
|
-
#
|
|
42
|
-
# @return [String, nil]
|
|
43
|
-
optional :help_message, String, api_name: :helpMessage, nil?: true
|
|
44
|
-
|
|
45
|
-
# @!attribute message_flow
|
|
46
|
-
# Description of how messages flow in the campaign
|
|
47
|
-
#
|
|
48
|
-
# @return [String, nil]
|
|
49
|
-
optional :message_flow, String, api_name: :messageFlow, nil?: true
|
|
50
|
-
|
|
51
|
-
# @!attribute optin_keywords
|
|
52
|
-
# Comma-separated keywords that trigger opt-in (e.g., "YES, START, SUBSCRIBE")
|
|
53
|
-
#
|
|
54
|
-
# @return [String, nil]
|
|
55
|
-
optional :optin_keywords, String, api_name: :optinKeywords, nil?: true
|
|
56
|
-
|
|
57
|
-
# @!attribute optin_message
|
|
58
|
-
# Message sent when user opts in
|
|
59
|
-
#
|
|
60
|
-
# @return [String, nil]
|
|
61
|
-
optional :optin_message, String, api_name: :optinMessage, nil?: true
|
|
62
|
-
|
|
63
|
-
# @!attribute optout_keywords
|
|
64
|
-
# Comma-separated keywords that trigger opt-out (e.g., "STOP, UNSUBSCRIBE, END")
|
|
65
|
-
#
|
|
66
|
-
# @return [String, nil]
|
|
67
|
-
optional :optout_keywords, String, api_name: :optoutKeywords, nil?: true
|
|
68
|
-
|
|
69
|
-
# @!attribute optout_message
|
|
70
|
-
# Message sent when user opts out
|
|
71
|
-
#
|
|
72
|
-
# @return [String, nil]
|
|
73
|
-
optional :optout_message, String, api_name: :optoutMessage, nil?: true
|
|
74
|
-
|
|
75
|
-
# @!attribute privacy_policy_link
|
|
76
|
-
# URL to privacy policy
|
|
77
|
-
#
|
|
78
|
-
# @return [String, nil]
|
|
79
|
-
optional :privacy_policy_link, String, api_name: :privacyPolicyLink, nil?: true
|
|
80
|
-
|
|
81
|
-
# @!attribute terms_and_conditions_link
|
|
82
|
-
# URL to terms and conditions
|
|
83
|
-
#
|
|
84
|
-
# @return [String, nil]
|
|
85
|
-
optional :terms_and_conditions_link, String, api_name: :termsAndConditionsLink, nil?: true
|
|
86
|
-
|
|
87
|
-
# @!attribute volume
|
|
88
|
-
# Expected messaging volume for this campaign. Numeric string (e.g. "1999",
|
|
89
|
-
# "5000"); values below 2000 bill at the low-volume tier.
|
|
90
|
-
#
|
|
91
|
-
# @return [String, nil]
|
|
92
|
-
optional :volume, String, nil?: true
|
|
93
|
-
|
|
94
|
-
# @!method initialize(description:, name:, type:, use_cases:, help_keywords: nil, help_message: nil, message_flow: nil, optin_keywords: nil, optin_message: nil, optout_keywords: nil, optout_message: nil, privacy_policy_link: nil, terms_and_conditions_link: nil, volume: nil)
|
|
95
|
-
# Some parameter documentations has been truncated, see
|
|
96
|
-
# {Sentdm::Models::Profiles::CampaignData} for more details.
|
|
97
|
-
#
|
|
98
|
-
# Campaign data for create or update operation
|
|
99
|
-
#
|
|
100
|
-
# @param description [String] Campaign description
|
|
101
|
-
#
|
|
102
|
-
# @param name [String] Campaign name
|
|
103
|
-
#
|
|
104
|
-
# @param type [String] Campaign type (e.g., "KYC", "App")
|
|
105
|
-
#
|
|
106
|
-
# @param use_cases [Array<Sentdm::Models::Profiles::CampaignUseCaseData>] List of use cases with sample messages
|
|
107
|
-
#
|
|
108
|
-
# @param help_keywords [String, nil] Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
|
|
109
|
-
#
|
|
110
|
-
# @param help_message [String, nil] Message sent when user requests help
|
|
111
|
-
#
|
|
112
|
-
# @param message_flow [String, nil] Description of how messages flow in the campaign
|
|
113
|
-
#
|
|
114
|
-
# @param optin_keywords [String, nil] Comma-separated keywords that trigger opt-in (e.g., "YES, START, SUBSCRIBE")
|
|
115
|
-
#
|
|
116
|
-
# @param optin_message [String, nil] Message sent when user opts in
|
|
117
|
-
#
|
|
118
|
-
# @param optout_keywords [String, nil] Comma-separated keywords that trigger opt-out (e.g., "STOP, UNSUBSCRIBE, END")
|
|
119
|
-
#
|
|
120
|
-
# @param optout_message [String, nil] Message sent when user opts out
|
|
121
|
-
#
|
|
122
|
-
# @param privacy_policy_link [String, nil] URL to privacy policy
|
|
123
|
-
#
|
|
124
|
-
# @param terms_and_conditions_link [String, nil] URL to terms and conditions
|
|
125
|
-
#
|
|
126
|
-
# @param volume [String, nil] Expected messaging volume for this campaign. Numeric string (e.g. "1999", "5000"
|
|
127
|
-
end
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
end
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
class CampaignUseCase < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute id
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :id, String
|
|
11
|
-
|
|
12
|
-
# @!attribute campaign_id
|
|
13
|
-
#
|
|
14
|
-
# @return [String, nil]
|
|
15
|
-
optional :campaign_id, String, api_name: :campaignId
|
|
16
|
-
|
|
17
|
-
# @!attribute created_at
|
|
18
|
-
#
|
|
19
|
-
# @return [Time, nil]
|
|
20
|
-
optional :created_at, Time, api_name: :createdAt
|
|
21
|
-
|
|
22
|
-
# @!attribute customer_id
|
|
23
|
-
#
|
|
24
|
-
# @return [String, nil]
|
|
25
|
-
optional :customer_id, String, api_name: :customerId
|
|
26
|
-
|
|
27
|
-
# @!attribute messaging_use_case_us
|
|
28
|
-
#
|
|
29
|
-
# @return [Symbol, Sentdm::Models::Profiles::MessagingUseCaseUs, nil]
|
|
30
|
-
optional :messaging_use_case_us,
|
|
31
|
-
enum: -> { Sentdm::Profiles::MessagingUseCaseUs },
|
|
32
|
-
api_name: :messagingUseCaseUs
|
|
33
|
-
|
|
34
|
-
# @!attribute sample_messages
|
|
35
|
-
# Sample messages submitted to the registry for this use case.
|
|
36
|
-
#
|
|
37
|
-
# @return [Array<String>, nil]
|
|
38
|
-
optional :sample_messages, Sentdm::Internal::Type::ArrayOf[String], api_name: :sampleMessages
|
|
39
|
-
|
|
40
|
-
# @!attribute updated_at
|
|
41
|
-
#
|
|
42
|
-
# @return [Time, nil]
|
|
43
|
-
optional :updated_at, Time, api_name: :updatedAt, nil?: true
|
|
44
|
-
|
|
45
|
-
# @!method initialize(id: nil, campaign_id: nil, created_at: nil, customer_id: nil, messaging_use_case_us: nil, sample_messages: nil, updated_at: nil)
|
|
46
|
-
# Customer-facing use-case representation for the public v3 campaign contract.
|
|
47
|
-
# Exists for the same reason as BrandCampaignV3Response: nesting the
|
|
48
|
-
# TcrCampaignUseCase database entity in a public response means any column added
|
|
49
|
-
# to that table silently becomes part of the customer-facing contract. This DTO is
|
|
50
|
-
# an explicit allowlist, so a new column stays invisible until it is added here on
|
|
51
|
-
# purpose. This mirrors exactly the fields the entity already serialized, so it
|
|
52
|
-
# removes nothing from the current response shape. It only closes the future-leak
|
|
53
|
-
# path.
|
|
54
|
-
#
|
|
55
|
-
# @param id [String]
|
|
56
|
-
#
|
|
57
|
-
# @param campaign_id [String]
|
|
58
|
-
#
|
|
59
|
-
# @param created_at [Time]
|
|
60
|
-
#
|
|
61
|
-
# @param customer_id [String]
|
|
62
|
-
#
|
|
63
|
-
# @param messaging_use_case_us [Symbol, Sentdm::Models::Profiles::MessagingUseCaseUs]
|
|
64
|
-
#
|
|
65
|
-
# @param sample_messages [Array<String>] Sample messages submitted to the registry for this use case.
|
|
66
|
-
#
|
|
67
|
-
# @param updated_at [Time, nil]
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
class CampaignUseCaseData < Sentdm::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute messaging_use_case_us
|
|
8
|
-
#
|
|
9
|
-
# @return [Symbol, Sentdm::Models::Profiles::MessagingUseCaseUs]
|
|
10
|
-
required :messaging_use_case_us,
|
|
11
|
-
enum: -> { Sentdm::Profiles::MessagingUseCaseUs },
|
|
12
|
-
api_name: :messagingUseCaseUs
|
|
13
|
-
|
|
14
|
-
# @!attribute sample_messages
|
|
15
|
-
# Sample messages for this use case (1-5 messages, max 1024 characters each)
|
|
16
|
-
#
|
|
17
|
-
# @return [Array<String>]
|
|
18
|
-
required :sample_messages, Sentdm::Internal::Type::ArrayOf[String], api_name: :sampleMessages
|
|
19
|
-
|
|
20
|
-
# @!method initialize(messaging_use_case_us:, sample_messages:)
|
|
21
|
-
# Campaign use case with sample messages
|
|
22
|
-
#
|
|
23
|
-
# @param messaging_use_case_us [Symbol, Sentdm::Models::Profiles::MessagingUseCaseUs]
|
|
24
|
-
#
|
|
25
|
-
# @param sample_messages [Array<String>] Sample messages for this use case (1-5 messages, max 1024 characters each)
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class Template < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute id
|
|
7
|
-
# Unique template identifier
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :id, String
|
|
11
|
-
|
|
12
|
-
# @!attribute category
|
|
13
|
-
# Template category: MARKETING, UTILITY, AUTHENTICATION
|
|
14
|
-
#
|
|
15
|
-
# @return [String, nil]
|
|
16
|
-
optional :category, String
|
|
17
|
-
|
|
18
|
-
# @!attribute channels
|
|
19
|
-
# Supported channels: sms, whatsapp
|
|
20
|
-
#
|
|
21
|
-
# @return [Array<String>, nil]
|
|
22
|
-
optional :channels, Sentdm::Internal::Type::ArrayOf[String], nil?: true
|
|
23
|
-
|
|
24
|
-
# @!attribute created_at
|
|
25
|
-
# When the template was created
|
|
26
|
-
#
|
|
27
|
-
# @return [Time, nil]
|
|
28
|
-
optional :created_at, Time
|
|
29
|
-
|
|
30
|
-
# @!attribute is_published
|
|
31
|
-
# Whether the template is published and active
|
|
32
|
-
#
|
|
33
|
-
# @return [Boolean, nil]
|
|
34
|
-
optional :is_published, Sentdm::Internal::Type::Boolean
|
|
35
|
-
|
|
36
|
-
# @!attribute language
|
|
37
|
-
# Template language code (e.g., en_US)
|
|
38
|
-
#
|
|
39
|
-
# @return [String, nil]
|
|
40
|
-
optional :language, String
|
|
41
|
-
|
|
42
|
-
# @!attribute name
|
|
43
|
-
# Template display name
|
|
44
|
-
#
|
|
45
|
-
# @return [String, nil]
|
|
46
|
-
optional :name, String
|
|
47
|
-
|
|
48
|
-
# @!attribute status
|
|
49
|
-
# Template status: APPROVED, PENDING, REJECTED
|
|
50
|
-
#
|
|
51
|
-
# @return [String, nil]
|
|
52
|
-
optional :status, String
|
|
53
|
-
|
|
54
|
-
# @!attribute updated_at
|
|
55
|
-
# When the template was last updated
|
|
56
|
-
#
|
|
57
|
-
# @return [Time, nil]
|
|
58
|
-
optional :updated_at, Time, nil?: true
|
|
59
|
-
|
|
60
|
-
# @!attribute variables
|
|
61
|
-
# Template variables for personalization
|
|
62
|
-
#
|
|
63
|
-
# @return [Array<String>, nil]
|
|
64
|
-
optional :variables, Sentdm::Internal::Type::ArrayOf[String], nil?: true
|
|
65
|
-
|
|
66
|
-
# @!method initialize(id: nil, category: nil, channels: nil, created_at: nil, is_published: nil, language: nil, name: nil, status: nil, updated_at: nil, variables: nil)
|
|
67
|
-
# Template response for v3 API
|
|
68
|
-
#
|
|
69
|
-
# @param id [String] Unique template identifier
|
|
70
|
-
#
|
|
71
|
-
# @param category [String] Template category: MARKETING, UTILITY, AUTHENTICATION
|
|
72
|
-
#
|
|
73
|
-
# @param channels [Array<String>, nil] Supported channels: sms, whatsapp
|
|
74
|
-
#
|
|
75
|
-
# @param created_at [Time] When the template was created
|
|
76
|
-
#
|
|
77
|
-
# @param is_published [Boolean] Whether the template is published and active
|
|
78
|
-
#
|
|
79
|
-
# @param language [String] Template language code (e.g., en_US)
|
|
80
|
-
#
|
|
81
|
-
# @param name [String] Template display name
|
|
82
|
-
#
|
|
83
|
-
# @param status [String] Template status: APPROVED, PENDING, REJECTED
|
|
84
|
-
#
|
|
85
|
-
# @param updated_at [Time, nil] When the template was last updated
|
|
86
|
-
#
|
|
87
|
-
# @param variables [Array<String>, nil] Template variables for personalization
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
end
|