sentdm 0.2.0 → 0.3.1
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 +26 -0
- data/README.md +105 -39
- data/lib/sentdm/client.rb +36 -36
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +25 -0
- data/lib/sentdm/internal/util.rb +31 -0
- data/lib/sentdm/models/api_error.rb +42 -0
- data/lib/sentdm/models/api_meta.rb +42 -0
- data/lib/sentdm/models/api_response_brand_with_kyc.rb +43 -0
- data/lib/sentdm/models/api_response_contact.rb +43 -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/brand_create_params.rb +41 -0
- data/lib/sentdm/models/brand_data.rb +237 -0
- data/lib/sentdm/models/brand_delete_params.rb +34 -0
- data/lib/sentdm/models/{message_retrieve_params.rb → brand_list_params.rb} +2 -2
- data/lib/sentdm/models/brand_list_response.rb +43 -0
- data/lib/sentdm/models/brand_update_params.rb +48 -0
- data/lib/sentdm/models/brand_with_kyc.rb +335 -0
- data/lib/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rb +45 -0
- data/lib/sentdm/models/brands/base_dto.rb +32 -0
- data/lib/sentdm/models/brands/campaign_create_params.rb +50 -0
- data/lib/sentdm/models/brands/campaign_data.rb +123 -0
- data/lib/sentdm/models/brands/campaign_delete_params.rb +43 -0
- data/lib/sentdm/models/brands/campaign_list_params.rb +22 -0
- data/lib/sentdm/models/brands/campaign_list_response.rb +47 -0
- data/lib/sentdm/models/brands/campaign_update_params.rb +57 -0
- data/lib/sentdm/models/brands/messaging_use_case_us.rb +28 -0
- data/lib/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +30 -0
- data/lib/sentdm/models/brands/tcr_campaign_with_use_cases.rb +236 -0
- data/lib/sentdm/models/contact.rb +122 -0
- data/lib/sentdm/models/contact_create_params.rb +41 -0
- data/lib/sentdm/models/contact_delete_params.rb +34 -0
- data/lib/sentdm/models/contact_list_params.rb +28 -5
- data/lib/sentdm/models/contact_list_response.rb +46 -21
- data/lib/sentdm/models/{contact_retrieve_id_params.rb → contact_retrieve_params.rb} +3 -5
- data/lib/sentdm/models/contact_update_params.rb +56 -0
- data/lib/sentdm/models/destination_country.rb +21 -0
- data/lib/sentdm/models/{number_lookup_retrieve_params.rb → lookup_retrieve_phone_info_params.rb} +2 -2
- data/lib/sentdm/models/lookup_retrieve_phone_info_response.rb +104 -0
- data/lib/sentdm/models/me_retrieve_params.rb +14 -0
- data/lib/sentdm/models/me_retrieve_response.rb +200 -0
- data/lib/sentdm/models/message_retrieve_activities_params.rb +20 -0
- data/lib/sentdm/models/message_retrieve_activities_response.rb +103 -0
- data/lib/sentdm/models/message_retrieve_status_params.rb +20 -0
- data/lib/sentdm/models/message_retrieve_status_response.rb +237 -0
- data/lib/sentdm/models/message_send_params.rb +88 -0
- data/lib/sentdm/models/message_send_response.rb +123 -0
- data/lib/sentdm/models/mutation_request.rb +20 -0
- data/lib/sentdm/models/pagination_meta.rb +80 -0
- data/lib/sentdm/models/profile_complete_params.rb +48 -0
- data/lib/sentdm/models/profile_complete_response.rb +8 -0
- data/lib/sentdm/models/profile_create_params.rb +122 -0
- data/lib/sentdm/models/profile_delete_params.rb +41 -0
- data/lib/sentdm/models/profile_detail.rb +200 -0
- data/lib/sentdm/models/profile_list_params.rb +14 -0
- data/lib/sentdm/models/profile_list_response.rb +57 -0
- data/lib/sentdm/models/profile_retrieve_params.rb +20 -0
- data/lib/sentdm/models/profile_settings.rb +66 -0
- data/lib/sentdm/models/profile_update_params.rb +176 -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 +40 -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/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_create_params.rb +40 -19
- data/lib/sentdm/models/template_definition.rb +15 -255
- data/lib/sentdm/models/template_delete_params.rb +29 -1
- data/lib/sentdm/models/template_list_params.rb +9 -10
- data/lib/sentdm/models/template_list_response.rb +46 -21
- data/lib/sentdm/models/template_retrieve_params.rb +7 -1
- data/lib/sentdm/models/template_update_params.rb +80 -0
- data/lib/sentdm/models/user_invite_params.rb +57 -0
- data/lib/sentdm/models/user_list_params.rb +14 -0
- data/lib/sentdm/models/user_list_response.rb +57 -0
- data/lib/sentdm/models/user_remove_params.rb +41 -0
- data/lib/sentdm/models/user_response.rb +82 -0
- data/lib/sentdm/models/user_retrieve_params.rb +20 -0
- data/lib/sentdm/models/user_update_role_params.rb +56 -0
- data/lib/sentdm/models/webhook_create_params.rb +68 -0
- data/lib/sentdm/models/webhook_delete_params.rb +20 -0
- data/lib/sentdm/models/webhook_list_event_types_params.rb +14 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +85 -0
- data/lib/sentdm/models/webhook_list_events_params.rb +38 -0
- data/lib/sentdm/models/webhook_list_events_response.rb +135 -0
- data/lib/sentdm/models/webhook_list_params.rb +38 -0
- data/lib/sentdm/models/webhook_list_response.rb +64 -0
- data/lib/sentdm/models/webhook_response.rb +87 -0
- data/lib/sentdm/models/webhook_retrieve_params.rb +20 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +36 -0
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +56 -0
- data/lib/sentdm/models/webhook_test_params.rb +47 -0
- data/lib/sentdm/models/webhook_test_response.rb +62 -0
- data/lib/sentdm/models/webhook_toggle_status_params.rb +47 -0
- data/lib/sentdm/models/webhook_update_params.rb +75 -0
- data/lib/sentdm/models.rb +124 -10
- data/lib/sentdm/resources/brands/campaigns.rb +145 -0
- data/lib/sentdm/resources/brands.rb +130 -0
- data/lib/sentdm/resources/contacts.rb +113 -38
- data/lib/sentdm/resources/lookup.rb +35 -0
- data/lib/sentdm/resources/me.rb +35 -0
- data/lib/sentdm/resources/messages.rb +43 -77
- data/lib/sentdm/resources/profiles.rb +255 -0
- data/lib/sentdm/resources/templates.rb +97 -46
- data/lib/sentdm/resources/users.rb +159 -0
- data/lib/sentdm/resources/webhooks.rb +298 -0
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +94 -12
- data/rbi/sentdm/client.rbi +28 -25
- data/rbi/sentdm/internal/util.rbi +20 -0
- data/rbi/sentdm/models/api_error.rbi +66 -0
- data/rbi/sentdm/models/api_meta.rbi +69 -0
- data/rbi/sentdm/models/api_response_brand_with_kyc.rbi +74 -0
- data/rbi/sentdm/models/api_response_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/brand_create_params.rbi +68 -0
- data/rbi/sentdm/models/brand_data.rbi +266 -0
- data/rbi/sentdm/models/brand_delete_params.rbi +68 -0
- data/rbi/sentdm/models/{message_retrieve_params.rbi → brand_list_params.rbi} +2 -2
- data/rbi/sentdm/models/brand_list_response.rbi +71 -0
- data/rbi/sentdm/models/brand_update_params.rbi +74 -0
- data/rbi/sentdm/models/brand_with_kyc.rbi +398 -0
- data/rbi/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rbi +83 -0
- data/rbi/sentdm/models/brands/base_dto.rbi +53 -0
- data/rbi/sentdm/models/brands/campaign_create_params.rbi +79 -0
- data/rbi/sentdm/models/brands/campaign_data.rbi +148 -0
- data/rbi/sentdm/models/brands/campaign_delete_params.rbi +84 -0
- data/rbi/sentdm/models/brands/campaign_list_params.rbi +37 -0
- data/rbi/sentdm/models/brands/campaign_list_response.rbi +82 -0
- data/rbi/sentdm/models/brands/campaign_update_params.rbi +85 -0
- data/rbi/sentdm/models/brands/messaging_use_case_us.rbi +69 -0
- data/rbi/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +52 -0
- data/rbi/sentdm/models/brands/tcr_campaign_with_use_cases.rbi +404 -0
- data/rbi/sentdm/models/contact.rbi +179 -0
- data/rbi/sentdm/models/contact_create_params.rbi +68 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +68 -0
- data/rbi/sentdm/models/contact_list_params.rbi +26 -4
- data/rbi/sentdm/models/contact_list_response.rbi +91 -37
- data/rbi/sentdm/models/{contact_retrieve_id_params.rbi → contact_retrieve_params.rbi} +3 -8
- data/rbi/sentdm/models/contact_update_params.rbi +79 -0
- data/rbi/sentdm/models/destination_country.rbi +32 -0
- data/rbi/sentdm/models/{number_lookup_retrieve_params.rbi → lookup_retrieve_phone_info_params.rbi} +5 -2
- data/rbi/sentdm/models/lookup_retrieve_phone_info_response.rbi +183 -0
- data/rbi/sentdm/models/me_retrieve_params.rbi +27 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +314 -0
- data/rbi/sentdm/models/message_retrieve_activities_params.rbi +38 -0
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +234 -0
- data/rbi/sentdm/models/message_retrieve_status_params.rbi +35 -0
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +434 -0
- data/rbi/sentdm/models/message_send_params.rbi +143 -0
- data/rbi/sentdm/models/message_send_response.rbi +231 -0
- data/rbi/sentdm/models/mutation_request.rbi +32 -0
- data/rbi/sentdm/models/pagination_meta.rbi +135 -0
- data/rbi/sentdm/models/profile_complete_params.rbi +71 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -0
- data/rbi/sentdm/models/profile_create_params.rbi +156 -0
- data/rbi/sentdm/models/profile_delete_params.rbi +65 -0
- data/rbi/sentdm/models/profile_detail.rbi +273 -0
- data/rbi/sentdm/models/profile_list_params.rbi +27 -0
- data/rbi/sentdm/models/profile_list_response.rbi +111 -0
- data/rbi/sentdm/models/profile_retrieve_params.rbi +35 -0
- data/rbi/sentdm/models/profile_settings.rbi +86 -0
- data/rbi/sentdm/models/profile_update_params.rbi +202 -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 +76 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +79 -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 +60 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +62 -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_create_params.rbi +47 -23
- data/rbi/sentdm/models/template_definition.rbi +74 -405
- data/rbi/sentdm/models/template_delete_params.rbi +42 -5
- data/rbi/sentdm/models/template_list_params.rbi +8 -10
- data/rbi/sentdm/models/template_list_response.rbi +91 -37
- data/rbi/sentdm/models/template_retrieve_params.rbi +13 -5
- data/rbi/sentdm/models/template_update_params.rbi +111 -0
- data/rbi/sentdm/models/user_invite_params.rbi +90 -0
- data/rbi/sentdm/models/user_list_params.rbi +27 -0
- data/rbi/sentdm/models/user_list_response.rbi +111 -0
- data/rbi/sentdm/models/user_remove_params.rbi +65 -0
- data/rbi/sentdm/models/user_response.rbi +118 -0
- data/rbi/sentdm/models/user_retrieve_params.rbi +35 -0
- data/rbi/sentdm/models/user_update_role_params.rbi +85 -0
- data/rbi/sentdm/models/webhook_create_params.rbi +102 -0
- data/rbi/sentdm/models/webhook_delete_params.rbi +35 -0
- data/rbi/sentdm/models/webhook_list_event_types_params.rbi +27 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +206 -0
- data/rbi/sentdm/models/webhook_list_events_params.rbi +53 -0
- data/rbi/sentdm/models/webhook_list_events_response.rbi +263 -0
- data/rbi/sentdm/models/webhook_list_params.rbi +59 -0
- data/rbi/sentdm/models/webhook_list_response.rbi +126 -0
- data/rbi/sentdm/models/webhook_response.rbi +134 -0
- data/rbi/sentdm/models/webhook_retrieve_params.rbi +35 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +72 -0
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +112 -0
- data/rbi/sentdm/models/webhook_test_params.rbi +72 -0
- data/rbi/sentdm/models/webhook_test_response.rbi +111 -0
- data/rbi/sentdm/models/webhook_toggle_status_params.rbi +72 -0
- data/rbi/sentdm/models/webhook_update_params.rbi +108 -0
- data/rbi/sentdm/models.rbi +125 -10
- data/rbi/sentdm/resources/brands/campaigns.rbi +109 -0
- data/rbi/sentdm/resources/brands.rbi +95 -0
- data/rbi/sentdm/resources/contacts.rbi +90 -26
- data/rbi/sentdm/resources/lookup.rbi +24 -0
- data/rbi/sentdm/resources/me.rbi +24 -0
- data/rbi/sentdm/resources/messages.rbi +42 -60
- data/rbi/sentdm/resources/profiles.rbi +239 -0
- data/rbi/sentdm/resources/templates.rbi +95 -41
- data/rbi/sentdm/resources/users.rbi +117 -0
- data/rbi/sentdm/resources/webhooks.rbi +219 -0
- data/sig/sentdm/client.rbs +11 -8
- data/sig/sentdm/internal/util.rbs +10 -0
- data/sig/sentdm/models/api_error.rbs +39 -0
- data/sig/sentdm/models/api_meta.rbs +41 -0
- data/sig/sentdm/models/api_response_brand_with_kyc.rbs +39 -0
- data/sig/sentdm/models/api_response_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/brand_create_params.rbs +36 -0
- data/sig/sentdm/models/brand_data.rbs +164 -0
- data/sig/sentdm/models/brand_delete_params.rbs +36 -0
- data/sig/sentdm/models/brand_list_params.rbs +14 -0
- data/sig/sentdm/models/brand_list_response.rbs +39 -0
- data/sig/sentdm/models/brand_update_params.rbs +45 -0
- data/sig/sentdm/models/brand_with_kyc.rbs +237 -0
- data/sig/sentdm/models/brands/api_response_tcr_campaign_with_use_cases.rbs +41 -0
- data/sig/sentdm/models/brands/base_dto.rbs +27 -0
- data/sig/sentdm/models/brands/campaign_create_params.rbs +47 -0
- data/sig/sentdm/models/brands/campaign_data.rbs +82 -0
- data/sig/sentdm/models/brands/campaign_delete_params.rbs +46 -0
- data/sig/sentdm/models/brands/campaign_list_params.rbs +25 -0
- data/sig/sentdm/models/brands/campaign_list_response.rbs +41 -0
- data/sig/sentdm/models/brands/campaign_update_params.rbs +52 -0
- data/sig/sentdm/models/brands/messaging_use_case_us.rbs +40 -0
- data/sig/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/brands/tcr_campaign_with_use_cases.rbs +285 -0
- data/sig/sentdm/models/{contact_list_item.rbs → contact.rbs} +31 -5
- data/sig/sentdm/models/contact_create_params.rbs +38 -0
- data/sig/sentdm/models/contact_delete_params.rbs +36 -0
- data/sig/sentdm/models/contact_list_params.rbs +19 -1
- data/sig/sentdm/models/contact_list_response.rbs +44 -31
- data/sig/sentdm/models/{contact_retrieve_id_params.rbs → contact_retrieve_params.rbs} +2 -2
- data/sig/sentdm/models/contact_update_params.rbs +50 -0
- data/sig/sentdm/models/destination_country.rbs +19 -0
- data/sig/sentdm/models/{number_lookup_retrieve_params.rbs → lookup_retrieve_phone_info_params.rbs} +2 -2
- data/sig/sentdm/models/lookup_retrieve_phone_info_response.rbs +102 -0
- data/sig/sentdm/models/me_retrieve_params.rbs +14 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +162 -0
- data/sig/sentdm/models/message_retrieve_activities_params.rbs +20 -0
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +105 -0
- data/sig/sentdm/models/message_retrieve_status_params.rbs +20 -0
- data/sig/sentdm/models/message_retrieve_status_response.rbs +224 -0
- data/sig/sentdm/models/message_send_params.rbs +79 -0
- data/sig/sentdm/models/message_send_response.rbs +108 -0
- data/sig/sentdm/models/mutation_request.rbs +15 -0
- data/sig/sentdm/models/pagination_meta.rbs +67 -0
- data/sig/sentdm/models/profile_complete_params.rbs +45 -0
- data/sig/sentdm/models/profile_complete_response.rbs +5 -0
- data/sig/sentdm/models/profile_create_params.rbs +96 -0
- data/sig/sentdm/models/profile_delete_params.rbs +36 -0
- data/sig/sentdm/models/profile_detail.rbs +168 -0
- data/sig/sentdm/models/profile_list_params.rbs +14 -0
- data/sig/sentdm/models/profile_list_response.rbs +53 -0
- data/sig/sentdm/models/{contact_retrieve_by_phone_params.rbs → profile_retrieve_params.rbs} +6 -6
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +127 -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 +30 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +38 -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 +32 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +32 -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_response_v2.rbs → template.rbs} +18 -31
- data/sig/sentdm/models/template_create_params.rbs +29 -6
- data/sig/sentdm/models/template_definition.rbs +20 -233
- data/sig/sentdm/models/template_delete_params.rbs +22 -3
- data/sig/sentdm/models/template_list_response.rbs +44 -31
- data/sig/sentdm/models/template_retrieve_params.rbs +8 -3
- data/sig/sentdm/models/template_update_params.rbs +67 -0
- data/sig/sentdm/models/user_invite_params.rbs +56 -0
- data/sig/sentdm/models/user_list_params.rbs +14 -0
- data/sig/sentdm/models/user_list_response.rbs +53 -0
- data/sig/sentdm/models/user_remove_params.rbs +36 -0
- data/sig/sentdm/models/user_response.rbs +72 -0
- data/sig/sentdm/models/user_retrieve_params.rbs +23 -0
- data/sig/sentdm/models/user_update_role_params.rbs +54 -0
- data/sig/sentdm/models/webhook_create_params.rbs +70 -0
- data/sig/sentdm/models/webhook_delete_params.rbs +20 -0
- data/sig/sentdm/models/{message_retrieve_params.rbs → webhook_list_event_types_params.rbs} +2 -2
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +98 -0
- data/sig/sentdm/models/webhook_list_events_params.rbs +36 -0
- data/sig/sentdm/models/webhook_list_events_response.rbs +146 -0
- data/sig/sentdm/models/webhook_list_params.rbs +36 -0
- data/sig/sentdm/models/webhook_list_response.rbs +67 -0
- data/sig/sentdm/models/webhook_response.rbs +98 -0
- data/sig/sentdm/models/webhook_retrieve_params.rbs +20 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +46 -0
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +51 -0
- data/sig/sentdm/models/webhook_test_params.rbs +47 -0
- data/sig/sentdm/models/webhook_test_response.rbs +55 -0
- data/sig/sentdm/models/webhook_toggle_status_params.rbs +42 -0
- data/sig/sentdm/models/webhook_update_params.rbs +75 -0
- data/sig/sentdm/models.rbs +118 -10
- data/sig/sentdm/resources/brands/campaigns.rbs +38 -0
- data/sig/sentdm/resources/brands.rbs +34 -0
- data/sig/sentdm/resources/contacts.rbs +28 -8
- data/sig/sentdm/resources/lookup.rbs +12 -0
- data/sig/sentdm/resources/{number_lookup.rbs → me.rbs} +2 -3
- data/sig/sentdm/resources/messages.rbs +12 -18
- data/sig/sentdm/resources/profiles.rbs +72 -0
- data/sig/sentdm/resources/templates.rbs +24 -4
- data/sig/sentdm/resources/users.rbs +41 -0
- data/sig/sentdm/resources/webhooks.rbs +80 -0
- metadata +284 -38
- data/lib/sentdm/models/contact_list_item.rb +0 -96
- data/lib/sentdm/models/contact_retrieve_by_phone_params.rb +0 -22
- data/lib/sentdm/models/message_retrieve_response.rb +0 -227
- data/lib/sentdm/models/message_send_quick_message_params.rb +0 -34
- data/lib/sentdm/models/message_send_to_contact_params.rb +0 -46
- data/lib/sentdm/models/message_send_to_phone_params.rb +0 -47
- data/lib/sentdm/models/number_lookup_retrieve_response.rb +0 -83
- data/lib/sentdm/models/template_response_v2.rb +0 -100
- data/lib/sentdm/resources/number_lookup.rb +0 -37
- data/rbi/sentdm/models/contact_list_item.rbi +0 -144
- data/rbi/sentdm/models/contact_retrieve_by_phone_params.rbi +0 -40
- data/rbi/sentdm/models/message_retrieve_response.rbi +0 -376
- data/rbi/sentdm/models/message_send_quick_message_params.rbi +0 -56
- data/rbi/sentdm/models/message_send_to_contact_params.rbi +0 -63
- data/rbi/sentdm/models/message_send_to_phone_params.rbi +0 -65
- data/rbi/sentdm/models/number_lookup_retrieve_response.rbi +0 -132
- data/rbi/sentdm/models/template_response_v2.rbi +0 -149
- data/rbi/sentdm/resources/number_lookup.rbi +0 -24
- data/sig/sentdm/models/message_retrieve_response.rbs +0 -188
- data/sig/sentdm/models/message_send_quick_message_params.rbs +0 -28
- data/sig/sentdm/models/message_send_to_contact_params.rbs +0 -36
- data/sig/sentdm/models/message_send_to_phone_params.rbs +0 -36
- data/sig/sentdm/models/number_lookup_retrieve_response.rbs +0 -78
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type campaign_data =
|
|
5
|
+
{
|
|
6
|
+
description: String,
|
|
7
|
+
name: String,
|
|
8
|
+
type: String,
|
|
9
|
+
use_cases: ::Array[Sentdm::Brands::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData],
|
|
10
|
+
help_keywords: String?,
|
|
11
|
+
help_message: String?,
|
|
12
|
+
message_flow: String?,
|
|
13
|
+
optin_keywords: String?,
|
|
14
|
+
optin_message: String?,
|
|
15
|
+
optout_keywords: String?,
|
|
16
|
+
optout_message: String?,
|
|
17
|
+
privacy_policy_link: String?,
|
|
18
|
+
terms_and_conditions_link: String?
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class CampaignData < Sentdm::Internal::Type::BaseModel
|
|
22
|
+
attr_accessor description: String
|
|
23
|
+
|
|
24
|
+
attr_accessor name: String
|
|
25
|
+
|
|
26
|
+
attr_accessor type: String
|
|
27
|
+
|
|
28
|
+
attr_accessor use_cases: ::Array[Sentdm::Brands::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData]
|
|
29
|
+
|
|
30
|
+
attr_accessor help_keywords: String?
|
|
31
|
+
|
|
32
|
+
attr_accessor help_message: String?
|
|
33
|
+
|
|
34
|
+
attr_accessor message_flow: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor optin_keywords: String?
|
|
37
|
+
|
|
38
|
+
attr_accessor optin_message: String?
|
|
39
|
+
|
|
40
|
+
attr_accessor optout_keywords: String?
|
|
41
|
+
|
|
42
|
+
attr_accessor optout_message: String?
|
|
43
|
+
|
|
44
|
+
attr_accessor privacy_policy_link: String?
|
|
45
|
+
|
|
46
|
+
attr_accessor terms_and_conditions_link: String?
|
|
47
|
+
|
|
48
|
+
def initialize: (
|
|
49
|
+
description: String,
|
|
50
|
+
name: String,
|
|
51
|
+
type: String,
|
|
52
|
+
use_cases: ::Array[Sentdm::Brands::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData],
|
|
53
|
+
?help_keywords: String?,
|
|
54
|
+
?help_message: String?,
|
|
55
|
+
?message_flow: String?,
|
|
56
|
+
?optin_keywords: String?,
|
|
57
|
+
?optin_message: String?,
|
|
58
|
+
?optout_keywords: String?,
|
|
59
|
+
?optout_message: String?,
|
|
60
|
+
?privacy_policy_link: String?,
|
|
61
|
+
?terms_and_conditions_link: String?
|
|
62
|
+
) -> void
|
|
63
|
+
|
|
64
|
+
def to_hash: -> {
|
|
65
|
+
description: String,
|
|
66
|
+
name: String,
|
|
67
|
+
type: String,
|
|
68
|
+
use_cases: ::Array[Sentdm::Brands::SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData],
|
|
69
|
+
help_keywords: String?,
|
|
70
|
+
help_message: String?,
|
|
71
|
+
message_flow: String?,
|
|
72
|
+
optin_keywords: String?,
|
|
73
|
+
optin_message: String?,
|
|
74
|
+
optout_keywords: String?,
|
|
75
|
+
optout_message: String?,
|
|
76
|
+
privacy_policy_link: String?,
|
|
77
|
+
terms_and_conditions_link: String?
|
|
78
|
+
}
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type campaign_delete_params =
|
|
5
|
+
{
|
|
6
|
+
brand_id: String,
|
|
7
|
+
campaign_id: String,
|
|
8
|
+
body: Sentdm::Brands::CampaignDeleteParams::Body
|
|
9
|
+
}
|
|
10
|
+
& Sentdm::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class CampaignDeleteParams < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor brand_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor campaign_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor body: Sentdm::Brands::CampaignDeleteParams::Body
|
|
21
|
+
|
|
22
|
+
def initialize: (
|
|
23
|
+
brand_id: String,
|
|
24
|
+
campaign_id: String,
|
|
25
|
+
body: Sentdm::Brands::CampaignDeleteParams::Body,
|
|
26
|
+
?request_options: Sentdm::request_opts
|
|
27
|
+
) -> void
|
|
28
|
+
|
|
29
|
+
def to_hash: -> {
|
|
30
|
+
brand_id: String,
|
|
31
|
+
campaign_id: String,
|
|
32
|
+
body: Sentdm::Brands::CampaignDeleteParams::Body,
|
|
33
|
+
request_options: Sentdm::RequestOptions
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
type body = { }
|
|
37
|
+
|
|
38
|
+
class Body < Sentdm::Models::MutationRequest
|
|
39
|
+
def initialize: -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> { }
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type campaign_list_params =
|
|
5
|
+
{ brand_id: String } & Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CampaignListParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor brand_id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
brand_id: String,
|
|
15
|
+
?request_options: Sentdm::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
brand_id: String,
|
|
20
|
+
request_options: Sentdm::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type campaign_list_response =
|
|
5
|
+
{
|
|
6
|
+
data: ::Array[Sentdm::Brands::TcrCampaignWithUseCases]?,
|
|
7
|
+
error: Sentdm::APIError?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class CampaignListResponse < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: ::Array[Sentdm::Brands::TcrCampaignWithUseCases]?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::APIError?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: ::Array[Sentdm::Brands::TcrCampaignWithUseCases]?,
|
|
27
|
+
?error: Sentdm::APIError?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: ::Array[Sentdm::Brands::TcrCampaignWithUseCases]?,
|
|
34
|
+
error: Sentdm::APIError?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type campaign_update_params =
|
|
5
|
+
{
|
|
6
|
+
brand_id: String,
|
|
7
|
+
campaign_id: String,
|
|
8
|
+
campaign: Sentdm::Brands::CampaignData,
|
|
9
|
+
test_mode: bool,
|
|
10
|
+
idempotency_key: String
|
|
11
|
+
}
|
|
12
|
+
& Sentdm::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class CampaignUpdateParams < Sentdm::Internal::Type::BaseModel
|
|
15
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor brand_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor campaign_id: String
|
|
21
|
+
|
|
22
|
+
attr_accessor campaign: Sentdm::Brands::CampaignData
|
|
23
|
+
|
|
24
|
+
attr_reader test_mode: bool?
|
|
25
|
+
|
|
26
|
+
def test_mode=: (bool) -> bool
|
|
27
|
+
|
|
28
|
+
attr_reader idempotency_key: String?
|
|
29
|
+
|
|
30
|
+
def idempotency_key=: (String) -> String
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
brand_id: String,
|
|
34
|
+
campaign_id: String,
|
|
35
|
+
campaign: Sentdm::Brands::CampaignData,
|
|
36
|
+
?test_mode: bool,
|
|
37
|
+
?idempotency_key: String,
|
|
38
|
+
?request_options: Sentdm::request_opts
|
|
39
|
+
) -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> {
|
|
42
|
+
brand_id: String,
|
|
43
|
+
campaign_id: String,
|
|
44
|
+
campaign: Sentdm::Brands::CampaignData,
|
|
45
|
+
test_mode: bool,
|
|
46
|
+
idempotency_key: String,
|
|
47
|
+
request_options: Sentdm::RequestOptions
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type messaging_use_case_us =
|
|
5
|
+
:MARKETING
|
|
6
|
+
| :ACCOUNT_NOTIFICATION
|
|
7
|
+
| :CUSTOMER_CARE
|
|
8
|
+
| :FRAUD_ALERT
|
|
9
|
+
| :TWO_FA
|
|
10
|
+
| :DELIVERY_NOTIFICATION
|
|
11
|
+
| :SECURITY_ALERT
|
|
12
|
+
| :M2M
|
|
13
|
+
| :MIXED
|
|
14
|
+
| :HIGHER_EDUCATION
|
|
15
|
+
| :POLLING_VOTING
|
|
16
|
+
| :PUBLIC_SERVICE_ANNOUNCEMENT
|
|
17
|
+
| :LOW_VOLUME
|
|
18
|
+
|
|
19
|
+
module MessagingUseCaseUs
|
|
20
|
+
extend Sentdm::Internal::Type::Enum
|
|
21
|
+
|
|
22
|
+
MARKETING: :MARKETING
|
|
23
|
+
ACCOUNT_NOTIFICATION: :ACCOUNT_NOTIFICATION
|
|
24
|
+
CUSTOMER_CARE: :CUSTOMER_CARE
|
|
25
|
+
FRAUD_ALERT: :FRAUD_ALERT
|
|
26
|
+
TWO_FA: :TWO_FA
|
|
27
|
+
DELIVERY_NOTIFICATION: :DELIVERY_NOTIFICATION
|
|
28
|
+
SECURITY_ALERT: :SECURITY_ALERT
|
|
29
|
+
M2_M: :M2M
|
|
30
|
+
MIXED: :MIXED
|
|
31
|
+
HIGHER_EDUCATION: :HIGHER_EDUCATION
|
|
32
|
+
POLLING_VOTING: :POLLING_VOTING
|
|
33
|
+
PUBLIC_SERVICE_ANNOUNCEMENT: :PUBLIC_SERVICE_ANNOUNCEMENT
|
|
34
|
+
LOW_VOLUME: :LOW_VOLUME
|
|
35
|
+
|
|
36
|
+
def self?.values: -> ::Array[Sentdm::Models::Brands::messaging_use_case_us]
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data =
|
|
5
|
+
{
|
|
6
|
+
messaging_use_case_us: Sentdm::Models::Brands::messaging_use_case_us,
|
|
7
|
+
sample_messages: ::Array[String]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData < Sentdm::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor messaging_use_case_us: Sentdm::Models::Brands::messaging_use_case_us
|
|
12
|
+
|
|
13
|
+
attr_accessor sample_messages: ::Array[String]
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
messaging_use_case_us: Sentdm::Models::Brands::messaging_use_case_us,
|
|
17
|
+
sample_messages: ::Array[String]
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
messaging_use_case_us: Sentdm::Models::Brands::messaging_use_case_us,
|
|
22
|
+
sample_messages: ::Array[String]
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type tcr_campaign_with_use_cases =
|
|
5
|
+
{
|
|
6
|
+
billed_date: Time?,
|
|
7
|
+
brand_id: String?,
|
|
8
|
+
cost: Float?,
|
|
9
|
+
csp_id: String?,
|
|
10
|
+
customer_id: String,
|
|
11
|
+
description: String,
|
|
12
|
+
help_keywords: String?,
|
|
13
|
+
help_message: String?,
|
|
14
|
+
kyc_submission_form_id: String?,
|
|
15
|
+
message_flow: String?,
|
|
16
|
+
name: String,
|
|
17
|
+
optin_keywords: String?,
|
|
18
|
+
optin_message: String?,
|
|
19
|
+
optout_keywords: String?,
|
|
20
|
+
optout_message: String?,
|
|
21
|
+
privacy_policy_link: String?,
|
|
22
|
+
reseller_id: String?,
|
|
23
|
+
sharing_status: Sentdm::Models::Brands::TcrCampaignWithUseCases::sharing_status?,
|
|
24
|
+
status: Sentdm::Models::Brands::TcrCampaignWithUseCases::status?,
|
|
25
|
+
submitted_at: Time?,
|
|
26
|
+
submitted_to_tcr: bool,
|
|
27
|
+
tcr_campaign_id: String?,
|
|
28
|
+
tcr_sync_error: String?,
|
|
29
|
+
telnyx_campaign_id: String?,
|
|
30
|
+
terms_and_conditions_link: String?,
|
|
31
|
+
type: String,
|
|
32
|
+
upstream_cnp_id: String?,
|
|
33
|
+
use_cases: ::Array[Sentdm::Brands::TcrCampaignWithUseCases::UseCase]
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
class TcrCampaignWithUseCases < Sentdm::Models::Brands::BaseDto
|
|
37
|
+
def billed_date: -> Time?
|
|
38
|
+
|
|
39
|
+
def billed_date=: (Time? _) -> Time?
|
|
40
|
+
|
|
41
|
+
def brand_id: -> String?
|
|
42
|
+
|
|
43
|
+
def brand_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def cost: -> Float?
|
|
46
|
+
|
|
47
|
+
def cost=: (Float? _) -> Float?
|
|
48
|
+
|
|
49
|
+
def csp_id: -> String?
|
|
50
|
+
|
|
51
|
+
def csp_id=: (String? _) -> String?
|
|
52
|
+
|
|
53
|
+
def customer_id: -> String?
|
|
54
|
+
|
|
55
|
+
def customer_id=: (String _) -> String
|
|
56
|
+
|
|
57
|
+
def description: -> String?
|
|
58
|
+
|
|
59
|
+
def description=: (String _) -> String
|
|
60
|
+
|
|
61
|
+
def help_keywords: -> String?
|
|
62
|
+
|
|
63
|
+
def help_keywords=: (String? _) -> String?
|
|
64
|
+
|
|
65
|
+
def help_message: -> String?
|
|
66
|
+
|
|
67
|
+
def help_message=: (String? _) -> String?
|
|
68
|
+
|
|
69
|
+
def kyc_submission_form_id: -> String?
|
|
70
|
+
|
|
71
|
+
def kyc_submission_form_id=: (String? _) -> String?
|
|
72
|
+
|
|
73
|
+
def message_flow: -> String?
|
|
74
|
+
|
|
75
|
+
def message_flow=: (String? _) -> String?
|
|
76
|
+
|
|
77
|
+
def name: -> String?
|
|
78
|
+
|
|
79
|
+
def name=: (String _) -> String
|
|
80
|
+
|
|
81
|
+
def optin_keywords: -> String?
|
|
82
|
+
|
|
83
|
+
def optin_keywords=: (String? _) -> String?
|
|
84
|
+
|
|
85
|
+
def optin_message: -> String?
|
|
86
|
+
|
|
87
|
+
def optin_message=: (String? _) -> String?
|
|
88
|
+
|
|
89
|
+
def optout_keywords: -> String?
|
|
90
|
+
|
|
91
|
+
def optout_keywords=: (String? _) -> String?
|
|
92
|
+
|
|
93
|
+
def optout_message: -> String?
|
|
94
|
+
|
|
95
|
+
def optout_message=: (String? _) -> String?
|
|
96
|
+
|
|
97
|
+
def privacy_policy_link: -> String?
|
|
98
|
+
|
|
99
|
+
def privacy_policy_link=: (String? _) -> String?
|
|
100
|
+
|
|
101
|
+
def reseller_id: -> String?
|
|
102
|
+
|
|
103
|
+
def reseller_id=: (String? _) -> String?
|
|
104
|
+
|
|
105
|
+
def sharing_status: -> Sentdm::Models::Brands::TcrCampaignWithUseCases::sharing_status?
|
|
106
|
+
|
|
107
|
+
def sharing_status=: (
|
|
108
|
+
Sentdm::Models::Brands::TcrCampaignWithUseCases::sharing_status? _
|
|
109
|
+
) -> Sentdm::Models::Brands::TcrCampaignWithUseCases::sharing_status?
|
|
110
|
+
|
|
111
|
+
def status: -> Sentdm::Models::Brands::TcrCampaignWithUseCases::status?
|
|
112
|
+
|
|
113
|
+
def status=: (
|
|
114
|
+
Sentdm::Models::Brands::TcrCampaignWithUseCases::status? _
|
|
115
|
+
) -> Sentdm::Models::Brands::TcrCampaignWithUseCases::status?
|
|
116
|
+
|
|
117
|
+
def submitted_at: -> Time?
|
|
118
|
+
|
|
119
|
+
def submitted_at=: (Time? _) -> Time?
|
|
120
|
+
|
|
121
|
+
def submitted_to_tcr: -> bool?
|
|
122
|
+
|
|
123
|
+
def submitted_to_tcr=: (bool _) -> bool
|
|
124
|
+
|
|
125
|
+
def tcr_campaign_id: -> String?
|
|
126
|
+
|
|
127
|
+
def tcr_campaign_id=: (String? _) -> String?
|
|
128
|
+
|
|
129
|
+
def tcr_sync_error: -> String?
|
|
130
|
+
|
|
131
|
+
def tcr_sync_error=: (String? _) -> String?
|
|
132
|
+
|
|
133
|
+
def telnyx_campaign_id: -> String?
|
|
134
|
+
|
|
135
|
+
def telnyx_campaign_id=: (String? _) -> String?
|
|
136
|
+
|
|
137
|
+
def terms_and_conditions_link: -> String?
|
|
138
|
+
|
|
139
|
+
def terms_and_conditions_link=: (String? _) -> String?
|
|
140
|
+
|
|
141
|
+
def `type`: -> String?
|
|
142
|
+
|
|
143
|
+
def type=: (String _) -> String
|
|
144
|
+
|
|
145
|
+
def upstream_cnp_id: -> String?
|
|
146
|
+
|
|
147
|
+
def upstream_cnp_id=: (String? _) -> String?
|
|
148
|
+
|
|
149
|
+
def use_cases: -> ::Array[Sentdm::Brands::TcrCampaignWithUseCases::UseCase]?
|
|
150
|
+
|
|
151
|
+
def use_cases=: (
|
|
152
|
+
::Array[Sentdm::Brands::TcrCampaignWithUseCases::UseCase] _
|
|
153
|
+
) -> ::Array[Sentdm::Brands::TcrCampaignWithUseCases::UseCase]
|
|
154
|
+
|
|
155
|
+
def initialize: (
|
|
156
|
+
?billed_date: Time?,
|
|
157
|
+
?brand_id: String?,
|
|
158
|
+
?cost: Float?,
|
|
159
|
+
?csp_id: String?,
|
|
160
|
+
?customer_id: String,
|
|
161
|
+
?description: String,
|
|
162
|
+
?help_keywords: String?,
|
|
163
|
+
?help_message: String?,
|
|
164
|
+
?kyc_submission_form_id: String?,
|
|
165
|
+
?message_flow: String?,
|
|
166
|
+
?name: String,
|
|
167
|
+
?optin_keywords: String?,
|
|
168
|
+
?optin_message: String?,
|
|
169
|
+
?optout_keywords: String?,
|
|
170
|
+
?optout_message: String?,
|
|
171
|
+
?privacy_policy_link: String?,
|
|
172
|
+
?reseller_id: String?,
|
|
173
|
+
?sharing_status: Sentdm::Models::Brands::TcrCampaignWithUseCases::sharing_status?,
|
|
174
|
+
?status: Sentdm::Models::Brands::TcrCampaignWithUseCases::status?,
|
|
175
|
+
?submitted_at: Time?,
|
|
176
|
+
?submitted_to_tcr: bool,
|
|
177
|
+
?tcr_campaign_id: String?,
|
|
178
|
+
?tcr_sync_error: String?,
|
|
179
|
+
?telnyx_campaign_id: String?,
|
|
180
|
+
?terms_and_conditions_link: String?,
|
|
181
|
+
?type: String,
|
|
182
|
+
?upstream_cnp_id: String?,
|
|
183
|
+
?use_cases: ::Array[Sentdm::Brands::TcrCampaignWithUseCases::UseCase]
|
|
184
|
+
) -> void
|
|
185
|
+
|
|
186
|
+
def to_hash: -> {
|
|
187
|
+
billed_date: Time?,
|
|
188
|
+
brand_id: String?,
|
|
189
|
+
cost: Float?,
|
|
190
|
+
csp_id: String?,
|
|
191
|
+
customer_id: String,
|
|
192
|
+
description: String,
|
|
193
|
+
help_keywords: String?,
|
|
194
|
+
help_message: String?,
|
|
195
|
+
kyc_submission_form_id: String?,
|
|
196
|
+
message_flow: String?,
|
|
197
|
+
name: String,
|
|
198
|
+
optin_keywords: String?,
|
|
199
|
+
optin_message: String?,
|
|
200
|
+
optout_keywords: String?,
|
|
201
|
+
optout_message: String?,
|
|
202
|
+
privacy_policy_link: String?,
|
|
203
|
+
reseller_id: String?,
|
|
204
|
+
sharing_status: Sentdm::Models::Brands::TcrCampaignWithUseCases::sharing_status?,
|
|
205
|
+
status: Sentdm::Models::Brands::TcrCampaignWithUseCases::status?,
|
|
206
|
+
submitted_at: Time?,
|
|
207
|
+
submitted_to_tcr: bool,
|
|
208
|
+
tcr_campaign_id: String?,
|
|
209
|
+
tcr_sync_error: String?,
|
|
210
|
+
telnyx_campaign_id: String?,
|
|
211
|
+
terms_and_conditions_link: String?,
|
|
212
|
+
type: String,
|
|
213
|
+
upstream_cnp_id: String?,
|
|
214
|
+
use_cases: ::Array[Sentdm::Brands::TcrCampaignWithUseCases::UseCase]
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
type sharing_status = :PENDING | :ACCEPTED | :DECLINED
|
|
218
|
+
|
|
219
|
+
module SharingStatus
|
|
220
|
+
extend Sentdm::Internal::Type::Enum
|
|
221
|
+
|
|
222
|
+
PENDING: :PENDING
|
|
223
|
+
ACCEPTED: :ACCEPTED
|
|
224
|
+
DECLINED: :DECLINED
|
|
225
|
+
|
|
226
|
+
def self?.values: -> ::Array[Sentdm::Models::Brands::TcrCampaignWithUseCases::sharing_status]
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
type status = :SENT_CREATED | :ACTIVE | :EXPIRED
|
|
230
|
+
|
|
231
|
+
module Status
|
|
232
|
+
extend Sentdm::Internal::Type::Enum
|
|
233
|
+
|
|
234
|
+
SENT_CREATED: :SENT_CREATED
|
|
235
|
+
ACTIVE: :ACTIVE
|
|
236
|
+
EXPIRED: :EXPIRED
|
|
237
|
+
|
|
238
|
+
def self?.values: -> ::Array[Sentdm::Models::Brands::TcrCampaignWithUseCases::status]
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
type use_case =
|
|
242
|
+
{
|
|
243
|
+
campaign_id: String,
|
|
244
|
+
customer_id: String,
|
|
245
|
+
messaging_use_case_us: Sentdm::Models::Brands::messaging_use_case_us,
|
|
246
|
+
sample_messages: ::Array[String]
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
class UseCase < Sentdm::Models::Brands::BaseDto
|
|
250
|
+
def campaign_id: -> String?
|
|
251
|
+
|
|
252
|
+
def campaign_id=: (String _) -> String
|
|
253
|
+
|
|
254
|
+
def customer_id: -> String?
|
|
255
|
+
|
|
256
|
+
def customer_id=: (String _) -> String
|
|
257
|
+
|
|
258
|
+
def messaging_use_case_us: -> Sentdm::Models::Brands::messaging_use_case_us?
|
|
259
|
+
|
|
260
|
+
def messaging_use_case_us=: (
|
|
261
|
+
Sentdm::Models::Brands::messaging_use_case_us _
|
|
262
|
+
) -> Sentdm::Models::Brands::messaging_use_case_us
|
|
263
|
+
|
|
264
|
+
def sample_messages: -> ::Array[String]?
|
|
265
|
+
|
|
266
|
+
def sample_messages=: (::Array[String] _) -> ::Array[String]
|
|
267
|
+
|
|
268
|
+
def initialize: (
|
|
269
|
+
?campaign_id: String,
|
|
270
|
+
?customer_id: String,
|
|
271
|
+
?messaging_use_case_us: Sentdm::Models::Brands::messaging_use_case_us,
|
|
272
|
+
?sample_messages: ::Array[String]
|
|
273
|
+
) -> void
|
|
274
|
+
|
|
275
|
+
def to_hash: -> {
|
|
276
|
+
campaign_id: String,
|
|
277
|
+
customer_id: String,
|
|
278
|
+
messaging_use_case_us: Sentdm::Models::Brands::messaging_use_case_us,
|
|
279
|
+
sample_messages: ::Array[String]
|
|
280
|
+
}
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
end
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type contact =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
available_channels: String,
|
|
7
7
|
country_code: String,
|
|
8
|
+
created_at: Time,
|
|
8
9
|
default_channel: String,
|
|
9
10
|
:format_e164 => String,
|
|
10
11
|
format_international: String,
|
|
11
12
|
format_national: String,
|
|
12
13
|
format_rfc: String,
|
|
14
|
+
is_inherited: bool,
|
|
15
|
+
opt_out: bool,
|
|
13
16
|
phone_number: String,
|
|
14
|
-
region_code: String
|
|
17
|
+
region_code: String,
|
|
18
|
+
updated_at: Time?
|
|
15
19
|
}
|
|
16
20
|
|
|
17
|
-
class
|
|
21
|
+
class Contact < Sentdm::Internal::Type::BaseModel
|
|
18
22
|
attr_reader id: String?
|
|
19
23
|
|
|
20
24
|
def id=: (String) -> String
|
|
@@ -27,6 +31,10 @@ module Sentdm
|
|
|
27
31
|
|
|
28
32
|
def country_code=: (String) -> String
|
|
29
33
|
|
|
34
|
+
attr_reader created_at: Time?
|
|
35
|
+
|
|
36
|
+
def created_at=: (Time) -> Time
|
|
37
|
+
|
|
30
38
|
attr_reader default_channel: String?
|
|
31
39
|
|
|
32
40
|
def default_channel=: (String) -> String
|
|
@@ -47,6 +55,14 @@ module Sentdm
|
|
|
47
55
|
|
|
48
56
|
def format_rfc=: (String) -> String
|
|
49
57
|
|
|
58
|
+
attr_reader is_inherited: bool?
|
|
59
|
+
|
|
60
|
+
def is_inherited=: (bool) -> bool
|
|
61
|
+
|
|
62
|
+
attr_reader opt_out: bool?
|
|
63
|
+
|
|
64
|
+
def opt_out=: (bool) -> bool
|
|
65
|
+
|
|
50
66
|
attr_reader phone_number: String?
|
|
51
67
|
|
|
52
68
|
def phone_number=: (String) -> String
|
|
@@ -55,30 +71,40 @@ module Sentdm
|
|
|
55
71
|
|
|
56
72
|
def region_code=: (String) -> String
|
|
57
73
|
|
|
74
|
+
attr_accessor updated_at: Time?
|
|
75
|
+
|
|
58
76
|
def initialize: (
|
|
59
77
|
?id: String,
|
|
60
78
|
?available_channels: String,
|
|
61
79
|
?country_code: String,
|
|
80
|
+
?created_at: Time,
|
|
62
81
|
?default_channel: String,
|
|
63
82
|
?format_e164: String,
|
|
64
83
|
?format_international: String,
|
|
65
84
|
?format_national: String,
|
|
66
85
|
?format_rfc: String,
|
|
86
|
+
?is_inherited: bool,
|
|
87
|
+
?opt_out: bool,
|
|
67
88
|
?phone_number: String,
|
|
68
|
-
?region_code: String
|
|
89
|
+
?region_code: String,
|
|
90
|
+
?updated_at: Time?
|
|
69
91
|
) -> void
|
|
70
92
|
|
|
71
93
|
def to_hash: -> {
|
|
72
94
|
id: String,
|
|
73
95
|
available_channels: String,
|
|
74
96
|
country_code: String,
|
|
97
|
+
created_at: Time,
|
|
75
98
|
default_channel: String,
|
|
76
99
|
:format_e164 => String,
|
|
77
100
|
format_international: String,
|
|
78
101
|
format_national: String,
|
|
79
102
|
format_rfc: String,
|
|
103
|
+
is_inherited: bool,
|
|
104
|
+
opt_out: bool,
|
|
80
105
|
phone_number: String,
|
|
81
|
-
region_code: String
|
|
106
|
+
region_code: String,
|
|
107
|
+
updated_at: Time?
|
|
82
108
|
}
|
|
83
109
|
end
|
|
84
110
|
end
|