rcs 2.0.0.pre.rc.5 → 2.0.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/lib/rcs/brands/client.rb +36 -24
- data/lib/rcs/campaigns/dlc/client.rb +36 -26
- data/lib/rcs/campaigns/rcs/client.rb +26 -22
- data/lib/rcs/campaigns/rcs/types/rcs_autofill_response.rb +6 -6
- data/lib/rcs/campaigns/toll_free/client.rb +32 -26
- data/lib/rcs/campaigns/toll_free/types/toll_free_autofill_response.rb +6 -6
- data/lib/rcs/contacts/client.rb +10 -8
- data/lib/rcs/conversations/client.rb +144 -16
- data/lib/rcs/conversations/types/conversations_list_messages_request_direction.rb +12 -0
- data/lib/rcs/conversations/types/conversations_list_messages_request_sort_order.rb +12 -0
- data/lib/rcs/conversations/types/conversations_list_messages_request_status.rb +17 -0
- data/lib/rcs/conversations/types/conversations_list_messages_request_type.rb +13 -0
- data/lib/rcs/messages/client.rb +12 -29
- data/lib/rcs/messages/rcs/client.rb +1 -1
- data/lib/rcs/phone_numbers/campaign/client.rb +20 -6
- data/lib/rcs/phone_numbers/client.rb +0 -14
- data/lib/rcs/phone_numbers/webhook/client.rb +12 -10
- data/lib/rcs/rcs/client.rb +32 -18
- data/lib/rcs/status/get/client.rb +32 -16
- data/lib/rcs/tools/contact_card/client.rb +18 -8
- data/lib/rcs/tools/file/client.rb +92 -2
- data/lib/rcs/tools/file/types/upload_file_options.rb +21 -3
- data/lib/rcs/tools/url/client.rb +4 -2
- data/lib/rcs/types/attach_webhook_by_id_params.rb +5 -5
- data/lib/rcs/types/attach_webhook_response_webhook.rb +5 -3
- data/lib/rcs/types/autofill_campaign_params.rb +15 -3
- data/lib/rcs/types/autofill_dlc_campaign_response.rb +10 -6
- data/lib/rcs/types/autofill_dlc_response_keywords.rb +8 -10
- data/lib/rcs/types/autofill_dlc_response_keywords_help.rb +3 -3
- data/lib/rcs/types/autofill_dlc_response_keywords_opt_in.rb +6 -4
- data/lib/rcs/types/autofill_dlc_response_keywords_opt_out.rb +3 -3
- data/lib/rcs/types/autofill_dlc_response_options.rb +12 -12
- data/lib/rcs/types/brand_status.rb +5 -3
- data/lib/rcs/types/{inbound_button.rb → button_clicked.rb} +7 -7
- data/lib/rcs/types/button_clicked_data.rb +80 -0
- data/lib/rcs/types/button_clicked_data_button.rb +118 -0
- data/lib/rcs/types/{click_action_data.rb → button_clicked_data_button_raw.rb} +10 -8
- data/lib/rcs/types/button_clicked_data_button_type.rb +15 -0
- data/lib/rcs/types/campaign_query.rb +10 -2
- data/lib/rcs/types/contact.rb +5 -3
- data/lib/rcs/types/contact_id.rb +5 -3
- data/lib/rcs/types/conversation.rb +16 -8
- data/lib/rcs/types/conversation_by_id_params.rb +7 -3
- data/lib/rcs/types/conversation_contact.rb +5 -3
- data/lib/rcs/types/conversation_list.rb +50 -28
- data/lib/rcs/types/create_url_options.rb +4 -2
- data/lib/rcs/types/detached_webhook_info.rb +5 -3
- data/lib/rcs/types/dlc_campaign_status.rb +5 -3
- data/lib/rcs/types/dlc_campaign_with_extended_brand_and_status.rb +21 -19
- data/lib/rcs/types/dlc_with_extended_brand_and_status_keywords_help.rb +3 -3
- data/lib/rcs/types/dlc_with_extended_brand_and_status_keywords_opt_in.rb +6 -4
- data/lib/rcs/types/dlc_with_extended_brand_and_status_keywords_opt_out.rb +6 -4
- data/lib/rcs/types/extended_brand.rb +25 -13
- data/lib/rcs/types/extended_brand_with_vetting.rb +25 -13
- data/lib/rcs/types/extended_rcs_campaign.rb +25 -14
- data/lib/rcs/types/link_click_event.rb +1 -17
- data/lib/rcs/types/message.rb +5 -3
- data/lib/rcs/types/message_content.rb +4 -4
- data/lib/rcs/types/message_event.rb +143 -0
- data/lib/rcs/types/message_event_content.rb +127 -0
- data/lib/rcs/types/message_event_conversation.rb +82 -0
- data/lib/rcs/types/message_event_direction.rb +11 -0
- data/lib/rcs/types/message_event_mms_content.rb +94 -0
- data/lib/rcs/types/message_event_rcs_button_data.rb +104 -0
- data/lib/rcs/types/message_event_rcs_cards_content.rb +99 -0
- data/lib/rcs/types/message_event_rcs_cards_content_cards_item.rb +94 -0
- data/lib/rcs/types/message_event_rcs_location_data.rb +91 -0
- data/lib/rcs/types/message_event_rcs_media_content.rb +94 -0
- data/lib/rcs/types/message_event_rcs_text_content.rb +92 -0
- data/lib/rcs/types/message_event_sms_content.rb +81 -0
- data/lib/rcs/types/{retrieved_conversations.rb → message_list.rb} +26 -25
- data/lib/rcs/types/message_with_reaction.rb +197 -0
- data/lib/rcs/types/message_with_reaction_direction.rb +11 -0
- data/lib/rcs/types/{error_response.rb → not_found_error_body.rb} +7 -7
- data/lib/rcs/types/phone_number_campaign_attach_phone_numbers_item_campaign.rb +7 -3
- data/lib/rcs/types/phone_number_campaign_detach_phone_numbers_item_campaign.rb +7 -3
- data/lib/rcs/types/pinnacle_file_upload_metadata.rb +18 -2
- data/lib/rcs/types/profile_status_enum.rb +4 -4
- data/lib/rcs/types/rcs_base_options.rb +12 -1
- data/lib/rcs/types/rcs_button_call.rb +11 -2
- data/lib/rcs/types/rcs_button_open_url.rb +11 -2
- data/lib/rcs/types/rcs_button_request_user_location.rb +15 -3
- data/lib/rcs/types/rcs_button_schedule_event.rb +9 -1
- data/lib/rcs/types/rcs_button_send_location.rb +11 -2
- data/lib/rcs/types/rcs_button_trigger.rb +8 -6
- data/lib/rcs/types/rcs_campaign.rb +3 -3
- data/lib/rcs/types/rcs_campaign_schema_extra_agent.rb +8 -8
- data/lib/rcs/types/rcs_campaign_status.rb +5 -3
- data/lib/rcs/types/reaction_result.rb +10 -6
- data/lib/rcs/types/refreshed_file.rb +67 -0
- data/lib/rcs/types/{rcs.rb → rich_message.rb} +3 -3
- data/lib/rcs/types/scheduled_messaage.rb +5 -3
- data/lib/rcs/types/sent_mms_details.rb +4 -2
- data/lib/rcs/types/sent_rcs_details.rb +12 -13
- data/lib/rcs/types/sent_sms_details.rb +5 -3
- data/lib/rcs/types/toll_free_campaign.rb +3 -3
- data/lib/rcs/types/toll_free_campaign_status.rb +5 -3
- data/lib/rcs/types/toll_free_campaign_with_extended_brand_and_status.rb +3 -5
- data/lib/rcs/types/updated_contact_id.rb +5 -3
- data/lib/rcs/types/user_event.rb +83 -0
- data/lib/rcs/types/user_event_conversation.rb +78 -0
- data/lib/rcs/types/v_card_data.rb +5 -3
- data/lib/rcs/types/validate_campaign_params.rb +15 -3
- data/lib/rcs/types/vcard.rb +5 -3
- data/lib/rcs/types/vcard_content.rb +5 -3
- data/lib/rcs/types/vcard_resource.rb +5 -3
- data/lib/rcs/types/webhook_event_enum.rb +1 -0
- data/lib/rcs/types/webhooks.rb +5 -3
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +29 -7
- metadata +33 -11
- data/lib/rcs/types/click_action.rb +0 -73
- data/lib/rcs/types/click_action_data_metadata.rb +0 -69
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b62f856fc547382d4d1cf18aa5d06d9746cc02480ed3890318a707c2fba8794
|
|
4
|
+
data.tar.gz: 9403e66a841948733781b0eddade27c3108cf169e13af030edfe309fea50b530
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fcb90da1af1f5cbbc8c429f225199b402f3738455295a21570169cd5a2c77464f57378e90d0bed2f297980d18bcd6c6dac92df7a842f96b8e695c4d05f14592
|
|
7
|
+
data.tar.gz: 4553c27971714a7fbd92a07002e0e75248463a4dacb30a89a2f9eb570599795bcebba4764f6234c84832b8632b56cf7408ceebebf9cbf4438721a3c1650ac359
|
data/lib/rcs/brands/client.rb
CHANGED
|
@@ -83,8 +83,9 @@ module Pinnacle
|
|
|
83
83
|
# @param description [String] Brief description of what the brand does.
|
|
84
84
|
# @param ein [String] Brand's Employer Identification Number (EIN) assigned by the IRS.
|
|
85
85
|
# @param email [String] Main contact email address for the brand.
|
|
86
|
-
# @param id [
|
|
87
|
-
#
|
|
86
|
+
# @param id [String] The unique identifier of the brand you want to update.
|
|
87
|
+
# <br><br> This identifier is a string that always begins with the prefix `b_`,
|
|
88
|
+
# for example: `b_1234567890`.
|
|
88
89
|
# @param name [String] Legal name of the brand as registered.
|
|
89
90
|
# @param sector [Pinnacle::Types::CompanySectorEnum] Industry the brand operates in.
|
|
90
91
|
# @param type [Pinnacle::Types::CompanyTypeEnum] Legal structure of the brand.
|
|
@@ -104,7 +105,7 @@ module Pinnacle
|
|
|
104
105
|
# description: "A developer-friendly, compliant API for SMS, MMS, and RCS, built to scale real conversations.",
|
|
105
106
|
# ein: "88-1234567",
|
|
106
107
|
# email: "founders@trypinnacle.app",
|
|
107
|
-
# id:
|
|
108
|
+
# id: "b_1234567890",
|
|
108
109
|
# name: "Pinnacle",
|
|
109
110
|
# sector: TECHNOLOGY,
|
|
110
111
|
# type: PRIVATE_PROFIT,
|
|
@@ -144,7 +145,9 @@ module Pinnacle
|
|
|
144
145
|
|
|
145
146
|
# Retrieve detailed information for a specific brand in your account by ID.
|
|
146
147
|
#
|
|
147
|
-
# @param id [
|
|
148
|
+
# @param id [String] The unique identifier of the brand you want to retrieve from your account.
|
|
149
|
+
# <br><br> This identifier is a string that always begins with the prefix `b_`,
|
|
150
|
+
# for example: `b_1234567890`.
|
|
148
151
|
# @param hide_ein [Boolean] Optional flag to mask the Employer Identification Number in the response for
|
|
149
152
|
# security purposes.<br>
|
|
150
153
|
# When you set this to true, the EIN value will be replaced with a masked
|
|
@@ -157,7 +160,7 @@ module Pinnacle
|
|
|
157
160
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
158
161
|
# api_key: "YOUR_API_KEY"
|
|
159
162
|
# )
|
|
160
|
-
# api.brands.get(id:
|
|
163
|
+
# api.brands.get(id: "b_1234567890")
|
|
161
164
|
def get(id:, hide_ein: nil, request_options: nil)
|
|
162
165
|
response = @request_client.conn.get do |req|
|
|
163
166
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -178,9 +181,10 @@ module Pinnacle
|
|
|
178
181
|
|
|
179
182
|
# Submit your brand for review and approval by the compliance team.
|
|
180
183
|
#
|
|
181
|
-
# @param brand_id [
|
|
182
|
-
#
|
|
183
|
-
#
|
|
184
|
+
# @param brand_id [String] The unique identifier of the brand you want to submit for review. <br><br>
|
|
185
|
+
# This identifier is a string that always begins with the prefix `b_`, for
|
|
186
|
+
# example: `b_1234567890` and must correspond to an existing brand in your account
|
|
187
|
+
# that is ready for submission.
|
|
184
188
|
# @param request_options [Pinnacle::RequestOptions]
|
|
185
189
|
# @return [Pinnacle::Types::SubmissionResults]
|
|
186
190
|
# @example
|
|
@@ -189,7 +193,7 @@ module Pinnacle
|
|
|
189
193
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
190
194
|
# api_key: "YOUR_API_KEY"
|
|
191
195
|
# )
|
|
192
|
-
# api.brands.submit(brand_id:
|
|
196
|
+
# api.brands.submit(brand_id: "b_1234567890")
|
|
193
197
|
def submit(brand_id:, request_options: nil)
|
|
194
198
|
response = @request_client.conn.post do |req|
|
|
195
199
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -281,8 +285,10 @@ module Pinnacle
|
|
|
281
285
|
# Submit a brand for external vetting verification to enhance your brand's trust
|
|
282
286
|
# score and improved message delivery rates.
|
|
283
287
|
#
|
|
284
|
-
# @param brand_id [
|
|
285
|
-
#
|
|
288
|
+
# @param brand_id [String] The unique identifier of the brand to vet. <br>
|
|
289
|
+
# This identifier is a string that always begins with the prefix `b_`, for
|
|
290
|
+
# example: `b_1234567890` and must correspond to an existing brand in your account
|
|
291
|
+
# that is ready for vetting.
|
|
286
292
|
# @param request_options [Pinnacle::RequestOptions]
|
|
287
293
|
# @return [Pinnacle::Types::VettingResults]
|
|
288
294
|
# @example
|
|
@@ -291,7 +297,7 @@ module Pinnacle
|
|
|
291
297
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
292
298
|
# api_key: "YOUR_API_KEY"
|
|
293
299
|
# )
|
|
294
|
-
# api.brands.vet(brand_id:
|
|
300
|
+
# api.brands.vet(brand_id: "b_1234567890")
|
|
295
301
|
def vet(brand_id:, request_options: nil)
|
|
296
302
|
response = @request_client.conn.post do |req|
|
|
297
303
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -386,8 +392,9 @@ module Pinnacle
|
|
|
386
392
|
# @param description [String] Brief description of what the brand does.
|
|
387
393
|
# @param ein [String] Brand's Employer Identification Number (EIN) assigned by the IRS.
|
|
388
394
|
# @param email [String] Main contact email address for the brand.
|
|
389
|
-
# @param id [
|
|
390
|
-
#
|
|
395
|
+
# @param id [String] The unique identifier of the brand you want to update.
|
|
396
|
+
# <br><br> This identifier is a string that always begins with the prefix `b_`,
|
|
397
|
+
# for example: `b_1234567890`.
|
|
391
398
|
# @param name [String] Legal name of the brand as registered.
|
|
392
399
|
# @param sector [Pinnacle::Types::CompanySectorEnum] Industry the brand operates in.
|
|
393
400
|
# @param type [Pinnacle::Types::CompanyTypeEnum] Legal structure of the brand.
|
|
@@ -407,7 +414,7 @@ module Pinnacle
|
|
|
407
414
|
# description: "A developer-friendly, compliant API for SMS, MMS, and RCS, built to scale real conversations.",
|
|
408
415
|
# ein: "88-1234567",
|
|
409
416
|
# email: "founders@trypinnacle.app",
|
|
410
|
-
# id:
|
|
417
|
+
# id: "b_1234567890",
|
|
411
418
|
# name: "Pinnacle",
|
|
412
419
|
# sector: TECHNOLOGY,
|
|
413
420
|
# type: PRIVATE_PROFIT,
|
|
@@ -449,7 +456,9 @@ module Pinnacle
|
|
|
449
456
|
|
|
450
457
|
# Retrieve detailed information for a specific brand in your account by ID.
|
|
451
458
|
#
|
|
452
|
-
# @param id [
|
|
459
|
+
# @param id [String] The unique identifier of the brand you want to retrieve from your account.
|
|
460
|
+
# <br><br> This identifier is a string that always begins with the prefix `b_`,
|
|
461
|
+
# for example: `b_1234567890`.
|
|
453
462
|
# @param hide_ein [Boolean] Optional flag to mask the Employer Identification Number in the response for
|
|
454
463
|
# security purposes.<br>
|
|
455
464
|
# When you set this to true, the EIN value will be replaced with a masked
|
|
@@ -462,7 +471,7 @@ module Pinnacle
|
|
|
462
471
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
463
472
|
# api_key: "YOUR_API_KEY"
|
|
464
473
|
# )
|
|
465
|
-
# api.brands.get(id:
|
|
474
|
+
# api.brands.get(id: "b_1234567890")
|
|
466
475
|
def get(id:, hide_ein: nil, request_options: nil)
|
|
467
476
|
Async do
|
|
468
477
|
response = @request_client.conn.get do |req|
|
|
@@ -485,9 +494,10 @@ module Pinnacle
|
|
|
485
494
|
|
|
486
495
|
# Submit your brand for review and approval by the compliance team.
|
|
487
496
|
#
|
|
488
|
-
# @param brand_id [
|
|
489
|
-
#
|
|
490
|
-
#
|
|
497
|
+
# @param brand_id [String] The unique identifier of the brand you want to submit for review. <br><br>
|
|
498
|
+
# This identifier is a string that always begins with the prefix `b_`, for
|
|
499
|
+
# example: `b_1234567890` and must correspond to an existing brand in your account
|
|
500
|
+
# that is ready for submission.
|
|
491
501
|
# @param request_options [Pinnacle::RequestOptions]
|
|
492
502
|
# @return [Pinnacle::Types::SubmissionResults]
|
|
493
503
|
# @example
|
|
@@ -496,7 +506,7 @@ module Pinnacle
|
|
|
496
506
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
497
507
|
# api_key: "YOUR_API_KEY"
|
|
498
508
|
# )
|
|
499
|
-
# api.brands.submit(brand_id:
|
|
509
|
+
# api.brands.submit(brand_id: "b_1234567890")
|
|
500
510
|
def submit(brand_id:, request_options: nil)
|
|
501
511
|
Async do
|
|
502
512
|
response = @request_client.conn.post do |req|
|
|
@@ -592,8 +602,10 @@ module Pinnacle
|
|
|
592
602
|
# Submit a brand for external vetting verification to enhance your brand's trust
|
|
593
603
|
# score and improved message delivery rates.
|
|
594
604
|
#
|
|
595
|
-
# @param brand_id [
|
|
596
|
-
#
|
|
605
|
+
# @param brand_id [String] The unique identifier of the brand to vet. <br>
|
|
606
|
+
# This identifier is a string that always begins with the prefix `b_`, for
|
|
607
|
+
# example: `b_1234567890` and must correspond to an existing brand in your account
|
|
608
|
+
# that is ready for vetting.
|
|
597
609
|
# @param request_options [Pinnacle::RequestOptions]
|
|
598
610
|
# @return [Pinnacle::Types::VettingResults]
|
|
599
611
|
# @example
|
|
@@ -602,7 +614,7 @@ module Pinnacle
|
|
|
602
614
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
603
615
|
# api_key: "YOUR_API_KEY"
|
|
604
616
|
# )
|
|
605
|
-
# api.brands.vet(brand_id:
|
|
617
|
+
# api.brands.vet(brand_id: "b_1234567890")
|
|
606
618
|
def vet(brand_id:, request_options: nil)
|
|
607
619
|
Async do
|
|
608
620
|
response = @request_client.conn.post do |req|
|
|
@@ -30,7 +30,7 @@ module Pinnacle
|
|
|
30
30
|
#
|
|
31
31
|
# @param request [Hash] Request of type Pinnacle::Types::AutofillCampaignParams, as a Hash
|
|
32
32
|
# * :additional_info (String)
|
|
33
|
-
# * :campaign_id (
|
|
33
|
+
# * :campaign_id (String)
|
|
34
34
|
# @param request_options [Pinnacle::RequestOptions]
|
|
35
35
|
# @return [Pinnacle::Types::AutofillDlcCampaignResponse]
|
|
36
36
|
# @example
|
|
@@ -39,7 +39,7 @@ module Pinnacle
|
|
|
39
39
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
40
40
|
# api_key: "YOUR_API_KEY"
|
|
41
41
|
# )
|
|
42
|
-
# api.campaigns.dlc.autofill(request: { additional_info: "Please autofill missing
|
|
42
|
+
# api.campaigns.dlc.autofill(request: { additional_info: "Please autofill missing campaign fields using my brand profile", campaign_id: "dlc_1234567890" })
|
|
43
43
|
def autofill(request:, request_options: nil)
|
|
44
44
|
response = @request_client.conn.post do |req|
|
|
45
45
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -60,7 +60,8 @@ module Pinnacle
|
|
|
60
60
|
|
|
61
61
|
# Retrieve 10DLC campaign.
|
|
62
62
|
#
|
|
63
|
-
# @param campaign_id [
|
|
63
|
+
# @param campaign_id [String] Unique identifier of the 10DLC campaign. This identifier is a string that always
|
|
64
|
+
# begins with the prefix `dlc_`, for example: `dlc_1234567890`.
|
|
64
65
|
# @param request_options [Pinnacle::RequestOptions]
|
|
65
66
|
# @return [Pinnacle::Types::DlcCampaignWithExtendedBrandAndStatus]
|
|
66
67
|
# @example
|
|
@@ -69,7 +70,7 @@ module Pinnacle
|
|
|
69
70
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
70
71
|
# api_key: "YOUR_API_KEY"
|
|
71
72
|
# )
|
|
72
|
-
# api.campaigns.dlc.get(campaign_id:
|
|
73
|
+
# api.campaigns.dlc.get(campaign_id: "dlc_1234567890")
|
|
73
74
|
def get(campaign_id:, request_options: nil)
|
|
74
75
|
response = @request_client.conn.get do |req|
|
|
75
76
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -92,7 +93,9 @@ module Pinnacle
|
|
|
92
93
|
|
|
93
94
|
# Submit your 10DLC campaign for approval and activation with carriers.
|
|
94
95
|
#
|
|
95
|
-
# @param campaign_id [
|
|
96
|
+
# @param campaign_id [String] Unique identifier of the 10DLC campaign to submit.
|
|
97
|
+
# <br><br> This identifier is a string that always begins with the prefix `dlc_`,
|
|
98
|
+
# for example: `dlc_1234567890`.
|
|
96
99
|
# @param request_options [Pinnacle::RequestOptions]
|
|
97
100
|
# @return [Pinnacle::Types::CampaignSubmissionResult]
|
|
98
101
|
# @example
|
|
@@ -101,7 +104,7 @@ module Pinnacle
|
|
|
101
104
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
102
105
|
# api_key: "YOUR_API_KEY"
|
|
103
106
|
# )
|
|
104
|
-
# api.campaigns.dlc.submit(campaign_id:
|
|
107
|
+
# api.campaigns.dlc.submit(campaign_id: "dlc_1234567890")
|
|
105
108
|
def submit(campaign_id:, request_options: nil)
|
|
106
109
|
response = @request_client.conn.post do |req|
|
|
107
110
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -126,8 +129,10 @@ module Pinnacle
|
|
|
126
129
|
# Omit campaignId to create a campaign.
|
|
127
130
|
#
|
|
128
131
|
# @param auto_renew [Boolean] Whether the campaign renews automatically.
|
|
129
|
-
# @param brand [
|
|
130
|
-
#
|
|
132
|
+
# @param brand [String] Brand id. This identifier is a string that always begins with the prefix `b_`,
|
|
133
|
+
# for example: `b_1234567890`.
|
|
134
|
+
# @param campaign_id [String] Unique identifier for the campaign. This identifier is a string that always
|
|
135
|
+
# begins with the prefix `dlc_`, for example: `dlc_1234567890`.
|
|
131
136
|
# @param description [String] Description of the campaign.
|
|
132
137
|
# @param keywords [Hash] Keyword response configuration.Request of type Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignKeywords, as a Hash
|
|
133
138
|
# * :help (Hash)
|
|
@@ -165,9 +170,9 @@ module Pinnacle
|
|
|
165
170
|
# )
|
|
166
171
|
# api.campaigns.dlc.upsert(
|
|
167
172
|
# auto_renew: true,
|
|
168
|
-
# brand:
|
|
169
|
-
# campaign_id:
|
|
170
|
-
# keywords: { help: { message: "Reply HELP for assistance, STOP to opt-out", values: ["HELP", "INFO", "SUPPORT"] }, opt_in: { message: "Welcome
|
|
173
|
+
# brand: "b_1234567890",
|
|
174
|
+
# campaign_id: "dlc_1234567890",
|
|
175
|
+
# keywords: { help: { message: "Reply HELP for assistance, STOP to opt-out", values: ["HELP", "INFO", "SUPPORT"] }, opt_in: { message: "Welcome. You are now subscribed to Pinnacle.", values: ["JOIN", "START", "SUBSCRIBE"] }, opt_out: { message: "You have been unsubscribed. Reply START to rejoin.", values: ["STOP", "QUIT", "UNSUBSCRIBE"] } },
|
|
171
176
|
# links: { privacy_policy: "https://www.pinnacle.sh/privacy", terms_of_service: "https://www.pinnacle.sh/terms" },
|
|
172
177
|
# message_flow: "Customer initiates -> Automated response -> Agent follow-up if needed",
|
|
173
178
|
# name: "Account Notifications",
|
|
@@ -212,7 +217,7 @@ module Pinnacle
|
|
|
212
217
|
#
|
|
213
218
|
# @param request [Hash] Request of type Pinnacle::Types::ValidateCampaignParams, as a Hash
|
|
214
219
|
# * :additional_info (String)
|
|
215
|
-
# * :campaign_id (
|
|
220
|
+
# * :campaign_id (String)
|
|
216
221
|
# @param request_options [Pinnacle::RequestOptions]
|
|
217
222
|
# @return [Pinnacle::Types::CampaignValidationResult]
|
|
218
223
|
# @example
|
|
@@ -221,7 +226,7 @@ module Pinnacle
|
|
|
221
226
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
222
227
|
# api_key: "YOUR_API_KEY"
|
|
223
228
|
# )
|
|
224
|
-
# api.campaigns.dlc.validate(request: { additional_info: "Please validate this DLC campaign for 10DLC compliance", campaign_id:
|
|
229
|
+
# api.campaigns.dlc.validate(request: { additional_info: "Please validate this DLC campaign for 10DLC compliance", campaign_id: "dlc_1234567890" })
|
|
225
230
|
def validate(request:, request_options: nil)
|
|
226
231
|
response = @request_client.conn.post do |req|
|
|
227
232
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -256,7 +261,7 @@ module Pinnacle
|
|
|
256
261
|
#
|
|
257
262
|
# @param request [Hash] Request of type Pinnacle::Types::AutofillCampaignParams, as a Hash
|
|
258
263
|
# * :additional_info (String)
|
|
259
|
-
# * :campaign_id (
|
|
264
|
+
# * :campaign_id (String)
|
|
260
265
|
# @param request_options [Pinnacle::RequestOptions]
|
|
261
266
|
# @return [Pinnacle::Types::AutofillDlcCampaignResponse]
|
|
262
267
|
# @example
|
|
@@ -265,7 +270,7 @@ module Pinnacle
|
|
|
265
270
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
266
271
|
# api_key: "YOUR_API_KEY"
|
|
267
272
|
# )
|
|
268
|
-
# api.campaigns.dlc.autofill(request: { additional_info: "Please autofill missing
|
|
273
|
+
# api.campaigns.dlc.autofill(request: { additional_info: "Please autofill missing campaign fields using my brand profile", campaign_id: "dlc_1234567890" })
|
|
269
274
|
def autofill(request:, request_options: nil)
|
|
270
275
|
Async do
|
|
271
276
|
response = @request_client.conn.post do |req|
|
|
@@ -288,7 +293,8 @@ module Pinnacle
|
|
|
288
293
|
|
|
289
294
|
# Retrieve 10DLC campaign.
|
|
290
295
|
#
|
|
291
|
-
# @param campaign_id [
|
|
296
|
+
# @param campaign_id [String] Unique identifier of the 10DLC campaign. This identifier is a string that always
|
|
297
|
+
# begins with the prefix `dlc_`, for example: `dlc_1234567890`.
|
|
292
298
|
# @param request_options [Pinnacle::RequestOptions]
|
|
293
299
|
# @return [Pinnacle::Types::DlcCampaignWithExtendedBrandAndStatus]
|
|
294
300
|
# @example
|
|
@@ -297,7 +303,7 @@ module Pinnacle
|
|
|
297
303
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
298
304
|
# api_key: "YOUR_API_KEY"
|
|
299
305
|
# )
|
|
300
|
-
# api.campaigns.dlc.get(campaign_id:
|
|
306
|
+
# api.campaigns.dlc.get(campaign_id: "dlc_1234567890")
|
|
301
307
|
def get(campaign_id:, request_options: nil)
|
|
302
308
|
Async do
|
|
303
309
|
response = @request_client.conn.get do |req|
|
|
@@ -322,7 +328,9 @@ module Pinnacle
|
|
|
322
328
|
|
|
323
329
|
# Submit your 10DLC campaign for approval and activation with carriers.
|
|
324
330
|
#
|
|
325
|
-
# @param campaign_id [
|
|
331
|
+
# @param campaign_id [String] Unique identifier of the 10DLC campaign to submit.
|
|
332
|
+
# <br><br> This identifier is a string that always begins with the prefix `dlc_`,
|
|
333
|
+
# for example: `dlc_1234567890`.
|
|
326
334
|
# @param request_options [Pinnacle::RequestOptions]
|
|
327
335
|
# @return [Pinnacle::Types::CampaignSubmissionResult]
|
|
328
336
|
# @example
|
|
@@ -331,7 +339,7 @@ module Pinnacle
|
|
|
331
339
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
332
340
|
# api_key: "YOUR_API_KEY"
|
|
333
341
|
# )
|
|
334
|
-
# api.campaigns.dlc.submit(campaign_id:
|
|
342
|
+
# api.campaigns.dlc.submit(campaign_id: "dlc_1234567890")
|
|
335
343
|
def submit(campaign_id:, request_options: nil)
|
|
336
344
|
Async do
|
|
337
345
|
response = @request_client.conn.post do |req|
|
|
@@ -358,8 +366,10 @@ module Pinnacle
|
|
|
358
366
|
# Omit campaignId to create a campaign.
|
|
359
367
|
#
|
|
360
368
|
# @param auto_renew [Boolean] Whether the campaign renews automatically.
|
|
361
|
-
# @param brand [
|
|
362
|
-
#
|
|
369
|
+
# @param brand [String] Brand id. This identifier is a string that always begins with the prefix `b_`,
|
|
370
|
+
# for example: `b_1234567890`.
|
|
371
|
+
# @param campaign_id [String] Unique identifier for the campaign. This identifier is a string that always
|
|
372
|
+
# begins with the prefix `dlc_`, for example: `dlc_1234567890`.
|
|
363
373
|
# @param description [String] Description of the campaign.
|
|
364
374
|
# @param keywords [Hash] Keyword response configuration.Request of type Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignKeywords, as a Hash
|
|
365
375
|
# * :help (Hash)
|
|
@@ -397,9 +407,9 @@ module Pinnacle
|
|
|
397
407
|
# )
|
|
398
408
|
# api.campaigns.dlc.upsert(
|
|
399
409
|
# auto_renew: true,
|
|
400
|
-
# brand:
|
|
401
|
-
# campaign_id:
|
|
402
|
-
# keywords: { help: { message: "Reply HELP for assistance, STOP to opt-out", values: ["HELP", "INFO", "SUPPORT"] }, opt_in: { message: "Welcome
|
|
410
|
+
# brand: "b_1234567890",
|
|
411
|
+
# campaign_id: "dlc_1234567890",
|
|
412
|
+
# keywords: { help: { message: "Reply HELP for assistance, STOP to opt-out", values: ["HELP", "INFO", "SUPPORT"] }, opt_in: { message: "Welcome. You are now subscribed to Pinnacle.", values: ["JOIN", "START", "SUBSCRIBE"] }, opt_out: { message: "You have been unsubscribed. Reply START to rejoin.", values: ["STOP", "QUIT", "UNSUBSCRIBE"] } },
|
|
403
413
|
# links: { privacy_policy: "https://www.pinnacle.sh/privacy", terms_of_service: "https://www.pinnacle.sh/terms" },
|
|
404
414
|
# message_flow: "Customer initiates -> Automated response -> Agent follow-up if needed",
|
|
405
415
|
# name: "Account Notifications",
|
|
@@ -446,7 +456,7 @@ module Pinnacle
|
|
|
446
456
|
#
|
|
447
457
|
# @param request [Hash] Request of type Pinnacle::Types::ValidateCampaignParams, as a Hash
|
|
448
458
|
# * :additional_info (String)
|
|
449
|
-
# * :campaign_id (
|
|
459
|
+
# * :campaign_id (String)
|
|
450
460
|
# @param request_options [Pinnacle::RequestOptions]
|
|
451
461
|
# @return [Pinnacle::Types::CampaignValidationResult]
|
|
452
462
|
# @example
|
|
@@ -455,7 +465,7 @@ module Pinnacle
|
|
|
455
465
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
456
466
|
# api_key: "YOUR_API_KEY"
|
|
457
467
|
# )
|
|
458
|
-
# api.campaigns.dlc.validate(request: { additional_info: "Please validate this DLC campaign for 10DLC compliance", campaign_id:
|
|
468
|
+
# api.campaigns.dlc.validate(request: { additional_info: "Please validate this DLC campaign for 10DLC compliance", campaign_id: "dlc_1234567890" })
|
|
459
469
|
def validate(request:, request_options: nil)
|
|
460
470
|
Async do
|
|
461
471
|
response = @request_client.conn.post do |req|
|
|
@@ -31,7 +31,7 @@ module Pinnacle
|
|
|
31
31
|
#
|
|
32
32
|
# @param request [Hash] Request of type Pinnacle::Types::AutofillCampaignParams, as a Hash
|
|
33
33
|
# * :additional_info (String)
|
|
34
|
-
# * :campaign_id (
|
|
34
|
+
# * :campaign_id (String)
|
|
35
35
|
# @param request_options [Pinnacle::RequestOptions]
|
|
36
36
|
# @return [Pinnacle::Campaigns::Rcs::Types::RcsAutofillResponse]
|
|
37
37
|
# @example
|
|
@@ -40,7 +40,7 @@ module Pinnacle
|
|
|
40
40
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
41
41
|
# api_key: "YOUR_API_KEY"
|
|
42
42
|
# )
|
|
43
|
-
# api.campaigns.rcs.autofill(request: { additional_info: "Please autofill missing
|
|
43
|
+
# api.campaigns.rcs.autofill(request: { additional_info: "Please autofill missing campaign fields using my brand profile", campaign_id: "dlc_1234567890" })
|
|
44
44
|
def autofill(request:, request_options: nil)
|
|
45
45
|
response = @request_client.conn.post do |req|
|
|
46
46
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -61,7 +61,7 @@ module Pinnacle
|
|
|
61
61
|
|
|
62
62
|
# Retrieve RCS campaign.
|
|
63
63
|
#
|
|
64
|
-
# @param campaign_id [
|
|
64
|
+
# @param campaign_id [String] Unique identifier of the RCS campaign. Must begin with the prefix `rcs_`.
|
|
65
65
|
# @param request_options [Pinnacle::RequestOptions]
|
|
66
66
|
# @return [Pinnacle::Types::ExtendedRcsCampaign]
|
|
67
67
|
# @example
|
|
@@ -70,7 +70,7 @@ module Pinnacle
|
|
|
70
70
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
71
71
|
# api_key: "YOUR_API_KEY"
|
|
72
72
|
# )
|
|
73
|
-
# api.campaigns.rcs.get(campaign_id:
|
|
73
|
+
# api.campaigns.rcs.get(campaign_id: "rcs_1234567890")
|
|
74
74
|
def get(campaign_id:, request_options: nil)
|
|
75
75
|
response = @request_client.conn.get do |req|
|
|
76
76
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -93,7 +93,8 @@ module Pinnacle
|
|
|
93
93
|
|
|
94
94
|
# Submit your RCS campaign for approval and activation with carriers.
|
|
95
95
|
#
|
|
96
|
-
# @param campaign_id [
|
|
96
|
+
# @param campaign_id [String] Unique identifier of the RCS campaign to retrieve. Must begin with the prefix
|
|
97
|
+
# `rcs_`.
|
|
97
98
|
# @param request_options [Pinnacle::RequestOptions]
|
|
98
99
|
# @return [Pinnacle::Types::CampaignSubmissionResult]
|
|
99
100
|
# @example
|
|
@@ -102,7 +103,7 @@ module Pinnacle
|
|
|
102
103
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
103
104
|
# api_key: "YOUR_API_KEY"
|
|
104
105
|
# )
|
|
105
|
-
# api.campaigns.rcs.submit(campaign_id:
|
|
106
|
+
# api.campaigns.rcs.submit(campaign_id: "rcs_1234567890")
|
|
106
107
|
def submit(campaign_id:, request_options: nil)
|
|
107
108
|
response = @request_client.conn.post do |req|
|
|
108
109
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -138,8 +139,8 @@ module Pinnacle
|
|
|
138
139
|
# @param brand_verification_url [String] Link to document verifying the brand's name. This may be the certificate of
|
|
139
140
|
# incorporation, business license, or other relevant document. You can typically
|
|
140
141
|
# find this on the Secretary of State website.
|
|
141
|
-
# @param brand [
|
|
142
|
-
# @param campaign_id [
|
|
142
|
+
# @param brand [String] Unique identifier for the brand.
|
|
143
|
+
# @param campaign_id [String] Unique identifier for the campaign.
|
|
143
144
|
# @param expected_agent_responses [Array<String>] List of what the agent might say to users (1-5 required).
|
|
144
145
|
# @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsLinks, as a Hash
|
|
145
146
|
# * :privacy_policy (String)
|
|
@@ -164,7 +165,8 @@ module Pinnacle
|
|
|
164
165
|
# api.campaigns.rcs.upsert(
|
|
165
166
|
# agent: { color: "#000000", description: "Engaging campaigns with RBM – next-gen SMS marketing with rich content and better analytics.", emails: [{ email: "founders@trypinnacle.app", label: "Email Us" }], hero_url: "https://agent-logos.storage.googleapis.com/_/m0bk9mmw7kfynqiKSPfsaoc6", icon_url: "https://agent-logos.storage.googleapis.com/_/m0bk9gvlDunZEw1krfruZmw3", name: "Pinnacle Software Development", phones: [{ label: "Contact us directly", phone: "+14154467821" }], websites: [{ label: "Get started with Pinnacle", url: "https://www.trypinnacle.app/" }] },
|
|
166
167
|
# brand_verification_url: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
|
|
167
|
-
# brand:
|
|
168
|
+
# brand: "b_1234567890",
|
|
169
|
+
# campaign_id: "rcs_1234567890",
|
|
168
170
|
# expected_agent_responses: ["Here are the things I can help you with.", "I can assist you with booking an appointment, or you may choose to book manually.", "Here are the available times to connect with a representative tomorrow.", "Your appointment has been scheduled."],
|
|
169
171
|
# links: { privacy_policy: "https://www.trypinnacle.app/privacy", terms_of_service: "https://www.trypinnacle.app/terms" },
|
|
170
172
|
# opt_in: { method_: WEBSITE, terms_and_conditions: "Would you like to subscribe to Pinnacle?" },
|
|
@@ -206,7 +208,7 @@ module Pinnacle
|
|
|
206
208
|
#
|
|
207
209
|
# @param request [Hash] Request of type Pinnacle::Types::ValidateCampaignParams, as a Hash
|
|
208
210
|
# * :additional_info (String)
|
|
209
|
-
# * :campaign_id (
|
|
211
|
+
# * :campaign_id (String)
|
|
210
212
|
# @param request_options [Pinnacle::RequestOptions]
|
|
211
213
|
# @return [Pinnacle::Types::CampaignValidationResult]
|
|
212
214
|
# @example
|
|
@@ -215,7 +217,7 @@ module Pinnacle
|
|
|
215
217
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
216
218
|
# api_key: "YOUR_API_KEY"
|
|
217
219
|
# )
|
|
218
|
-
# api.campaigns.rcs.validate(request: { additional_info: "Please validate this DLC campaign for 10DLC compliance", campaign_id:
|
|
220
|
+
# api.campaigns.rcs.validate(request: { additional_info: "Please validate this DLC campaign for 10DLC compliance", campaign_id: "dlc_1234567890" })
|
|
219
221
|
def validate(request:, request_options: nil)
|
|
220
222
|
response = @request_client.conn.post do |req|
|
|
221
223
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -250,7 +252,7 @@ module Pinnacle
|
|
|
250
252
|
#
|
|
251
253
|
# @param request [Hash] Request of type Pinnacle::Types::AutofillCampaignParams, as a Hash
|
|
252
254
|
# * :additional_info (String)
|
|
253
|
-
# * :campaign_id (
|
|
255
|
+
# * :campaign_id (String)
|
|
254
256
|
# @param request_options [Pinnacle::RequestOptions]
|
|
255
257
|
# @return [Pinnacle::Campaigns::Rcs::Types::RcsAutofillResponse]
|
|
256
258
|
# @example
|
|
@@ -259,7 +261,7 @@ module Pinnacle
|
|
|
259
261
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
260
262
|
# api_key: "YOUR_API_KEY"
|
|
261
263
|
# )
|
|
262
|
-
# api.campaigns.rcs.autofill(request: { additional_info: "Please autofill missing
|
|
264
|
+
# api.campaigns.rcs.autofill(request: { additional_info: "Please autofill missing campaign fields using my brand profile", campaign_id: "dlc_1234567890" })
|
|
263
265
|
def autofill(request:, request_options: nil)
|
|
264
266
|
Async do
|
|
265
267
|
response = @request_client.conn.post do |req|
|
|
@@ -282,7 +284,7 @@ module Pinnacle
|
|
|
282
284
|
|
|
283
285
|
# Retrieve RCS campaign.
|
|
284
286
|
#
|
|
285
|
-
# @param campaign_id [
|
|
287
|
+
# @param campaign_id [String] Unique identifier of the RCS campaign. Must begin with the prefix `rcs_`.
|
|
286
288
|
# @param request_options [Pinnacle::RequestOptions]
|
|
287
289
|
# @return [Pinnacle::Types::ExtendedRcsCampaign]
|
|
288
290
|
# @example
|
|
@@ -291,7 +293,7 @@ module Pinnacle
|
|
|
291
293
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
292
294
|
# api_key: "YOUR_API_KEY"
|
|
293
295
|
# )
|
|
294
|
-
# api.campaigns.rcs.get(campaign_id:
|
|
296
|
+
# api.campaigns.rcs.get(campaign_id: "rcs_1234567890")
|
|
295
297
|
def get(campaign_id:, request_options: nil)
|
|
296
298
|
Async do
|
|
297
299
|
response = @request_client.conn.get do |req|
|
|
@@ -316,7 +318,8 @@ module Pinnacle
|
|
|
316
318
|
|
|
317
319
|
# Submit your RCS campaign for approval and activation with carriers.
|
|
318
320
|
#
|
|
319
|
-
# @param campaign_id [
|
|
321
|
+
# @param campaign_id [String] Unique identifier of the RCS campaign to retrieve. Must begin with the prefix
|
|
322
|
+
# `rcs_`.
|
|
320
323
|
# @param request_options [Pinnacle::RequestOptions]
|
|
321
324
|
# @return [Pinnacle::Types::CampaignSubmissionResult]
|
|
322
325
|
# @example
|
|
@@ -325,7 +328,7 @@ module Pinnacle
|
|
|
325
328
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
326
329
|
# api_key: "YOUR_API_KEY"
|
|
327
330
|
# )
|
|
328
|
-
# api.campaigns.rcs.submit(campaign_id:
|
|
331
|
+
# api.campaigns.rcs.submit(campaign_id: "rcs_1234567890")
|
|
329
332
|
def submit(campaign_id:, request_options: nil)
|
|
330
333
|
Async do
|
|
331
334
|
response = @request_client.conn.post do |req|
|
|
@@ -363,8 +366,8 @@ module Pinnacle
|
|
|
363
366
|
# @param brand_verification_url [String] Link to document verifying the brand's name. This may be the certificate of
|
|
364
367
|
# incorporation, business license, or other relevant document. You can typically
|
|
365
368
|
# find this on the Secretary of State website.
|
|
366
|
-
# @param brand [
|
|
367
|
-
# @param campaign_id [
|
|
369
|
+
# @param brand [String] Unique identifier for the brand.
|
|
370
|
+
# @param campaign_id [String] Unique identifier for the campaign.
|
|
368
371
|
# @param expected_agent_responses [Array<String>] List of what the agent might say to users (1-5 required).
|
|
369
372
|
# @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsLinks, as a Hash
|
|
370
373
|
# * :privacy_policy (String)
|
|
@@ -389,7 +392,8 @@ module Pinnacle
|
|
|
389
392
|
# api.campaigns.rcs.upsert(
|
|
390
393
|
# agent: { color: "#000000", description: "Engaging campaigns with RBM – next-gen SMS marketing with rich content and better analytics.", emails: [{ email: "founders@trypinnacle.app", label: "Email Us" }], hero_url: "https://agent-logos.storage.googleapis.com/_/m0bk9mmw7kfynqiKSPfsaoc6", icon_url: "https://agent-logos.storage.googleapis.com/_/m0bk9gvlDunZEw1krfruZmw3", name: "Pinnacle Software Development", phones: [{ label: "Contact us directly", phone: "+14154467821" }], websites: [{ label: "Get started with Pinnacle", url: "https://www.trypinnacle.app/" }] },
|
|
391
394
|
# brand_verification_url: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
|
|
392
|
-
# brand:
|
|
395
|
+
# brand: "b_1234567890",
|
|
396
|
+
# campaign_id: "rcs_1234567890",
|
|
393
397
|
# expected_agent_responses: ["Here are the things I can help you with.", "I can assist you with booking an appointment, or you may choose to book manually.", "Here are the available times to connect with a representative tomorrow.", "Your appointment has been scheduled."],
|
|
394
398
|
# links: { privacy_policy: "https://www.trypinnacle.app/privacy", terms_of_service: "https://www.trypinnacle.app/terms" },
|
|
395
399
|
# opt_in: { method_: WEBSITE, terms_and_conditions: "Would you like to subscribe to Pinnacle?" },
|
|
@@ -433,7 +437,7 @@ module Pinnacle
|
|
|
433
437
|
#
|
|
434
438
|
# @param request [Hash] Request of type Pinnacle::Types::ValidateCampaignParams, as a Hash
|
|
435
439
|
# * :additional_info (String)
|
|
436
|
-
# * :campaign_id (
|
|
440
|
+
# * :campaign_id (String)
|
|
437
441
|
# @param request_options [Pinnacle::RequestOptions]
|
|
438
442
|
# @return [Pinnacle::Types::CampaignValidationResult]
|
|
439
443
|
# @example
|
|
@@ -442,7 +446,7 @@ module Pinnacle
|
|
|
442
446
|
# environment: Pinnacle::Environment::DEFAULT,
|
|
443
447
|
# api_key: "YOUR_API_KEY"
|
|
444
448
|
# )
|
|
445
|
-
# api.campaigns.rcs.validate(request: { additional_info: "Please validate this DLC campaign for 10DLC compliance", campaign_id:
|
|
449
|
+
# api.campaigns.rcs.validate(request: { additional_info: "Please validate this DLC campaign for 10DLC compliance", campaign_id: "dlc_1234567890" })
|
|
446
450
|
def validate(request:, request_options: nil)
|
|
447
451
|
Async do
|
|
448
452
|
response = @request_client.conn.post do |req|
|
|
@@ -13,11 +13,11 @@ module Pinnacle
|
|
|
13
13
|
module Rcs
|
|
14
14
|
module Types
|
|
15
15
|
class RcsAutofillResponse
|
|
16
|
-
# @return [
|
|
16
|
+
# @return [String]
|
|
17
17
|
attr_reader :brand
|
|
18
18
|
# @return [Pinnacle::Types::RcsCampaignSchemaAgent] Agent configured to the campaign.
|
|
19
19
|
attr_reader :agent
|
|
20
|
-
# @return [
|
|
20
|
+
# @return [String] Unique identifier for the campaign.
|
|
21
21
|
attr_reader :campaign_id
|
|
22
22
|
# @return [String] Link to document verifying the brand's name. This may be the certificate of
|
|
23
23
|
# incorporation, business license, or other relevant document. You can typically
|
|
@@ -41,9 +41,9 @@ module Pinnacle
|
|
|
41
41
|
|
|
42
42
|
OMIT = Object.new
|
|
43
43
|
|
|
44
|
-
# @param brand [
|
|
44
|
+
# @param brand [String]
|
|
45
45
|
# @param agent [Pinnacle::Types::RcsCampaignSchemaAgent] Agent configured to the campaign.
|
|
46
|
-
# @param campaign_id [
|
|
46
|
+
# @param campaign_id [String] Unique identifier for the campaign.
|
|
47
47
|
# @param brand_verification_url [String] Link to document verifying the brand's name. This may be the certificate of
|
|
48
48
|
# incorporation, business license, or other relevant document. You can typically
|
|
49
49
|
# find this on the Secretary of State website.
|
|
@@ -150,9 +150,9 @@ module Pinnacle
|
|
|
150
150
|
# @param obj [Object]
|
|
151
151
|
# @return [Void]
|
|
152
152
|
def self.validate_raw(obj:)
|
|
153
|
-
obj.brand&.is_a?(
|
|
153
|
+
obj.brand&.is_a?(String) != false || raise("Passed value for field obj.brand is not the expected type, validation failed.")
|
|
154
154
|
obj.agent.nil? || Pinnacle::Types::RcsCampaignSchemaAgent.validate_raw(obj: obj.agent)
|
|
155
|
-
obj.campaign_id&.is_a?(
|
|
155
|
+
obj.campaign_id&.is_a?(String) != false || raise("Passed value for field obj.campaign_id is not the expected type, validation failed.")
|
|
156
156
|
obj.brand_verification_url&.is_a?(String) != false || raise("Passed value for field obj.brand_verification_url is not the expected type, validation failed.")
|
|
157
157
|
obj.expected_agent_responses&.is_a?(Array) != false || raise("Passed value for field obj.expected_agent_responses is not the expected type, validation failed.")
|
|
158
158
|
obj.links.nil? || Pinnacle::Types::RcsCampaignSchemaLinks.validate_raw(obj: obj.links)
|