sentdm 0.19.0 → 0.20.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 +8 -0
- data/README.md +31 -1
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +25 -0
- data/lib/sentdm/models/api_meta.rb +34 -0
- data/lib/sentdm/models/api_response_of_contact.rb +46 -0
- data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
- data/lib/sentdm/models/api_response_of_user.rb +43 -0
- data/lib/sentdm/models/api_response_template.rb +43 -0
- data/lib/sentdm/models/api_response_webhook.rb +43 -0
- data/lib/sentdm/models/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/brands_brand_data.rb +38 -0
- data/lib/sentdm/models/contact_delete_params.rb +2 -16
- data/lib/sentdm/models/contact_list_response.rb +12 -278
- data/lib/sentdm/models/contact_response.rb +126 -0
- data/lib/sentdm/models/destination_country.rb +21 -0
- data/lib/sentdm/models/error_detail.rb +42 -0
- data/lib/sentdm/models/me_retrieve_response.rb +12 -204
- data/lib/sentdm/models/message_retrieve_activities_response.rb +6 -74
- data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
- data/lib/sentdm/models/message_send_response.rb +6 -74
- data/lib/sentdm/models/mutation_request.rb +20 -0
- data/lib/sentdm/models/number_lookup_response.rb +6 -74
- data/lib/sentdm/models/pagination_meta.rb +80 -0
- data/lib/sentdm/models/payment_details.rb +44 -0
- data/lib/sentdm/models/profile_complete_response.rb +6 -74
- data/lib/sentdm/models/profile_create_params.rb +9 -423
- data/lib/sentdm/models/profile_delete_params.rb +2 -16
- data/lib/sentdm/models/profile_detail.rb +605 -0
- data/lib/sentdm/models/profile_list_response.rb +9 -753
- data/lib/sentdm/models/profile_settings.rb +66 -0
- data/lib/sentdm/models/profile_update_params.rb +9 -423
- data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +45 -0
- data/lib/sentdm/models/profiles/base_dto.rb +32 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -165
- data/lib/sentdm/models/profiles/campaign_data.rb +123 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
- data/lib/sentdm/models/profiles/campaign_list_response.rb +9 -420
- data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -165
- data/lib/sentdm/models/profiles/messaging_use_case_us.rb +28 -0
- data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +29 -0
- data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +248 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +34 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +48 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +38 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +81 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +34 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +39 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +116 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +75 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +58 -0
- data/lib/sentdm/models/tcr_brand_relationship.rb +18 -0
- data/lib/sentdm/models/tcr_vertical.rb +36 -0
- data/lib/sentdm/models/template.rb +90 -0
- data/lib/sentdm/models/template_body_content.rb +27 -0
- data/lib/sentdm/models/template_create_params.rb +3 -889
- data/lib/sentdm/models/template_definition.rb +66 -0
- data/lib/sentdm/models/template_list_response.rb +12 -242
- data/lib/sentdm/models/template_update_params.rb +3 -889
- data/lib/sentdm/models/template_variable.rb +80 -0
- data/lib/sentdm/models/user_list_response.rb +9 -154
- data/lib/sentdm/models/user_remove_params.rb +2 -16
- data/lib/sentdm/models/user_response.rb +82 -0
- data/lib/sentdm/models/webhook_event_type.rb +45 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +9 -118
- data/lib/sentdm/models/webhook_list_events_response.rb +9 -153
- data/lib/sentdm/models/webhook_list_response.rb +12 -247
- data/lib/sentdm/models/webhook_response.rb +95 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
- data/lib/sentdm/models/webhook_test_response.rb +6 -74
- data/lib/sentdm/models.rb +77 -0
- data/lib/sentdm/resources/contacts.rb +6 -6
- data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +8 -8
- data/lib/sentdm/resources/users.rb +6 -6
- data/lib/sentdm/resources/webhooks.rb +8 -8
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +40 -18
- data/rbi/sentdm/models/api_meta.rbi +55 -0
- data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
- data/rbi/sentdm/models/api_response_template.rbi +74 -0
- data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
- data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +104 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
- data/rbi/sentdm/models/contact_list_response.rbi +16 -505
- data/rbi/sentdm/models/contact_response.rbi +183 -0
- data/rbi/sentdm/models/destination_country.rbi +32 -0
- data/rbi/sentdm/models/error_detail.rbi +66 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +16 -335
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +8 -154
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
- data/rbi/sentdm/models/message_send_response.rbi +8 -135
- data/rbi/sentdm/models/mutation_request.rbi +32 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
- data/rbi/sentdm/models/pagination_meta.rbi +135 -0
- data/rbi/sentdm/models/payment_details.rbi +59 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
- data/rbi/sentdm/models/profile_create_params.rbi +12 -810
- data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
- data/rbi/sentdm/models/profile_detail.rbi +874 -0
- data/rbi/sentdm/models/profile_list_response.rbi +14 -1400
- data/rbi/sentdm/models/profile_settings.rbi +86 -0
- data/rbi/sentdm/models/profile_update_params.rbi +12 -810
- data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +83 -0
- data/rbi/sentdm/models/profiles/base_dto.rbi +53 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -289
- data/rbi/sentdm/models/profiles/campaign_data.rbi +148 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +11 -733
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -289
- data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +73 -0
- data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +51 -0
- data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +425 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +56 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +87 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +72 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +104 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +57 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +59 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +180 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +95 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +81 -0
- data/rbi/sentdm/models/tcr_brand_relationship.rbi +30 -0
- data/rbi/sentdm/models/tcr_vertical.rbi +41 -0
- data/rbi/sentdm/models/template.rbi +129 -0
- data/rbi/sentdm/models/template_body_content.rbi +43 -0
- data/rbi/sentdm/models/template_create_params.rbi +4 -1701
- data/rbi/sentdm/models/template_definition.rbi +164 -0
- data/rbi/sentdm/models/template_list_response.rbi +16 -454
- data/rbi/sentdm/models/template_update_params.rbi +4 -1701
- data/rbi/sentdm/models/template_variable.rbi +120 -0
- data/rbi/sentdm/models/user_list_response.rbi +14 -271
- data/rbi/sentdm/models/user_remove_params.rbi +2 -19
- data/rbi/sentdm/models/user_response.rbi +118 -0
- data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +12 -247
- data/rbi/sentdm/models/webhook_list_events_response.rbi +12 -314
- data/rbi/sentdm/models/webhook_list_response.rbi +16 -462
- data/rbi/sentdm/models/webhook_response.rbi +140 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
- data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
- data/rbi/sentdm/models.rbi +77 -0
- data/rbi/sentdm/resources/contacts.rbi +3 -3
- data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
- data/rbi/sentdm/resources/profiles.rbi +9 -13
- data/rbi/sentdm/resources/templates.rbi +5 -6
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/api_meta.rbs +27 -0
- data/sig/sentdm/models/api_response_of_contact.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
- data/sig/sentdm/models/api_response_of_user.rbs +39 -0
- data/sig/sentdm/models/api_response_template.rbs +39 -0
- data/sig/sentdm/models/api_response_webhook.rbs +39 -0
- data/sig/sentdm/models/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/brands_brand_data.rbs +30 -0
- data/sig/sentdm/models/contact_delete_params.rbs +6 -10
- data/sig/sentdm/models/contact_list_response.rbs +20 -256
- data/sig/sentdm/models/contact_response.rbs +111 -0
- data/sig/sentdm/models/destination_country.rbs +19 -0
- data/sig/sentdm/models/error_detail.rbs +39 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -71
- data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
- data/sig/sentdm/models/message_send_response.rbs +9 -71
- data/sig/sentdm/models/mutation_request.rbs +15 -0
- data/sig/sentdm/models/number_lookup_response.rbs +9 -71
- data/sig/sentdm/models/pagination_meta.rbs +67 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/profile_complete_response.rbs +9 -71
- data/sig/sentdm/models/profile_create_params.rbs +12 -363
- data/sig/sentdm/models/profile_delete_params.rbs +6 -10
- data/sig/sentdm/models/profile_detail.rbs +474 -0
- data/sig/sentdm/models/profile_list_response.rbs +15 -645
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +12 -363
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +41 -0
- data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -138
- data/sig/sentdm/models/profiles/campaign_data.rbs +82 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +13 -396
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -138
- data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +40 -0
- data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +299 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +24 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +35 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +32 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +75 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +30 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +30 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +89 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +55 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +45 -0
- data/sig/sentdm/models/tcr_brand_relationship.rbs +22 -0
- data/sig/sentdm/models/tcr_vertical.rbs +58 -0
- data/sig/sentdm/models/template.rbs +79 -0
- data/sig/sentdm/models/template_body_content.rbs +30 -0
- data/sig/sentdm/models/template_create_params.rbs +6 -853
- data/sig/sentdm/models/template_definition.rbs +45 -0
- data/sig/sentdm/models/template_list_response.rbs +19 -225
- data/sig/sentdm/models/template_update_params.rbs +4 -851
- data/sig/sentdm/models/template_variable.rbs +84 -0
- data/sig/sentdm/models/user_list_response.rbs +15 -151
- data/sig/sentdm/models/user_remove_params.rbs +6 -10
- data/sig/sentdm/models/user_response.rbs +72 -0
- data/sig/sentdm/models/webhook_event_type.rbs +51 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +15 -130
- data/sig/sentdm/models/webhook_list_events_response.rbs +14 -142
- data/sig/sentdm/models/webhook_list_response.rbs +20 -248
- data/sig/sentdm/models/webhook_response.rbs +103 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
- data/sig/sentdm/models/webhook_test_response.rbs +9 -71
- data/sig/sentdm/models.rbs +68 -0
- data/sig/sentdm/resources/contacts.rbs +3 -3
- data/sig/sentdm/resources/profiles/campaigns.rbs +4 -4
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +5 -5
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +4 -4
- metadata +121 -55
- data/lib/sentdm/models/contact_create_response.rb +0 -236
- data/lib/sentdm/models/contact_retrieve_response.rb +0 -236
- data/lib/sentdm/models/contact_update_response.rb +0 -236
- data/lib/sentdm/models/profile_create_response.rb +0 -781
- data/lib/sentdm/models/profile_retrieve_response.rb +0 -783
- data/lib/sentdm/models/profile_update_response.rb +0 -781
- data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -459
- data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -459
- data/lib/sentdm/models/template_create_response.rb +0 -197
- data/lib/sentdm/models/template_retrieve_response.rb +0 -197
- data/lib/sentdm/models/template_update_response.rb +0 -197
- data/lib/sentdm/models/user_invite_response.rb +0 -189
- data/lib/sentdm/models/user_retrieve_response.rb +0 -189
- data/lib/sentdm/models/user_update_role_response.rb +0 -189
- data/lib/sentdm/models/webhook_create_response.rb +0 -204
- data/lib/sentdm/models/webhook_retrieve_response.rb +0 -204
- data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -204
- data/lib/sentdm/models/webhook_update_response.rb +0 -204
- data/rbi/sentdm/models/contact_create_response.rbi +0 -390
- data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -392
- data/rbi/sentdm/models/contact_update_response.rbi +0 -390
- data/rbi/sentdm/models/profile_create_response.rbi +0 -1439
- data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1443
- data/rbi/sentdm/models/profile_update_response.rbi +0 -1439
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -814
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -814
- data/rbi/sentdm/models/template_create_response.rbi +0 -339
- data/rbi/sentdm/models/template_retrieve_response.rbi +0 -345
- data/rbi/sentdm/models/template_update_response.rbi +0 -339
- data/rbi/sentdm/models/user_invite_response.rbi +0 -323
- data/rbi/sentdm/models/user_retrieve_response.rbi +0 -323
- data/rbi/sentdm/models/user_update_role_response.rbi +0 -328
- data/rbi/sentdm/models/webhook_create_response.rbi +0 -348
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -350
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -366
- data/rbi/sentdm/models/webhook_update_response.rbi +0 -348
- data/sig/sentdm/models/contact_create_response.rbs +0 -209
- data/sig/sentdm/models/contact_retrieve_response.rbs +0 -209
- data/sig/sentdm/models/contact_update_response.rbs +0 -209
- data/sig/sentdm/models/profile_create_response.rbs +0 -662
- data/sig/sentdm/models/profile_retrieve_response.rbs +0 -662
- data/sig/sentdm/models/profile_update_response.rbs +0 -662
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -424
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -424
- data/sig/sentdm/models/template_create_response.rbs +0 -177
- data/sig/sentdm/models/template_retrieve_response.rbs +0 -177
- data/sig/sentdm/models/template_update_response.rbs +0 -177
- data/sig/sentdm/models/user_invite_response.rbs +0 -170
- data/sig/sentdm/models/user_retrieve_response.rbs +0 -170
- data/sig/sentdm/models/user_update_role_response.rbs +0 -170
- data/sig/sentdm/models/webhook_create_response.rbs +0 -201
- data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -201
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -201
- data/sig/sentdm/models/webhook_update_response.rbs +0 -201
|
@@ -16,8 +16,8 @@ module Sentdm
|
|
|
16
16
|
# @!attribute campaign
|
|
17
17
|
# Campaign data for create or update operation
|
|
18
18
|
#
|
|
19
|
-
# @return [Sentdm::Models::Profiles::
|
|
20
|
-
required :campaign, -> { Sentdm::Profiles::
|
|
19
|
+
# @return [Sentdm::Models::Profiles::CampaignData]
|
|
20
|
+
required :campaign, -> { Sentdm::Profiles::CampaignData }
|
|
21
21
|
|
|
22
22
|
# @!attribute sandbox
|
|
23
23
|
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
@@ -42,7 +42,7 @@ module Sentdm
|
|
|
42
42
|
#
|
|
43
43
|
# @param profile_id [String]
|
|
44
44
|
#
|
|
45
|
-
# @param campaign [Sentdm::Models::Profiles::
|
|
45
|
+
# @param campaign [Sentdm::Models::Profiles::CampaignData] Campaign data for create or update operation
|
|
46
46
|
#
|
|
47
47
|
# @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
|
|
48
48
|
#
|
|
@@ -51,168 +51,6 @@ module Sentdm
|
|
|
51
51
|
# @param x_profile_id [String]
|
|
52
52
|
#
|
|
53
53
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
54
|
-
|
|
55
|
-
class Campaign < Sentdm::Internal::Type::BaseModel
|
|
56
|
-
# @!attribute description
|
|
57
|
-
# Campaign description
|
|
58
|
-
#
|
|
59
|
-
# @return [String]
|
|
60
|
-
required :description, String
|
|
61
|
-
|
|
62
|
-
# @!attribute name
|
|
63
|
-
# Campaign name
|
|
64
|
-
#
|
|
65
|
-
# @return [String]
|
|
66
|
-
required :name, String
|
|
67
|
-
|
|
68
|
-
# @!attribute type
|
|
69
|
-
# Campaign type (e.g., "KYC", "App")
|
|
70
|
-
#
|
|
71
|
-
# @return [String]
|
|
72
|
-
required :type, String
|
|
73
|
-
|
|
74
|
-
# @!attribute use_cases
|
|
75
|
-
# List of use cases with sample messages
|
|
76
|
-
#
|
|
77
|
-
# @return [Array<Sentdm::Models::Profiles::CampaignCreateParams::Campaign::UseCase>]
|
|
78
|
-
required :use_cases,
|
|
79
|
-
-> {
|
|
80
|
-
Sentdm::Internal::Type::ArrayOf[Sentdm::Profiles::CampaignCreateParams::Campaign::UseCase]
|
|
81
|
-
},
|
|
82
|
-
api_name: :useCases
|
|
83
|
-
|
|
84
|
-
# @!attribute help_keywords
|
|
85
|
-
# Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
|
|
86
|
-
#
|
|
87
|
-
# @return [String, nil]
|
|
88
|
-
optional :help_keywords, String, api_name: :helpKeywords, nil?: true
|
|
89
|
-
|
|
90
|
-
# @!attribute help_message
|
|
91
|
-
# Message sent when user requests help
|
|
92
|
-
#
|
|
93
|
-
# @return [String, nil]
|
|
94
|
-
optional :help_message, String, api_name: :helpMessage, nil?: true
|
|
95
|
-
|
|
96
|
-
# @!attribute message_flow
|
|
97
|
-
# Description of how messages flow in the campaign
|
|
98
|
-
#
|
|
99
|
-
# @return [String, nil]
|
|
100
|
-
optional :message_flow, String, api_name: :messageFlow, nil?: true
|
|
101
|
-
|
|
102
|
-
# @!attribute optin_keywords
|
|
103
|
-
# Comma-separated keywords that trigger opt-in (e.g., "YES, START, SUBSCRIBE")
|
|
104
|
-
#
|
|
105
|
-
# @return [String, nil]
|
|
106
|
-
optional :optin_keywords, String, api_name: :optinKeywords, nil?: true
|
|
107
|
-
|
|
108
|
-
# @!attribute optin_message
|
|
109
|
-
# Message sent when user opts in
|
|
110
|
-
#
|
|
111
|
-
# @return [String, nil]
|
|
112
|
-
optional :optin_message, String, api_name: :optinMessage, nil?: true
|
|
113
|
-
|
|
114
|
-
# @!attribute optout_keywords
|
|
115
|
-
# Comma-separated keywords that trigger opt-out (e.g., "STOP, UNSUBSCRIBE, END")
|
|
116
|
-
#
|
|
117
|
-
# @return [String, nil]
|
|
118
|
-
optional :optout_keywords, String, api_name: :optoutKeywords, nil?: true
|
|
119
|
-
|
|
120
|
-
# @!attribute optout_message
|
|
121
|
-
# Message sent when user opts out
|
|
122
|
-
#
|
|
123
|
-
# @return [String, nil]
|
|
124
|
-
optional :optout_message, String, api_name: :optoutMessage, nil?: true
|
|
125
|
-
|
|
126
|
-
# @!attribute privacy_policy_link
|
|
127
|
-
# URL to privacy policy
|
|
128
|
-
#
|
|
129
|
-
# @return [String, nil]
|
|
130
|
-
optional :privacy_policy_link, String, api_name: :privacyPolicyLink, nil?: true
|
|
131
|
-
|
|
132
|
-
# @!attribute terms_and_conditions_link
|
|
133
|
-
# URL to terms and conditions
|
|
134
|
-
#
|
|
135
|
-
# @return [String, nil]
|
|
136
|
-
optional :terms_and_conditions_link, String, api_name: :termsAndConditionsLink, nil?: true
|
|
137
|
-
|
|
138
|
-
# @!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)
|
|
139
|
-
# Some parameter documentations has been truncated, see
|
|
140
|
-
# {Sentdm::Models::Profiles::CampaignCreateParams::Campaign} for more details.
|
|
141
|
-
#
|
|
142
|
-
# Campaign data for create or update operation
|
|
143
|
-
#
|
|
144
|
-
# @param description [String] Campaign description
|
|
145
|
-
#
|
|
146
|
-
# @param name [String] Campaign name
|
|
147
|
-
#
|
|
148
|
-
# @param type [String] Campaign type (e.g., "KYC", "App")
|
|
149
|
-
#
|
|
150
|
-
# @param use_cases [Array<Sentdm::Models::Profiles::CampaignCreateParams::Campaign::UseCase>] List of use cases with sample messages
|
|
151
|
-
#
|
|
152
|
-
# @param help_keywords [String, nil] Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
|
|
153
|
-
#
|
|
154
|
-
# @param help_message [String, nil] Message sent when user requests help
|
|
155
|
-
#
|
|
156
|
-
# @param message_flow [String, nil] Description of how messages flow in the campaign
|
|
157
|
-
#
|
|
158
|
-
# @param optin_keywords [String, nil] Comma-separated keywords that trigger opt-in (e.g., "YES, START, SUBSCRIBE")
|
|
159
|
-
#
|
|
160
|
-
# @param optin_message [String, nil] Message sent when user opts in
|
|
161
|
-
#
|
|
162
|
-
# @param optout_keywords [String, nil] Comma-separated keywords that trigger opt-out (e.g., "STOP, UNSUBSCRIBE, END")
|
|
163
|
-
#
|
|
164
|
-
# @param optout_message [String, nil] Message sent when user opts out
|
|
165
|
-
#
|
|
166
|
-
# @param privacy_policy_link [String, nil] URL to privacy policy
|
|
167
|
-
#
|
|
168
|
-
# @param terms_and_conditions_link [String, nil] URL to terms and conditions
|
|
169
|
-
|
|
170
|
-
class UseCase < Sentdm::Internal::Type::BaseModel
|
|
171
|
-
# @!attribute messaging_use_case_us
|
|
172
|
-
#
|
|
173
|
-
# @return [Symbol, Sentdm::Models::Profiles::CampaignCreateParams::Campaign::UseCase::MessagingUseCaseUs]
|
|
174
|
-
required :messaging_use_case_us,
|
|
175
|
-
enum: -> {
|
|
176
|
-
Sentdm::Profiles::CampaignCreateParams::Campaign::UseCase::MessagingUseCaseUs
|
|
177
|
-
},
|
|
178
|
-
api_name: :messagingUseCaseUs
|
|
179
|
-
|
|
180
|
-
# @!attribute sample_messages
|
|
181
|
-
# Sample messages for this use case (1-5 messages, max 1024 characters each)
|
|
182
|
-
#
|
|
183
|
-
# @return [Array<String>]
|
|
184
|
-
required :sample_messages, Sentdm::Internal::Type::ArrayOf[String], api_name: :sampleMessages
|
|
185
|
-
|
|
186
|
-
# @!method initialize(messaging_use_case_us:, sample_messages:)
|
|
187
|
-
# Campaign use case with sample messages
|
|
188
|
-
#
|
|
189
|
-
# @param messaging_use_case_us [Symbol, Sentdm::Models::Profiles::CampaignCreateParams::Campaign::UseCase::MessagingUseCaseUs]
|
|
190
|
-
#
|
|
191
|
-
# @param sample_messages [Array<String>] Sample messages for this use case (1-5 messages, max 1024 characters each)
|
|
192
|
-
|
|
193
|
-
# @see Sentdm::Models::Profiles::CampaignCreateParams::Campaign::UseCase#messaging_use_case_us
|
|
194
|
-
module MessagingUseCaseUs
|
|
195
|
-
extend Sentdm::Internal::Type::Enum
|
|
196
|
-
|
|
197
|
-
MARKETING = :MARKETING
|
|
198
|
-
ACCOUNT_NOTIFICATION = :ACCOUNT_NOTIFICATION
|
|
199
|
-
CUSTOMER_CARE = :CUSTOMER_CARE
|
|
200
|
-
FRAUD_ALERT = :FRAUD_ALERT
|
|
201
|
-
TWO_FA = :TWO_FA
|
|
202
|
-
DELIVERY_NOTIFICATION = :DELIVERY_NOTIFICATION
|
|
203
|
-
SECURITY_ALERT = :SECURITY_ALERT
|
|
204
|
-
M2_M = :M2M
|
|
205
|
-
MIXED = :MIXED
|
|
206
|
-
HIGHER_EDUCATION = :HIGHER_EDUCATION
|
|
207
|
-
POLLING_VOTING = :POLLING_VOTING
|
|
208
|
-
PUBLIC_SERVICE_ANNOUNCEMENT = :PUBLIC_SERVICE_ANNOUNCEMENT
|
|
209
|
-
LOW_VOLUME = :LOW_VOLUME
|
|
210
|
-
|
|
211
|
-
# @!method self.values
|
|
212
|
-
# @return [Array<Symbol>]
|
|
213
|
-
end
|
|
214
|
-
end
|
|
215
|
-
end
|
|
216
54
|
end
|
|
217
55
|
end
|
|
218
56
|
end
|
|
@@ -0,0 +1,123 @@
|
|
|
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::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData>]
|
|
29
|
+
required :use_cases,
|
|
30
|
+
-> {
|
|
31
|
+
Sentdm::Internal::Type::ArrayOf[Sentdm::Profiles::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData]
|
|
32
|
+
},
|
|
33
|
+
api_name: :useCases
|
|
34
|
+
|
|
35
|
+
# @!attribute help_keywords
|
|
36
|
+
# Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :help_keywords, String, api_name: :helpKeywords, nil?: true
|
|
40
|
+
|
|
41
|
+
# @!attribute help_message
|
|
42
|
+
# Message sent when user requests help
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :help_message, String, api_name: :helpMessage, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!attribute message_flow
|
|
48
|
+
# Description of how messages flow in the campaign
|
|
49
|
+
#
|
|
50
|
+
# @return [String, nil]
|
|
51
|
+
optional :message_flow, String, api_name: :messageFlow, nil?: true
|
|
52
|
+
|
|
53
|
+
# @!attribute optin_keywords
|
|
54
|
+
# Comma-separated keywords that trigger opt-in (e.g., "YES, START, SUBSCRIBE")
|
|
55
|
+
#
|
|
56
|
+
# @return [String, nil]
|
|
57
|
+
optional :optin_keywords, String, api_name: :optinKeywords, nil?: true
|
|
58
|
+
|
|
59
|
+
# @!attribute optin_message
|
|
60
|
+
# Message sent when user opts in
|
|
61
|
+
#
|
|
62
|
+
# @return [String, nil]
|
|
63
|
+
optional :optin_message, String, api_name: :optinMessage, nil?: true
|
|
64
|
+
|
|
65
|
+
# @!attribute optout_keywords
|
|
66
|
+
# Comma-separated keywords that trigger opt-out (e.g., "STOP, UNSUBSCRIBE, END")
|
|
67
|
+
#
|
|
68
|
+
# @return [String, nil]
|
|
69
|
+
optional :optout_keywords, String, api_name: :optoutKeywords, nil?: true
|
|
70
|
+
|
|
71
|
+
# @!attribute optout_message
|
|
72
|
+
# Message sent when user opts out
|
|
73
|
+
#
|
|
74
|
+
# @return [String, nil]
|
|
75
|
+
optional :optout_message, String, api_name: :optoutMessage, nil?: true
|
|
76
|
+
|
|
77
|
+
# @!attribute privacy_policy_link
|
|
78
|
+
# URL to privacy policy
|
|
79
|
+
#
|
|
80
|
+
# @return [String, nil]
|
|
81
|
+
optional :privacy_policy_link, String, api_name: :privacyPolicyLink, nil?: true
|
|
82
|
+
|
|
83
|
+
# @!attribute terms_and_conditions_link
|
|
84
|
+
# URL to terms and conditions
|
|
85
|
+
#
|
|
86
|
+
# @return [String, nil]
|
|
87
|
+
optional :terms_and_conditions_link, String, api_name: :termsAndConditionsLink, nil?: true
|
|
88
|
+
|
|
89
|
+
# @!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)
|
|
90
|
+
# Some parameter documentations has been truncated, see
|
|
91
|
+
# {Sentdm::Models::Profiles::CampaignData} for more details.
|
|
92
|
+
#
|
|
93
|
+
# Campaign data for create or update operation
|
|
94
|
+
#
|
|
95
|
+
# @param description [String] Campaign description
|
|
96
|
+
#
|
|
97
|
+
# @param name [String] Campaign name
|
|
98
|
+
#
|
|
99
|
+
# @param type [String] Campaign type (e.g., "KYC", "App")
|
|
100
|
+
#
|
|
101
|
+
# @param use_cases [Array<Sentdm::Models::Profiles::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData>] List of use cases with sample messages
|
|
102
|
+
#
|
|
103
|
+
# @param help_keywords [String, nil] Comma-separated keywords that trigger help message (e.g., "HELP, INFO, SUPPORT")
|
|
104
|
+
#
|
|
105
|
+
# @param help_message [String, nil] Message sent when user requests help
|
|
106
|
+
#
|
|
107
|
+
# @param message_flow [String, nil] Description of how messages flow in the campaign
|
|
108
|
+
#
|
|
109
|
+
# @param optin_keywords [String, nil] Comma-separated keywords that trigger opt-in (e.g., "YES, START, SUBSCRIBE")
|
|
110
|
+
#
|
|
111
|
+
# @param optin_message [String, nil] Message sent when user opts in
|
|
112
|
+
#
|
|
113
|
+
# @param optout_keywords [String, nil] Comma-separated keywords that trigger opt-out (e.g., "STOP, UNSUBSCRIBE, END")
|
|
114
|
+
#
|
|
115
|
+
# @param optout_message [String, nil] Message sent when user opts out
|
|
116
|
+
#
|
|
117
|
+
# @param privacy_policy_link [String, nil] URL to privacy policy
|
|
118
|
+
#
|
|
119
|
+
# @param terms_and_conditions_link [String, nil] URL to terms and conditions
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
@@ -4,7 +4,7 @@ module Sentdm
|
|
|
4
4
|
module Models
|
|
5
5
|
module Profiles
|
|
6
6
|
# @see Sentdm::Resources::Profiles::Campaigns#delete
|
|
7
|
-
class CampaignDeleteParams < Sentdm::
|
|
7
|
+
class CampaignDeleteParams < Sentdm::Models::MutationRequest
|
|
8
8
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Sentdm::Internal::Type::RequestParameters
|
|
10
10
|
|
|
@@ -18,30 +18,15 @@ module Sentdm
|
|
|
18
18
|
# @return [String]
|
|
19
19
|
required :campaign_id, String
|
|
20
20
|
|
|
21
|
-
# @!attribute sandbox
|
|
22
|
-
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
23
|
-
# for testing integrations without actual execution
|
|
24
|
-
#
|
|
25
|
-
# @return [Boolean, nil]
|
|
26
|
-
optional :sandbox, Sentdm::Internal::Type::Boolean
|
|
27
|
-
|
|
28
21
|
# @!attribute x_profile_id
|
|
29
22
|
#
|
|
30
23
|
# @return [String, nil]
|
|
31
24
|
optional :x_profile_id, String
|
|
32
25
|
|
|
33
|
-
# @!method initialize(profile_id:, campaign_id:,
|
|
34
|
-
# Some parameter documentations has been truncated, see
|
|
35
|
-
# {Sentdm::Models::Profiles::CampaignDeleteParams} for more details.
|
|
36
|
-
#
|
|
26
|
+
# @!method initialize(profile_id:, campaign_id:, x_profile_id: nil, request_options: {})
|
|
37
27
|
# @param profile_id [String]
|
|
38
|
-
#
|
|
39
28
|
# @param campaign_id [String]
|
|
40
|
-
#
|
|
41
|
-
# @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
|
|
42
|
-
#
|
|
43
29
|
# @param x_profile_id [String]
|
|
44
|
-
#
|
|
45
30
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
|
|
46
31
|
end
|
|
47
32
|
end
|