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,410 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
module Profiles
|
|
6
|
-
class TcrCampaignWithUseCases < Sentdm::Models::Profiles::BaseDto
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Sentdm::Profiles::TcrCampaignWithUseCases,
|
|
11
|
-
Sentdm::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
sig { returns(T.nilable(Time)) }
|
|
16
|
-
attr_accessor :billed_date
|
|
17
|
-
|
|
18
|
-
sig { returns(T.nilable(String)) }
|
|
19
|
-
attr_accessor :brand_id
|
|
20
|
-
|
|
21
|
-
sig { returns(T.nilable(Float)) }
|
|
22
|
-
attr_accessor :cost
|
|
23
|
-
|
|
24
|
-
sig { returns(T.nilable(String)) }
|
|
25
|
-
attr_accessor :csp_id
|
|
26
|
-
|
|
27
|
-
sig { returns(T.nilable(String)) }
|
|
28
|
-
attr_reader :customer_id
|
|
29
|
-
|
|
30
|
-
sig { params(customer_id: String).void }
|
|
31
|
-
attr_writer :customer_id
|
|
32
|
-
|
|
33
|
-
sig { returns(T.nilable(String)) }
|
|
34
|
-
attr_reader :description
|
|
35
|
-
|
|
36
|
-
sig { params(description: String).void }
|
|
37
|
-
attr_writer :description
|
|
38
|
-
|
|
39
|
-
sig { returns(T.nilable(String)) }
|
|
40
|
-
attr_accessor :help_keywords
|
|
41
|
-
|
|
42
|
-
sig { returns(T.nilable(String)) }
|
|
43
|
-
attr_accessor :help_message
|
|
44
|
-
|
|
45
|
-
sig { returns(T.nilable(String)) }
|
|
46
|
-
attr_accessor :kyc_submission_form_id
|
|
47
|
-
|
|
48
|
-
sig { returns(T.nilable(String)) }
|
|
49
|
-
attr_accessor :message_flow
|
|
50
|
-
|
|
51
|
-
sig { returns(T.nilable(String)) }
|
|
52
|
-
attr_reader :name
|
|
53
|
-
|
|
54
|
-
sig { params(name: String).void }
|
|
55
|
-
attr_writer :name
|
|
56
|
-
|
|
57
|
-
sig { returns(T.nilable(String)) }
|
|
58
|
-
attr_accessor :optin_keywords
|
|
59
|
-
|
|
60
|
-
sig { returns(T.nilable(String)) }
|
|
61
|
-
attr_accessor :optin_message
|
|
62
|
-
|
|
63
|
-
sig { returns(T.nilable(String)) }
|
|
64
|
-
attr_accessor :optout_keywords
|
|
65
|
-
|
|
66
|
-
sig { returns(T.nilable(String)) }
|
|
67
|
-
attr_accessor :optout_message
|
|
68
|
-
|
|
69
|
-
sig { returns(T.nilable(String)) }
|
|
70
|
-
attr_accessor :privacy_policy_link
|
|
71
|
-
|
|
72
|
-
sig { returns(T.nilable(String)) }
|
|
73
|
-
attr_accessor :reseller_id
|
|
74
|
-
|
|
75
|
-
sig do
|
|
76
|
-
returns(
|
|
77
|
-
T.nilable(
|
|
78
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
79
|
-
)
|
|
80
|
-
)
|
|
81
|
-
end
|
|
82
|
-
attr_accessor :sharing_status
|
|
83
|
-
|
|
84
|
-
sig do
|
|
85
|
-
returns(
|
|
86
|
-
T.nilable(
|
|
87
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
88
|
-
)
|
|
89
|
-
)
|
|
90
|
-
end
|
|
91
|
-
attr_accessor :status
|
|
92
|
-
|
|
93
|
-
sig { returns(T.nilable(Time)) }
|
|
94
|
-
attr_accessor :submitted_at
|
|
95
|
-
|
|
96
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
97
|
-
attr_reader :submitted_to_tcr
|
|
98
|
-
|
|
99
|
-
sig { params(submitted_to_tcr: T::Boolean).void }
|
|
100
|
-
attr_writer :submitted_to_tcr
|
|
101
|
-
|
|
102
|
-
sig { returns(T.nilable(String)) }
|
|
103
|
-
attr_accessor :tcr_campaign_id
|
|
104
|
-
|
|
105
|
-
sig { returns(T.nilable(String)) }
|
|
106
|
-
attr_accessor :tcr_sync_error
|
|
107
|
-
|
|
108
|
-
sig { returns(T.nilable(String)) }
|
|
109
|
-
attr_accessor :telnyx_campaign_id
|
|
110
|
-
|
|
111
|
-
sig { returns(T.nilable(String)) }
|
|
112
|
-
attr_accessor :terms_and_conditions_link
|
|
113
|
-
|
|
114
|
-
sig { returns(T.nilable(String)) }
|
|
115
|
-
attr_reader :type
|
|
116
|
-
|
|
117
|
-
sig { params(type: String).void }
|
|
118
|
-
attr_writer :type
|
|
119
|
-
|
|
120
|
-
sig { returns(T.nilable(String)) }
|
|
121
|
-
attr_accessor :upstream_cnp_id
|
|
122
|
-
|
|
123
|
-
sig do
|
|
124
|
-
returns(
|
|
125
|
-
T.nilable(
|
|
126
|
-
T::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase]
|
|
127
|
-
)
|
|
128
|
-
)
|
|
129
|
-
end
|
|
130
|
-
attr_reader :use_cases
|
|
131
|
-
|
|
132
|
-
sig do
|
|
133
|
-
params(
|
|
134
|
-
use_cases:
|
|
135
|
-
T::Array[
|
|
136
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::UseCase::OrHash
|
|
137
|
-
]
|
|
138
|
-
).void
|
|
139
|
-
end
|
|
140
|
-
attr_writer :use_cases
|
|
141
|
-
|
|
142
|
-
sig do
|
|
143
|
-
params(
|
|
144
|
-
billed_date: T.nilable(Time),
|
|
145
|
-
brand_id: T.nilable(String),
|
|
146
|
-
cost: T.nilable(Float),
|
|
147
|
-
csp_id: T.nilable(String),
|
|
148
|
-
customer_id: String,
|
|
149
|
-
description: String,
|
|
150
|
-
help_keywords: T.nilable(String),
|
|
151
|
-
help_message: T.nilable(String),
|
|
152
|
-
kyc_submission_form_id: T.nilable(String),
|
|
153
|
-
message_flow: T.nilable(String),
|
|
154
|
-
name: String,
|
|
155
|
-
optin_keywords: T.nilable(String),
|
|
156
|
-
optin_message: T.nilable(String),
|
|
157
|
-
optout_keywords: T.nilable(String),
|
|
158
|
-
optout_message: T.nilable(String),
|
|
159
|
-
privacy_policy_link: T.nilable(String),
|
|
160
|
-
reseller_id: T.nilable(String),
|
|
161
|
-
sharing_status:
|
|
162
|
-
T.nilable(
|
|
163
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::OrSymbol
|
|
164
|
-
),
|
|
165
|
-
status:
|
|
166
|
-
T.nilable(
|
|
167
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::Status::OrSymbol
|
|
168
|
-
),
|
|
169
|
-
submitted_at: T.nilable(Time),
|
|
170
|
-
submitted_to_tcr: T::Boolean,
|
|
171
|
-
tcr_campaign_id: T.nilable(String),
|
|
172
|
-
tcr_sync_error: T.nilable(String),
|
|
173
|
-
telnyx_campaign_id: T.nilable(String),
|
|
174
|
-
terms_and_conditions_link: T.nilable(String),
|
|
175
|
-
type: String,
|
|
176
|
-
upstream_cnp_id: T.nilable(String),
|
|
177
|
-
use_cases:
|
|
178
|
-
T::Array[
|
|
179
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::UseCase::OrHash
|
|
180
|
-
]
|
|
181
|
-
).returns(T.attached_class)
|
|
182
|
-
end
|
|
183
|
-
def self.new(
|
|
184
|
-
billed_date: nil,
|
|
185
|
-
brand_id: nil,
|
|
186
|
-
cost: nil,
|
|
187
|
-
csp_id: nil,
|
|
188
|
-
customer_id: nil,
|
|
189
|
-
description: nil,
|
|
190
|
-
help_keywords: nil,
|
|
191
|
-
help_message: nil,
|
|
192
|
-
kyc_submission_form_id: nil,
|
|
193
|
-
message_flow: nil,
|
|
194
|
-
name: nil,
|
|
195
|
-
optin_keywords: nil,
|
|
196
|
-
optin_message: nil,
|
|
197
|
-
optout_keywords: nil,
|
|
198
|
-
optout_message: nil,
|
|
199
|
-
privacy_policy_link: nil,
|
|
200
|
-
reseller_id: nil,
|
|
201
|
-
sharing_status: nil,
|
|
202
|
-
status: nil,
|
|
203
|
-
submitted_at: nil,
|
|
204
|
-
submitted_to_tcr: nil,
|
|
205
|
-
tcr_campaign_id: nil,
|
|
206
|
-
tcr_sync_error: nil,
|
|
207
|
-
telnyx_campaign_id: nil,
|
|
208
|
-
terms_and_conditions_link: nil,
|
|
209
|
-
type: nil,
|
|
210
|
-
upstream_cnp_id: nil,
|
|
211
|
-
use_cases: nil
|
|
212
|
-
)
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
sig do
|
|
216
|
-
override.returns(
|
|
217
|
-
{
|
|
218
|
-
billed_date: T.nilable(Time),
|
|
219
|
-
brand_id: T.nilable(String),
|
|
220
|
-
cost: T.nilable(Float),
|
|
221
|
-
csp_id: T.nilable(String),
|
|
222
|
-
customer_id: String,
|
|
223
|
-
description: String,
|
|
224
|
-
help_keywords: T.nilable(String),
|
|
225
|
-
help_message: T.nilable(String),
|
|
226
|
-
kyc_submission_form_id: T.nilable(String),
|
|
227
|
-
message_flow: T.nilable(String),
|
|
228
|
-
name: String,
|
|
229
|
-
optin_keywords: T.nilable(String),
|
|
230
|
-
optin_message: T.nilable(String),
|
|
231
|
-
optout_keywords: T.nilable(String),
|
|
232
|
-
optout_message: T.nilable(String),
|
|
233
|
-
privacy_policy_link: T.nilable(String),
|
|
234
|
-
reseller_id: T.nilable(String),
|
|
235
|
-
sharing_status:
|
|
236
|
-
T.nilable(
|
|
237
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
238
|
-
),
|
|
239
|
-
status:
|
|
240
|
-
T.nilable(
|
|
241
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
242
|
-
),
|
|
243
|
-
submitted_at: T.nilable(Time),
|
|
244
|
-
submitted_to_tcr: T::Boolean,
|
|
245
|
-
tcr_campaign_id: T.nilable(String),
|
|
246
|
-
tcr_sync_error: T.nilable(String),
|
|
247
|
-
telnyx_campaign_id: T.nilable(String),
|
|
248
|
-
terms_and_conditions_link: T.nilable(String),
|
|
249
|
-
type: String,
|
|
250
|
-
upstream_cnp_id: T.nilable(String),
|
|
251
|
-
use_cases:
|
|
252
|
-
T::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase]
|
|
253
|
-
}
|
|
254
|
-
)
|
|
255
|
-
end
|
|
256
|
-
def to_hash
|
|
257
|
-
end
|
|
258
|
-
|
|
259
|
-
module SharingStatus
|
|
260
|
-
extend Sentdm::Internal::Type::Enum
|
|
261
|
-
|
|
262
|
-
TaggedSymbol =
|
|
263
|
-
T.type_alias do
|
|
264
|
-
T.all(
|
|
265
|
-
Symbol,
|
|
266
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus
|
|
267
|
-
)
|
|
268
|
-
end
|
|
269
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
270
|
-
|
|
271
|
-
PENDING =
|
|
272
|
-
T.let(
|
|
273
|
-
:PENDING,
|
|
274
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
275
|
-
)
|
|
276
|
-
ACCEPTED =
|
|
277
|
-
T.let(
|
|
278
|
-
:ACCEPTED,
|
|
279
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
280
|
-
)
|
|
281
|
-
DECLINED =
|
|
282
|
-
T.let(
|
|
283
|
-
:DECLINED,
|
|
284
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
285
|
-
)
|
|
286
|
-
|
|
287
|
-
sig do
|
|
288
|
-
override.returns(
|
|
289
|
-
T::Array[
|
|
290
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::SharingStatus::TaggedSymbol
|
|
291
|
-
]
|
|
292
|
-
)
|
|
293
|
-
end
|
|
294
|
-
def self.values
|
|
295
|
-
end
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
module Status
|
|
299
|
-
extend Sentdm::Internal::Type::Enum
|
|
300
|
-
|
|
301
|
-
TaggedSymbol =
|
|
302
|
-
T.type_alias do
|
|
303
|
-
T.all(Symbol, Sentdm::Profiles::TcrCampaignWithUseCases::Status)
|
|
304
|
-
end
|
|
305
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
306
|
-
|
|
307
|
-
SENT_CREATED =
|
|
308
|
-
T.let(
|
|
309
|
-
:SENT_CREATED,
|
|
310
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
311
|
-
)
|
|
312
|
-
ACTIVE =
|
|
313
|
-
T.let(
|
|
314
|
-
:ACTIVE,
|
|
315
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
316
|
-
)
|
|
317
|
-
EXPIRED =
|
|
318
|
-
T.let(
|
|
319
|
-
:EXPIRED,
|
|
320
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
321
|
-
)
|
|
322
|
-
|
|
323
|
-
sig do
|
|
324
|
-
override.returns(
|
|
325
|
-
T::Array[
|
|
326
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::Status::TaggedSymbol
|
|
327
|
-
]
|
|
328
|
-
)
|
|
329
|
-
end
|
|
330
|
-
def self.values
|
|
331
|
-
end
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
class UseCase < Sentdm::Models::Profiles::BaseDto
|
|
335
|
-
OrHash =
|
|
336
|
-
T.type_alias do
|
|
337
|
-
T.any(
|
|
338
|
-
Sentdm::Profiles::TcrCampaignWithUseCases::UseCase,
|
|
339
|
-
Sentdm::Internal::AnyHash
|
|
340
|
-
)
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
sig { returns(T.nilable(String)) }
|
|
344
|
-
attr_reader :campaign_id
|
|
345
|
-
|
|
346
|
-
sig { params(campaign_id: String).void }
|
|
347
|
-
attr_writer :campaign_id
|
|
348
|
-
|
|
349
|
-
sig { returns(T.nilable(String)) }
|
|
350
|
-
attr_reader :customer_id
|
|
351
|
-
|
|
352
|
-
sig { params(customer_id: String).void }
|
|
353
|
-
attr_writer :customer_id
|
|
354
|
-
|
|
355
|
-
sig do
|
|
356
|
-
returns(
|
|
357
|
-
T.nilable(Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol)
|
|
358
|
-
)
|
|
359
|
-
end
|
|
360
|
-
attr_reader :messaging_use_case_us
|
|
361
|
-
|
|
362
|
-
sig do
|
|
363
|
-
params(
|
|
364
|
-
messaging_use_case_us:
|
|
365
|
-
Sentdm::Profiles::MessagingUseCaseUs::OrSymbol
|
|
366
|
-
).void
|
|
367
|
-
end
|
|
368
|
-
attr_writer :messaging_use_case_us
|
|
369
|
-
|
|
370
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
371
|
-
attr_reader :sample_messages
|
|
372
|
-
|
|
373
|
-
sig { params(sample_messages: T::Array[String]).void }
|
|
374
|
-
attr_writer :sample_messages
|
|
375
|
-
|
|
376
|
-
sig do
|
|
377
|
-
params(
|
|
378
|
-
campaign_id: String,
|
|
379
|
-
customer_id: String,
|
|
380
|
-
messaging_use_case_us:
|
|
381
|
-
Sentdm::Profiles::MessagingUseCaseUs::OrSymbol,
|
|
382
|
-
sample_messages: T::Array[String]
|
|
383
|
-
).returns(T.attached_class)
|
|
384
|
-
end
|
|
385
|
-
def self.new(
|
|
386
|
-
campaign_id: nil,
|
|
387
|
-
customer_id: nil,
|
|
388
|
-
messaging_use_case_us: nil,
|
|
389
|
-
sample_messages: nil
|
|
390
|
-
)
|
|
391
|
-
end
|
|
392
|
-
|
|
393
|
-
sig do
|
|
394
|
-
override.returns(
|
|
395
|
-
{
|
|
396
|
-
campaign_id: String,
|
|
397
|
-
customer_id: String,
|
|
398
|
-
messaging_use_case_us:
|
|
399
|
-
Sentdm::Profiles::MessagingUseCaseUs::TaggedSymbol,
|
|
400
|
-
sample_messages: T::Array[String]
|
|
401
|
-
}
|
|
402
|
-
)
|
|
403
|
-
end
|
|
404
|
-
def to_hash
|
|
405
|
-
end
|
|
406
|
-
end
|
|
407
|
-
end
|
|
408
|
-
end
|
|
409
|
-
end
|
|
410
|
-
end
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsAuthenticationConfig < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesCommonContractsPocOsAuthenticationConfig,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# Whether to add the security recommendation text: "For your security, do not
|
|
15
|
-
# share this code."
|
|
16
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
17
|
-
attr_reader :add_security_recommendation
|
|
18
|
-
|
|
19
|
-
sig { params(add_security_recommendation: T::Boolean).void }
|
|
20
|
-
attr_writer :add_security_recommendation
|
|
21
|
-
|
|
22
|
-
# Code expiration time in minutes (1-90). If set, adds footer: "This code expires
|
|
23
|
-
# in X minutes."
|
|
24
|
-
sig { returns(T.nilable(Integer)) }
|
|
25
|
-
attr_accessor :code_expiration_minutes
|
|
26
|
-
|
|
27
|
-
# Configuration for AUTHENTICATION category templates
|
|
28
|
-
sig do
|
|
29
|
-
params(
|
|
30
|
-
add_security_recommendation: T::Boolean,
|
|
31
|
-
code_expiration_minutes: T.nilable(Integer)
|
|
32
|
-
).returns(T.attached_class)
|
|
33
|
-
end
|
|
34
|
-
def self.new(
|
|
35
|
-
# Whether to add the security recommendation text: "For your security, do not
|
|
36
|
-
# share this code."
|
|
37
|
-
add_security_recommendation: nil,
|
|
38
|
-
# Code expiration time in minutes (1-90). If set, adds footer: "This code expires
|
|
39
|
-
# in X minutes."
|
|
40
|
-
code_expiration_minutes: nil
|
|
41
|
-
)
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
sig do
|
|
45
|
-
override.returns(
|
|
46
|
-
{
|
|
47
|
-
add_security_recommendation: T::Boolean,
|
|
48
|
-
code_expiration_minutes: T.nilable(Integer)
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
end
|
|
52
|
-
def to_hash
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsTemplateBody < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateBody,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# Content that will be used for all channels (SMS and WhatsApp) unless
|
|
15
|
-
# channel-specific content is provided
|
|
16
|
-
sig { returns(T.nilable(Sentdm::TemplateBodyContent)) }
|
|
17
|
-
attr_reader :multi_channel
|
|
18
|
-
|
|
19
|
-
sig do
|
|
20
|
-
params(
|
|
21
|
-
multi_channel: T.nilable(Sentdm::TemplateBodyContent::OrHash)
|
|
22
|
-
).void
|
|
23
|
-
end
|
|
24
|
-
attr_writer :multi_channel
|
|
25
|
-
|
|
26
|
-
# SMS-specific content that overrides multi-channel content for SMS messages
|
|
27
|
-
sig { returns(T.nilable(Sentdm::TemplateBodyContent)) }
|
|
28
|
-
attr_reader :sms
|
|
29
|
-
|
|
30
|
-
sig { params(sms: T.nilable(Sentdm::TemplateBodyContent::OrHash)).void }
|
|
31
|
-
attr_writer :sms
|
|
32
|
-
|
|
33
|
-
# WhatsApp-specific content that overrides multi-channel content for WhatsApp
|
|
34
|
-
# messages
|
|
35
|
-
sig { returns(T.nilable(Sentdm::TemplateBodyContent)) }
|
|
36
|
-
attr_reader :whatsapp
|
|
37
|
-
|
|
38
|
-
sig do
|
|
39
|
-
params(whatsapp: T.nilable(Sentdm::TemplateBodyContent::OrHash)).void
|
|
40
|
-
end
|
|
41
|
-
attr_writer :whatsapp
|
|
42
|
-
|
|
43
|
-
# Body section of a message template with channel-specific content
|
|
44
|
-
sig do
|
|
45
|
-
params(
|
|
46
|
-
multi_channel: T.nilable(Sentdm::TemplateBodyContent::OrHash),
|
|
47
|
-
sms: T.nilable(Sentdm::TemplateBodyContent::OrHash),
|
|
48
|
-
whatsapp: T.nilable(Sentdm::TemplateBodyContent::OrHash)
|
|
49
|
-
).returns(T.attached_class)
|
|
50
|
-
end
|
|
51
|
-
def self.new(
|
|
52
|
-
# Content that will be used for all channels (SMS and WhatsApp) unless
|
|
53
|
-
# channel-specific content is provided
|
|
54
|
-
multi_channel: nil,
|
|
55
|
-
# SMS-specific content that overrides multi-channel content for SMS messages
|
|
56
|
-
sms: nil,
|
|
57
|
-
# WhatsApp-specific content that overrides multi-channel content for WhatsApp
|
|
58
|
-
# messages
|
|
59
|
-
whatsapp: nil
|
|
60
|
-
)
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
sig do
|
|
64
|
-
override.returns(
|
|
65
|
-
{
|
|
66
|
-
multi_channel: T.nilable(Sentdm::TemplateBodyContent),
|
|
67
|
-
sms: T.nilable(Sentdm::TemplateBodyContent),
|
|
68
|
-
whatsapp: T.nilable(Sentdm::TemplateBodyContent)
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
end
|
|
72
|
-
def to_hash
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
end
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsTemplateButton < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButton,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# Properties specific to the button type
|
|
15
|
-
sig do
|
|
16
|
-
returns(Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps)
|
|
17
|
-
end
|
|
18
|
-
attr_reader :props
|
|
19
|
-
|
|
20
|
-
sig do
|
|
21
|
-
params(
|
|
22
|
-
props:
|
|
23
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps::OrHash
|
|
24
|
-
).void
|
|
25
|
-
end
|
|
26
|
-
attr_writer :props
|
|
27
|
-
|
|
28
|
-
# The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
|
|
29
|
-
sig { returns(String) }
|
|
30
|
-
attr_accessor :type
|
|
31
|
-
|
|
32
|
-
# The unique identifier of the button (1-based index)
|
|
33
|
-
sig { returns(T.nilable(Integer)) }
|
|
34
|
-
attr_reader :id
|
|
35
|
-
|
|
36
|
-
sig { params(id: Integer).void }
|
|
37
|
-
attr_writer :id
|
|
38
|
-
|
|
39
|
-
# Interactive button in a message template
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
props:
|
|
43
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps::OrHash,
|
|
44
|
-
type: String,
|
|
45
|
-
id: Integer
|
|
46
|
-
).returns(T.attached_class)
|
|
47
|
-
end
|
|
48
|
-
def self.new(
|
|
49
|
-
# Properties specific to the button type
|
|
50
|
-
props:,
|
|
51
|
-
# The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
|
|
52
|
-
type:,
|
|
53
|
-
# The unique identifier of the button (1-based index)
|
|
54
|
-
id: nil
|
|
55
|
-
)
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
sig do
|
|
59
|
-
override.returns(
|
|
60
|
-
{
|
|
61
|
-
props:
|
|
62
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
|
|
63
|
-
type: String,
|
|
64
|
-
id: Integer
|
|
65
|
-
}
|
|
66
|
-
)
|
|
67
|
-
end
|
|
68
|
-
def to_hash
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class SentDmServicesCommonContractsPocOsTemplateButtonProps < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
sig { returns(Integer) }
|
|
15
|
-
attr_accessor :active_for
|
|
16
|
-
|
|
17
|
-
sig { returns(String) }
|
|
18
|
-
attr_accessor :country_code
|
|
19
|
-
|
|
20
|
-
sig { returns(String) }
|
|
21
|
-
attr_accessor :offer_code
|
|
22
|
-
|
|
23
|
-
sig { returns(String) }
|
|
24
|
-
attr_accessor :phone_number
|
|
25
|
-
|
|
26
|
-
sig { returns(String) }
|
|
27
|
-
attr_accessor :quick_reply_type
|
|
28
|
-
|
|
29
|
-
sig { returns(String) }
|
|
30
|
-
attr_accessor :text
|
|
31
|
-
|
|
32
|
-
sig { returns(String) }
|
|
33
|
-
attr_accessor :url
|
|
34
|
-
|
|
35
|
-
sig { returns(String) }
|
|
36
|
-
attr_accessor :url_type
|
|
37
|
-
|
|
38
|
-
sig { returns(T.nilable(String)) }
|
|
39
|
-
attr_accessor :autofill_text
|
|
40
|
-
|
|
41
|
-
sig { returns(T.nilable(String)) }
|
|
42
|
-
attr_accessor :otp_type
|
|
43
|
-
|
|
44
|
-
sig { returns(T.nilable(String)) }
|
|
45
|
-
attr_accessor :package_name
|
|
46
|
-
|
|
47
|
-
sig { returns(T.nilable(String)) }
|
|
48
|
-
attr_accessor :signature_hash
|
|
49
|
-
|
|
50
|
-
sig do
|
|
51
|
-
params(
|
|
52
|
-
active_for: Integer,
|
|
53
|
-
country_code: String,
|
|
54
|
-
offer_code: String,
|
|
55
|
-
phone_number: String,
|
|
56
|
-
quick_reply_type: String,
|
|
57
|
-
text: String,
|
|
58
|
-
url: String,
|
|
59
|
-
url_type: String,
|
|
60
|
-
autofill_text: T.nilable(String),
|
|
61
|
-
otp_type: T.nilable(String),
|
|
62
|
-
package_name: T.nilable(String),
|
|
63
|
-
signature_hash: T.nilable(String)
|
|
64
|
-
).returns(T.attached_class)
|
|
65
|
-
end
|
|
66
|
-
def self.new(
|
|
67
|
-
active_for:,
|
|
68
|
-
country_code:,
|
|
69
|
-
offer_code:,
|
|
70
|
-
phone_number:,
|
|
71
|
-
quick_reply_type:,
|
|
72
|
-
text:,
|
|
73
|
-
url:,
|
|
74
|
-
url_type:,
|
|
75
|
-
autofill_text: nil,
|
|
76
|
-
otp_type: nil,
|
|
77
|
-
package_name: nil,
|
|
78
|
-
signature_hash: nil
|
|
79
|
-
)
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
sig do
|
|
83
|
-
override.returns(
|
|
84
|
-
{
|
|
85
|
-
active_for: Integer,
|
|
86
|
-
country_code: String,
|
|
87
|
-
offer_code: String,
|
|
88
|
-
phone_number: String,
|
|
89
|
-
quick_reply_type: String,
|
|
90
|
-
text: String,
|
|
91
|
-
url: String,
|
|
92
|
-
url_type: String,
|
|
93
|
-
autofill_text: T.nilable(String),
|
|
94
|
-
otp_type: T.nilable(String),
|
|
95
|
-
package_name: T.nilable(String),
|
|
96
|
-
signature_hash: T.nilable(String)
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
end
|
|
100
|
-
def to_hash
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
end
|