sentdm 0.2.0 → 0.3.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 +10 -0
- data/README.md +96 -39
- data/lib/sentdm/client.rb +28 -36
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +25 -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 +27 -0
- data/lib/sentdm/models/brand_list_params.rb +14 -0
- data/lib/sentdm/models/brand_list_response.rb +43 -0
- data/lib/sentdm/models/brand_update_params.rb +41 -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 +43 -0
- data/lib/sentdm/models/brands/campaign_data.rb +123 -0
- data/lib/sentdm/models/brands/campaign_delete_params.rb +36 -0
- data/lib/sentdm/models/brands/campaign_list_params.rb +16 -0
- data/lib/sentdm/models/brands/campaign_list_response.rb +47 -0
- data/lib/sentdm/models/brands/campaign_update_params.rb +50 -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 +27 -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/{message_retrieve_params.rb → contact_retrieve_params.rb} +2 -2
- data/lib/sentdm/models/contact_update_params.rb +49 -0
- data/lib/sentdm/models/destination_country.rb +21 -0
- data/lib/sentdm/models/lookup_retrieve_phone_info_params.rb +14 -0
- 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 +14 -0
- data/lib/sentdm/models/message_retrieve_activities_response.rb +103 -0
- data/lib/sentdm/models/message_retrieve_status_params.rb +14 -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 +41 -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 +34 -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 +14 -0
- data/lib/sentdm/models/profile_settings.rb +66 -0
- data/lib/sentdm/models/profile_update_params.rb +169 -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 +22 -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_update_params.rb +73 -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 +34 -0
- data/lib/sentdm/models/user_response.rb +82 -0
- data/lib/sentdm/models/user_retrieve_params.rb +14 -0
- data/lib/sentdm/models/user_update_role_params.rb +49 -0
- data/lib/sentdm/models/webhook_create_params.rb +68 -0
- data/lib/sentdm/models/webhook_delete_params.rb +14 -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 +32 -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 +14 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +30 -0
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +56 -0
- data/lib/sentdm/models/webhook_test_params.rb +40 -0
- data/lib/sentdm/models/webhook_test_response.rb +62 -0
- data/lib/sentdm/models/webhook_toggle_status_params.rb +40 -0
- data/lib/sentdm/models/webhook_update_params.rb +68 -0
- data/lib/sentdm/models.rb +124 -10
- data/lib/sentdm/resources/brands/campaigns.rb +144 -0
- data/lib/sentdm/resources/brands.rb +128 -0
- data/lib/sentdm/resources/contacts.rb +111 -38
- data/lib/sentdm/resources/lookup.rb +35 -0
- data/lib/sentdm/resources/me.rb +34 -0
- data/lib/sentdm/resources/messages.rb +42 -77
- data/lib/sentdm/resources/profiles.rb +254 -0
- data/lib/sentdm/resources/templates.rb +94 -45
- data/lib/sentdm/resources/users.rb +158 -0
- data/lib/sentdm/resources/webhooks.rb +295 -0
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +94 -12
- data/rbi/sentdm/client.rbi +20 -25
- 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 +62 -0
- data/rbi/sentdm/models/brand_list_params.rbi +27 -0
- data/rbi/sentdm/models/brand_list_response.rbi +71 -0
- data/rbi/sentdm/models/brand_update_params.rbi +68 -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 +73 -0
- data/rbi/sentdm/models/brands/campaign_data.rbi +148 -0
- data/rbi/sentdm/models/brands/campaign_delete_params.rbi +78 -0
- data/rbi/sentdm/models/brands/campaign_list_params.rbi +29 -0
- data/rbi/sentdm/models/brands/campaign_list_response.rbi +82 -0
- data/rbi/sentdm/models/brands/campaign_update_params.rbi +79 -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 +62 -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/{message_retrieve_params.rbi → contact_retrieve_params.rbi} +2 -2
- data/rbi/sentdm/models/contact_update_params.rbi +73 -0
- data/rbi/sentdm/models/destination_country.rbi +32 -0
- data/rbi/sentdm/models/lookup_retrieve_phone_info_params.rbi +30 -0
- 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 +30 -0
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +234 -0
- data/rbi/sentdm/models/message_retrieve_status_params.rbi +27 -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 +65 -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 +59 -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 +27 -0
- data/rbi/sentdm/models/profile_settings.rbi +86 -0
- data/rbi/sentdm/models/profile_update_params.rbi +196 -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 +36 -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_update_params.rbi +105 -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 +59 -0
- data/rbi/sentdm/models/user_response.rbi +118 -0
- data/rbi/sentdm/models/user_retrieve_params.rbi +27 -0
- data/rbi/sentdm/models/user_update_role_params.rbi +79 -0
- data/rbi/sentdm/models/webhook_create_params.rbi +102 -0
- data/rbi/sentdm/models/webhook_delete_params.rbi +27 -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 +48 -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 +27 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +67 -0
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +112 -0
- data/rbi/sentdm/models/webhook_test_params.rbi +66 -0
- data/rbi/sentdm/models/webhook_test_response.rbi +111 -0
- data/rbi/sentdm/models/webhook_toggle_status_params.rbi +66 -0
- data/rbi/sentdm/models/webhook_update_params.rbi +102 -0
- data/rbi/sentdm/models.rbi +125 -10
- data/rbi/sentdm/resources/brands/campaigns.rbi +108 -0
- data/rbi/sentdm/resources/brands.rbi +93 -0
- data/rbi/sentdm/resources/contacts.rbi +89 -26
- data/rbi/sentdm/resources/lookup.rbi +24 -0
- data/rbi/sentdm/resources/me.rbi +23 -0
- data/rbi/sentdm/resources/messages.rbi +41 -60
- data/rbi/sentdm/resources/profiles.rbi +238 -0
- data/rbi/sentdm/resources/templates.rbi +94 -41
- data/rbi/sentdm/resources/users.rbi +116 -0
- data/rbi/sentdm/resources/webhooks.rbi +218 -0
- data/sig/sentdm/client.rbs +11 -8
- 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 +32 -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 +36 -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 +42 -0
- data/sig/sentdm/models/brands/campaign_data.rbs +82 -0
- data/sig/sentdm/models/brands/campaign_delete_params.rbs +38 -0
- data/sig/sentdm/models/brands/campaign_list_params.rbs +17 -0
- data/sig/sentdm/models/brands/campaign_list_response.rbs +41 -0
- data/sig/sentdm/models/brands/campaign_update_params.rbs +47 -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 +32 -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/{message_retrieve_params.rbs → contact_retrieve_params.rbs} +2 -2
- data/sig/sentdm/models/contact_update_params.rbs +45 -0
- data/sig/sentdm/models/destination_country.rbs +19 -0
- data/sig/sentdm/models/lookup_retrieve_phone_info_params.rbs +15 -0
- 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 +15 -0
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +105 -0
- data/sig/sentdm/models/message_retrieve_status_params.rbs +15 -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 +36 -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 +32 -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/profile_retrieve_params.rbs +15 -0
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +122 -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 +18 -3
- data/sig/sentdm/models/template_list_response.rbs +44 -31
- data/sig/sentdm/models/template_update_params.rbs +62 -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 +32 -0
- data/sig/sentdm/models/user_response.rbs +72 -0
- data/sig/sentdm/models/user_retrieve_params.rbs +15 -0
- data/sig/sentdm/models/user_update_role_params.rbs +49 -0
- data/sig/sentdm/models/webhook_create_params.rbs +70 -0
- data/sig/sentdm/models/webhook_delete_params.rbs +15 -0
- data/sig/sentdm/models/webhook_list_event_types_params.rbs +15 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +98 -0
- data/sig/sentdm/models/webhook_list_events_params.rbs +32 -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 +15 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +38 -0
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +51 -0
- data/sig/sentdm/models/webhook_test_params.rbs +38 -0
- data/sig/sentdm/models/webhook_test_response.rbs +55 -0
- data/sig/sentdm/models/webhook_toggle_status_params.rbs +38 -0
- data/sig/sentdm/models/webhook_update_params.rbs +70 -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/contact_retrieve_id_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_params.rb +0 -20
- 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/contact_retrieve_id_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_params.rbi +0 -35
- 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/contact_retrieve_by_phone_params.rbs +0 -23
- data/sig/sentdm/models/contact_retrieve_id_params.rbs +0 -20
- 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_params.rbs +0 -23
- data/sig/sentdm/models/number_lookup_retrieve_response.rbs +0 -78
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type brand_data =
|
|
4
|
+
{
|
|
5
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
6
|
+
contact_name: String,
|
|
7
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
8
|
+
brand_name: String?,
|
|
9
|
+
business_legal_name: String?,
|
|
10
|
+
business_name: String?,
|
|
11
|
+
business_role: String?,
|
|
12
|
+
business_url: String?,
|
|
13
|
+
city: String?,
|
|
14
|
+
contact_email: String?,
|
|
15
|
+
contact_phone: String?,
|
|
16
|
+
contact_phone_country_code: String?,
|
|
17
|
+
country: String?,
|
|
18
|
+
country_of_registration: String?,
|
|
19
|
+
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
20
|
+
entity_type: Sentdm::Models::BrandData::entity_type?,
|
|
21
|
+
expected_messaging_volume: String?,
|
|
22
|
+
is_tcr_application: bool?,
|
|
23
|
+
notes: String?,
|
|
24
|
+
phone_number_prefix: String?,
|
|
25
|
+
postal_code: String?,
|
|
26
|
+
primary_use_case: String?,
|
|
27
|
+
state: String?,
|
|
28
|
+
street: String?,
|
|
29
|
+
tax_id: String?,
|
|
30
|
+
tax_id_type: String?
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class BrandData < Sentdm::Internal::Type::BaseModel
|
|
34
|
+
attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
|
|
35
|
+
|
|
36
|
+
attr_accessor contact_name: String
|
|
37
|
+
|
|
38
|
+
attr_accessor vertical: Sentdm::Models::tcr_vertical
|
|
39
|
+
|
|
40
|
+
attr_accessor brand_name: String?
|
|
41
|
+
|
|
42
|
+
attr_accessor business_legal_name: String?
|
|
43
|
+
|
|
44
|
+
attr_accessor business_name: String?
|
|
45
|
+
|
|
46
|
+
attr_accessor business_role: String?
|
|
47
|
+
|
|
48
|
+
attr_accessor business_url: String?
|
|
49
|
+
|
|
50
|
+
attr_accessor city: String?
|
|
51
|
+
|
|
52
|
+
attr_accessor contact_email: String?
|
|
53
|
+
|
|
54
|
+
attr_accessor contact_phone: String?
|
|
55
|
+
|
|
56
|
+
attr_accessor contact_phone_country_code: String?
|
|
57
|
+
|
|
58
|
+
attr_accessor country: String?
|
|
59
|
+
|
|
60
|
+
attr_accessor country_of_registration: String?
|
|
61
|
+
|
|
62
|
+
attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
|
|
63
|
+
|
|
64
|
+
attr_accessor entity_type: Sentdm::Models::BrandData::entity_type?
|
|
65
|
+
|
|
66
|
+
attr_accessor expected_messaging_volume: String?
|
|
67
|
+
|
|
68
|
+
attr_accessor is_tcr_application: bool?
|
|
69
|
+
|
|
70
|
+
attr_accessor notes: String?
|
|
71
|
+
|
|
72
|
+
attr_accessor phone_number_prefix: String?
|
|
73
|
+
|
|
74
|
+
attr_accessor postal_code: String?
|
|
75
|
+
|
|
76
|
+
attr_accessor primary_use_case: String?
|
|
77
|
+
|
|
78
|
+
attr_accessor state: String?
|
|
79
|
+
|
|
80
|
+
attr_accessor street: String?
|
|
81
|
+
|
|
82
|
+
attr_accessor tax_id: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor tax_id_type: String?
|
|
85
|
+
|
|
86
|
+
def initialize: (
|
|
87
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
88
|
+
contact_name: String,
|
|
89
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
90
|
+
?brand_name: String?,
|
|
91
|
+
?business_legal_name: String?,
|
|
92
|
+
?business_name: String?,
|
|
93
|
+
?business_role: String?,
|
|
94
|
+
?business_url: String?,
|
|
95
|
+
?city: String?,
|
|
96
|
+
?contact_email: String?,
|
|
97
|
+
?contact_phone: String?,
|
|
98
|
+
?contact_phone_country_code: String?,
|
|
99
|
+
?country: String?,
|
|
100
|
+
?country_of_registration: String?,
|
|
101
|
+
?destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
102
|
+
?entity_type: Sentdm::Models::BrandData::entity_type?,
|
|
103
|
+
?expected_messaging_volume: String?,
|
|
104
|
+
?is_tcr_application: bool?,
|
|
105
|
+
?notes: String?,
|
|
106
|
+
?phone_number_prefix: String?,
|
|
107
|
+
?postal_code: String?,
|
|
108
|
+
?primary_use_case: String?,
|
|
109
|
+
?state: String?,
|
|
110
|
+
?street: String?,
|
|
111
|
+
?tax_id: String?,
|
|
112
|
+
?tax_id_type: String?
|
|
113
|
+
) -> void
|
|
114
|
+
|
|
115
|
+
def to_hash: -> {
|
|
116
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
117
|
+
contact_name: String,
|
|
118
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
119
|
+
brand_name: String?,
|
|
120
|
+
business_legal_name: String?,
|
|
121
|
+
business_name: String?,
|
|
122
|
+
business_role: String?,
|
|
123
|
+
business_url: String?,
|
|
124
|
+
city: String?,
|
|
125
|
+
contact_email: String?,
|
|
126
|
+
contact_phone: String?,
|
|
127
|
+
contact_phone_country_code: String?,
|
|
128
|
+
country: String?,
|
|
129
|
+
country_of_registration: String?,
|
|
130
|
+
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
131
|
+
entity_type: Sentdm::Models::BrandData::entity_type?,
|
|
132
|
+
expected_messaging_volume: String?,
|
|
133
|
+
is_tcr_application: bool?,
|
|
134
|
+
notes: String?,
|
|
135
|
+
phone_number_prefix: String?,
|
|
136
|
+
postal_code: String?,
|
|
137
|
+
primary_use_case: String?,
|
|
138
|
+
state: String?,
|
|
139
|
+
street: String?,
|
|
140
|
+
tax_id: String?,
|
|
141
|
+
tax_id_type: String?
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
type entity_type =
|
|
145
|
+
:PRIVATE_PROFIT
|
|
146
|
+
| :PUBLIC_PROFIT
|
|
147
|
+
| :NON_PROFIT
|
|
148
|
+
| :SOLE_PROPRIETOR
|
|
149
|
+
| :GOVERNMENT
|
|
150
|
+
|
|
151
|
+
module EntityType
|
|
152
|
+
extend Sentdm::Internal::Type::Enum
|
|
153
|
+
|
|
154
|
+
PRIVATE_PROFIT: :PRIVATE_PROFIT
|
|
155
|
+
PUBLIC_PROFIT: :PUBLIC_PROFIT
|
|
156
|
+
NON_PROFIT: :NON_PROFIT
|
|
157
|
+
SOLE_PROPRIETOR: :SOLE_PROPRIETOR
|
|
158
|
+
GOVERNMENT: :GOVERNMENT
|
|
159
|
+
|
|
160
|
+
def self?.values: -> ::Array[Sentdm::Models::BrandData::entity_type]
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type brand_delete_params =
|
|
4
|
+
{ body: Sentdm::BrandDeleteParams::Body }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class BrandDeleteParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor body: Sentdm::BrandDeleteParams::Body
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
body: Sentdm::BrandDeleteParams::Body,
|
|
15
|
+
?request_options: Sentdm::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
body: Sentdm::BrandDeleteParams::Body,
|
|
20
|
+
request_options: Sentdm::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type body = { }
|
|
24
|
+
|
|
25
|
+
class Body < Sentdm::Models::MutationRequest
|
|
26
|
+
def initialize: -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> { }
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type brand_list_params = { } & Sentdm::Internal::Type::request_parameters
|
|
4
|
+
|
|
5
|
+
class BrandListParams < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
def initialize: (?request_options: Sentdm::request_opts) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { request_options: Sentdm::RequestOptions }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type brand_list_response =
|
|
4
|
+
{
|
|
5
|
+
data: ::Array[Sentdm::BrandWithKYC]?,
|
|
6
|
+
error: Sentdm::APIError?,
|
|
7
|
+
meta: Sentdm::APIMeta,
|
|
8
|
+
success: bool
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class BrandListResponse < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor data: ::Array[Sentdm::BrandWithKYC]?
|
|
13
|
+
|
|
14
|
+
attr_accessor error: Sentdm::APIError?
|
|
15
|
+
|
|
16
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
17
|
+
|
|
18
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
19
|
+
|
|
20
|
+
attr_reader success: bool?
|
|
21
|
+
|
|
22
|
+
def success=: (bool) -> bool
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
?data: ::Array[Sentdm::BrandWithKYC]?,
|
|
26
|
+
?error: Sentdm::APIError?,
|
|
27
|
+
?meta: Sentdm::APIMeta,
|
|
28
|
+
?success: bool
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
data: ::Array[Sentdm::BrandWithKYC]?,
|
|
33
|
+
error: Sentdm::APIError?,
|
|
34
|
+
meta: Sentdm::APIMeta,
|
|
35
|
+
success: bool
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type brand_update_params =
|
|
4
|
+
{ brand: Sentdm::BrandData, test_mode: bool, idempotency_key: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class BrandUpdateParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor brand: Sentdm::BrandData
|
|
12
|
+
|
|
13
|
+
attr_reader test_mode: bool?
|
|
14
|
+
|
|
15
|
+
def test_mode=: (bool) -> bool
|
|
16
|
+
|
|
17
|
+
attr_reader idempotency_key: String?
|
|
18
|
+
|
|
19
|
+
def idempotency_key=: (String) -> String
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
brand: Sentdm::BrandData,
|
|
23
|
+
?test_mode: bool,
|
|
24
|
+
?idempotency_key: String,
|
|
25
|
+
?request_options: Sentdm::request_opts
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> {
|
|
29
|
+
brand: Sentdm::BrandData,
|
|
30
|
+
test_mode: bool,
|
|
31
|
+
idempotency_key: String,
|
|
32
|
+
request_options: Sentdm::RequestOptions
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type brand_with_kyc =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship?,
|
|
7
|
+
business_legal_name: String?,
|
|
8
|
+
business_name: String?,
|
|
9
|
+
business_role: String?,
|
|
10
|
+
business_url: String?,
|
|
11
|
+
city: String?,
|
|
12
|
+
contact_email: String?,
|
|
13
|
+
contact_name: String,
|
|
14
|
+
contact_phone: String?,
|
|
15
|
+
contact_phone_country_code: String?,
|
|
16
|
+
country: String?,
|
|
17
|
+
country_of_registration: String?,
|
|
18
|
+
created_at: Time,
|
|
19
|
+
csp_id: String?,
|
|
20
|
+
destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
21
|
+
entity_type: String?,
|
|
22
|
+
expected_messaging_volume: String?,
|
|
23
|
+
identity_status: Sentdm::Models::BrandWithKYC::identity_status?,
|
|
24
|
+
is_inherited: bool,
|
|
25
|
+
is_tcr_application: bool,
|
|
26
|
+
notes: String?,
|
|
27
|
+
phone_number_prefix: String?,
|
|
28
|
+
postal_code: String?,
|
|
29
|
+
primary_use_case: String?,
|
|
30
|
+
state: String?,
|
|
31
|
+
status: Sentdm::Models::BrandWithKYC::status?,
|
|
32
|
+
street: String?,
|
|
33
|
+
submitted_at: Time?,
|
|
34
|
+
submitted_to_tcr: bool,
|
|
35
|
+
tax_id: String?,
|
|
36
|
+
tax_id_type: String?,
|
|
37
|
+
tcr_brand_id: String?,
|
|
38
|
+
universal_ein: String?,
|
|
39
|
+
updated_at: Time?,
|
|
40
|
+
vertical: Sentdm::Models::tcr_vertical?
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
class BrandWithKYC < Sentdm::Internal::Type::BaseModel
|
|
44
|
+
attr_reader id: String?
|
|
45
|
+
|
|
46
|
+
def id=: (String) -> String
|
|
47
|
+
|
|
48
|
+
attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship?
|
|
49
|
+
|
|
50
|
+
attr_accessor business_legal_name: String?
|
|
51
|
+
|
|
52
|
+
attr_accessor business_name: String?
|
|
53
|
+
|
|
54
|
+
attr_accessor business_role: String?
|
|
55
|
+
|
|
56
|
+
attr_accessor business_url: String?
|
|
57
|
+
|
|
58
|
+
attr_accessor city: String?
|
|
59
|
+
|
|
60
|
+
attr_accessor contact_email: String?
|
|
61
|
+
|
|
62
|
+
attr_reader contact_name: String?
|
|
63
|
+
|
|
64
|
+
def contact_name=: (String) -> String
|
|
65
|
+
|
|
66
|
+
attr_accessor contact_phone: String?
|
|
67
|
+
|
|
68
|
+
attr_accessor contact_phone_country_code: String?
|
|
69
|
+
|
|
70
|
+
attr_accessor country: String?
|
|
71
|
+
|
|
72
|
+
attr_accessor country_of_registration: String?
|
|
73
|
+
|
|
74
|
+
attr_reader created_at: Time?
|
|
75
|
+
|
|
76
|
+
def created_at=: (Time) -> Time
|
|
77
|
+
|
|
78
|
+
attr_accessor csp_id: String?
|
|
79
|
+
|
|
80
|
+
attr_reader destination_countries: ::Array[Sentdm::DestinationCountry]?
|
|
81
|
+
|
|
82
|
+
def destination_countries=: (
|
|
83
|
+
::Array[Sentdm::DestinationCountry]
|
|
84
|
+
) -> ::Array[Sentdm::DestinationCountry]
|
|
85
|
+
|
|
86
|
+
attr_accessor entity_type: String?
|
|
87
|
+
|
|
88
|
+
attr_accessor expected_messaging_volume: String?
|
|
89
|
+
|
|
90
|
+
attr_accessor identity_status: Sentdm::Models::BrandWithKYC::identity_status?
|
|
91
|
+
|
|
92
|
+
attr_reader is_inherited: bool?
|
|
93
|
+
|
|
94
|
+
def is_inherited=: (bool) -> bool
|
|
95
|
+
|
|
96
|
+
attr_reader is_tcr_application: bool?
|
|
97
|
+
|
|
98
|
+
def is_tcr_application=: (bool) -> bool
|
|
99
|
+
|
|
100
|
+
attr_accessor notes: String?
|
|
101
|
+
|
|
102
|
+
attr_accessor phone_number_prefix: String?
|
|
103
|
+
|
|
104
|
+
attr_accessor postal_code: String?
|
|
105
|
+
|
|
106
|
+
attr_accessor primary_use_case: String?
|
|
107
|
+
|
|
108
|
+
attr_accessor state: String?
|
|
109
|
+
|
|
110
|
+
attr_accessor status: Sentdm::Models::BrandWithKYC::status?
|
|
111
|
+
|
|
112
|
+
attr_accessor street: String?
|
|
113
|
+
|
|
114
|
+
attr_accessor submitted_at: Time?
|
|
115
|
+
|
|
116
|
+
attr_reader submitted_to_tcr: bool?
|
|
117
|
+
|
|
118
|
+
def submitted_to_tcr=: (bool) -> bool
|
|
119
|
+
|
|
120
|
+
attr_accessor tax_id: String?
|
|
121
|
+
|
|
122
|
+
attr_accessor tax_id_type: String?
|
|
123
|
+
|
|
124
|
+
attr_accessor tcr_brand_id: String?
|
|
125
|
+
|
|
126
|
+
attr_accessor universal_ein: String?
|
|
127
|
+
|
|
128
|
+
attr_accessor updated_at: Time?
|
|
129
|
+
|
|
130
|
+
attr_accessor vertical: Sentdm::Models::tcr_vertical?
|
|
131
|
+
|
|
132
|
+
def initialize: (
|
|
133
|
+
?id: String,
|
|
134
|
+
?brand_relationship: Sentdm::Models::tcr_brand_relationship?,
|
|
135
|
+
?business_legal_name: String?,
|
|
136
|
+
?business_name: String?,
|
|
137
|
+
?business_role: String?,
|
|
138
|
+
?business_url: String?,
|
|
139
|
+
?city: String?,
|
|
140
|
+
?contact_email: String?,
|
|
141
|
+
?contact_name: String,
|
|
142
|
+
?contact_phone: String?,
|
|
143
|
+
?contact_phone_country_code: String?,
|
|
144
|
+
?country: String?,
|
|
145
|
+
?country_of_registration: String?,
|
|
146
|
+
?created_at: Time,
|
|
147
|
+
?csp_id: String?,
|
|
148
|
+
?destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
149
|
+
?entity_type: String?,
|
|
150
|
+
?expected_messaging_volume: String?,
|
|
151
|
+
?identity_status: Sentdm::Models::BrandWithKYC::identity_status?,
|
|
152
|
+
?is_inherited: bool,
|
|
153
|
+
?is_tcr_application: bool,
|
|
154
|
+
?notes: String?,
|
|
155
|
+
?phone_number_prefix: String?,
|
|
156
|
+
?postal_code: String?,
|
|
157
|
+
?primary_use_case: String?,
|
|
158
|
+
?state: String?,
|
|
159
|
+
?status: Sentdm::Models::BrandWithKYC::status?,
|
|
160
|
+
?street: String?,
|
|
161
|
+
?submitted_at: Time?,
|
|
162
|
+
?submitted_to_tcr: bool,
|
|
163
|
+
?tax_id: String?,
|
|
164
|
+
?tax_id_type: String?,
|
|
165
|
+
?tcr_brand_id: String?,
|
|
166
|
+
?universal_ein: String?,
|
|
167
|
+
?updated_at: Time?,
|
|
168
|
+
?vertical: Sentdm::Models::tcr_vertical?
|
|
169
|
+
) -> void
|
|
170
|
+
|
|
171
|
+
def to_hash: -> {
|
|
172
|
+
id: String,
|
|
173
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship?,
|
|
174
|
+
business_legal_name: String?,
|
|
175
|
+
business_name: String?,
|
|
176
|
+
business_role: String?,
|
|
177
|
+
business_url: String?,
|
|
178
|
+
city: String?,
|
|
179
|
+
contact_email: String?,
|
|
180
|
+
contact_name: String,
|
|
181
|
+
contact_phone: String?,
|
|
182
|
+
contact_phone_country_code: String?,
|
|
183
|
+
country: String?,
|
|
184
|
+
country_of_registration: String?,
|
|
185
|
+
created_at: Time,
|
|
186
|
+
csp_id: String?,
|
|
187
|
+
destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
188
|
+
entity_type: String?,
|
|
189
|
+
expected_messaging_volume: String?,
|
|
190
|
+
identity_status: Sentdm::Models::BrandWithKYC::identity_status?,
|
|
191
|
+
is_inherited: bool,
|
|
192
|
+
is_tcr_application: bool,
|
|
193
|
+
notes: String?,
|
|
194
|
+
phone_number_prefix: String?,
|
|
195
|
+
postal_code: String?,
|
|
196
|
+
primary_use_case: String?,
|
|
197
|
+
state: String?,
|
|
198
|
+
status: Sentdm::Models::BrandWithKYC::status?,
|
|
199
|
+
street: String?,
|
|
200
|
+
submitted_at: Time?,
|
|
201
|
+
submitted_to_tcr: bool,
|
|
202
|
+
tax_id: String?,
|
|
203
|
+
tax_id_type: String?,
|
|
204
|
+
tcr_brand_id: String?,
|
|
205
|
+
universal_ein: String?,
|
|
206
|
+
updated_at: Time?,
|
|
207
|
+
vertical: Sentdm::Models::tcr_vertical?
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
type identity_status =
|
|
211
|
+
:SELF_DECLARED | :UNVERIFIED | :VERIFIED | :VETTED_VERIFIED
|
|
212
|
+
|
|
213
|
+
module IdentityStatus
|
|
214
|
+
extend Sentdm::Internal::Type::Enum
|
|
215
|
+
|
|
216
|
+
SELF_DECLARED: :SELF_DECLARED
|
|
217
|
+
UNVERIFIED: :UNVERIFIED
|
|
218
|
+
VERIFIED: :VERIFIED
|
|
219
|
+
VETTED_VERIFIED: :VETTED_VERIFIED
|
|
220
|
+
|
|
221
|
+
def self?.values: -> ::Array[Sentdm::Models::BrandWithKYC::identity_status]
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
type status = :ACTIVE | :INACTIVE | :SUSPENDED
|
|
225
|
+
|
|
226
|
+
module Status
|
|
227
|
+
extend Sentdm::Internal::Type::Enum
|
|
228
|
+
|
|
229
|
+
ACTIVE: :ACTIVE
|
|
230
|
+
INACTIVE: :INACTIVE
|
|
231
|
+
SUSPENDED: :SUSPENDED
|
|
232
|
+
|
|
233
|
+
def self?.values: -> ::Array[Sentdm::Models::BrandWithKYC::status]
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type api_response_tcr_campaign_with_use_cases =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Brands::TcrCampaignWithUseCases?,
|
|
7
|
+
error: Sentdm::APIError?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseTcrCampaignWithUseCases < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: 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: Sentdm::Brands::TcrCampaignWithUseCases?,
|
|
27
|
+
?error: Sentdm::APIError?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: 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,27 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type base_dto = { id: String, created_at: Time, updated_at: Time? }
|
|
5
|
+
|
|
6
|
+
class BaseDto < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
attr_reader id: String?
|
|
8
|
+
|
|
9
|
+
def id=: (String) -> String
|
|
10
|
+
|
|
11
|
+
attr_reader created_at: Time?
|
|
12
|
+
|
|
13
|
+
def created_at=: (Time) -> Time
|
|
14
|
+
|
|
15
|
+
attr_accessor updated_at: Time?
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
?id: String,
|
|
19
|
+
?created_at: Time,
|
|
20
|
+
?updated_at: Time?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> { id: String, created_at: Time, updated_at: Time? }
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Brands
|
|
4
|
+
type campaign_create_params =
|
|
5
|
+
{
|
|
6
|
+
campaign: Sentdm::Brands::CampaignData,
|
|
7
|
+
test_mode: bool,
|
|
8
|
+
idempotency_key: String
|
|
9
|
+
}
|
|
10
|
+
& Sentdm::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class CampaignCreateParams < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor campaign: Sentdm::Brands::CampaignData
|
|
17
|
+
|
|
18
|
+
attr_reader test_mode: bool?
|
|
19
|
+
|
|
20
|
+
def test_mode=: (bool) -> bool
|
|
21
|
+
|
|
22
|
+
attr_reader idempotency_key: String?
|
|
23
|
+
|
|
24
|
+
def idempotency_key=: (String) -> String
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
campaign: Sentdm::Brands::CampaignData,
|
|
28
|
+
?test_mode: bool,
|
|
29
|
+
?idempotency_key: String,
|
|
30
|
+
?request_options: Sentdm::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
campaign: Sentdm::Brands::CampaignData,
|
|
35
|
+
test_mode: bool,
|
|
36
|
+
idempotency_key: String,
|
|
37
|
+
request_options: Sentdm::RequestOptions
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|