sentdm 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +31 -1
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/type/enum.rb +25 -0
- data/lib/sentdm/models/api_meta.rb +34 -0
- data/lib/sentdm/models/api_response_of_contact.rb +46 -0
- data/lib/sentdm/models/api_response_of_profile_detail.rb +43 -0
- data/lib/sentdm/models/api_response_of_user.rb +43 -0
- data/lib/sentdm/models/api_response_template.rb +43 -0
- data/lib/sentdm/models/api_response_webhook.rb +43 -0
- data/lib/sentdm/models/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/brands_brand_data.rb +38 -0
- data/lib/sentdm/models/contact_delete_params.rb +2 -16
- data/lib/sentdm/models/contact_list_response.rb +12 -278
- data/lib/sentdm/models/contact_response.rb +126 -0
- data/lib/sentdm/models/destination_country.rb +21 -0
- data/lib/sentdm/models/error_detail.rb +42 -0
- data/lib/sentdm/models/me_retrieve_response.rb +12 -204
- data/lib/sentdm/models/message_retrieve_activities_response.rb +6 -74
- data/lib/sentdm/models/message_retrieve_status_response.rb +6 -74
- data/lib/sentdm/models/message_send_response.rb +6 -74
- data/lib/sentdm/models/mutation_request.rb +20 -0
- data/lib/sentdm/models/number_lookup_response.rb +6 -74
- data/lib/sentdm/models/pagination_meta.rb +80 -0
- data/lib/sentdm/models/payment_details.rb +44 -0
- data/lib/sentdm/models/profile_complete_response.rb +6 -74
- data/lib/sentdm/models/profile_create_params.rb +9 -423
- data/lib/sentdm/models/profile_delete_params.rb +2 -16
- data/lib/sentdm/models/profile_detail.rb +605 -0
- data/lib/sentdm/models/profile_list_response.rb +9 -753
- data/lib/sentdm/models/profile_settings.rb +66 -0
- data/lib/sentdm/models/profile_update_params.rb +9 -423
- data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +45 -0
- data/lib/sentdm/models/profiles/base_dto.rb +32 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -165
- data/lib/sentdm/models/profiles/campaign_data.rb +123 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
- data/lib/sentdm/models/profiles/campaign_list_response.rb +9 -420
- data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -165
- data/lib/sentdm/models/profiles/messaging_use_case_us.rb +28 -0
- data/lib/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +29 -0
- data/lib/sentdm/models/profiles/tcr_campaign_with_use_cases.rb +248 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +34 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +48 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +38 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +81 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +34 -0
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +39 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +116 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +75 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +58 -0
- data/lib/sentdm/models/tcr_brand_relationship.rb +18 -0
- data/lib/sentdm/models/tcr_vertical.rb +36 -0
- data/lib/sentdm/models/template.rb +90 -0
- data/lib/sentdm/models/template_body_content.rb +27 -0
- data/lib/sentdm/models/template_create_params.rb +3 -889
- data/lib/sentdm/models/template_definition.rb +66 -0
- data/lib/sentdm/models/template_list_response.rb +12 -242
- data/lib/sentdm/models/template_update_params.rb +3 -889
- data/lib/sentdm/models/template_variable.rb +80 -0
- data/lib/sentdm/models/user_list_response.rb +9 -154
- data/lib/sentdm/models/user_remove_params.rb +2 -16
- data/lib/sentdm/models/user_response.rb +82 -0
- data/lib/sentdm/models/webhook_event_type.rb +45 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +9 -118
- data/lib/sentdm/models/webhook_list_events_response.rb +9 -153
- data/lib/sentdm/models/webhook_list_response.rb +12 -247
- data/lib/sentdm/models/webhook_response.rb +95 -0
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +2 -17
- data/lib/sentdm/models/webhook_rotate_secret_response.rb +6 -74
- data/lib/sentdm/models/webhook_test_response.rb +6 -74
- data/lib/sentdm/models.rb +77 -0
- data/lib/sentdm/resources/contacts.rb +6 -6
- data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +8 -8
- data/lib/sentdm/resources/users.rb +6 -6
- data/lib/sentdm/resources/webhooks.rb +8 -8
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +40 -18
- data/rbi/sentdm/models/api_meta.rbi +55 -0
- data/rbi/sentdm/models/api_response_of_contact.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_profile_detail.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_user.rbi +74 -0
- data/rbi/sentdm/models/api_response_template.rbi +74 -0
- data/rbi/sentdm/models/api_response_webhook.rbi +74 -0
- data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +104 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
- data/rbi/sentdm/models/contact_list_response.rbi +16 -505
- data/rbi/sentdm/models/contact_response.rbi +183 -0
- data/rbi/sentdm/models/destination_country.rbi +32 -0
- data/rbi/sentdm/models/error_detail.rbi +66 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +16 -335
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +8 -154
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +8 -148
- data/rbi/sentdm/models/message_send_response.rbi +8 -135
- data/rbi/sentdm/models/mutation_request.rbi +32 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +8 -135
- data/rbi/sentdm/models/pagination_meta.rbi +135 -0
- data/rbi/sentdm/models/payment_details.rbi +59 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
- data/rbi/sentdm/models/profile_create_params.rbi +12 -810
- data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
- data/rbi/sentdm/models/profile_detail.rbi +874 -0
- data/rbi/sentdm/models/profile_list_response.rbi +14 -1400
- data/rbi/sentdm/models/profile_settings.rbi +86 -0
- data/rbi/sentdm/models/profile_update_params.rbi +12 -810
- data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +83 -0
- data/rbi/sentdm/models/profiles/base_dto.rbi +53 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -289
- data/rbi/sentdm/models/profiles/campaign_data.rbi +148 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +11 -733
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -289
- data/rbi/sentdm/models/profiles/messaging_use_case_us.rbi +73 -0
- data/rbi/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +51 -0
- data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +425 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +56 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +87 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +72 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +104 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +57 -0
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +59 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +180 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +95 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +81 -0
- data/rbi/sentdm/models/tcr_brand_relationship.rbi +30 -0
- data/rbi/sentdm/models/tcr_vertical.rbi +41 -0
- data/rbi/sentdm/models/template.rbi +129 -0
- data/rbi/sentdm/models/template_body_content.rbi +43 -0
- data/rbi/sentdm/models/template_create_params.rbi +4 -1701
- data/rbi/sentdm/models/template_definition.rbi +164 -0
- data/rbi/sentdm/models/template_list_response.rbi +16 -454
- data/rbi/sentdm/models/template_update_params.rbi +4 -1701
- data/rbi/sentdm/models/template_variable.rbi +120 -0
- data/rbi/sentdm/models/user_list_response.rbi +14 -271
- data/rbi/sentdm/models/user_remove_params.rbi +2 -19
- data/rbi/sentdm/models/user_response.rbi +118 -0
- data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +12 -247
- data/rbi/sentdm/models/webhook_list_events_response.rbi +12 -314
- data/rbi/sentdm/models/webhook_list_response.rbi +16 -462
- data/rbi/sentdm/models/webhook_response.rbi +140 -0
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -14
- data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +8 -148
- data/rbi/sentdm/models/webhook_test_response.rbi +8 -135
- data/rbi/sentdm/models.rbi +77 -0
- data/rbi/sentdm/resources/contacts.rbi +3 -3
- data/rbi/sentdm/resources/profiles/campaigns.rbi +4 -4
- data/rbi/sentdm/resources/profiles.rbi +9 -13
- data/rbi/sentdm/resources/templates.rbi +5 -6
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +4 -4
- data/sig/sentdm/models/api_meta.rbs +27 -0
- data/sig/sentdm/models/api_response_of_contact.rbs +39 -0
- data/sig/sentdm/models/api_response_of_profile_detail.rbs +39 -0
- data/sig/sentdm/models/api_response_of_user.rbs +39 -0
- data/sig/sentdm/models/api_response_template.rbs +39 -0
- data/sig/sentdm/models/api_response_webhook.rbs +39 -0
- data/sig/sentdm/models/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/brands_brand_data.rbs +30 -0
- data/sig/sentdm/models/contact_delete_params.rbs +6 -10
- data/sig/sentdm/models/contact_list_response.rbs +20 -256
- data/sig/sentdm/models/contact_response.rbs +111 -0
- data/sig/sentdm/models/destination_country.rbs +19 -0
- data/sig/sentdm/models/error_detail.rbs +39 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +18 -176
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -71
- data/sig/sentdm/models/message_retrieve_status_response.rbs +9 -71
- data/sig/sentdm/models/message_send_response.rbs +9 -71
- data/sig/sentdm/models/mutation_request.rbs +15 -0
- data/sig/sentdm/models/number_lookup_response.rbs +9 -71
- data/sig/sentdm/models/pagination_meta.rbs +67 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/profile_complete_response.rbs +9 -71
- data/sig/sentdm/models/profile_create_params.rbs +12 -363
- data/sig/sentdm/models/profile_delete_params.rbs +6 -10
- data/sig/sentdm/models/profile_detail.rbs +474 -0
- data/sig/sentdm/models/profile_list_response.rbs +15 -645
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +12 -363
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +41 -0
- data/sig/sentdm/models/profiles/base_dto.rbs +27 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -138
- data/sig/sentdm/models/profiles/campaign_data.rbs +82 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +13 -396
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -138
- data/sig/sentdm/models/profiles/messaging_use_case_us.rbs +40 -0
- data/sig/sentdm/models/profiles/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +299 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +24 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +35 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +32 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +75 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +30 -0
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +30 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +89 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +55 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +45 -0
- data/sig/sentdm/models/tcr_brand_relationship.rbs +22 -0
- data/sig/sentdm/models/tcr_vertical.rbs +58 -0
- data/sig/sentdm/models/template.rbs +79 -0
- data/sig/sentdm/models/template_body_content.rbs +30 -0
- data/sig/sentdm/models/template_create_params.rbs +6 -853
- data/sig/sentdm/models/template_definition.rbs +45 -0
- data/sig/sentdm/models/template_list_response.rbs +19 -225
- data/sig/sentdm/models/template_update_params.rbs +4 -851
- data/sig/sentdm/models/template_variable.rbs +84 -0
- data/sig/sentdm/models/user_list_response.rbs +15 -151
- data/sig/sentdm/models/user_remove_params.rbs +6 -10
- data/sig/sentdm/models/user_response.rbs +72 -0
- data/sig/sentdm/models/webhook_event_type.rbs +51 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +15 -130
- data/sig/sentdm/models/webhook_list_events_response.rbs +14 -142
- data/sig/sentdm/models/webhook_list_response.rbs +20 -248
- data/sig/sentdm/models/webhook_response.rbs +103 -0
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +8 -17
- data/sig/sentdm/models/webhook_rotate_secret_response.rbs +9 -71
- data/sig/sentdm/models/webhook_test_response.rbs +9 -71
- data/sig/sentdm/models.rbs +68 -0
- data/sig/sentdm/resources/contacts.rbs +3 -3
- data/sig/sentdm/resources/profiles/campaigns.rbs +4 -4
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +5 -5
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +4 -4
- metadata +121 -55
- data/lib/sentdm/models/contact_create_response.rb +0 -236
- data/lib/sentdm/models/contact_retrieve_response.rb +0 -236
- data/lib/sentdm/models/contact_update_response.rb +0 -236
- data/lib/sentdm/models/profile_create_response.rb +0 -781
- data/lib/sentdm/models/profile_retrieve_response.rb +0 -783
- data/lib/sentdm/models/profile_update_response.rb +0 -781
- data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -459
- data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -459
- data/lib/sentdm/models/template_create_response.rb +0 -197
- data/lib/sentdm/models/template_retrieve_response.rb +0 -197
- data/lib/sentdm/models/template_update_response.rb +0 -197
- data/lib/sentdm/models/user_invite_response.rb +0 -189
- data/lib/sentdm/models/user_retrieve_response.rb +0 -189
- data/lib/sentdm/models/user_update_role_response.rb +0 -189
- data/lib/sentdm/models/webhook_create_response.rb +0 -204
- data/lib/sentdm/models/webhook_retrieve_response.rb +0 -204
- data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -204
- data/lib/sentdm/models/webhook_update_response.rb +0 -204
- data/rbi/sentdm/models/contact_create_response.rbi +0 -390
- data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -392
- data/rbi/sentdm/models/contact_update_response.rbi +0 -390
- data/rbi/sentdm/models/profile_create_response.rbi +0 -1439
- data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1443
- data/rbi/sentdm/models/profile_update_response.rbi +0 -1439
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -814
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -814
- data/rbi/sentdm/models/template_create_response.rbi +0 -339
- data/rbi/sentdm/models/template_retrieve_response.rbi +0 -345
- data/rbi/sentdm/models/template_update_response.rbi +0 -339
- data/rbi/sentdm/models/user_invite_response.rbi +0 -323
- data/rbi/sentdm/models/user_retrieve_response.rbi +0 -323
- data/rbi/sentdm/models/user_update_role_response.rbi +0 -328
- data/rbi/sentdm/models/webhook_create_response.rbi +0 -348
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -350
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -366
- data/rbi/sentdm/models/webhook_update_response.rbi +0 -348
- data/sig/sentdm/models/contact_create_response.rbs +0 -209
- data/sig/sentdm/models/contact_retrieve_response.rbs +0 -209
- data/sig/sentdm/models/contact_update_response.rbs +0 -209
- data/sig/sentdm/models/profile_create_response.rbs +0 -662
- data/sig/sentdm/models/profile_retrieve_response.rbs +0 -662
- data/sig/sentdm/models/profile_update_response.rbs +0 -662
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -424
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -424
- data/sig/sentdm/models/template_create_response.rbs +0 -177
- data/sig/sentdm/models/template_retrieve_response.rbs +0 -177
- data/sig/sentdm/models/template_update_response.rbs +0 -177
- data/sig/sentdm/models/user_invite_response.rbs +0 -170
- data/sig/sentdm/models/user_retrieve_response.rbs +0 -170
- data/sig/sentdm/models/user_update_role_response.rbs +0 -170
- data/sig/sentdm/models/webhook_create_response.rbs +0 -201
- data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -201
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -201
- data/sig/sentdm/models/webhook_update_response.rbs +0 -201
|
@@ -13,14 +13,14 @@ module Sentdm
|
|
|
13
13
|
# @!attribute error
|
|
14
14
|
# Error information
|
|
15
15
|
#
|
|
16
|
-
# @return [Sentdm::Models::
|
|
17
|
-
optional :error, -> { Sentdm::
|
|
16
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
17
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
18
18
|
|
|
19
19
|
# @!attribute meta
|
|
20
20
|
# Request and response metadata
|
|
21
21
|
#
|
|
22
|
-
# @return [Sentdm::Models::
|
|
23
|
-
optional :meta, -> { Sentdm::
|
|
22
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
23
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
24
24
|
|
|
25
25
|
# @!attribute success
|
|
26
26
|
# Indicates whether the request was successful
|
|
@@ -33,9 +33,9 @@ module Sentdm
|
|
|
33
33
|
#
|
|
34
34
|
# @param data [Sentdm::Models::WebhookRotateSecretResponse::Data, nil] The response data (null if error)
|
|
35
35
|
#
|
|
36
|
-
# @param error [Sentdm::Models::
|
|
36
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
37
37
|
#
|
|
38
|
-
# @param meta [Sentdm::Models::
|
|
38
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
39
39
|
#
|
|
40
40
|
# @param success [Boolean] Indicates whether the request was successful
|
|
41
41
|
|
|
@@ -51,74 +51,6 @@ module Sentdm
|
|
|
51
51
|
#
|
|
52
52
|
# @param signing_secret [String]
|
|
53
53
|
end
|
|
54
|
-
|
|
55
|
-
# @see Sentdm::Models::WebhookRotateSecretResponse#error
|
|
56
|
-
class Error < Sentdm::Internal::Type::BaseModel
|
|
57
|
-
# @!attribute code
|
|
58
|
-
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
59
|
-
#
|
|
60
|
-
# @return [String, nil]
|
|
61
|
-
optional :code, String
|
|
62
|
-
|
|
63
|
-
# @!attribute details
|
|
64
|
-
# Additional validation error details (field-level errors)
|
|
65
|
-
#
|
|
66
|
-
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
67
|
-
optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
|
|
68
|
-
|
|
69
|
-
# @!attribute doc_url
|
|
70
|
-
# URL to documentation about this error
|
|
71
|
-
#
|
|
72
|
-
# @return [String, nil]
|
|
73
|
-
optional :doc_url, String, nil?: true
|
|
74
|
-
|
|
75
|
-
# @!attribute message
|
|
76
|
-
# Human-readable error message
|
|
77
|
-
#
|
|
78
|
-
# @return [String, nil]
|
|
79
|
-
optional :message, String
|
|
80
|
-
|
|
81
|
-
# @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
|
|
82
|
-
# Error information
|
|
83
|
-
#
|
|
84
|
-
# @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
|
|
85
|
-
#
|
|
86
|
-
# @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
|
|
87
|
-
#
|
|
88
|
-
# @param doc_url [String, nil] URL to documentation about this error
|
|
89
|
-
#
|
|
90
|
-
# @param message [String] Human-readable error message
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# @see Sentdm::Models::WebhookRotateSecretResponse#meta
|
|
94
|
-
class Meta < Sentdm::Internal::Type::BaseModel
|
|
95
|
-
# @!attribute request_id
|
|
96
|
-
# Unique identifier for this request (for tracing and support)
|
|
97
|
-
#
|
|
98
|
-
# @return [String, nil]
|
|
99
|
-
optional :request_id, String
|
|
100
|
-
|
|
101
|
-
# @!attribute timestamp
|
|
102
|
-
# Server timestamp when the response was generated
|
|
103
|
-
#
|
|
104
|
-
# @return [Time, nil]
|
|
105
|
-
optional :timestamp, Time
|
|
106
|
-
|
|
107
|
-
# @!attribute version
|
|
108
|
-
# API version used for this request
|
|
109
|
-
#
|
|
110
|
-
# @return [String, nil]
|
|
111
|
-
optional :version, String
|
|
112
|
-
|
|
113
|
-
# @!method initialize(request_id: nil, timestamp: nil, version: nil)
|
|
114
|
-
# Request and response metadata
|
|
115
|
-
#
|
|
116
|
-
# @param request_id [String] Unique identifier for this request (for tracing and support)
|
|
117
|
-
#
|
|
118
|
-
# @param timestamp [Time] Server timestamp when the response was generated
|
|
119
|
-
#
|
|
120
|
-
# @param version [String] API version used for this request
|
|
121
|
-
end
|
|
122
54
|
end
|
|
123
55
|
end
|
|
124
56
|
end
|
|
@@ -13,14 +13,14 @@ module Sentdm
|
|
|
13
13
|
# @!attribute error
|
|
14
14
|
# Error information
|
|
15
15
|
#
|
|
16
|
-
# @return [Sentdm::Models::
|
|
17
|
-
optional :error, -> { Sentdm::
|
|
16
|
+
# @return [Sentdm::Models::ErrorDetail, nil]
|
|
17
|
+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
|
|
18
18
|
|
|
19
19
|
# @!attribute meta
|
|
20
20
|
# Request and response metadata
|
|
21
21
|
#
|
|
22
|
-
# @return [Sentdm::Models::
|
|
23
|
-
optional :meta, -> { Sentdm::
|
|
22
|
+
# @return [Sentdm::Models::APIMeta, nil]
|
|
23
|
+
optional :meta, -> { Sentdm::APIMeta }
|
|
24
24
|
|
|
25
25
|
# @!attribute success
|
|
26
26
|
# Indicates whether the request was successful
|
|
@@ -33,9 +33,9 @@ module Sentdm
|
|
|
33
33
|
#
|
|
34
34
|
# @param data [Sentdm::Models::WebhookTestResponse::Data, nil] The response data (null if error)
|
|
35
35
|
#
|
|
36
|
-
# @param error [Sentdm::Models::
|
|
36
|
+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
|
|
37
37
|
#
|
|
38
|
-
# @param meta [Sentdm::Models::
|
|
38
|
+
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
|
|
39
39
|
#
|
|
40
40
|
# @param success [Boolean] Indicates whether the request was successful
|
|
41
41
|
|
|
@@ -57,74 +57,6 @@ module Sentdm
|
|
|
57
57
|
# @param message [String]
|
|
58
58
|
# @param success [Boolean]
|
|
59
59
|
end
|
|
60
|
-
|
|
61
|
-
# @see Sentdm::Models::WebhookTestResponse#error
|
|
62
|
-
class Error < Sentdm::Internal::Type::BaseModel
|
|
63
|
-
# @!attribute code
|
|
64
|
-
# Machine-readable error code (e.g., "RESOURCE_001")
|
|
65
|
-
#
|
|
66
|
-
# @return [String, nil]
|
|
67
|
-
optional :code, String
|
|
68
|
-
|
|
69
|
-
# @!attribute details
|
|
70
|
-
# Additional validation error details (field-level errors)
|
|
71
|
-
#
|
|
72
|
-
# @return [Hash{Symbol=>Array<String>}, nil]
|
|
73
|
-
optional :details, Sentdm::Internal::Type::HashOf[Sentdm::Internal::Type::ArrayOf[String]], nil?: true
|
|
74
|
-
|
|
75
|
-
# @!attribute doc_url
|
|
76
|
-
# URL to documentation about this error
|
|
77
|
-
#
|
|
78
|
-
# @return [String, nil]
|
|
79
|
-
optional :doc_url, String, nil?: true
|
|
80
|
-
|
|
81
|
-
# @!attribute message
|
|
82
|
-
# Human-readable error message
|
|
83
|
-
#
|
|
84
|
-
# @return [String, nil]
|
|
85
|
-
optional :message, String
|
|
86
|
-
|
|
87
|
-
# @!method initialize(code: nil, details: nil, doc_url: nil, message: nil)
|
|
88
|
-
# Error information
|
|
89
|
-
#
|
|
90
|
-
# @param code [String] Machine-readable error code (e.g., "RESOURCE_001")
|
|
91
|
-
#
|
|
92
|
-
# @param details [Hash{Symbol=>Array<String>}, nil] Additional validation error details (field-level errors)
|
|
93
|
-
#
|
|
94
|
-
# @param doc_url [String, nil] URL to documentation about this error
|
|
95
|
-
#
|
|
96
|
-
# @param message [String] Human-readable error message
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
# @see Sentdm::Models::WebhookTestResponse#meta
|
|
100
|
-
class Meta < Sentdm::Internal::Type::BaseModel
|
|
101
|
-
# @!attribute request_id
|
|
102
|
-
# Unique identifier for this request (for tracing and support)
|
|
103
|
-
#
|
|
104
|
-
# @return [String, nil]
|
|
105
|
-
optional :request_id, String
|
|
106
|
-
|
|
107
|
-
# @!attribute timestamp
|
|
108
|
-
# Server timestamp when the response was generated
|
|
109
|
-
#
|
|
110
|
-
# @return [Time, nil]
|
|
111
|
-
optional :timestamp, Time
|
|
112
|
-
|
|
113
|
-
# @!attribute version
|
|
114
|
-
# API version used for this request
|
|
115
|
-
#
|
|
116
|
-
# @return [String, nil]
|
|
117
|
-
optional :version, String
|
|
118
|
-
|
|
119
|
-
# @!method initialize(request_id: nil, timestamp: nil, version: nil)
|
|
120
|
-
# Request and response metadata
|
|
121
|
-
#
|
|
122
|
-
# @param request_id [String] Unique identifier for this request (for tracing and support)
|
|
123
|
-
#
|
|
124
|
-
# @param timestamp [Time] Server timestamp when the response was generated
|
|
125
|
-
#
|
|
126
|
-
# @param version [String] API version used for this request
|
|
127
|
-
end
|
|
128
60
|
end
|
|
129
61
|
end
|
|
130
62
|
end
|
data/lib/sentdm/models.rb
CHANGED
|
@@ -39,16 +39,38 @@ module Sentdm
|
|
|
39
39
|
mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
APIMeta = Sentdm::Models::APIMeta
|
|
43
|
+
|
|
44
|
+
APIResponseOfContact = Sentdm::Models::APIResponseOfContact
|
|
45
|
+
|
|
46
|
+
APIResponseOfProfileDetail = Sentdm::Models::APIResponseOfProfileDetail
|
|
47
|
+
|
|
48
|
+
APIResponseOfUser = Sentdm::Models::APIResponseOfUser
|
|
49
|
+
|
|
50
|
+
APIResponseTemplate = Sentdm::Models::APIResponseTemplate
|
|
51
|
+
|
|
52
|
+
APIResponseWebhook = Sentdm::Models::APIResponseWebhook
|
|
53
|
+
|
|
54
|
+
BillingContactInfo = Sentdm::Models::BillingContactInfo
|
|
55
|
+
|
|
56
|
+
BrandsBrandData = Sentdm::Models::BrandsBrandData
|
|
57
|
+
|
|
42
58
|
ContactCreateParams = Sentdm::Models::ContactCreateParams
|
|
43
59
|
|
|
44
60
|
ContactDeleteParams = Sentdm::Models::ContactDeleteParams
|
|
45
61
|
|
|
46
62
|
ContactListParams = Sentdm::Models::ContactListParams
|
|
47
63
|
|
|
64
|
+
ContactResponse = Sentdm::Models::ContactResponse
|
|
65
|
+
|
|
48
66
|
ContactRetrieveParams = Sentdm::Models::ContactRetrieveParams
|
|
49
67
|
|
|
50
68
|
ContactUpdateParams = Sentdm::Models::ContactUpdateParams
|
|
51
69
|
|
|
70
|
+
DestinationCountry = Sentdm::Models::DestinationCountry
|
|
71
|
+
|
|
72
|
+
ErrorDetail = Sentdm::Models::ErrorDetail
|
|
73
|
+
|
|
52
74
|
MeRetrieveParams = Sentdm::Models::MeRetrieveParams
|
|
53
75
|
|
|
54
76
|
MessageRetrieveActivitiesParams = Sentdm::Models::MessageRetrieveActivitiesParams
|
|
@@ -57,24 +79,71 @@ module Sentdm
|
|
|
57
79
|
|
|
58
80
|
MessageSendParams = Sentdm::Models::MessageSendParams
|
|
59
81
|
|
|
82
|
+
MutationRequest = Sentdm::Models::MutationRequest
|
|
83
|
+
|
|
60
84
|
NumberLookupParams = Sentdm::Models::NumberLookupParams
|
|
61
85
|
|
|
86
|
+
PaginationMeta = Sentdm::Models::PaginationMeta
|
|
87
|
+
|
|
88
|
+
PaymentDetails = Sentdm::Models::PaymentDetails
|
|
89
|
+
|
|
62
90
|
ProfileCompleteParams = Sentdm::Models::ProfileCompleteParams
|
|
63
91
|
|
|
64
92
|
ProfileCreateParams = Sentdm::Models::ProfileCreateParams
|
|
65
93
|
|
|
66
94
|
ProfileDeleteParams = Sentdm::Models::ProfileDeleteParams
|
|
67
95
|
|
|
96
|
+
ProfileDetail = Sentdm::Models::ProfileDetail
|
|
97
|
+
|
|
68
98
|
ProfileListParams = Sentdm::Models::ProfileListParams
|
|
69
99
|
|
|
70
100
|
ProfileRetrieveParams = Sentdm::Models::ProfileRetrieveParams
|
|
71
101
|
|
|
72
102
|
Profiles = Sentdm::Models::Profiles
|
|
73
103
|
|
|
104
|
+
ProfileSettings = Sentdm::Models::ProfileSettings
|
|
105
|
+
|
|
74
106
|
ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
|
|
75
107
|
|
|
108
|
+
SentDmServicesCommonContractsPocOsAuthenticationConfig =
|
|
109
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig
|
|
110
|
+
|
|
111
|
+
SentDmServicesCommonContractsPocOsTemplateBody =
|
|
112
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody
|
|
113
|
+
|
|
114
|
+
SentDmServicesCommonContractsPocOsTemplateButton =
|
|
115
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton
|
|
116
|
+
|
|
117
|
+
SentDmServicesCommonContractsPocOsTemplateButtonProps =
|
|
118
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps
|
|
119
|
+
|
|
120
|
+
SentDmServicesCommonContractsPocOsTemplateFooter =
|
|
121
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter
|
|
122
|
+
|
|
123
|
+
SentDmServicesCommonContractsPocOsTemplateHeader =
|
|
124
|
+
Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader
|
|
125
|
+
|
|
126
|
+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo =
|
|
127
|
+
Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo
|
|
128
|
+
|
|
129
|
+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo =
|
|
130
|
+
Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
|
|
131
|
+
|
|
132
|
+
SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo =
|
|
133
|
+
Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
|
|
134
|
+
|
|
135
|
+
TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
|
|
136
|
+
|
|
137
|
+
TcrVertical = Sentdm::Models::TcrVertical
|
|
138
|
+
|
|
139
|
+
Template = Sentdm::Models::Template
|
|
140
|
+
|
|
141
|
+
TemplateBodyContent = Sentdm::Models::TemplateBodyContent
|
|
142
|
+
|
|
76
143
|
TemplateCreateParams = Sentdm::Models::TemplateCreateParams
|
|
77
144
|
|
|
145
|
+
TemplateDefinition = Sentdm::Models::TemplateDefinition
|
|
146
|
+
|
|
78
147
|
TemplateDeleteParams = Sentdm::Models::TemplateDeleteParams
|
|
79
148
|
|
|
80
149
|
TemplateListParams = Sentdm::Models::TemplateListParams
|
|
@@ -83,12 +152,16 @@ module Sentdm
|
|
|
83
152
|
|
|
84
153
|
TemplateUpdateParams = Sentdm::Models::TemplateUpdateParams
|
|
85
154
|
|
|
155
|
+
TemplateVariable = Sentdm::Models::TemplateVariable
|
|
156
|
+
|
|
86
157
|
UserInviteParams = Sentdm::Models::UserInviteParams
|
|
87
158
|
|
|
88
159
|
UserListParams = Sentdm::Models::UserListParams
|
|
89
160
|
|
|
90
161
|
UserRemoveParams = Sentdm::Models::UserRemoveParams
|
|
91
162
|
|
|
163
|
+
UserResponse = Sentdm::Models::UserResponse
|
|
164
|
+
|
|
92
165
|
UserRetrieveParams = Sentdm::Models::UserRetrieveParams
|
|
93
166
|
|
|
94
167
|
UserUpdateRoleParams = Sentdm::Models::UserUpdateRoleParams
|
|
@@ -97,12 +170,16 @@ module Sentdm
|
|
|
97
170
|
|
|
98
171
|
WebhookDeleteParams = Sentdm::Models::WebhookDeleteParams
|
|
99
172
|
|
|
173
|
+
WebhookEventType = Sentdm::Models::WebhookEventType
|
|
174
|
+
|
|
100
175
|
WebhookListEventsParams = Sentdm::Models::WebhookListEventsParams
|
|
101
176
|
|
|
102
177
|
WebhookListEventTypesParams = Sentdm::Models::WebhookListEventTypesParams
|
|
103
178
|
|
|
104
179
|
WebhookListParams = Sentdm::Models::WebhookListParams
|
|
105
180
|
|
|
181
|
+
WebhookResponse = Sentdm::Models::WebhookResponse
|
|
182
|
+
|
|
106
183
|
WebhookRetrieveParams = Sentdm::Models::WebhookRetrieveParams
|
|
107
184
|
|
|
108
185
|
WebhookRotateSecretParams = Sentdm::Models::WebhookRotateSecretParams
|
|
@@ -22,7 +22,7 @@ module Sentdm
|
|
|
22
22
|
#
|
|
23
23
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
24
24
|
#
|
|
25
|
-
# @return [Sentdm::Models::
|
|
25
|
+
# @return [Sentdm::Models::APIResponseOfContact]
|
|
26
26
|
#
|
|
27
27
|
# @see Sentdm::Models::ContactCreateParams
|
|
28
28
|
def create(params = {})
|
|
@@ -33,7 +33,7 @@ module Sentdm
|
|
|
33
33
|
path: "v3/contacts",
|
|
34
34
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
35
35
|
body: parsed.except(*header_params.keys),
|
|
36
|
-
model: Sentdm::
|
|
36
|
+
model: Sentdm::APIResponseOfContact,
|
|
37
37
|
options: options
|
|
38
38
|
)
|
|
39
39
|
end
|
|
@@ -53,7 +53,7 @@ module Sentdm
|
|
|
53
53
|
#
|
|
54
54
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
55
55
|
#
|
|
56
|
-
# @return [Sentdm::Models::
|
|
56
|
+
# @return [Sentdm::Models::APIResponseOfContact]
|
|
57
57
|
#
|
|
58
58
|
# @see Sentdm::Models::ContactRetrieveParams
|
|
59
59
|
def retrieve(id, params = {})
|
|
@@ -62,7 +62,7 @@ module Sentdm
|
|
|
62
62
|
method: :get,
|
|
63
63
|
path: ["v3/contacts/%1$s", id],
|
|
64
64
|
headers: parsed.transform_keys(x_profile_id: "x-profile-id"),
|
|
65
|
-
model: Sentdm::
|
|
65
|
+
model: Sentdm::APIResponseOfContact,
|
|
66
66
|
options: options
|
|
67
67
|
)
|
|
68
68
|
end
|
|
@@ -89,7 +89,7 @@ module Sentdm
|
|
|
89
89
|
#
|
|
90
90
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
91
91
|
#
|
|
92
|
-
# @return [Sentdm::Models::
|
|
92
|
+
# @return [Sentdm::Models::APIResponseOfContact]
|
|
93
93
|
#
|
|
94
94
|
# @see Sentdm::Models::ContactUpdateParams
|
|
95
95
|
def update(id, params = {})
|
|
@@ -100,7 +100,7 @@ module Sentdm
|
|
|
100
100
|
path: ["v3/contacts/%1$s", id],
|
|
101
101
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
102
102
|
body: parsed.except(*header_params.keys),
|
|
103
|
-
model: Sentdm::
|
|
103
|
+
model: Sentdm::APIResponseOfContact,
|
|
104
104
|
options: options
|
|
105
105
|
)
|
|
106
106
|
end
|
|
@@ -15,7 +15,7 @@ module Sentdm
|
|
|
15
15
|
#
|
|
16
16
|
# @param profile_id [String] Path param: Profile ID from route
|
|
17
17
|
#
|
|
18
|
-
# @param campaign [Sentdm::Models::Profiles::
|
|
18
|
+
# @param campaign [Sentdm::Models::Profiles::CampaignData] Body param: Campaign data for create or update operation
|
|
19
19
|
#
|
|
20
20
|
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
|
|
21
21
|
#
|
|
@@ -25,7 +25,7 @@ module Sentdm
|
|
|
25
25
|
#
|
|
26
26
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
27
27
|
#
|
|
28
|
-
# @return [Sentdm::Models::Profiles::
|
|
28
|
+
# @return [Sentdm::Models::Profiles::APIResponseOfTcrCampaignWithUseCases]
|
|
29
29
|
#
|
|
30
30
|
# @see Sentdm::Models::Profiles::CampaignCreateParams
|
|
31
31
|
def create(profile_id, params)
|
|
@@ -36,7 +36,7 @@ module Sentdm
|
|
|
36
36
|
path: ["v3/profiles/%1$s/campaigns", profile_id],
|
|
37
37
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
38
38
|
body: parsed.except(*header_params.keys),
|
|
39
|
-
model: Sentdm::
|
|
39
|
+
model: Sentdm::Profiles::APIResponseOfTcrCampaignWithUseCases,
|
|
40
40
|
options: options
|
|
41
41
|
)
|
|
42
42
|
end
|
|
@@ -53,7 +53,7 @@ module Sentdm
|
|
|
53
53
|
#
|
|
54
54
|
# @param profile_id [String] Path param: Profile ID from route
|
|
55
55
|
#
|
|
56
|
-
# @param campaign [Sentdm::Models::Profiles::
|
|
56
|
+
# @param campaign [Sentdm::Models::Profiles::CampaignData] Body param: Campaign data for create or update operation
|
|
57
57
|
#
|
|
58
58
|
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
|
|
59
59
|
#
|
|
@@ -63,7 +63,7 @@ module Sentdm
|
|
|
63
63
|
#
|
|
64
64
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
65
65
|
#
|
|
66
|
-
# @return [Sentdm::Models::Profiles::
|
|
66
|
+
# @return [Sentdm::Models::Profiles::APIResponseOfTcrCampaignWithUseCases]
|
|
67
67
|
#
|
|
68
68
|
# @see Sentdm::Models::Profiles::CampaignUpdateParams
|
|
69
69
|
def update(campaign_id, params)
|
|
@@ -78,7 +78,7 @@ module Sentdm
|
|
|
78
78
|
path: ["v3/profiles/%1$s/campaigns/%2$s", profile_id, campaign_id],
|
|
79
79
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
80
80
|
body: parsed.except(*header_params.keys),
|
|
81
|
-
model: Sentdm::
|
|
81
|
+
model: Sentdm::Profiles::APIResponseOfTcrCampaignWithUseCases,
|
|
82
82
|
options: options
|
|
83
83
|
)
|
|
84
84
|
end
|
|
@@ -54,11 +54,11 @@ module Sentdm
|
|
|
54
54
|
#
|
|
55
55
|
# @param allow_template_sharing [Boolean] Body param: Whether templates are shared across profiles (default: false)
|
|
56
56
|
#
|
|
57
|
-
# @param billing_contact [Sentdm::Models::
|
|
57
|
+
# @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact information for a profile.
|
|
58
58
|
#
|
|
59
59
|
# @param billing_model [String, nil] Body param: Billing model: profile, organization, or profile_and_organization (d
|
|
60
60
|
#
|
|
61
|
-
# @param brand [Sentdm::Models::
|
|
61
|
+
# @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC data grouped into contact, business, and compliance se
|
|
62
62
|
#
|
|
63
63
|
# @param description [String, nil] Body param: Profile description (optional)
|
|
64
64
|
#
|
|
@@ -74,7 +74,7 @@ module Sentdm
|
|
|
74
74
|
#
|
|
75
75
|
# @param name [String] Body param: Profile name (required)
|
|
76
76
|
#
|
|
77
|
-
# @param payment_details [Sentdm::Models::
|
|
77
|
+
# @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for a profile.
|
|
78
78
|
#
|
|
79
79
|
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
|
|
80
80
|
#
|
|
@@ -88,7 +88,7 @@ module Sentdm
|
|
|
88
88
|
#
|
|
89
89
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
90
90
|
#
|
|
91
|
-
# @return [Sentdm::Models::
|
|
91
|
+
# @return [Sentdm::Models::APIResponseOfProfileDetail]
|
|
92
92
|
#
|
|
93
93
|
# @see Sentdm::Models::ProfileCreateParams
|
|
94
94
|
def create(params = {})
|
|
@@ -99,7 +99,7 @@ module Sentdm
|
|
|
99
99
|
path: "v3/profiles",
|
|
100
100
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
101
101
|
body: parsed.except(*header_params.keys),
|
|
102
|
-
model: Sentdm::
|
|
102
|
+
model: Sentdm::APIResponseOfProfileDetail,
|
|
103
103
|
options: options
|
|
104
104
|
)
|
|
105
105
|
end
|
|
@@ -119,7 +119,7 @@ module Sentdm
|
|
|
119
119
|
#
|
|
120
120
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
121
121
|
#
|
|
122
|
-
# @return [Sentdm::Models::
|
|
122
|
+
# @return [Sentdm::Models::APIResponseOfProfileDetail]
|
|
123
123
|
#
|
|
124
124
|
# @see Sentdm::Models::ProfileRetrieveParams
|
|
125
125
|
def retrieve(profile_id, params = {})
|
|
@@ -128,7 +128,7 @@ module Sentdm
|
|
|
128
128
|
method: :get,
|
|
129
129
|
path: ["v3/profiles/%1$s", profile_id],
|
|
130
130
|
headers: parsed.transform_keys(x_profile_id: "x-profile-id"),
|
|
131
|
-
model: Sentdm::
|
|
131
|
+
model: Sentdm::APIResponseOfProfileDetail,
|
|
132
132
|
options: options
|
|
133
133
|
)
|
|
134
134
|
end
|
|
@@ -165,11 +165,11 @@ module Sentdm
|
|
|
165
165
|
#
|
|
166
166
|
# @param allow_template_sharing [Boolean, nil] Body param: Whether templates are shared across profiles (optional)
|
|
167
167
|
#
|
|
168
|
-
# @param billing_contact [Sentdm::Models::
|
|
168
|
+
# @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact information for a profile.
|
|
169
169
|
#
|
|
170
170
|
# @param billing_model [String, nil] Body param: Billing model: profile, organization, or profile_and_organization (o
|
|
171
171
|
#
|
|
172
|
-
# @param brand [Sentdm::Models::
|
|
172
|
+
# @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC data grouped into contact, business, and compliance se
|
|
173
173
|
#
|
|
174
174
|
# @param description [String, nil] Body param: Profile description (optional)
|
|
175
175
|
#
|
|
@@ -185,7 +185,7 @@ module Sentdm
|
|
|
185
185
|
#
|
|
186
186
|
# @param name [String, nil] Body param: Profile name (optional)
|
|
187
187
|
#
|
|
188
|
-
# @param payment_details [Sentdm::Models::
|
|
188
|
+
# @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for a profile.
|
|
189
189
|
#
|
|
190
190
|
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
|
|
191
191
|
#
|
|
@@ -205,7 +205,7 @@ module Sentdm
|
|
|
205
205
|
#
|
|
206
206
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
207
207
|
#
|
|
208
|
-
# @return [Sentdm::Models::
|
|
208
|
+
# @return [Sentdm::Models::APIResponseOfProfileDetail]
|
|
209
209
|
#
|
|
210
210
|
# @see Sentdm::Models::ProfileUpdateParams
|
|
211
211
|
def update(profile_id, params = {})
|
|
@@ -216,7 +216,7 @@ module Sentdm
|
|
|
216
216
|
path: ["v3/profiles/%1$s", profile_id],
|
|
217
217
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
218
218
|
body: parsed.except(*header_params.keys),
|
|
219
|
-
model: Sentdm::
|
|
219
|
+
model: Sentdm::APIResponseOfProfileDetail,
|
|
220
220
|
options: options
|
|
221
221
|
)
|
|
222
222
|
end
|
|
@@ -17,7 +17,7 @@ module Sentdm
|
|
|
17
17
|
#
|
|
18
18
|
# @param creation_source [String, nil] Body param: Source of template creation (default: from-api)
|
|
19
19
|
#
|
|
20
|
-
# @param definition [Sentdm::Models::
|
|
20
|
+
# @param definition [Sentdm::Models::TemplateDefinition] Body param: Complete definition of a message template including header, body, fo
|
|
21
21
|
#
|
|
22
22
|
# @param language [String, nil] Body param: Template language code (e.g., en_US) (optional, auto-detected if not
|
|
23
23
|
#
|
|
@@ -31,7 +31,7 @@ module Sentdm
|
|
|
31
31
|
#
|
|
32
32
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
33
33
|
#
|
|
34
|
-
# @return [Sentdm::Models::
|
|
34
|
+
# @return [Sentdm::Models::APIResponseTemplate]
|
|
35
35
|
#
|
|
36
36
|
# @see Sentdm::Models::TemplateCreateParams
|
|
37
37
|
def create(params = {})
|
|
@@ -42,7 +42,7 @@ module Sentdm
|
|
|
42
42
|
path: "v3/templates",
|
|
43
43
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
44
44
|
body: parsed.except(*header_params.keys),
|
|
45
|
-
model: Sentdm::
|
|
45
|
+
model: Sentdm::APIResponseTemplate,
|
|
46
46
|
options: options
|
|
47
47
|
)
|
|
48
48
|
end
|
|
@@ -61,7 +61,7 @@ module Sentdm
|
|
|
61
61
|
#
|
|
62
62
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
63
63
|
#
|
|
64
|
-
# @return [Sentdm::Models::
|
|
64
|
+
# @return [Sentdm::Models::APIResponseTemplate]
|
|
65
65
|
#
|
|
66
66
|
# @see Sentdm::Models::TemplateRetrieveParams
|
|
67
67
|
def retrieve(id, params = {})
|
|
@@ -70,7 +70,7 @@ module Sentdm
|
|
|
70
70
|
method: :get,
|
|
71
71
|
path: ["v3/templates/%1$s", id],
|
|
72
72
|
headers: parsed.transform_keys(x_profile_id: "x-profile-id"),
|
|
73
|
-
model: Sentdm::
|
|
73
|
+
model: Sentdm::APIResponseTemplate,
|
|
74
74
|
options: options
|
|
75
75
|
)
|
|
76
76
|
end
|
|
@@ -87,7 +87,7 @@ module Sentdm
|
|
|
87
87
|
#
|
|
88
88
|
# @param category [String, nil] Body param: Template category: MARKETING, UTILITY, AUTHENTICATION
|
|
89
89
|
#
|
|
90
|
-
# @param definition [Sentdm::Models::
|
|
90
|
+
# @param definition [Sentdm::Models::TemplateDefinition, nil] Body param: Complete definition of a message template including header, body, fo
|
|
91
91
|
#
|
|
92
92
|
# @param language [String, nil] Body param: Template language code (e.g., en_US)
|
|
93
93
|
#
|
|
@@ -103,7 +103,7 @@ module Sentdm
|
|
|
103
103
|
#
|
|
104
104
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
105
105
|
#
|
|
106
|
-
# @return [Sentdm::Models::
|
|
106
|
+
# @return [Sentdm::Models::APIResponseTemplate]
|
|
107
107
|
#
|
|
108
108
|
# @see Sentdm::Models::TemplateUpdateParams
|
|
109
109
|
def update(id, params = {})
|
|
@@ -114,7 +114,7 @@ module Sentdm
|
|
|
114
114
|
path: ["v3/templates/%1$s", id],
|
|
115
115
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
116
116
|
body: parsed.except(*header_params.keys),
|
|
117
|
-
model: Sentdm::
|
|
117
|
+
model: Sentdm::APIResponseTemplate,
|
|
118
118
|
options: options
|
|
119
119
|
)
|
|
120
120
|
end
|
|
@@ -18,7 +18,7 @@ module Sentdm
|
|
|
18
18
|
#
|
|
19
19
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
20
20
|
#
|
|
21
|
-
# @return [Sentdm::Models::
|
|
21
|
+
# @return [Sentdm::Models::APIResponseOfUser]
|
|
22
22
|
#
|
|
23
23
|
# @see Sentdm::Models::UserRetrieveParams
|
|
24
24
|
def retrieve(user_id, params = {})
|
|
@@ -27,7 +27,7 @@ module Sentdm
|
|
|
27
27
|
method: :get,
|
|
28
28
|
path: ["v3/users/%1$s", user_id],
|
|
29
29
|
headers: parsed.transform_keys(x_profile_id: "x-profile-id"),
|
|
30
|
-
model: Sentdm::
|
|
30
|
+
model: Sentdm::APIResponseOfUser,
|
|
31
31
|
options: options
|
|
32
32
|
)
|
|
33
33
|
end
|
|
@@ -82,7 +82,7 @@ module Sentdm
|
|
|
82
82
|
#
|
|
83
83
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
84
84
|
#
|
|
85
|
-
# @return [Sentdm::Models::
|
|
85
|
+
# @return [Sentdm::Models::APIResponseOfUser]
|
|
86
86
|
#
|
|
87
87
|
# @see Sentdm::Models::UserInviteParams
|
|
88
88
|
def invite(params = {})
|
|
@@ -93,7 +93,7 @@ module Sentdm
|
|
|
93
93
|
path: "v3/users",
|
|
94
94
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
95
95
|
body: parsed.except(*header_params.keys),
|
|
96
|
-
model: Sentdm::
|
|
96
|
+
model: Sentdm::APIResponseOfUser,
|
|
97
97
|
options: options
|
|
98
98
|
)
|
|
99
99
|
end
|
|
@@ -150,7 +150,7 @@ module Sentdm
|
|
|
150
150
|
#
|
|
151
151
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
152
152
|
#
|
|
153
|
-
# @return [Sentdm::Models::
|
|
153
|
+
# @return [Sentdm::Models::APIResponseOfUser]
|
|
154
154
|
#
|
|
155
155
|
# @see Sentdm::Models::UserUpdateRoleParams
|
|
156
156
|
def update_role(user_id, params = {})
|
|
@@ -161,7 +161,7 @@ module Sentdm
|
|
|
161
161
|
path: ["v3/users/%1$s", user_id],
|
|
162
162
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
163
163
|
body: parsed.except(*header_params.keys),
|
|
164
|
-
model: Sentdm::
|
|
164
|
+
model: Sentdm::APIResponseOfUser,
|
|
165
165
|
options: options
|
|
166
166
|
)
|
|
167
167
|
end
|