sentdm 0.18.0 → 0.19.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 +13 -0
- data/README.md +1 -31
- data/lib/sentdm/internal/transport/base_client.rb +2 -0
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +0 -25
- data/lib/sentdm/models/contact_create_response.rb +236 -0
- data/lib/sentdm/models/contact_delete_params.rb +16 -2
- data/lib/sentdm/models/contact_list_response.rb +278 -12
- data/lib/sentdm/models/contact_retrieve_response.rb +236 -0
- data/lib/sentdm/models/contact_update_params.rb +4 -16
- data/lib/sentdm/models/contact_update_response.rb +236 -0
- data/lib/sentdm/models/me_retrieve_response.rb +204 -12
- data/lib/sentdm/models/message_retrieve_activities_response.rb +74 -6
- data/lib/sentdm/models/message_retrieve_status_response.rb +87 -7
- data/lib/sentdm/models/message_send_params.rb +2 -2
- data/lib/sentdm/models/message_send_response.rb +74 -6
- 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 +423 -9
- data/lib/sentdm/models/profile_create_response.rb +781 -0
- data/lib/sentdm/models/profile_delete_params.rb +16 -2
- data/lib/sentdm/models/profile_list_response.rb +753 -9
- data/lib/sentdm/models/profile_retrieve_response.rb +783 -0
- data/lib/sentdm/models/profile_update_params.rb +423 -9
- data/lib/sentdm/models/profile_update_response.rb +781 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +165 -3
- data/lib/sentdm/models/profiles/campaign_create_response.rb +459 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +17 -2
- data/lib/sentdm/models/profiles/campaign_list_response.rb +420 -9
- data/lib/sentdm/models/profiles/campaign_update_params.rb +165 -3
- data/lib/sentdm/models/profiles/campaign_update_response.rb +459 -0
- data/lib/sentdm/models/template_create_params.rb +889 -3
- data/lib/sentdm/models/template_create_response.rb +197 -0
- data/lib/sentdm/models/template_list_response.rb +242 -12
- data/lib/sentdm/models/template_retrieve_response.rb +197 -0
- data/lib/sentdm/models/template_update_params.rb +889 -3
- data/lib/sentdm/models/template_update_response.rb +197 -0
- data/lib/sentdm/models/user_invite_response.rb +189 -0
- data/lib/sentdm/models/user_list_response.rb +154 -9
- data/lib/sentdm/models/user_remove_params.rb +16 -2
- data/lib/sentdm/models/user_retrieve_response.rb +189 -0
- data/lib/sentdm/models/user_update_role_response.rb +189 -0
- data/lib/sentdm/models/webhook_create_response.rb +204 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +118 -9
- data/lib/sentdm/models/webhook_list_events_response.rb +153 -9
- data/lib/sentdm/models/webhook_list_response.rb +247 -12
- data/lib/sentdm/models/webhook_retrieve_response.rb +204 -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 +204 -0
- data/lib/sentdm/models/webhook_update_response.rb +204 -0
- data/lib/sentdm/models.rb +0 -77
- data/lib/sentdm/resources/contacts.rb +8 -10
- 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 +18 -40
- data/rbi/sentdm/models/contact_create_response.rbi +390 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +19 -2
- data/rbi/sentdm/models/contact_list_response.rbi +505 -16
- data/rbi/sentdm/models/contact_retrieve_response.rbi +392 -0
- data/rbi/sentdm/models/contact_update_params.rbi +4 -20
- data/rbi/sentdm/models/contact_update_response.rbi +390 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +335 -16
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +154 -8
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +171 -11
- data/rbi/sentdm/models/message_send_params.rbi +4 -4
- data/rbi/sentdm/models/message_send_response.rbi +135 -8
- 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 +810 -12
- data/rbi/sentdm/models/profile_create_response.rbi +1439 -0
- data/rbi/sentdm/models/profile_delete_params.rbi +19 -2
- data/rbi/sentdm/models/profile_list_response.rbi +1400 -14
- data/rbi/sentdm/models/profile_retrieve_response.rbi +1443 -0
- data/rbi/sentdm/models/profile_update_params.rbi +810 -12
- data/rbi/sentdm/models/profile_update_response.rbi +1439 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +289 -4
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +814 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +14 -1
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +733 -11
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +289 -4
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +814 -0
- data/rbi/sentdm/models/template_create_params.rbi +1701 -4
- data/rbi/sentdm/models/template_create_response.rbi +339 -0
- data/rbi/sentdm/models/template_list_response.rbi +454 -16
- data/rbi/sentdm/models/template_retrieve_response.rbi +345 -0
- data/rbi/sentdm/models/template_update_params.rbi +1701 -4
- data/rbi/sentdm/models/template_update_response.rbi +339 -0
- data/rbi/sentdm/models/user_invite_response.rbi +323 -0
- data/rbi/sentdm/models/user_list_response.rbi +271 -14
- data/rbi/sentdm/models/user_remove_params.rbi +19 -2
- data/rbi/sentdm/models/user_retrieve_response.rbi +323 -0
- data/rbi/sentdm/models/user_update_role_response.rbi +328 -0
- data/rbi/sentdm/models/webhook_create_response.rbi +348 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +247 -12
- data/rbi/sentdm/models/webhook_list_events_response.rbi +314 -12
- data/rbi/sentdm/models/webhook_list_response.rbi +462 -16
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +350 -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 +366 -0
- data/rbi/sentdm/models/webhook_update_response.rbi +348 -0
- data/rbi/sentdm/models.rbi +0 -77
- data/rbi/sentdm/resources/contacts.rbi +5 -12
- data/rbi/sentdm/resources/messages.rbi +2 -2
- data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
- data/rbi/sentdm/resources/profiles.rbi +13 -9
- data/rbi/sentdm/resources/templates.rbi +6 -5
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/contact_create_response.rbs +209 -0
- data/sig/sentdm/models/contact_delete_params.rbs +10 -6
- data/sig/sentdm/models/contact_list_response.rbs +256 -20
- data/sig/sentdm/models/contact_retrieve_response.rbs +209 -0
- data/sig/sentdm/models/contact_update_params.rbs +0 -5
- data/sig/sentdm/models/contact_update_response.rbs +209 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +176 -18
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +71 -9
- data/sig/sentdm/models/message_retrieve_status_response.rbs +95 -13
- 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 +363 -12
- data/sig/sentdm/models/profile_create_response.rbs +662 -0
- data/sig/sentdm/models/profile_delete_params.rbs +10 -6
- data/sig/sentdm/models/profile_list_response.rbs +645 -15
- data/sig/sentdm/models/profile_retrieve_response.rbs +662 -0
- data/sig/sentdm/models/profile_update_params.rbs +363 -12
- data/sig/sentdm/models/profile_update_response.rbs +662 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +138 -4
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +424 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +15 -8
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +396 -13
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +138 -4
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +424 -0
- data/sig/sentdm/models/template_create_params.rbs +853 -6
- data/sig/sentdm/models/template_create_response.rbs +177 -0
- data/sig/sentdm/models/template_list_response.rbs +225 -19
- data/sig/sentdm/models/template_retrieve_response.rbs +177 -0
- data/sig/sentdm/models/template_update_params.rbs +851 -4
- data/sig/sentdm/models/template_update_response.rbs +177 -0
- data/sig/sentdm/models/user_invite_response.rbs +170 -0
- data/sig/sentdm/models/user_list_response.rbs +151 -15
- data/sig/sentdm/models/user_remove_params.rbs +10 -6
- data/sig/sentdm/models/user_retrieve_response.rbs +170 -0
- data/sig/sentdm/models/user_update_role_response.rbs +170 -0
- data/sig/sentdm/models/webhook_create_response.rbs +201 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +130 -15
- data/sig/sentdm/models/webhook_list_events_response.rbs +142 -14
- data/sig/sentdm/models/webhook_list_response.rbs +248 -20
- data/sig/sentdm/models/webhook_retrieve_response.rbs +201 -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 +201 -0
- data/sig/sentdm/models/webhook_update_response.rbs +201 -0
- data/sig/sentdm/models.rbs +0 -68
- data/sig/sentdm/resources/contacts.rbs +3 -4
- 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 +56 -122
- 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_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/brands_brand_data.rb +0 -38
- data/lib/sentdm/models/contact_response.rb +0 -136
- data/lib/sentdm/models/destination_country.rb +0 -21
- 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 -605
- data/lib/sentdm/models/profile_settings.rb +0 -66
- data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +0 -45
- data/lib/sentdm/models/profiles/base_dto.rb +0 -32
- data/lib/sentdm/models/profiles/campaign_data.rb +0 -123
- data/lib/sentdm/models/profiles/messaging_use_case_us.rb +0 -28
- data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +0 -29
- data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +0 -236
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +0 -40
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +0 -38
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +0 -81
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +0 -39
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +0 -116
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +0 -75
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +0 -58
- data/lib/sentdm/models/tcr_brand_relationship.rb +0 -18
- data/lib/sentdm/models/tcr_vertical.rb +0 -36
- data/lib/sentdm/models/template.rb +0 -90
- data/lib/sentdm/models/template_body_content.rb +0 -27
- data/lib/sentdm/models/template_definition.rb +0 -66
- data/lib/sentdm/models/template_variable.rb +0 -80
- 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_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/brands_brand_data.rbi +0 -104
- data/rbi/sentdm/models/contact_response.rbi +0 -195
- data/rbi/sentdm/models/destination_country.rbi +0 -32
- 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 -874
- data/rbi/sentdm/models/profile_settings.rbi +0 -86
- data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +0 -83
- data/rbi/sentdm/models/profiles/base_dto.rbi +0 -53
- data/rbi/sentdm/models/profiles/campaign_data.rbi +0 -148
- data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +0 -73
- data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -51
- data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +0 -410
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +0 -56
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +0 -76
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +0 -72
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +0 -104
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +0 -57
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +0 -59
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +0 -180
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +0 -95
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +0 -81
- data/rbi/sentdm/models/tcr_brand_relationship.rbi +0 -30
- data/rbi/sentdm/models/tcr_vertical.rbi +0 -41
- data/rbi/sentdm/models/template.rbi +0 -129
- data/rbi/sentdm/models/template_body_content.rbi +0 -43
- data/rbi/sentdm/models/template_definition.rbi +0 -164
- data/rbi/sentdm/models/template_variable.rbi +0 -120
- 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_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/brands_brand_data.rbs +0 -30
- data/sig/sentdm/models/contact_response.rbs +0 -116
- data/sig/sentdm/models/destination_country.rbs +0 -19
- 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 -474
- data/sig/sentdm/models/profile_settings.rbs +0 -50
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +0 -41
- data/sig/sentdm/models/profiles/base_dto.rbs +0 -27
- data/sig/sentdm/models/profiles/campaign_data.rbs +0 -82
- data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +0 -40
- data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +0 -27
- data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +0 -285
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +0 -24
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -32
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +0 -75
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +0 -89
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +0 -55
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +0 -45
- data/sig/sentdm/models/tcr_brand_relationship.rbs +0 -22
- data/sig/sentdm/models/tcr_vertical.rbs +0 -58
- data/sig/sentdm/models/template.rbs +0 -79
- data/sig/sentdm/models/template_body_content.rbs +0 -30
- data/sig/sentdm/models/template_definition.rbs +0 -45
- data/sig/sentdm/models/template_variable.rbs +0 -84
- 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,34 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsTemplateFooter < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute template
|
|
7
|
-
# The footer template text with optional variable placeholders
|
|
8
|
-
#
|
|
9
|
-
# @return [String]
|
|
10
|
-
required :template, String
|
|
11
|
-
|
|
12
|
-
# @!attribute type
|
|
13
|
-
# The type of footer (typically "text")
|
|
14
|
-
#
|
|
15
|
-
# @return [String, nil]
|
|
16
|
-
optional :type, String, nil?: true
|
|
17
|
-
|
|
18
|
-
# @!attribute variables
|
|
19
|
-
# List of variables used in the footer template
|
|
20
|
-
#
|
|
21
|
-
# @return [Array<Sentdm::Models::TemplateVariable>, nil]
|
|
22
|
-
optional :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }, nil?: true
|
|
23
|
-
|
|
24
|
-
# @!method initialize(template:, type: nil, variables: nil)
|
|
25
|
-
# Footer section of a message template
|
|
26
|
-
#
|
|
27
|
-
# @param template [String] The footer template text with optional variable placeholders
|
|
28
|
-
#
|
|
29
|
-
# @param type [String, nil] The type of footer (typically "text")
|
|
30
|
-
#
|
|
31
|
-
# @param variables [Array<Sentdm::Models::TemplateVariable>, nil] List of variables used in the footer template
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsTemplateHeader < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute template
|
|
7
|
-
# The header template text with optional variable placeholders (e.g., "Welcome to
|
|
8
|
-
# {{0:variable}}")
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :template, String
|
|
12
|
-
|
|
13
|
-
# @!attribute type
|
|
14
|
-
# The type of header (e.g., "text", "image", "video", "document")
|
|
15
|
-
#
|
|
16
|
-
# @return [String, nil]
|
|
17
|
-
optional :type, String, nil?: true
|
|
18
|
-
|
|
19
|
-
# @!attribute variables
|
|
20
|
-
# List of variables used in the header template
|
|
21
|
-
#
|
|
22
|
-
# @return [Array<Sentdm::Models::TemplateVariable>, nil]
|
|
23
|
-
optional :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }, nil?: true
|
|
24
|
-
|
|
25
|
-
# @!method initialize(template:, type: nil, variables: nil)
|
|
26
|
-
# Some parameter documentations has been truncated, see
|
|
27
|
-
# {Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader} for more
|
|
28
|
-
# details.
|
|
29
|
-
#
|
|
30
|
-
# Header section of a message template
|
|
31
|
-
#
|
|
32
|
-
# @param template [String] The header template text with optional variable placeholders (e.g., "Welcome to
|
|
33
|
-
#
|
|
34
|
-
# @param type [String, nil] The type of header (e.g., "text", "image", "video", "document")
|
|
35
|
-
#
|
|
36
|
-
# @param variables [Array<Sentdm::Models::TemplateVariable>, nil] List of variables used in the header template
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute city
|
|
7
|
-
# City
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :city, String, nil?: true
|
|
11
|
-
|
|
12
|
-
# @!attribute country
|
|
13
|
-
# Country code (e.g., US, CA)
|
|
14
|
-
#
|
|
15
|
-
# @return [String, nil]
|
|
16
|
-
optional :country, String, nil?: true
|
|
17
|
-
|
|
18
|
-
# @!attribute country_of_registration
|
|
19
|
-
# Country where the business is registered
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :country_of_registration, String, api_name: :countryOfRegistration, nil?: true
|
|
23
|
-
|
|
24
|
-
# @!attribute entity_type
|
|
25
|
-
#
|
|
26
|
-
# @return [Symbol, Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::EntityType, nil]
|
|
27
|
-
optional :entity_type,
|
|
28
|
-
enum: -> {
|
|
29
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::EntityType
|
|
30
|
-
},
|
|
31
|
-
api_name: :entityType,
|
|
32
|
-
nil?: true
|
|
33
|
-
|
|
34
|
-
# @!attribute legal_name
|
|
35
|
-
# Legal business name
|
|
36
|
-
#
|
|
37
|
-
# @return [String, nil]
|
|
38
|
-
optional :legal_name, String, api_name: :legalName, nil?: true
|
|
39
|
-
|
|
40
|
-
# @!attribute postal_code
|
|
41
|
-
# Postal/ZIP code
|
|
42
|
-
#
|
|
43
|
-
# @return [String, nil]
|
|
44
|
-
optional :postal_code, String, api_name: :postalCode, nil?: true
|
|
45
|
-
|
|
46
|
-
# @!attribute state
|
|
47
|
-
# State/province code
|
|
48
|
-
#
|
|
49
|
-
# @return [String, nil]
|
|
50
|
-
optional :state, String, nil?: true
|
|
51
|
-
|
|
52
|
-
# @!attribute street
|
|
53
|
-
# Street address
|
|
54
|
-
#
|
|
55
|
-
# @return [String, nil]
|
|
56
|
-
optional :street, String, nil?: true
|
|
57
|
-
|
|
58
|
-
# @!attribute tax_id
|
|
59
|
-
# Tax ID/EIN number
|
|
60
|
-
#
|
|
61
|
-
# @return [String, nil]
|
|
62
|
-
optional :tax_id, String, api_name: :taxId, nil?: true
|
|
63
|
-
|
|
64
|
-
# @!attribute tax_id_type
|
|
65
|
-
# Type of tax ID (e.g., us_ein, ca_bn)
|
|
66
|
-
#
|
|
67
|
-
# @return [String, nil]
|
|
68
|
-
optional :tax_id_type, String, api_name: :taxIdType, nil?: true
|
|
69
|
-
|
|
70
|
-
# @!attribute url
|
|
71
|
-
# Business website URL
|
|
72
|
-
#
|
|
73
|
-
# @return [String, nil]
|
|
74
|
-
optional :url, String, nil?: true
|
|
75
|
-
|
|
76
|
-
# @!method initialize(city: nil, country: nil, country_of_registration: nil, entity_type: nil, legal_name: nil, postal_code: nil, state: nil, street: nil, tax_id: nil, tax_id_type: nil, url: nil)
|
|
77
|
-
# Business details and address for brand KYC
|
|
78
|
-
#
|
|
79
|
-
# @param city [String, nil] City
|
|
80
|
-
#
|
|
81
|
-
# @param country [String, nil] Country code (e.g., US, CA)
|
|
82
|
-
#
|
|
83
|
-
# @param country_of_registration [String, nil] Country where the business is registered
|
|
84
|
-
#
|
|
85
|
-
# @param entity_type [Symbol, Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::EntityType, nil]
|
|
86
|
-
#
|
|
87
|
-
# @param legal_name [String, nil] Legal business name
|
|
88
|
-
#
|
|
89
|
-
# @param postal_code [String, nil] Postal/ZIP code
|
|
90
|
-
#
|
|
91
|
-
# @param state [String, nil] State/province code
|
|
92
|
-
#
|
|
93
|
-
# @param street [String, nil] Street address
|
|
94
|
-
#
|
|
95
|
-
# @param tax_id [String, nil] Tax ID/EIN number
|
|
96
|
-
#
|
|
97
|
-
# @param tax_id_type [String, nil] Type of tax ID (e.g., us_ein, ca_bn)
|
|
98
|
-
#
|
|
99
|
-
# @param url [String, nil] Business website URL
|
|
100
|
-
|
|
101
|
-
# @see Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo#entity_type
|
|
102
|
-
module EntityType
|
|
103
|
-
extend Sentdm::Internal::Type::Enum
|
|
104
|
-
|
|
105
|
-
PRIVATE_PROFIT = :PRIVATE_PROFIT
|
|
106
|
-
PUBLIC_PROFIT = :PUBLIC_PROFIT
|
|
107
|
-
NON_PROFIT = :NON_PROFIT
|
|
108
|
-
SOLE_PROPRIETOR = :SOLE_PROPRIETOR
|
|
109
|
-
GOVERNMENT = :GOVERNMENT
|
|
110
|
-
|
|
111
|
-
# @!method self.values
|
|
112
|
-
# @return [Array<Symbol>]
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
end
|
|
116
|
-
end
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute brand_relationship
|
|
7
|
-
#
|
|
8
|
-
# @return [Symbol, Sentdm::Models::TcrBrandRelationship]
|
|
9
|
-
required :brand_relationship, enum: -> { Sentdm::TcrBrandRelationship }, api_name: :brandRelationship
|
|
10
|
-
|
|
11
|
-
# @!attribute vertical
|
|
12
|
-
#
|
|
13
|
-
# @return [Symbol, Sentdm::Models::TcrVertical]
|
|
14
|
-
required :vertical, enum: -> { Sentdm::TcrVertical }
|
|
15
|
-
|
|
16
|
-
# @!attribute destination_countries
|
|
17
|
-
# List of destination countries for messaging
|
|
18
|
-
#
|
|
19
|
-
# @return [Array<Sentdm::Models::DestinationCountry>, nil]
|
|
20
|
-
optional :destination_countries,
|
|
21
|
-
-> { Sentdm::Internal::Type::ArrayOf[Sentdm::DestinationCountry] },
|
|
22
|
-
api_name: :destinationCountries,
|
|
23
|
-
nil?: true
|
|
24
|
-
|
|
25
|
-
# @!attribute expected_messaging_volume
|
|
26
|
-
# Expected daily messaging volume
|
|
27
|
-
#
|
|
28
|
-
# @return [String, nil]
|
|
29
|
-
optional :expected_messaging_volume, String, api_name: :expectedMessagingVolume, nil?: true
|
|
30
|
-
|
|
31
|
-
# @!attribute is_tcr_application
|
|
32
|
-
# Whether this is a TCR (Campaign Registry) application
|
|
33
|
-
#
|
|
34
|
-
# @return [Boolean, nil]
|
|
35
|
-
optional :is_tcr_application, Sentdm::Internal::Type::Boolean, api_name: :isTcrApplication, nil?: true
|
|
36
|
-
|
|
37
|
-
# @!attribute notes
|
|
38
|
-
# Additional notes about the business or use case
|
|
39
|
-
#
|
|
40
|
-
# @return [String, nil]
|
|
41
|
-
optional :notes, String, nil?: true
|
|
42
|
-
|
|
43
|
-
# @!attribute phone_number_prefix
|
|
44
|
-
# Phone number prefix for messaging (e.g., "+1")
|
|
45
|
-
#
|
|
46
|
-
# @return [String, nil]
|
|
47
|
-
optional :phone_number_prefix, String, api_name: :phoneNumberPrefix, nil?: true
|
|
48
|
-
|
|
49
|
-
# @!attribute primary_use_case
|
|
50
|
-
# Primary messaging use case description
|
|
51
|
-
#
|
|
52
|
-
# @return [String, nil]
|
|
53
|
-
optional :primary_use_case, String, api_name: :primaryUseCase, nil?: true
|
|
54
|
-
|
|
55
|
-
# @!method initialize(brand_relationship:, vertical:, destination_countries: nil, expected_messaging_volume: nil, is_tcr_application: nil, notes: nil, phone_number_prefix: nil, primary_use_case: nil)
|
|
56
|
-
# Compliance and TCR information for brand registration
|
|
57
|
-
#
|
|
58
|
-
# @param brand_relationship [Symbol, Sentdm::Models::TcrBrandRelationship]
|
|
59
|
-
#
|
|
60
|
-
# @param vertical [Symbol, Sentdm::Models::TcrVertical]
|
|
61
|
-
#
|
|
62
|
-
# @param destination_countries [Array<Sentdm::Models::DestinationCountry>, nil] List of destination countries for messaging
|
|
63
|
-
#
|
|
64
|
-
# @param expected_messaging_volume [String, nil] Expected daily messaging volume
|
|
65
|
-
#
|
|
66
|
-
# @param is_tcr_application [Boolean, nil] Whether this is a TCR (Campaign Registry) application
|
|
67
|
-
#
|
|
68
|
-
# @param notes [String, nil] Additional notes about the business or use case
|
|
69
|
-
#
|
|
70
|
-
# @param phone_number_prefix [String, nil] Phone number prefix for messaging (e.g., "+1")
|
|
71
|
-
#
|
|
72
|
-
# @param primary_use_case [String, nil] Primary messaging use case description
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
end
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute name
|
|
7
|
-
# Primary contact name (required)
|
|
8
|
-
#
|
|
9
|
-
# @return [String]
|
|
10
|
-
required :name, String
|
|
11
|
-
|
|
12
|
-
# @!attribute business_name
|
|
13
|
-
# Business/brand name
|
|
14
|
-
#
|
|
15
|
-
# @return [String, nil]
|
|
16
|
-
optional :business_name, String, api_name: :businessName, nil?: true
|
|
17
|
-
|
|
18
|
-
# @!attribute email
|
|
19
|
-
# Contact email address
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :email, String, nil?: true
|
|
23
|
-
|
|
24
|
-
# @!attribute phone
|
|
25
|
-
# Contact phone number in E.164 format
|
|
26
|
-
#
|
|
27
|
-
# @return [String, nil]
|
|
28
|
-
optional :phone, String, nil?: true
|
|
29
|
-
|
|
30
|
-
# @!attribute phone_country_code
|
|
31
|
-
# Contact phone country code (e.g., "1" for US)
|
|
32
|
-
#
|
|
33
|
-
# @return [String, nil]
|
|
34
|
-
optional :phone_country_code, String, api_name: :phoneCountryCode, nil?: true
|
|
35
|
-
|
|
36
|
-
# @!attribute role
|
|
37
|
-
# Contact's role in the business
|
|
38
|
-
#
|
|
39
|
-
# @return [String, nil]
|
|
40
|
-
optional :role, String, nil?: true
|
|
41
|
-
|
|
42
|
-
# @!method initialize(name:, business_name: nil, email: nil, phone: nil, phone_country_code: nil, role: nil)
|
|
43
|
-
# Contact information for brand KYC
|
|
44
|
-
#
|
|
45
|
-
# @param name [String] Primary contact name (required)
|
|
46
|
-
#
|
|
47
|
-
# @param business_name [String, nil] Business/brand name
|
|
48
|
-
#
|
|
49
|
-
# @param email [String, nil] Contact email address
|
|
50
|
-
#
|
|
51
|
-
# @param phone [String, nil] Contact phone number in E.164 format
|
|
52
|
-
#
|
|
53
|
-
# @param phone_country_code [String, nil] Contact phone country code (e.g., "1" for US)
|
|
54
|
-
#
|
|
55
|
-
# @param role [String, nil] Contact's role in the business
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module TcrBrandRelationship
|
|
6
|
-
extend Sentdm::Internal::Type::Enum
|
|
7
|
-
|
|
8
|
-
BASIC_ACCOUNT = :BASIC_ACCOUNT
|
|
9
|
-
MEDIUM_ACCOUNT = :MEDIUM_ACCOUNT
|
|
10
|
-
LARGE_ACCOUNT = :LARGE_ACCOUNT
|
|
11
|
-
SMALL_ACCOUNT = :SMALL_ACCOUNT
|
|
12
|
-
KEY_ACCOUNT = :KEY_ACCOUNT
|
|
13
|
-
|
|
14
|
-
# @!method self.values
|
|
15
|
-
# @return [Array<Symbol>]
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module TcrVertical
|
|
6
|
-
extend Sentdm::Internal::Type::Enum
|
|
7
|
-
|
|
8
|
-
PROFESSIONAL = :PROFESSIONAL
|
|
9
|
-
REAL_ESTATE = :REAL_ESTATE
|
|
10
|
-
HEALTHCARE = :HEALTHCARE
|
|
11
|
-
HUMAN_RESOURCES = :HUMAN_RESOURCES
|
|
12
|
-
ENERGY = :ENERGY
|
|
13
|
-
ENTERTAINMENT = :ENTERTAINMENT
|
|
14
|
-
RETAIL = :RETAIL
|
|
15
|
-
TRANSPORTATION = :TRANSPORTATION
|
|
16
|
-
AGRICULTURE = :AGRICULTURE
|
|
17
|
-
INSURANCE = :INSURANCE
|
|
18
|
-
POSTAL = :POSTAL
|
|
19
|
-
EDUCATION = :EDUCATION
|
|
20
|
-
HOSPITALITY = :HOSPITALITY
|
|
21
|
-
FINANCIAL = :FINANCIAL
|
|
22
|
-
POLITICAL = :POLITICAL
|
|
23
|
-
GAMBLING = :GAMBLING
|
|
24
|
-
LEGAL = :LEGAL
|
|
25
|
-
CONSTRUCTION = :CONSTRUCTION
|
|
26
|
-
NGO = :NGO
|
|
27
|
-
MANUFACTURING = :MANUFACTURING
|
|
28
|
-
GOVERNMENT = :GOVERNMENT
|
|
29
|
-
TECHNOLOGY = :TECHNOLOGY
|
|
30
|
-
COMMUNICATION = :COMMUNICATION
|
|
31
|
-
|
|
32
|
-
# @!method self.values
|
|
33
|
-
# @return [Array<Symbol>]
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
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
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class TemplateBodyContent < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute template
|
|
7
|
-
#
|
|
8
|
-
# @return [String]
|
|
9
|
-
required :template, String
|
|
10
|
-
|
|
11
|
-
# @!attribute type
|
|
12
|
-
#
|
|
13
|
-
# @return [String, nil]
|
|
14
|
-
optional :type, String, nil?: true
|
|
15
|
-
|
|
16
|
-
# @!attribute variables
|
|
17
|
-
#
|
|
18
|
-
# @return [Array<Sentdm::Models::TemplateVariable>, nil]
|
|
19
|
-
optional :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }, nil?: true
|
|
20
|
-
|
|
21
|
-
# @!method initialize(template:, type: nil, variables: nil)
|
|
22
|
-
# @param template [String]
|
|
23
|
-
# @param type [String, nil]
|
|
24
|
-
# @param variables [Array<Sentdm::Models::TemplateVariable>, nil]
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class TemplateDefinition < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute body
|
|
7
|
-
# Body section of a message template with channel-specific content
|
|
8
|
-
#
|
|
9
|
-
# @return [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody]
|
|
10
|
-
required :body, -> { Sentdm::SentDmServicesCommonContractsPocOsTemplateBody }
|
|
11
|
-
|
|
12
|
-
# @!attribute authentication_config
|
|
13
|
-
# Configuration for AUTHENTICATION category templates
|
|
14
|
-
#
|
|
15
|
-
# @return [Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig, nil]
|
|
16
|
-
optional :authentication_config,
|
|
17
|
-
-> { Sentdm::SentDmServicesCommonContractsPocOsAuthenticationConfig },
|
|
18
|
-
api_name: :authenticationConfig,
|
|
19
|
-
nil?: true
|
|
20
|
-
|
|
21
|
-
# @!attribute buttons
|
|
22
|
-
# Optional list of interactive buttons (e.g., quick replies, URLs, phone numbers)
|
|
23
|
-
#
|
|
24
|
-
# @return [Array<Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton>, nil]
|
|
25
|
-
optional :buttons,
|
|
26
|
-
-> {
|
|
27
|
-
Sentdm::Internal::Type::ArrayOf[Sentdm::SentDmServicesCommonContractsPocOsTemplateButton]
|
|
28
|
-
},
|
|
29
|
-
nil?: true
|
|
30
|
-
|
|
31
|
-
# @!attribute definition_version
|
|
32
|
-
# The version of the template definition format
|
|
33
|
-
#
|
|
34
|
-
# @return [String, nil]
|
|
35
|
-
optional :definition_version, String, api_name: :definitionVersion, nil?: true
|
|
36
|
-
|
|
37
|
-
# @!attribute footer
|
|
38
|
-
# Footer section of a message template
|
|
39
|
-
#
|
|
40
|
-
# @return [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter, nil]
|
|
41
|
-
optional :footer, -> { Sentdm::SentDmServicesCommonContractsPocOsTemplateFooter }, nil?: true
|
|
42
|
-
|
|
43
|
-
# @!attribute header
|
|
44
|
-
# Header section of a message template
|
|
45
|
-
#
|
|
46
|
-
# @return [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader, nil]
|
|
47
|
-
optional :header, -> { Sentdm::SentDmServicesCommonContractsPocOsTemplateHeader }, nil?: true
|
|
48
|
-
|
|
49
|
-
# @!method initialize(body:, authentication_config: nil, buttons: nil, definition_version: nil, footer: nil, header: nil)
|
|
50
|
-
# Complete definition of a message template including header, body, footer, and
|
|
51
|
-
# buttons
|
|
52
|
-
#
|
|
53
|
-
# @param body [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody] Body section of a message template with channel-specific content
|
|
54
|
-
#
|
|
55
|
-
# @param authentication_config [Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig, nil] Configuration for AUTHENTICATION category templates
|
|
56
|
-
#
|
|
57
|
-
# @param buttons [Array<Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton>, nil] Optional list of interactive buttons (e.g., quick replies, URLs, phone numbers)
|
|
58
|
-
#
|
|
59
|
-
# @param definition_version [String, nil] The version of the template definition format
|
|
60
|
-
#
|
|
61
|
-
# @param footer [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter, nil] Footer section of a message template
|
|
62
|
-
#
|
|
63
|
-
# @param header [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader, nil] Header section of a message template
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class TemplateVariable < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute name
|
|
7
|
-
#
|
|
8
|
-
# @return [String]
|
|
9
|
-
required :name, String
|
|
10
|
-
|
|
11
|
-
# @!attribute props
|
|
12
|
-
#
|
|
13
|
-
# @return [Sentdm::Models::TemplateVariable::Props]
|
|
14
|
-
required :props, -> { Sentdm::TemplateVariable::Props }
|
|
15
|
-
|
|
16
|
-
# @!attribute type
|
|
17
|
-
#
|
|
18
|
-
# @return [String]
|
|
19
|
-
required :type, String
|
|
20
|
-
|
|
21
|
-
# @!attribute id
|
|
22
|
-
#
|
|
23
|
-
# @return [Integer, nil]
|
|
24
|
-
optional :id, Integer
|
|
25
|
-
|
|
26
|
-
# @!method initialize(name:, props:, type:, id: nil)
|
|
27
|
-
# @param name [String]
|
|
28
|
-
# @param props [Sentdm::Models::TemplateVariable::Props]
|
|
29
|
-
# @param type [String]
|
|
30
|
-
# @param id [Integer]
|
|
31
|
-
|
|
32
|
-
# @see Sentdm::Models::TemplateVariable#props
|
|
33
|
-
class Props < Sentdm::Internal::Type::BaseModel
|
|
34
|
-
# @!attribute media_type
|
|
35
|
-
#
|
|
36
|
-
# @return [String]
|
|
37
|
-
required :media_type, String, api_name: :mediaType
|
|
38
|
-
|
|
39
|
-
# @!attribute sample
|
|
40
|
-
#
|
|
41
|
-
# @return [String]
|
|
42
|
-
required :sample, String
|
|
43
|
-
|
|
44
|
-
# @!attribute url
|
|
45
|
-
#
|
|
46
|
-
# @return [String]
|
|
47
|
-
required :url, String
|
|
48
|
-
|
|
49
|
-
# @!attribute variable_type
|
|
50
|
-
#
|
|
51
|
-
# @return [String]
|
|
52
|
-
required :variable_type, String, api_name: :variableType
|
|
53
|
-
|
|
54
|
-
# @!attribute alt
|
|
55
|
-
#
|
|
56
|
-
# @return [String, nil]
|
|
57
|
-
optional :alt, String, nil?: true
|
|
58
|
-
|
|
59
|
-
# @!attribute regex
|
|
60
|
-
#
|
|
61
|
-
# @return [String, nil]
|
|
62
|
-
optional :regex, String, nil?: true
|
|
63
|
-
|
|
64
|
-
# @!attribute short_url
|
|
65
|
-
#
|
|
66
|
-
# @return [String, nil]
|
|
67
|
-
optional :short_url, String, api_name: :shortUrl, nil?: true
|
|
68
|
-
|
|
69
|
-
# @!method initialize(media_type:, sample:, url:, variable_type:, alt: nil, regex: nil, short_url: nil)
|
|
70
|
-
# @param media_type [String]
|
|
71
|
-
# @param sample [String]
|
|
72
|
-
# @param url [String]
|
|
73
|
-
# @param variable_type [String]
|
|
74
|
-
# @param alt [String, nil]
|
|
75
|
-
# @param regex [String, nil]
|
|
76
|
-
# @param short_url [String, nil]
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
end
|