sentdm 0.29.0 → 0.31.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 +24 -0
- data/README.md +55 -1
- data/lib/sentdm/internal/contacts_page.rb +115 -0
- data/lib/sentdm/internal/conversations_page.rb +115 -0
- data/lib/sentdm/internal/templates_page.rb +115 -0
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/internal/webhook_events_page.rb +115 -0
- data/lib/sentdm/internal/webhooks_page.rb +115 -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_contact_message_summary.rb +43 -0
- data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +42 -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/brand_business_info.rb +114 -0
- data/lib/sentdm/models/brand_compliance_info.rb +59 -0
- data/lib/sentdm/models/brand_contact_info.rb +58 -0
- data/lib/sentdm/models/brands_brand_data.rb +34 -0
- data/lib/sentdm/models/contact_delete_params.rb +2 -16
- data/lib/sentdm/models/contact_list_params.rb +13 -13
- data/lib/sentdm/models/contact_message_summary.rb +76 -0
- data/lib/sentdm/models/contact_response.rb +140 -0
- data/lib/sentdm/models/conversation_list_messages_params.rb +5 -5
- data/lib/sentdm/models/conversation_list_params.rb +5 -5
- data/lib/sentdm/models/conversation_messages_list.rb +245 -0
- data/lib/sentdm/models/error_detail.rb +42 -0
- data/lib/sentdm/models/me_retrieve_response.rb +12 -242
- data/lib/sentdm/models/message_retrieve_activities_response.rb +9 -159
- 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 +84 -0
- data/lib/sentdm/models/payment_details.rb +40 -0
- data/lib/sentdm/models/profile_complete_response.rb +6 -74
- data/lib/sentdm/models/profile_create_params.rb +9 -345
- data/lib/sentdm/models/profile_delete_params.rb +2 -16
- data/lib/sentdm/models/profile_detail.rb +650 -0
- data/lib/sentdm/models/profile_list_response.rb +12 -815
- data/lib/sentdm/models/profile_settings.rb +85 -0
- data/lib/sentdm/models/profile_update_params.rb +9 -345
- data/lib/sentdm/models/profiles/api_response_of_brand_campaign.rb +45 -0
- data/lib/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rb +45 -0
- data/lib/sentdm/models/profiles/brand_campaign.rb +247 -0
- data/lib/sentdm/models/profiles/campaign_create_params.rb +3 -156
- data/lib/sentdm/models/profiles/campaign_data.rb +136 -0
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +2 -17
- data/lib/sentdm/models/profiles/campaign_update_params.rb +3 -156
- data/lib/sentdm/models/profiles/campaign_use_case.rb +71 -0
- data/lib/sentdm/models/profiles/campaign_use_case_data.rb +29 -0
- data/lib/sentdm/models/template.rb +103 -0
- data/lib/sentdm/models/template_list_params.rb +17 -17
- data/lib/sentdm/models/user_list_response.rb +12 -249
- data/lib/sentdm/models/user_remove_params.rb +2 -16
- data/lib/sentdm/models/user_response.rb +94 -0
- data/lib/sentdm/models/webhook_event_type.rb +45 -0
- data/lib/sentdm/models/webhook_list_event_types_response.rb +12 -203
- data/lib/sentdm/models/webhook_list_events_params.rb +5 -5
- data/lib/sentdm/models/webhook_list_events_response.rb +87 -295
- data/lib/sentdm/models/webhook_list_params.rb +11 -11
- data/lib/sentdm/models/webhook_response.rb +121 -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 +52 -0
- data/lib/sentdm/resources/contacts.rb +16 -15
- data/lib/sentdm/resources/conversations.rb +10 -8
- data/lib/sentdm/resources/profiles/campaigns.rb +8 -8
- data/lib/sentdm/resources/profiles.rb +12 -12
- data/lib/sentdm/resources/templates.rb +16 -15
- data/lib/sentdm/resources/users.rb +6 -6
- data/lib/sentdm/resources/webhooks.rb +20 -18
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +37 -25
- data/rbi/sentdm/internal/contacts_page.rbi +71 -0
- data/rbi/sentdm/internal/conversations_page.rbi +71 -0
- data/rbi/sentdm/internal/templates_page.rbi +71 -0
- data/rbi/sentdm/internal/webhook_events_page.rbi +71 -0
- data/rbi/sentdm/internal/webhooks_page.rbi +71 -0
- 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_contact_message_summary.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +79 -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/brand_business_info.rbi +162 -0
- data/rbi/sentdm/models/brand_compliance_info.rbi +76 -0
- data/rbi/sentdm/models/brand_contact_info.rbi +78 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +65 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +2 -19
- data/rbi/sentdm/models/contact_list_params.rbi +19 -13
- data/rbi/sentdm/models/contact_message_summary.rbi +144 -0
- data/rbi/sentdm/models/contact_response.rbi +200 -0
- data/rbi/sentdm/models/conversation_list_messages_params.rbi +12 -6
- data/rbi/sentdm/models/conversation_list_params.rbi +16 -5
- data/rbi/sentdm/models/conversation_messages_list.rbi +419 -0
- data/rbi/sentdm/models/error_detail.rbi +66 -0
- data/rbi/sentdm/models/me_retrieve_response.rbi +16 -367
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +12 -325
- 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 +56 -0
- data/rbi/sentdm/models/profile_complete_response.rbi +8 -137
- data/rbi/sentdm/models/profile_create_params.rbi +12 -546
- data/rbi/sentdm/models/profile_delete_params.rbi +2 -19
- data/rbi/sentdm/models/profile_detail.rbi +918 -0
- data/rbi/sentdm/models/profile_list_response.rbi +16 -1347
- data/rbi/sentdm/models/profile_settings.rbi +102 -0
- data/rbi/sentdm/models/profile_update_params.rbi +12 -546
- data/rbi/sentdm/models/profiles/api_response_of_brand_campaign.rbi +81 -0
- data/rbi/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbi +76 -0
- data/rbi/sentdm/models/profiles/brand_campaign.rbi +299 -0
- data/rbi/sentdm/models/profiles/campaign_create_params.rbi +4 -218
- data/rbi/sentdm/models/profiles/campaign_data.rbi +158 -0
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +1 -14
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +4 -218
- data/rbi/sentdm/models/profiles/campaign_use_case.rbi +110 -0
- data/rbi/sentdm/models/profiles/campaign_use_case_data.rbi +51 -0
- data/rbi/sentdm/models/template.rbi +139 -0
- data/rbi/sentdm/models/template_list_params.rbi +22 -16
- data/rbi/sentdm/models/user_list_response.rbi +16 -444
- data/rbi/sentdm/models/user_remove_params.rbi +2 -19
- data/rbi/sentdm/models/user_response.rbi +131 -0
- data/rbi/sentdm/models/webhook_event_type.rbi +74 -0
- data/rbi/sentdm/models/webhook_list_event_types_response.rbi +16 -414
- data/rbi/sentdm/models/webhook_list_events_params.rbi +12 -6
- data/rbi/sentdm/models/webhook_list_events_response.rbi +113 -564
- data/rbi/sentdm/models/webhook_list_params.rbi +16 -10
- data/rbi/sentdm/models/webhook_response.rbi +153 -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 +54 -0
- data/rbi/sentdm/resources/contacts.rbi +10 -10
- data/rbi/sentdm/resources/conversations.rbi +14 -6
- data/rbi/sentdm/resources/profiles/campaigns.rbi +5 -5
- data/rbi/sentdm/resources/profiles.rbi +9 -13
- data/rbi/sentdm/resources/templates.rbi +10 -10
- data/rbi/sentdm/resources/users.rbi +3 -3
- data/rbi/sentdm/resources/webhooks.rbi +16 -12
- data/sig/sentdm/internal/contacts_page.rbs +41 -0
- data/sig/sentdm/internal/conversations_page.rbs +41 -0
- data/sig/sentdm/internal/templates_page.rbs +44 -0
- data/sig/sentdm/internal/webhook_events_page.rbs +41 -0
- data/sig/sentdm/internal/webhooks_page.rbs +41 -0
- 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_contact_message_summary.rbs +39 -0
- data/sig/sentdm/models/api_response_of_conversation_messages_list.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/brand_business_info.rbs +89 -0
- data/sig/sentdm/models/brand_compliance_info.rbs +45 -0
- data/sig/sentdm/models/brand_contact_info.rbs +45 -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_params.rbs +11 -7
- data/sig/sentdm/models/contact_message_summary.rbs +84 -0
- data/sig/sentdm/models/contact_response.rbs +118 -0
- data/sig/sentdm/models/conversation_list_messages_params.rbs +8 -4
- data/sig/sentdm/models/conversation_list_params.rbs +8 -4
- data/sig/sentdm/models/conversation_messages_list.rbs +240 -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 +14 -142
- 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 -263
- data/sig/sentdm/models/profile_delete_params.rbs +6 -10
- data/sig/sentdm/models/profile_detail.rbs +461 -0
- data/sig/sentdm/models/profile_list_response.rbs +20 -606
- data/sig/sentdm/models/profile_settings.rbs +50 -0
- data/sig/sentdm/models/profile_update_params.rbs +12 -263
- data/sig/sentdm/models/profiles/api_response_of_brand_campaign.rbs +41 -0
- data/sig/sentdm/models/profiles/api_response_of_list_of_brand_campaign.rbs +41 -0
- data/sig/sentdm/models/profiles/brand_campaign.rbs +194 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +4 -108
- data/sig/sentdm/models/profiles/campaign_data.rbs +87 -0
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +8 -15
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +4 -108
- data/sig/sentdm/models/profiles/campaign_use_case.rbs +66 -0
- data/sig/sentdm/models/profiles/campaign_use_case_data.rbs +27 -0
- data/sig/sentdm/models/template.rbs +84 -0
- data/sig/sentdm/models/template_list_params.rbs +14 -10
- data/sig/sentdm/models/user_list_response.rbs +20 -224
- data/sig/sentdm/models/user_remove_params.rbs +6 -10
- data/sig/sentdm/models/user_response.rbs +79 -0
- data/sig/sentdm/models/webhook_event_type.rbs +51 -0
- data/sig/sentdm/models/webhook_list_event_types_response.rbs +20 -196
- data/sig/sentdm/models/webhook_list_events_params.rbs +8 -4
- data/sig/sentdm/models/webhook_list_events_response.rbs +63 -255
- data/sig/sentdm/models/webhook_list_params.rbs +11 -7
- data/sig/sentdm/models/webhook_response.rbs +110 -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 +52 -0
- data/sig/sentdm/resources/contacts.rbs +7 -7
- data/sig/sentdm/resources/conversations.rbs +6 -6
- data/sig/sentdm/resources/profiles/campaigns.rbs +5 -5
- data/sig/sentdm/resources/profiles.rbs +9 -9
- data/sig/sentdm/resources/templates.rbs +6 -6
- data/sig/sentdm/resources/users.rbs +3 -3
- data/sig/sentdm/resources/webhooks.rbs +10 -10
- metadata +113 -77
- data/lib/sentdm/models/contact_create_response.rb +0 -249
- data/lib/sentdm/models/contact_list_response.rb +0 -348
- data/lib/sentdm/models/contact_retrieve_message_summary_response.rb +0 -186
- data/lib/sentdm/models/contact_retrieve_response.rb +0 -249
- data/lib/sentdm/models/contact_update_response.rb +0 -249
- data/lib/sentdm/models/conversation_list_messages_response.rb +0 -436
- data/lib/sentdm/models/conversation_list_response.rb +0 -433
- data/lib/sentdm/models/profile_create_response.rb +0 -760
- data/lib/sentdm/models/profile_retrieve_response.rb +0 -762
- data/lib/sentdm/models/profile_update_response.rb +0 -760
- data/lib/sentdm/models/profiles/campaign_create_response.rb +0 -420
- data/lib/sentdm/models/profiles/campaign_list_response.rb +0 -421
- data/lib/sentdm/models/profiles/campaign_update_response.rb +0 -420
- data/lib/sentdm/models/template_create_response.rb +0 -209
- data/lib/sentdm/models/template_list_response.rb +0 -311
- data/lib/sentdm/models/template_retrieve_response.rb +0 -209
- data/lib/sentdm/models/template_update_response.rb +0 -209
- data/lib/sentdm/models/user_invite_response.rb +0 -201
- data/lib/sentdm/models/user_retrieve_response.rb +0 -201
- data/lib/sentdm/models/user_update_role_response.rb +0 -201
- data/lib/sentdm/models/webhook_create_response.rb +0 -229
- data/lib/sentdm/models/webhook_list_response.rb +0 -329
- data/lib/sentdm/models/webhook_retrieve_response.rb +0 -229
- data/lib/sentdm/models/webhook_toggle_status_response.rb +0 -229
- data/lib/sentdm/models/webhook_update_response.rb +0 -229
- data/rbi/sentdm/models/contact_create_response.rbi +0 -407
- data/rbi/sentdm/models/contact_list_response.rbi +0 -634
- data/rbi/sentdm/models/contact_retrieve_message_summary_response.rbi +0 -397
- data/rbi/sentdm/models/contact_retrieve_response.rbi +0 -409
- data/rbi/sentdm/models/contact_update_response.rbi +0 -407
- data/rbi/sentdm/models/conversation_list_messages_response.rbi +0 -843
- data/rbi/sentdm/models/conversation_list_response.rbi +0 -819
- data/rbi/sentdm/models/profile_create_response.rbi +0 -1226
- data/rbi/sentdm/models/profile_retrieve_response.rbi +0 -1230
- data/rbi/sentdm/models/profile_update_response.rbi +0 -1226
- data/rbi/sentdm/models/profiles/campaign_create_response.rbi +0 -674
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +0 -667
- data/rbi/sentdm/models/profiles/campaign_update_response.rbi +0 -674
- data/rbi/sentdm/models/template_create_response.rbi +0 -349
- data/rbi/sentdm/models/template_list_response.rbi +0 -576
- data/rbi/sentdm/models/template_retrieve_response.rbi +0 -355
- data/rbi/sentdm/models/template_update_response.rbi +0 -349
- data/rbi/sentdm/models/user_invite_response.rbi +0 -336
- data/rbi/sentdm/models/user_retrieve_response.rbi +0 -336
- data/rbi/sentdm/models/user_update_role_response.rbi +0 -341
- data/rbi/sentdm/models/webhook_create_response.rbi +0 -361
- data/rbi/sentdm/models/webhook_list_response.rbi +0 -587
- data/rbi/sentdm/models/webhook_retrieve_response.rbi +0 -363
- data/rbi/sentdm/models/webhook_toggle_status_response.rbi +0 -379
- data/rbi/sentdm/models/webhook_update_response.rbi +0 -361
- data/sig/sentdm/models/contact_create_response.rbs +0 -216
- data/sig/sentdm/models/contact_list_response.rbs +0 -310
- data/sig/sentdm/models/contact_retrieve_message_summary_response.rbs +0 -182
- data/sig/sentdm/models/contact_retrieve_response.rbs +0 -216
- data/sig/sentdm/models/contact_update_response.rbs +0 -216
- data/sig/sentdm/models/conversation_list_messages_response.rbs +0 -404
- data/sig/sentdm/models/conversation_list_response.rbs +0 -404
- data/sig/sentdm/models/profile_create_response.rbs +0 -559
- data/sig/sentdm/models/profile_retrieve_response.rbs +0 -559
- data/sig/sentdm/models/profile_update_response.rbs +0 -559
- data/sig/sentdm/models/profiles/campaign_create_response.rbs +0 -357
- data/sig/sentdm/models/profiles/campaign_list_response.rbs +0 -357
- data/sig/sentdm/models/profiles/campaign_update_response.rbs +0 -357
- data/sig/sentdm/models/template_create_response.rbs +0 -182
- data/sig/sentdm/models/template_list_response.rbs +0 -276
- data/sig/sentdm/models/template_retrieve_response.rbs +0 -182
- data/sig/sentdm/models/template_update_response.rbs +0 -182
- data/sig/sentdm/models/user_invite_response.rbs +0 -177
- data/sig/sentdm/models/user_retrieve_response.rbs +0 -177
- data/sig/sentdm/models/user_update_role_response.rbs +0 -177
- data/sig/sentdm/models/webhook_create_response.rbs +0 -208
- data/sig/sentdm/models/webhook_list_response.rbs +0 -302
- data/sig/sentdm/models/webhook_retrieve_response.rbs +0 -208
- data/sig/sentdm/models/webhook_toggle_status_response.rbs +0 -208
- data/sig/sentdm/models/webhook_update_response.rbs +0 -208
|
@@ -17,7 +17,7 @@ module Sentdm
|
|
|
17
17
|
# Retrieves a paginated list of the authenticated customer's messages across all
|
|
18
18
|
# conversations, ordered by created date (most recent first).
|
|
19
19
|
#
|
|
20
|
-
# @overload list(page
|
|
20
|
+
# @overload list(page: nil, page_size: nil, x_profile_id: nil, request_options: {})
|
|
21
21
|
#
|
|
22
22
|
# @param page [Integer] Query param
|
|
23
23
|
#
|
|
@@ -27,10 +27,10 @@ module Sentdm
|
|
|
27
27
|
#
|
|
28
28
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
29
29
|
#
|
|
30
|
-
# @return [Sentdm::Models::
|
|
30
|
+
# @return [Sentdm::Internal::ConversationsPage<Sentdm::Models::ConversationMessagesList::Message>]
|
|
31
31
|
#
|
|
32
32
|
# @see Sentdm::Models::ConversationListParams
|
|
33
|
-
def list(params)
|
|
33
|
+
def list(params = {})
|
|
34
34
|
query_params = [:page, :page_size]
|
|
35
35
|
parsed, options = Sentdm::ConversationListParams.dump_request(params)
|
|
36
36
|
query = Sentdm::Internal::Util.encode_query_params(parsed.slice(*query_params))
|
|
@@ -39,7 +39,8 @@ module Sentdm
|
|
|
39
39
|
path: "v3/conversations",
|
|
40
40
|
query: query,
|
|
41
41
|
headers: parsed.except(*query_params).transform_keys(x_profile_id: "x-profile-id"),
|
|
42
|
-
|
|
42
|
+
page: Sentdm::Internal::ConversationsPage,
|
|
43
|
+
model: Sentdm::ConversationMessagesList::Message,
|
|
43
44
|
options: options
|
|
44
45
|
)
|
|
45
46
|
end
|
|
@@ -50,7 +51,7 @@ module Sentdm
|
|
|
50
51
|
# Retrieves a paginated list of the messages in a single conversation (scoped to
|
|
51
52
|
# the authenticated customer), ordered by created date (most recent first).
|
|
52
53
|
#
|
|
53
|
-
# @overload list_messages(id, page
|
|
54
|
+
# @overload list_messages(id, page: nil, page_size: nil, x_profile_id: nil, request_options: {})
|
|
54
55
|
#
|
|
55
56
|
# @param id [String] Path param: Conversation id from the route.
|
|
56
57
|
#
|
|
@@ -62,10 +63,10 @@ module Sentdm
|
|
|
62
63
|
#
|
|
63
64
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
64
65
|
#
|
|
65
|
-
# @return [Sentdm::Models::
|
|
66
|
+
# @return [Sentdm::Internal::ConversationsPage<Sentdm::Models::ConversationMessagesList::Message>]
|
|
66
67
|
#
|
|
67
68
|
# @see Sentdm::Models::ConversationListMessagesParams
|
|
68
|
-
def list_messages(id, params)
|
|
69
|
+
def list_messages(id, params = {})
|
|
69
70
|
query_params = [:page, :page_size]
|
|
70
71
|
parsed, options = Sentdm::ConversationListMessagesParams.dump_request(params)
|
|
71
72
|
query = Sentdm::Internal::Util.encode_query_params(parsed.slice(*query_params))
|
|
@@ -74,7 +75,8 @@ module Sentdm
|
|
|
74
75
|
path: ["v3/conversations/%1$s", id],
|
|
75
76
|
query: query,
|
|
76
77
|
headers: parsed.except(*query_params).transform_keys(x_profile_id: "x-profile-id"),
|
|
77
|
-
|
|
78
|
+
page: Sentdm::Internal::ConversationsPage,
|
|
79
|
+
model: Sentdm::ConversationMessagesList::Message,
|
|
78
80
|
options: options
|
|
79
81
|
)
|
|
80
82
|
end
|
|
@@ -29,7 +29,7 @@ module Sentdm
|
|
|
29
29
|
#
|
|
30
30
|
# @param profile_id [String] Path param: Profile ID from route
|
|
31
31
|
#
|
|
32
|
-
# @param campaign [Sentdm::Models::Profiles::
|
|
32
|
+
# @param campaign [Sentdm::Models::Profiles::CampaignData] Body param: Campaign data for create or update operation
|
|
33
33
|
#
|
|
34
34
|
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
|
|
35
35
|
#
|
|
@@ -39,7 +39,7 @@ module Sentdm
|
|
|
39
39
|
#
|
|
40
40
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
41
41
|
#
|
|
42
|
-
# @return [Sentdm::Models::Profiles::
|
|
42
|
+
# @return [Sentdm::Models::Profiles::APIResponseOfBrandCampaign]
|
|
43
43
|
#
|
|
44
44
|
# @see Sentdm::Models::Profiles::CampaignCreateParams
|
|
45
45
|
def create(profile_id, params)
|
|
@@ -50,7 +50,7 @@ module Sentdm
|
|
|
50
50
|
path: ["v3/profiles/%1$s/campaigns", profile_id],
|
|
51
51
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
52
52
|
body: parsed.except(*header_params.keys),
|
|
53
|
-
model: Sentdm::
|
|
53
|
+
model: Sentdm::Profiles::APIResponseOfBrandCampaign,
|
|
54
54
|
options: options
|
|
55
55
|
)
|
|
56
56
|
end
|
|
@@ -75,7 +75,7 @@ module Sentdm
|
|
|
75
75
|
#
|
|
76
76
|
# @param profile_id [String] Path param: Profile ID from route
|
|
77
77
|
#
|
|
78
|
-
# @param campaign [Sentdm::Models::Profiles::
|
|
78
|
+
# @param campaign [Sentdm::Models::Profiles::CampaignData] Body param: Campaign data for create or update operation
|
|
79
79
|
#
|
|
80
80
|
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
|
|
81
81
|
#
|
|
@@ -85,7 +85,7 @@ module Sentdm
|
|
|
85
85
|
#
|
|
86
86
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
87
87
|
#
|
|
88
|
-
# @return [Sentdm::Models::Profiles::
|
|
88
|
+
# @return [Sentdm::Models::Profiles::APIResponseOfBrandCampaign]
|
|
89
89
|
#
|
|
90
90
|
# @see Sentdm::Models::Profiles::CampaignUpdateParams
|
|
91
91
|
def update(campaign_id, params)
|
|
@@ -100,7 +100,7 @@ module Sentdm
|
|
|
100
100
|
path: ["v3/profiles/%1$s/campaigns/%2$s", profile_id, campaign_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::Profiles::APIResponseOfBrandCampaign,
|
|
104
104
|
options: options
|
|
105
105
|
)
|
|
106
106
|
end
|
|
@@ -127,7 +127,7 @@ module Sentdm
|
|
|
127
127
|
#
|
|
128
128
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
129
129
|
#
|
|
130
|
-
# @return [Sentdm::Models::Profiles::
|
|
130
|
+
# @return [Sentdm::Models::Profiles::APIResponseOfListOfBrandCampaign]
|
|
131
131
|
#
|
|
132
132
|
# @see Sentdm::Models::Profiles::CampaignListParams
|
|
133
133
|
def list(profile_id, params = {})
|
|
@@ -136,7 +136,7 @@ module Sentdm
|
|
|
136
136
|
method: :get,
|
|
137
137
|
path: ["v3/profiles/%1$s/campaigns", profile_id],
|
|
138
138
|
headers: parsed.transform_keys(x_profile_id: "x-profile-id"),
|
|
139
|
-
model: Sentdm::
|
|
139
|
+
model: Sentdm::Profiles::APIResponseOfListOfBrandCampaign,
|
|
140
140
|
options: options
|
|
141
141
|
)
|
|
142
142
|
end
|
|
@@ -66,11 +66,11 @@ module Sentdm
|
|
|
66
66
|
#
|
|
67
67
|
# @param allow_template_sharing [Boolean, nil] Body param
|
|
68
68
|
#
|
|
69
|
-
# @param billing_contact [Sentdm::Models::
|
|
69
|
+
# @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact information for a profile.
|
|
70
70
|
#
|
|
71
71
|
# @param billing_model [String, nil] Body param: Billing model: profile, organization, or profile_and_organization (d
|
|
72
72
|
#
|
|
73
|
-
# @param brand [Sentdm::Models::
|
|
73
|
+
# @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC data grouped into contact, business, and compliance se
|
|
74
74
|
#
|
|
75
75
|
# @param description [String, nil] Body param: Profile description (optional)
|
|
76
76
|
#
|
|
@@ -86,7 +86,7 @@ module Sentdm
|
|
|
86
86
|
#
|
|
87
87
|
# @param name [String] Body param: Profile name (required)
|
|
88
88
|
#
|
|
89
|
-
# @param payment_details [Sentdm::Models::
|
|
89
|
+
# @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for this profile (optional).
|
|
90
90
|
#
|
|
91
91
|
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
|
|
92
92
|
#
|
|
@@ -100,7 +100,7 @@ module Sentdm
|
|
|
100
100
|
#
|
|
101
101
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
102
102
|
#
|
|
103
|
-
# @return [Sentdm::Models::
|
|
103
|
+
# @return [Sentdm::Models::APIResponseOfProfileDetail]
|
|
104
104
|
#
|
|
105
105
|
# @see Sentdm::Models::ProfileCreateParams
|
|
106
106
|
def create(params = {})
|
|
@@ -111,7 +111,7 @@ module Sentdm
|
|
|
111
111
|
path: "v3/profiles",
|
|
112
112
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
113
113
|
body: parsed.except(*header_params.keys),
|
|
114
|
-
model: Sentdm::
|
|
114
|
+
model: Sentdm::APIResponseOfProfileDetail,
|
|
115
115
|
options: options
|
|
116
116
|
)
|
|
117
117
|
end
|
|
@@ -139,7 +139,7 @@ module Sentdm
|
|
|
139
139
|
#
|
|
140
140
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
141
141
|
#
|
|
142
|
-
# @return [Sentdm::Models::
|
|
142
|
+
# @return [Sentdm::Models::APIResponseOfProfileDetail]
|
|
143
143
|
#
|
|
144
144
|
# @see Sentdm::Models::ProfileRetrieveParams
|
|
145
145
|
def retrieve(profile_id, params = {})
|
|
@@ -148,7 +148,7 @@ module Sentdm
|
|
|
148
148
|
method: :get,
|
|
149
149
|
path: ["v3/profiles/%1$s", profile_id],
|
|
150
150
|
headers: parsed.transform_keys(x_profile_id: "x-profile-id"),
|
|
151
|
-
model: Sentdm::
|
|
151
|
+
model: Sentdm::APIResponseOfProfileDetail,
|
|
152
152
|
options: options
|
|
153
153
|
)
|
|
154
154
|
end
|
|
@@ -207,11 +207,11 @@ module Sentdm
|
|
|
207
207
|
#
|
|
208
208
|
# @param allow_template_sharing [Boolean, nil] Body param
|
|
209
209
|
#
|
|
210
|
-
# @param billing_contact [Sentdm::Models::
|
|
210
|
+
# @param billing_contact [Sentdm::Models::BillingContactInfo, nil] Body param: Billing contact information for a profile.
|
|
211
211
|
#
|
|
212
212
|
# @param billing_model [String, nil] Body param: Billing model: profile, organization, or profile_and_organization (o
|
|
213
213
|
#
|
|
214
|
-
# @param brand [Sentdm::Models::
|
|
214
|
+
# @param brand [Sentdm::Models::BrandsBrandData, nil] Body param: Brand and KYC data grouped into contact, business, and compliance se
|
|
215
215
|
#
|
|
216
216
|
# @param description [String, nil] Body param: Profile description (optional)
|
|
217
217
|
#
|
|
@@ -227,7 +227,7 @@ module Sentdm
|
|
|
227
227
|
#
|
|
228
228
|
# @param name [String, nil] Body param: Profile name (optional)
|
|
229
229
|
#
|
|
230
|
-
# @param payment_details [Sentdm::Models::
|
|
230
|
+
# @param payment_details [Sentdm::Models::PaymentDetails, nil] Body param: Payment card details for this profile (optional).
|
|
231
231
|
#
|
|
232
232
|
# @param sandbox [Boolean] Body param: Sandbox flag - when true, the operation is simulated without side ef
|
|
233
233
|
#
|
|
@@ -247,7 +247,7 @@ module Sentdm
|
|
|
247
247
|
#
|
|
248
248
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
249
249
|
#
|
|
250
|
-
# @return [Sentdm::Models::
|
|
250
|
+
# @return [Sentdm::Models::APIResponseOfProfileDetail]
|
|
251
251
|
#
|
|
252
252
|
# @see Sentdm::Models::ProfileUpdateParams
|
|
253
253
|
def update(profile_id, params = {})
|
|
@@ -258,7 +258,7 @@ module Sentdm
|
|
|
258
258
|
path: ["v3/profiles/%1$s", profile_id],
|
|
259
259
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
260
260
|
body: parsed.except(*header_params.keys),
|
|
261
|
-
model: Sentdm::
|
|
261
|
+
model: Sentdm::APIResponseOfProfileDetail,
|
|
262
262
|
options: options
|
|
263
263
|
)
|
|
264
264
|
end
|
|
@@ -37,7 +37,7 @@ module Sentdm
|
|
|
37
37
|
#
|
|
38
38
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
39
39
|
#
|
|
40
|
-
# @return [Sentdm::Models::
|
|
40
|
+
# @return [Sentdm::Models::APIResponseTemplate]
|
|
41
41
|
#
|
|
42
42
|
# @see Sentdm::Models::TemplateCreateParams
|
|
43
43
|
def create(params = {})
|
|
@@ -48,7 +48,7 @@ module Sentdm
|
|
|
48
48
|
path: "v3/templates",
|
|
49
49
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
50
50
|
body: parsed.except(*header_params.keys),
|
|
51
|
-
model: Sentdm::
|
|
51
|
+
model: Sentdm::APIResponseTemplate,
|
|
52
52
|
options: options
|
|
53
53
|
)
|
|
54
54
|
end
|
|
@@ -67,7 +67,7 @@ module Sentdm
|
|
|
67
67
|
#
|
|
68
68
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
69
69
|
#
|
|
70
|
-
# @return [Sentdm::Models::
|
|
70
|
+
# @return [Sentdm::Models::APIResponseTemplate]
|
|
71
71
|
#
|
|
72
72
|
# @see Sentdm::Models::TemplateRetrieveParams
|
|
73
73
|
def retrieve(id, params = {})
|
|
@@ -76,7 +76,7 @@ module Sentdm
|
|
|
76
76
|
method: :get,
|
|
77
77
|
path: ["v3/templates/%1$s", id],
|
|
78
78
|
headers: parsed.transform_keys(x_profile_id: "x-profile-id"),
|
|
79
|
-
model: Sentdm::
|
|
79
|
+
model: Sentdm::APIResponseTemplate,
|
|
80
80
|
options: options
|
|
81
81
|
)
|
|
82
82
|
end
|
|
@@ -109,7 +109,7 @@ module Sentdm
|
|
|
109
109
|
#
|
|
110
110
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
111
111
|
#
|
|
112
|
-
# @return [Sentdm::Models::
|
|
112
|
+
# @return [Sentdm::Models::APIResponseTemplate]
|
|
113
113
|
#
|
|
114
114
|
# @see Sentdm::Models::TemplateUpdateParams
|
|
115
115
|
def update(id, params = {})
|
|
@@ -120,7 +120,7 @@ module Sentdm
|
|
|
120
120
|
path: ["v3/templates/%1$s", id],
|
|
121
121
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
122
122
|
body: parsed.except(*header_params.keys),
|
|
123
|
-
model: Sentdm::
|
|
123
|
+
model: Sentdm::APIResponseTemplate,
|
|
124
124
|
options: options
|
|
125
125
|
)
|
|
126
126
|
end
|
|
@@ -131,16 +131,16 @@ module Sentdm
|
|
|
131
131
|
# Retrieves a paginated list of message templates for the authenticated customer.
|
|
132
132
|
# Supports filtering by status, category, and search term.
|
|
133
133
|
#
|
|
134
|
-
# @overload list(
|
|
135
|
-
#
|
|
136
|
-
# @param page [Integer] Query param: Page number (1-indexed)
|
|
137
|
-
#
|
|
138
|
-
# @param page_size [Integer] Query param: Number of items per page
|
|
134
|
+
# @overload list(category: nil, is_welcome_playground: nil, page: nil, page_size: nil, search: nil, status: nil, x_profile_id: nil, request_options: {})
|
|
139
135
|
#
|
|
140
136
|
# @param category [String, nil] Query param: Optional category filter: MARKETING, UTILITY, AUTHENTICATION
|
|
141
137
|
#
|
|
142
138
|
# @param is_welcome_playground [Boolean, nil] Query param: Accepted and ignored. It used to filter on the welcome-playground m
|
|
143
139
|
#
|
|
140
|
+
# @param page [Integer] Query param: Page number (1-indexed)
|
|
141
|
+
#
|
|
142
|
+
# @param page_size [Integer] Query param: Number of items per page
|
|
143
|
+
#
|
|
144
144
|
# @param search [String, nil] Query param: Optional search term for filtering templates
|
|
145
145
|
#
|
|
146
146
|
# @param status [String, nil] Query param: Optional status filter: APPROVED, PENDING, REJECTED
|
|
@@ -149,11 +149,11 @@ module Sentdm
|
|
|
149
149
|
#
|
|
150
150
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
151
151
|
#
|
|
152
|
-
# @return [Sentdm::Models::
|
|
152
|
+
# @return [Sentdm::Internal::TemplatesPage<Sentdm::Models::Template>]
|
|
153
153
|
#
|
|
154
154
|
# @see Sentdm::Models::TemplateListParams
|
|
155
|
-
def list(params)
|
|
156
|
-
query_params = [:
|
|
155
|
+
def list(params = {})
|
|
156
|
+
query_params = [:category, :is_welcome_playground, :page, :page_size, :search, :status]
|
|
157
157
|
parsed, options = Sentdm::TemplateListParams.dump_request(params)
|
|
158
158
|
query = Sentdm::Internal::Util.encode_query_params(parsed.slice(*query_params))
|
|
159
159
|
@client.request(
|
|
@@ -161,7 +161,8 @@ module Sentdm
|
|
|
161
161
|
path: "v3/templates",
|
|
162
162
|
query: query,
|
|
163
163
|
headers: parsed.except(*query_params).transform_keys(x_profile_id: "x-profile-id"),
|
|
164
|
-
|
|
164
|
+
page: Sentdm::Internal::TemplatesPage,
|
|
165
|
+
model: Sentdm::Template,
|
|
165
166
|
options: options
|
|
166
167
|
)
|
|
167
168
|
end
|
|
@@ -23,7 +23,7 @@ module Sentdm
|
|
|
23
23
|
#
|
|
24
24
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
25
25
|
#
|
|
26
|
-
# @return [Sentdm::Models::
|
|
26
|
+
# @return [Sentdm::Models::APIResponseOfUser]
|
|
27
27
|
#
|
|
28
28
|
# @see Sentdm::Models::UserRetrieveParams
|
|
29
29
|
def retrieve(user_id, params = {})
|
|
@@ -32,7 +32,7 @@ module Sentdm
|
|
|
32
32
|
method: :get,
|
|
33
33
|
path: ["v3/users/%1$s", user_id],
|
|
34
34
|
headers: parsed.transform_keys(x_profile_id: "x-profile-id"),
|
|
35
|
-
model: Sentdm::
|
|
35
|
+
model: Sentdm::APIResponseOfUser,
|
|
36
36
|
options: options
|
|
37
37
|
)
|
|
38
38
|
end
|
|
@@ -87,7 +87,7 @@ module Sentdm
|
|
|
87
87
|
#
|
|
88
88
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
89
89
|
#
|
|
90
|
-
# @return [Sentdm::Models::
|
|
90
|
+
# @return [Sentdm::Models::APIResponseOfUser]
|
|
91
91
|
#
|
|
92
92
|
# @see Sentdm::Models::UserInviteParams
|
|
93
93
|
def invite(params = {})
|
|
@@ -98,7 +98,7 @@ module Sentdm
|
|
|
98
98
|
path: "v3/users",
|
|
99
99
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
100
100
|
body: parsed.except(*header_params.keys),
|
|
101
|
-
model: Sentdm::
|
|
101
|
+
model: Sentdm::APIResponseOfUser,
|
|
102
102
|
options: options
|
|
103
103
|
)
|
|
104
104
|
end
|
|
@@ -155,7 +155,7 @@ module Sentdm
|
|
|
155
155
|
#
|
|
156
156
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
157
157
|
#
|
|
158
|
-
# @return [Sentdm::Models::
|
|
158
|
+
# @return [Sentdm::Models::APIResponseOfUser]
|
|
159
159
|
#
|
|
160
160
|
# @see Sentdm::Models::UserUpdateRoleParams
|
|
161
161
|
def update_role(user_id, params = {})
|
|
@@ -166,7 +166,7 @@ module Sentdm
|
|
|
166
166
|
path: ["v3/users/%1$s", user_id],
|
|
167
167
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
168
168
|
body: parsed.except(*header_params.keys),
|
|
169
|
-
model: Sentdm::
|
|
169
|
+
model: Sentdm::APIResponseOfUser,
|
|
170
170
|
options: options
|
|
171
171
|
)
|
|
172
172
|
end
|
|
@@ -41,7 +41,7 @@ module Sentdm
|
|
|
41
41
|
#
|
|
42
42
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
43
43
|
#
|
|
44
|
-
# @return [Sentdm::Models::
|
|
44
|
+
# @return [Sentdm::Models::APIResponseWebhook]
|
|
45
45
|
#
|
|
46
46
|
# @see Sentdm::Models::WebhookCreateParams
|
|
47
47
|
def create(params = {})
|
|
@@ -52,7 +52,7 @@ module Sentdm
|
|
|
52
52
|
path: "v3/webhooks",
|
|
53
53
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
54
54
|
body: parsed.except(*header_params.keys),
|
|
55
|
-
model: Sentdm::
|
|
55
|
+
model: Sentdm::APIResponseWebhook,
|
|
56
56
|
options: options
|
|
57
57
|
)
|
|
58
58
|
end
|
|
@@ -70,7 +70,7 @@ module Sentdm
|
|
|
70
70
|
#
|
|
71
71
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
72
72
|
#
|
|
73
|
-
# @return [Sentdm::Models::
|
|
73
|
+
# @return [Sentdm::Models::APIResponseWebhook]
|
|
74
74
|
#
|
|
75
75
|
# @see Sentdm::Models::WebhookRetrieveParams
|
|
76
76
|
def retrieve(id, params = {})
|
|
@@ -79,7 +79,7 @@ module Sentdm
|
|
|
79
79
|
method: :get,
|
|
80
80
|
path: ["v3/webhooks/%1$s", id],
|
|
81
81
|
headers: parsed.transform_keys(x_profile_id: "x-profile-id"),
|
|
82
|
-
model: Sentdm::
|
|
82
|
+
model: Sentdm::APIResponseWebhook,
|
|
83
83
|
options: options
|
|
84
84
|
)
|
|
85
85
|
end
|
|
@@ -113,7 +113,7 @@ module Sentdm
|
|
|
113
113
|
#
|
|
114
114
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
115
115
|
#
|
|
116
|
-
# @return [Sentdm::Models::
|
|
116
|
+
# @return [Sentdm::Models::APIResponseWebhook]
|
|
117
117
|
#
|
|
118
118
|
# @see Sentdm::Models::WebhookUpdateParams
|
|
119
119
|
def update(id, params = {})
|
|
@@ -124,7 +124,7 @@ module Sentdm
|
|
|
124
124
|
path: ["v3/webhooks/%1$s", id],
|
|
125
125
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
126
126
|
body: parsed.except(*header_params.keys),
|
|
127
|
-
model: Sentdm::
|
|
127
|
+
model: Sentdm::APIResponseWebhook,
|
|
128
128
|
options: options
|
|
129
129
|
)
|
|
130
130
|
end
|
|
@@ -134,25 +134,25 @@ module Sentdm
|
|
|
134
134
|
#
|
|
135
135
|
# Retrieves a paginated list of webhooks for the authenticated customer.
|
|
136
136
|
#
|
|
137
|
-
# @overload list(page
|
|
137
|
+
# @overload list(is_active: nil, page: nil, page_size: nil, search: nil, x_profile_id: nil, request_options: {})
|
|
138
|
+
#
|
|
139
|
+
# @param is_active [Boolean, nil] Query param
|
|
138
140
|
#
|
|
139
141
|
# @param page [Integer] Query param
|
|
140
142
|
#
|
|
141
143
|
# @param page_size [Integer] Query param
|
|
142
144
|
#
|
|
143
|
-
# @param is_active [Boolean, nil] Query param
|
|
144
|
-
#
|
|
145
145
|
# @param search [String, nil] Query param
|
|
146
146
|
#
|
|
147
147
|
# @param x_profile_id [String] Header param: Profile UUID to scope the request to a child profile. Only organiz
|
|
148
148
|
#
|
|
149
149
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
150
150
|
#
|
|
151
|
-
# @return [Sentdm::Models::
|
|
151
|
+
# @return [Sentdm::Internal::WebhooksPage<Sentdm::Models::WebhookResponse>]
|
|
152
152
|
#
|
|
153
153
|
# @see Sentdm::Models::WebhookListParams
|
|
154
|
-
def list(params)
|
|
155
|
-
query_params = [:
|
|
154
|
+
def list(params = {})
|
|
155
|
+
query_params = [:is_active, :page, :page_size, :search]
|
|
156
156
|
parsed, options = Sentdm::WebhookListParams.dump_request(params)
|
|
157
157
|
query = Sentdm::Internal::Util.encode_query_params(parsed.slice(*query_params))
|
|
158
158
|
@client.request(
|
|
@@ -160,7 +160,8 @@ module Sentdm
|
|
|
160
160
|
path: "v3/webhooks",
|
|
161
161
|
query: query,
|
|
162
162
|
headers: parsed.except(*query_params).transform_keys(x_profile_id: "x-profile-id"),
|
|
163
|
-
|
|
163
|
+
page: Sentdm::Internal::WebhooksPage,
|
|
164
|
+
model: Sentdm::WebhookResponse,
|
|
164
165
|
options: options
|
|
165
166
|
)
|
|
166
167
|
end
|
|
@@ -222,7 +223,7 @@ module Sentdm
|
|
|
222
223
|
#
|
|
223
224
|
# Retrieves a paginated list of delivery events for the specified webhook.
|
|
224
225
|
#
|
|
225
|
-
# @overload list_events(id, page
|
|
226
|
+
# @overload list_events(id, page: nil, page_size: nil, search: nil, x_profile_id: nil, request_options: {})
|
|
226
227
|
#
|
|
227
228
|
# @param id [String] Path param
|
|
228
229
|
#
|
|
@@ -236,10 +237,10 @@ module Sentdm
|
|
|
236
237
|
#
|
|
237
238
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
238
239
|
#
|
|
239
|
-
# @return [Sentdm::Models::WebhookListEventsResponse]
|
|
240
|
+
# @return [Sentdm::Internal::WebhookEventsPage<Sentdm::Models::WebhookListEventsResponse>]
|
|
240
241
|
#
|
|
241
242
|
# @see Sentdm::Models::WebhookListEventsParams
|
|
242
|
-
def list_events(id, params)
|
|
243
|
+
def list_events(id, params = {})
|
|
243
244
|
query_params = [:page, :page_size, :search]
|
|
244
245
|
parsed, options = Sentdm::WebhookListEventsParams.dump_request(params)
|
|
245
246
|
query = Sentdm::Internal::Util.encode_query_params(parsed.slice(*query_params))
|
|
@@ -248,6 +249,7 @@ module Sentdm
|
|
|
248
249
|
path: ["v3/webhooks/%1$s/events", id],
|
|
249
250
|
query: query,
|
|
250
251
|
headers: parsed.except(*query_params).transform_keys(x_profile_id: "x-profile-id"),
|
|
252
|
+
page: Sentdm::Internal::WebhookEventsPage,
|
|
251
253
|
model: Sentdm::Models::WebhookListEventsResponse,
|
|
252
254
|
options: options
|
|
253
255
|
)
|
|
@@ -341,7 +343,7 @@ module Sentdm
|
|
|
341
343
|
#
|
|
342
344
|
# @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
343
345
|
#
|
|
344
|
-
# @return [Sentdm::Models::
|
|
346
|
+
# @return [Sentdm::Models::APIResponseWebhook]
|
|
345
347
|
#
|
|
346
348
|
# @see Sentdm::Models::WebhookToggleStatusParams
|
|
347
349
|
def toggle_status(id, params = {})
|
|
@@ -352,7 +354,7 @@ module Sentdm
|
|
|
352
354
|
path: ["v3/webhooks/%1$s/toggle-status", id],
|
|
353
355
|
headers: parsed.slice(*header_params.keys).transform_keys(header_params),
|
|
354
356
|
body: parsed.except(*header_params.keys),
|
|
355
|
-
model: Sentdm::
|
|
357
|
+
model: Sentdm::APIResponseWebhook,
|
|
356
358
|
options: options
|
|
357
359
|
)
|
|
358
360
|
end
|
data/lib/sentdm/version.rb
CHANGED