rcs 2.0.0.pre.rc.1 → 2.0.0.pre.rc.3
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 +6 -6
- data/lib/rcs/brands/types/{autofill_brand_schema_options.rb → autofill_brand_options.rb} +5 -5
- data/lib/rcs/campaigns/dlc/client.rb +12 -12
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords_help.rb → upsert_dlc_campaign_help_keywords.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords.rb → upsert_dlc_campaign_keywords.rb} +20 -20
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_links.rb → upsert_dlc_campaign_links.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords_opt_in.rb → upsert_dlc_campaign_opt_in_keywords.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords_opt_out.rb → upsert_dlc_campaign_opt_out_keywords.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_options.rb → upsert_dlc_campaign_options.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_use_case.rb → upsert_dlc_campaign_use_case.rb} +5 -5
- data/lib/rcs/campaigns/rcs/client.rb +25 -25
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent_emails_item.rb → rcs_agent_email.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent_phones_item.rb → rcs_agent_phone.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent_websites_item.rb → rcs_agent_website.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent.rb → upsert_rcs_agent.rb} +17 -17
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_links.rb → upsert_rcs_links.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_opt_in.rb → upsert_rcs_opt_in.rb} +13 -13
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_opt_out.rb → upsert_rcs_opt_out.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_use_case.rb → upsert_rcs_use_case.rb} +5 -5
- data/lib/rcs/campaigns/toll_free/client.rb +4 -4
- data/lib/rcs/campaigns/toll_free/types/toll_free_autofill_response.rb +10 -10
- data/lib/rcs/campaigns/toll_free/types/upsert_toll_free_schema_opt_in.rb +8 -8
- data/lib/rcs/conversations/client.rb +2 -2
- data/lib/rcs/messages/client.rb +24 -3
- data/lib/rcs/messages/mms/client.rb +118 -0
- data/lib/rcs/messages/{send/types/send_mms_response.rb → mms/types/mms_send_response.rb} +4 -4
- data/lib/rcs/messages/{send/types/send_mms_schema_options.rb → mms/types/send_mms_options.rb} +6 -6
- data/lib/rcs/messages/rcs/client.rb +68 -0
- data/lib/rcs/messages/{send/types/send_rcs_response.rb → rcs/types/rcs_send_response.rb} +4 -4
- data/lib/rcs/messages/sms/client.rb +198 -0
- data/lib/rcs/messages/{send/types/send_sms_schema_options.rb → sms/types/send_sms_options.rb} +6 -6
- data/lib/rcs/messages/{send/types/send_sms_response.rb → sms/types/sms_send_response.rb} +4 -4
- data/lib/rcs/messages/types/{message_reaction_schema_options.rb → react_message_options.rb} +5 -5
- data/lib/rcs/phone_numbers/client.rb +32 -18
- data/lib/rcs/phone_numbers/types/{phone_details_schema_options_enhanced_contact_info.rb → enhanced_contact_info.rb} +5 -7
- data/lib/rcs/phone_numbers/types/{phone_details_schema_options.rb → retrieve_phone_number_details_options.rb} +10 -10
- data/lib/rcs/phone_numbers/types/{search_schema_number.rb → search_phone_number_by_digits.rb} +5 -5
- data/lib/rcs/phone_numbers/types/{search_schema_location.rb → search_phone_number_by_location.rb} +5 -5
- data/lib/rcs/phone_numbers/types/{search_schema_options.rb → search_phone_number_options.rb} +5 -5
- data/lib/rcs/phone_numbers/webhook/client.rb +2 -2
- data/lib/rcs/tools/file/client.rb +3 -3
- data/lib/rcs/tools/file/types/{file_upload_schema_options_download.rb → download_options.rb} +5 -5
- data/lib/rcs/tools/file/types/{file_upload_schema_options.rb → upload_file_options.rb} +10 -10
- data/lib/rcs/types/{attach_webhook_schema_webhook_id.rb → attach_webhook_by_id_params.rb} +5 -5
- data/lib/rcs/types/attach_webhook_params.rb +8 -8
- data/lib/rcs/types/{get_conversation_request_id.rb → conversation_by_id_params.rb} +5 -5
- data/lib/rcs/types/{get_conversation_request_recipient.rb → conversation_by_participants_params.rb} +5 -5
- data/lib/rcs/types/{attach_webhook_schema_name.rb → create_and_attach_webhook_by_url_params.rb} +5 -5
- data/lib/rcs/types/get_conversation_params.rb +8 -8
- data/lib/rcs/types/link_click_event.rb +8 -8
- data/lib/rcs/types/message.rb +8 -8
- data/lib/rcs/types/rcs.rb +12 -12
- data/lib/rcs/types/rcs_campaign_schema_extra_opt_in.rb +8 -8
- data/lib/rcs/types/rcs_campaign_schema_opt_in.rb +8 -8
- data/lib/rcs/types/rcs_cards.rb +4 -4
- data/lib/rcs/types/rcs_cards_cards_item.rb +4 -4
- data/lib/rcs/types/rcs_cards_content.rb +4 -4
- data/lib/rcs/types/rcs_cards_content_cards_item.rb +4 -4
- data/lib/rcs/types/rcs_media_content.rb +4 -4
- data/lib/rcs/types/rcs_text_content.rb +4 -4
- data/lib/rcs/types/{rcs_button_content.rb → rich_button.rb} +10 -10
- data/lib/rcs/types/{rcs_card.rb → rich_cards_message.rb} +9 -9
- data/lib/rcs/types/{rcs_media.rb → rich_media_message.rb} +9 -9
- data/lib/rcs/types/{rcs_text.rb → rich_text_message.rb} +9 -9
- data/lib/rcs/types/toll_free_campaign.rb +10 -10
- data/lib/rcs/types/toll_free_campaign_with_extended_brand_and_status.rb +10 -10
- data/lib/rcs/types/{nullable_contact.rb → upsert_contact.rb} +5 -5
- data/lib/rcs/types/{toll_free_campaign_schema_opt_in.rb → upsert_toll_free_campaign_opt_in.rb} +13 -13
- data/lib/rcs/types/{toll_free_campaign_schema_use_case.rb → upsert_toll_free_campaign_use_case.rb} +5 -5
- data/lib/rcs.rb +0 -7
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +40 -40
- metadata +43 -45
- data/lib/rcs/message/client.rb +0 -30
- data/lib/rcs/message/sms/client.rb +0 -96
- data/lib/rcs/messages/send/client.rb +0 -318
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1427bbd6a4b71cea24dabba775a6738497b9ac5a511ca5ab39731186c6d0535f
|
4
|
+
data.tar.gz: f9dd560ed6a0343af0e3f308a2ba4ed8dc6310c31134fa56ac9d322074df14b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a77a84261329cfa6214225a7eb0d5a48c36eae332672081e9b89cb8b2cf687193f1ba3c791871e478d21738abb024ac12693df14c81e12ea886aa0f48b43f9d
|
7
|
+
data.tar.gz: e5fd2ee9fe78581876d46a8c6dc0406f85b9501b0df5c8a0f82b700b0eea1ba017f9f1fcca8ff87b2f1fc39614c9657f5c0fe4aecd94adcf3fa7c8b3ce16042f
|
data/lib/rcs/brands/client.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "../../requests"
|
4
|
-
require_relative "types/
|
4
|
+
require_relative "types/autofill_brand_options"
|
5
5
|
require_relative "../types/optional_brand_info"
|
6
|
-
require_relative "../types/
|
6
|
+
require_relative "../types/upsert_contact"
|
7
7
|
require_relative "../types/company_sector_enum"
|
8
8
|
require_relative "../types/company_type_enum"
|
9
9
|
require_relative "../types/extended_brand"
|
@@ -30,7 +30,7 @@ module Pinnacle
|
|
30
30
|
#
|
31
31
|
# @param additional_info [String] Any extra details about the brand to help improve data accuracy.
|
32
32
|
# @param name [String] Name of the brand.
|
33
|
-
# @param options [Hash] Request of type Pinnacle::Brands::Types::
|
33
|
+
# @param options [Hash] Request of type Pinnacle::Brands::Types::AutofillBrandOptions, as a Hash
|
34
34
|
# * :force_reload (Boolean)
|
35
35
|
# @param website [String] Brand's website URL.
|
36
36
|
# @param request_options [Pinnacle::RequestOptions]
|
@@ -74,7 +74,7 @@ module Pinnacle
|
|
74
74
|
# Create a new brand or update an existing brand by with the provided information.
|
75
75
|
#
|
76
76
|
# @param address [String] Primary brand address where the company is located.
|
77
|
-
# @param contact [Hash] Contact information for the brand.Request of type Pinnacle::Types::
|
77
|
+
# @param contact [Hash] Contact information for the brand.Request of type Pinnacle::Types::UpsertContact, as a Hash
|
78
78
|
# * :email (String)
|
79
79
|
# * :name (String)
|
80
80
|
# * :phone (String)
|
@@ -331,7 +331,7 @@ module Pinnacle
|
|
331
331
|
#
|
332
332
|
# @param additional_info [String] Any extra details about the brand to help improve data accuracy.
|
333
333
|
# @param name [String] Name of the brand.
|
334
|
-
# @param options [Hash] Request of type Pinnacle::Brands::Types::
|
334
|
+
# @param options [Hash] Request of type Pinnacle::Brands::Types::AutofillBrandOptions, as a Hash
|
335
335
|
# * :force_reload (Boolean)
|
336
336
|
# @param website [String] Brand's website URL.
|
337
337
|
# @param request_options [Pinnacle::RequestOptions]
|
@@ -377,7 +377,7 @@ module Pinnacle
|
|
377
377
|
# Create a new brand or update an existing brand by with the provided information.
|
378
378
|
#
|
379
379
|
# @param address [String] Primary brand address where the company is located.
|
380
|
-
# @param contact [Hash] Contact information for the brand.Request of type Pinnacle::Types::
|
380
|
+
# @param contact [Hash] Contact information for the brand.Request of type Pinnacle::Types::UpsertContact, as a Hash
|
381
381
|
# * :email (String)
|
382
382
|
# * :name (String)
|
383
383
|
# * :phone (String)
|
@@ -6,7 +6,7 @@ require "json"
|
|
6
6
|
module Pinnacle
|
7
7
|
module Brands
|
8
8
|
module Types
|
9
|
-
class
|
9
|
+
class AutofillBrandOptions
|
10
10
|
# @return [Boolean] Set to true to bypass cached data and fetch fresh information.
|
11
11
|
attr_reader :force_reload
|
12
12
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
@@ -19,7 +19,7 @@ module Pinnacle
|
|
19
19
|
|
20
20
|
# @param force_reload [Boolean] Set to true to bypass cached data and fetch fresh information.
|
21
21
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
22
|
-
# @return [Pinnacle::Brands::Types::
|
22
|
+
# @return [Pinnacle::Brands::Types::AutofillBrandOptions]
|
23
23
|
def initialize(force_reload: OMIT, additional_properties: nil)
|
24
24
|
@force_reload = force_reload if force_reload != OMIT
|
25
25
|
@additional_properties = additional_properties
|
@@ -28,10 +28,10 @@ module Pinnacle
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
# Deserialize a JSON object to an instance of
|
31
|
+
# Deserialize a JSON object to an instance of AutofillBrandOptions
|
32
32
|
#
|
33
33
|
# @param json_object [String]
|
34
|
-
# @return [Pinnacle::Brands::Types::
|
34
|
+
# @return [Pinnacle::Brands::Types::AutofillBrandOptions]
|
35
35
|
def self.from_json(json_object:)
|
36
36
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
37
37
|
parsed_json = JSON.parse(json_object)
|
@@ -39,7 +39,7 @@ module Pinnacle
|
|
39
39
|
new(force_reload: force_reload, additional_properties: struct)
|
40
40
|
end
|
41
41
|
|
42
|
-
# Serialize an instance of
|
42
|
+
# Serialize an instance of AutofillBrandOptions to a JSON object
|
43
43
|
#
|
44
44
|
# @return [String]
|
45
45
|
def to_json(*_args)
|
@@ -5,10 +5,10 @@ require_relative "../../types/autofill_campaign_params"
|
|
5
5
|
require_relative "../../types/autofill_dlc_campaign_response"
|
6
6
|
require_relative "../../types/dlc_campaign_with_extended_brand_and_status"
|
7
7
|
require_relative "../../types/campaign_submission_result"
|
8
|
-
require_relative "types/
|
9
|
-
require_relative "types/
|
10
|
-
require_relative "types/
|
11
|
-
require_relative "types/
|
8
|
+
require_relative "types/upsert_dlc_campaign_keywords"
|
9
|
+
require_relative "types/upsert_dlc_campaign_links"
|
10
|
+
require_relative "types/upsert_dlc_campaign_options"
|
11
|
+
require_relative "types/upsert_dlc_campaign_use_case"
|
12
12
|
require_relative "../../types/validate_campaign_params"
|
13
13
|
require_relative "../../types/campaign_validation_result"
|
14
14
|
require "async"
|
@@ -129,7 +129,7 @@ module Pinnacle
|
|
129
129
|
# @param brand [Integer] Brand id.
|
130
130
|
# @param campaign_id [Integer] Unique identifier for the campaign.
|
131
131
|
# @param description [String] Description of the campaign.
|
132
|
-
# @param keywords [Hash] Keyword response configuration.Request of type Pinnacle::Campaigns::Dlc::Types::
|
132
|
+
# @param keywords [Hash] Keyword response configuration.Request of type Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignKeywords, as a Hash
|
133
133
|
# * :help (Hash)
|
134
134
|
# * :message (String)
|
135
135
|
# * :values (Array<String>)
|
@@ -139,12 +139,12 @@ module Pinnacle
|
|
139
139
|
# * :opt_out (Hash)
|
140
140
|
# * :message (String)
|
141
141
|
# * :values (Array<String>)
|
142
|
-
# @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Dlc::Types::
|
142
|
+
# @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignLinks, as a Hash
|
143
143
|
# * :privacy_policy (String)
|
144
144
|
# * :terms_of_service (String)
|
145
145
|
# @param message_flow [String] Describe the flow of how users will opt in to this campaign.
|
146
146
|
# @param name [String] Display name of the campaign.
|
147
|
-
# @param options [Hash] Campaign configuration options.Request of type Pinnacle::Campaigns::Dlc::Types::
|
147
|
+
# @param options [Hash] Campaign configuration options.Request of type Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptions, as a Hash
|
148
148
|
# * :affiliate_marketing (Boolean)
|
149
149
|
# * :age_gated (Boolean)
|
150
150
|
# * :direct_lending (Boolean)
|
@@ -152,7 +152,7 @@ module Pinnacle
|
|
152
152
|
# * :embedded_phone (Boolean)
|
153
153
|
# * :number_pooling (Boolean)
|
154
154
|
# @param sample_messages [Array<String>] Example messages for the campaign.
|
155
|
-
# @param use_case [Hash] Use case for the campaign.Request of type Pinnacle::Campaigns::Dlc::Types::
|
155
|
+
# @param use_case [Hash] Use case for the campaign.Request of type Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignUseCase, as a Hash
|
156
156
|
# * :sub (Array<Pinnacle::Types::SubUseCaseEnum>)
|
157
157
|
# * :value (Pinnacle::Types::DlcCampaignUseCaseEnum)
|
158
158
|
# @param request_options [Pinnacle::RequestOptions]
|
@@ -361,7 +361,7 @@ module Pinnacle
|
|
361
361
|
# @param brand [Integer] Brand id.
|
362
362
|
# @param campaign_id [Integer] Unique identifier for the campaign.
|
363
363
|
# @param description [String] Description of the campaign.
|
364
|
-
# @param keywords [Hash] Keyword response configuration.Request of type Pinnacle::Campaigns::Dlc::Types::
|
364
|
+
# @param keywords [Hash] Keyword response configuration.Request of type Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignKeywords, as a Hash
|
365
365
|
# * :help (Hash)
|
366
366
|
# * :message (String)
|
367
367
|
# * :values (Array<String>)
|
@@ -371,12 +371,12 @@ module Pinnacle
|
|
371
371
|
# * :opt_out (Hash)
|
372
372
|
# * :message (String)
|
373
373
|
# * :values (Array<String>)
|
374
|
-
# @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Dlc::Types::
|
374
|
+
# @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignLinks, as a Hash
|
375
375
|
# * :privacy_policy (String)
|
376
376
|
# * :terms_of_service (String)
|
377
377
|
# @param message_flow [String] Describe the flow of how users will opt in to this campaign.
|
378
378
|
# @param name [String] Display name of the campaign.
|
379
|
-
# @param options [Hash] Campaign configuration options.Request of type Pinnacle::Campaigns::Dlc::Types::
|
379
|
+
# @param options [Hash] Campaign configuration options.Request of type Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptions, as a Hash
|
380
380
|
# * :affiliate_marketing (Boolean)
|
381
381
|
# * :age_gated (Boolean)
|
382
382
|
# * :direct_lending (Boolean)
|
@@ -384,7 +384,7 @@ module Pinnacle
|
|
384
384
|
# * :embedded_phone (Boolean)
|
385
385
|
# * :number_pooling (Boolean)
|
386
386
|
# @param sample_messages [Array<String>] Example messages for the campaign.
|
387
|
-
# @param use_case [Hash] Use case for the campaign.Request of type Pinnacle::Campaigns::Dlc::Types::
|
387
|
+
# @param use_case [Hash] Use case for the campaign.Request of type Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignUseCase, as a Hash
|
388
388
|
# * :sub (Array<Pinnacle::Types::SubUseCaseEnum>)
|
389
389
|
# * :value (Pinnacle::Types::DlcCampaignUseCaseEnum)
|
390
390
|
# @param request_options [Pinnacle::RequestOptions]
|
@@ -8,7 +8,7 @@ module Pinnacle
|
|
8
8
|
module Dlc
|
9
9
|
module Types
|
10
10
|
# Help keyword settings.
|
11
|
-
class
|
11
|
+
class UpsertDlcCampaignHelpKeywords
|
12
12
|
# @return [String] Response message for help keywords.
|
13
13
|
attr_reader :message
|
14
14
|
# @return [Array<String>] Keywords that trigger help response.
|
@@ -24,7 +24,7 @@ module Pinnacle
|
|
24
24
|
# @param message [String] Response message for help keywords.
|
25
25
|
# @param values [Array<String>] Keywords that trigger help response.
|
26
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
27
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignHelpKeywords]
|
28
28
|
def initialize(message: OMIT, values: OMIT, additional_properties: nil)
|
29
29
|
@message = message if message != OMIT
|
30
30
|
@values = values if values != OMIT
|
@@ -34,10 +34,10 @@ module Pinnacle
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
# Deserialize a JSON object to an instance of
|
37
|
+
# Deserialize a JSON object to an instance of UpsertDlcCampaignHelpKeywords
|
38
38
|
#
|
39
39
|
# @param json_object [String]
|
40
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
40
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignHelpKeywords]
|
41
41
|
def self.from_json(json_object:)
|
42
42
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
43
43
|
parsed_json = JSON.parse(json_object)
|
@@ -50,7 +50,7 @@ module Pinnacle
|
|
50
50
|
)
|
51
51
|
end
|
52
52
|
|
53
|
-
# Serialize an instance of
|
53
|
+
# Serialize an instance of UpsertDlcCampaignHelpKeywords to a JSON object
|
54
54
|
#
|
55
55
|
# @return [String]
|
56
56
|
def to_json(*_args)
|
data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords.rb → upsert_dlc_campaign_keywords.rb}
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "
|
4
|
-
require_relative "
|
5
|
-
require_relative "
|
3
|
+
require_relative "upsert_dlc_campaign_help_keywords"
|
4
|
+
require_relative "upsert_dlc_campaign_opt_in_keywords"
|
5
|
+
require_relative "upsert_dlc_campaign_opt_out_keywords"
|
6
6
|
require "ostruct"
|
7
7
|
require "json"
|
8
8
|
|
@@ -11,12 +11,12 @@ module Pinnacle
|
|
11
11
|
module Dlc
|
12
12
|
module Types
|
13
13
|
# Keyword response configuration.
|
14
|
-
class
|
15
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
14
|
+
class UpsertDlcCampaignKeywords
|
15
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignHelpKeywords] Help keyword settings.
|
16
16
|
attr_reader :help
|
17
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
17
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptInKeywords] Opt-in keyword settings.
|
18
18
|
attr_reader :opt_in
|
19
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
19
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptOutKeywords] Opt-out keyword settings.
|
20
20
|
attr_reader :opt_out
|
21
21
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
22
22
|
attr_reader :additional_properties
|
@@ -26,11 +26,11 @@ module Pinnacle
|
|
26
26
|
|
27
27
|
OMIT = Object.new
|
28
28
|
|
29
|
-
# @param help [Pinnacle::Campaigns::Dlc::Types::
|
30
|
-
# @param opt_in [Pinnacle::Campaigns::Dlc::Types::
|
31
|
-
# @param opt_out [Pinnacle::Campaigns::Dlc::Types::
|
29
|
+
# @param help [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignHelpKeywords] Help keyword settings.
|
30
|
+
# @param opt_in [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptInKeywords] Opt-in keyword settings.
|
31
|
+
# @param opt_out [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptOutKeywords] Opt-out keyword settings.
|
32
32
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
33
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
33
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignKeywords]
|
34
34
|
def initialize(help: OMIT, opt_in: OMIT, opt_out: OMIT, additional_properties: nil)
|
35
35
|
@help = help if help != OMIT
|
36
36
|
@opt_in = opt_in if opt_in != OMIT
|
@@ -41,10 +41,10 @@ module Pinnacle
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
# Deserialize a JSON object to an instance of
|
44
|
+
# Deserialize a JSON object to an instance of UpsertDlcCampaignKeywords
|
45
45
|
#
|
46
46
|
# @param json_object [String]
|
47
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
47
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignKeywords]
|
48
48
|
def self.from_json(json_object:)
|
49
49
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
50
50
|
parsed_json = JSON.parse(json_object)
|
@@ -52,19 +52,19 @@ module Pinnacle
|
|
52
52
|
help = nil
|
53
53
|
else
|
54
54
|
help = parsed_json["HELP"].to_json
|
55
|
-
help = Pinnacle::Campaigns::Dlc::Types::
|
55
|
+
help = Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignHelpKeywords.from_json(json_object: help)
|
56
56
|
end
|
57
57
|
if parsed_json["OPT_IN"].nil?
|
58
58
|
opt_in = nil
|
59
59
|
else
|
60
60
|
opt_in = parsed_json["OPT_IN"].to_json
|
61
|
-
opt_in = Pinnacle::Campaigns::Dlc::Types::
|
61
|
+
opt_in = Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptInKeywords.from_json(json_object: opt_in)
|
62
62
|
end
|
63
63
|
if parsed_json["OPT_OUT"].nil?
|
64
64
|
opt_out = nil
|
65
65
|
else
|
66
66
|
opt_out = parsed_json["OPT_OUT"].to_json
|
67
|
-
opt_out = Pinnacle::Campaigns::Dlc::Types::
|
67
|
+
opt_out = Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptOutKeywords.from_json(json_object: opt_out)
|
68
68
|
end
|
69
69
|
new(
|
70
70
|
help: help,
|
@@ -74,7 +74,7 @@ module Pinnacle
|
|
74
74
|
)
|
75
75
|
end
|
76
76
|
|
77
|
-
# Serialize an instance of
|
77
|
+
# Serialize an instance of UpsertDlcCampaignKeywords to a JSON object
|
78
78
|
#
|
79
79
|
# @return [String]
|
80
80
|
def to_json(*_args)
|
@@ -88,9 +88,9 @@ module Pinnacle
|
|
88
88
|
# @param obj [Object]
|
89
89
|
# @return [Void]
|
90
90
|
def self.validate_raw(obj:)
|
91
|
-
obj.help.nil? || Pinnacle::Campaigns::Dlc::Types::
|
92
|
-
obj.opt_in.nil? || Pinnacle::Campaigns::Dlc::Types::
|
93
|
-
obj.opt_out.nil? || Pinnacle::Campaigns::Dlc::Types::
|
91
|
+
obj.help.nil? || Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignHelpKeywords.validate_raw(obj: obj.help)
|
92
|
+
obj.opt_in.nil? || Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptInKeywords.validate_raw(obj: obj.opt_in)
|
93
|
+
obj.opt_out.nil? || Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptOutKeywords.validate_raw(obj: obj.opt_out)
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_links.rb → upsert_dlc_campaign_links.rb}
RENAMED
@@ -8,7 +8,7 @@ module Pinnacle
|
|
8
8
|
module Dlc
|
9
9
|
module Types
|
10
10
|
# Legal documentation links.
|
11
|
-
class
|
11
|
+
class UpsertDlcCampaignLinks
|
12
12
|
# @return [String] Privacy policy URL.
|
13
13
|
attr_reader :privacy_policy
|
14
14
|
# @return [String] Terms of service URL.
|
@@ -24,7 +24,7 @@ module Pinnacle
|
|
24
24
|
# @param privacy_policy [String] Privacy policy URL.
|
25
25
|
# @param terms_of_service [String] Terms of service URL.
|
26
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
27
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignLinks]
|
28
28
|
def initialize(privacy_policy: OMIT, terms_of_service: OMIT, additional_properties: nil)
|
29
29
|
@privacy_policy = privacy_policy if privacy_policy != OMIT
|
30
30
|
@terms_of_service = terms_of_service if terms_of_service != OMIT
|
@@ -34,10 +34,10 @@ module Pinnacle
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
# Deserialize a JSON object to an instance of
|
37
|
+
# Deserialize a JSON object to an instance of UpsertDlcCampaignLinks
|
38
38
|
#
|
39
39
|
# @param json_object [String]
|
40
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
40
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignLinks]
|
41
41
|
def self.from_json(json_object:)
|
42
42
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
43
43
|
parsed_json = JSON.parse(json_object)
|
@@ -50,7 +50,7 @@ module Pinnacle
|
|
50
50
|
)
|
51
51
|
end
|
52
52
|
|
53
|
-
# Serialize an instance of
|
53
|
+
# Serialize an instance of UpsertDlcCampaignLinks to a JSON object
|
54
54
|
#
|
55
55
|
# @return [String]
|
56
56
|
def to_json(*_args)
|
@@ -8,7 +8,7 @@ module Pinnacle
|
|
8
8
|
module Dlc
|
9
9
|
module Types
|
10
10
|
# Opt-in keyword settings.
|
11
|
-
class
|
11
|
+
class UpsertDlcCampaignOptInKeywords
|
12
12
|
# @return [String] Response message for opt-in keywords.
|
13
13
|
attr_reader :message
|
14
14
|
# @return [Array<String>] Keywords that trigger opt-in.
|
@@ -24,7 +24,7 @@ module Pinnacle
|
|
24
24
|
# @param message [String] Response message for opt-in keywords.
|
25
25
|
# @param values [Array<String>] Keywords that trigger opt-in.
|
26
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
27
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptInKeywords]
|
28
28
|
def initialize(message: OMIT, values: OMIT, additional_properties: nil)
|
29
29
|
@message = message if message != OMIT
|
30
30
|
@values = values if values != OMIT
|
@@ -34,10 +34,10 @@ module Pinnacle
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
# Deserialize a JSON object to an instance of
|
37
|
+
# Deserialize a JSON object to an instance of UpsertDlcCampaignOptInKeywords
|
38
38
|
#
|
39
39
|
# @param json_object [String]
|
40
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
40
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptInKeywords]
|
41
41
|
def self.from_json(json_object:)
|
42
42
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
43
43
|
parsed_json = JSON.parse(json_object)
|
@@ -50,7 +50,7 @@ module Pinnacle
|
|
50
50
|
)
|
51
51
|
end
|
52
52
|
|
53
|
-
# Serialize an instance of
|
53
|
+
# Serialize an instance of UpsertDlcCampaignOptInKeywords to a JSON object
|
54
54
|
#
|
55
55
|
# @return [String]
|
56
56
|
def to_json(*_args)
|
@@ -8,7 +8,7 @@ module Pinnacle
|
|
8
8
|
module Dlc
|
9
9
|
module Types
|
10
10
|
# Opt-out keyword settings.
|
11
|
-
class
|
11
|
+
class UpsertDlcCampaignOptOutKeywords
|
12
12
|
# @return [String] Response message for opt-out keywords.
|
13
13
|
attr_reader :message
|
14
14
|
# @return [Array<String>] Keywords that trigger opt-out.
|
@@ -24,7 +24,7 @@ module Pinnacle
|
|
24
24
|
# @param message [String] Response message for opt-out keywords.
|
25
25
|
# @param values [Array<String>] Keywords that trigger opt-out.
|
26
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
27
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptOutKeywords]
|
28
28
|
def initialize(message: OMIT, values: OMIT, additional_properties: nil)
|
29
29
|
@message = message if message != OMIT
|
30
30
|
@values = values if values != OMIT
|
@@ -34,10 +34,10 @@ module Pinnacle
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
# Deserialize a JSON object to an instance of
|
37
|
+
# Deserialize a JSON object to an instance of UpsertDlcCampaignOptOutKeywords
|
38
38
|
#
|
39
39
|
# @param json_object [String]
|
40
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
40
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptOutKeywords]
|
41
41
|
def self.from_json(json_object:)
|
42
42
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
43
43
|
parsed_json = JSON.parse(json_object)
|
@@ -50,7 +50,7 @@ module Pinnacle
|
|
50
50
|
)
|
51
51
|
end
|
52
52
|
|
53
|
-
# Serialize an instance of
|
53
|
+
# Serialize an instance of UpsertDlcCampaignOptOutKeywords to a JSON object
|
54
54
|
#
|
55
55
|
# @return [String]
|
56
56
|
def to_json(*_args)
|
data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_options.rb → upsert_dlc_campaign_options.rb}
RENAMED
@@ -8,7 +8,7 @@ module Pinnacle
|
|
8
8
|
module Dlc
|
9
9
|
module Types
|
10
10
|
# Campaign configuration options.
|
11
|
-
class
|
11
|
+
class UpsertDlcCampaignOptions
|
12
12
|
# @return [Boolean] Whether the campaign uses affiliate marketing.
|
13
13
|
attr_reader :affiliate_marketing
|
14
14
|
# @return [Boolean] Whether the campaign is age-gated.
|
@@ -36,7 +36,7 @@ module Pinnacle
|
|
36
36
|
# @param embedded_phone [Boolean] Whether messages include phone numbers.
|
37
37
|
# @param number_pooling [Boolean] Whether the campaign uses number pooling.
|
38
38
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
39
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
39
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptions]
|
40
40
|
def initialize(affiliate_marketing: OMIT, age_gated: OMIT, direct_lending: OMIT, embedded_link: OMIT,
|
41
41
|
embedded_phone: OMIT, number_pooling: OMIT, additional_properties: nil)
|
42
42
|
@affiliate_marketing = affiliate_marketing if affiliate_marketing != OMIT
|
@@ -58,10 +58,10 @@ module Pinnacle
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
# Deserialize a JSON object to an instance of
|
61
|
+
# Deserialize a JSON object to an instance of UpsertDlcCampaignOptions
|
62
62
|
#
|
63
63
|
# @param json_object [String]
|
64
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
64
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignOptions]
|
65
65
|
def self.from_json(json_object:)
|
66
66
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
67
67
|
parsed_json = JSON.parse(json_object)
|
@@ -82,7 +82,7 @@ module Pinnacle
|
|
82
82
|
)
|
83
83
|
end
|
84
84
|
|
85
|
-
# Serialize an instance of
|
85
|
+
# Serialize an instance of UpsertDlcCampaignOptions to a JSON object
|
86
86
|
#
|
87
87
|
# @return [String]
|
88
88
|
def to_json(*_args)
|
data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_use_case.rb → upsert_dlc_campaign_use_case.rb}
RENAMED
@@ -10,7 +10,7 @@ module Pinnacle
|
|
10
10
|
module Dlc
|
11
11
|
module Types
|
12
12
|
# Use case for the campaign.
|
13
|
-
class
|
13
|
+
class UpsertDlcCampaignUseCase
|
14
14
|
# @return [Array<Pinnacle::Types::SubUseCaseEnum>] Sub-use case categories.
|
15
15
|
attr_reader :sub
|
16
16
|
# @return [Pinnacle::Types::DlcCampaignUseCaseEnum]
|
@@ -26,7 +26,7 @@ module Pinnacle
|
|
26
26
|
# @param sub [Array<Pinnacle::Types::SubUseCaseEnum>] Sub-use case categories.
|
27
27
|
# @param value [Pinnacle::Types::DlcCampaignUseCaseEnum]
|
28
28
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
29
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
29
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignUseCase]
|
30
30
|
def initialize(sub: OMIT, value: OMIT, additional_properties: nil)
|
31
31
|
@sub = sub if sub != OMIT
|
32
32
|
@value = value if value != OMIT
|
@@ -36,10 +36,10 @@ module Pinnacle
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
# Deserialize a JSON object to an instance of
|
39
|
+
# Deserialize a JSON object to an instance of UpsertDlcCampaignUseCase
|
40
40
|
#
|
41
41
|
# @param json_object [String]
|
42
|
-
# @return [Pinnacle::Campaigns::Dlc::Types::
|
42
|
+
# @return [Pinnacle::Campaigns::Dlc::Types::UpsertDlcCampaignUseCase]
|
43
43
|
def self.from_json(json_object:)
|
44
44
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
45
45
|
parsed_json = JSON.parse(json_object)
|
@@ -52,7 +52,7 @@ module Pinnacle
|
|
52
52
|
)
|
53
53
|
end
|
54
54
|
|
55
|
-
# Serialize an instance of
|
55
|
+
# Serialize an instance of UpsertDlcCampaignUseCase to a JSON object
|
56
56
|
#
|
57
57
|
# @return [String]
|
58
58
|
def to_json(*_args)
|
@@ -5,11 +5,11 @@ require_relative "../../types/autofill_campaign_params"
|
|
5
5
|
require_relative "types/rcs_autofill_response"
|
6
6
|
require_relative "../../types/extended_rcs_campaign"
|
7
7
|
require_relative "../../types/campaign_submission_result"
|
8
|
-
require_relative "types/
|
9
|
-
require_relative "types/
|
10
|
-
require_relative "types/
|
11
|
-
require_relative "types/
|
12
|
-
require_relative "types/
|
8
|
+
require_relative "types/upsert_rcs_agent"
|
9
|
+
require_relative "types/upsert_rcs_links"
|
10
|
+
require_relative "types/upsert_rcs_opt_in"
|
11
|
+
require_relative "types/upsert_rcs_opt_out"
|
12
|
+
require_relative "types/upsert_rcs_use_case"
|
13
13
|
require_relative "../../types/validate_campaign_params"
|
14
14
|
require_relative "../../types/campaign_validation_result"
|
15
15
|
require "async"
|
@@ -126,28 +126,28 @@ module Pinnacle
|
|
126
126
|
# Create a new RCS campaign or updates an existing one. <br>
|
127
127
|
# Omit campaignId to create a campaign.
|
128
128
|
#
|
129
|
-
# @param agent [Hash] Create an agent for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::
|
129
|
+
# @param agent [Hash] Create an agent for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsAgent, as a Hash
|
130
130
|
# * :color (String)
|
131
131
|
# * :description (String)
|
132
|
-
# * :emails (Array<Pinnacle::Campaigns::Rcs::Types::
|
132
|
+
# * :emails (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentEmail>)
|
133
133
|
# * :hero_url (String)
|
134
134
|
# * :icon_url (String)
|
135
135
|
# * :name (String)
|
136
|
-
# * :phones (Array<Pinnacle::Campaigns::Rcs::Types::
|
137
|
-
# * :websites (Array<Pinnacle::Campaigns::Rcs::Types::
|
136
|
+
# * :phones (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentPhone>)
|
137
|
+
# * :websites (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentWebsite>)
|
138
138
|
# @param brand [Integer] Unique identifier for the brand.
|
139
139
|
# @param campaign_id [Integer] Unique identifier for the campaign.
|
140
140
|
# @param expected_agent_responses [Array<String>] List of what the agent might say to users (1-5 required).
|
141
|
-
# @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Rcs::Types::
|
141
|
+
# @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsLinks, as a Hash
|
142
142
|
# * :privacy_policy (String)
|
143
143
|
# * :terms_of_service (String)
|
144
|
-
# @param opt_in [Hash] Opt-in configuration.Request of type Pinnacle::Campaigns::Rcs::Types::
|
145
|
-
# * :
|
144
|
+
# @param opt_in [Hash] Opt-in configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptIn, as a Hash
|
145
|
+
# * :method_ (Pinnacle::Types::RcsCampaignOptInMethodEnum)
|
146
146
|
# * :terms_and_conditions (String)
|
147
|
-
# @param opt_out [Hash] Opt-out configuration.Request of type Pinnacle::Campaigns::Rcs::Types::
|
147
|
+
# @param opt_out [Hash] Opt-out configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptOut, as a Hash
|
148
148
|
# * :description (String)
|
149
149
|
# * :keywords (Array<String>)
|
150
|
-
# @param use_case [Hash] Use case classification for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::
|
150
|
+
# @param use_case [Hash] Use case classification for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsUseCase, as a Hash
|
151
151
|
# * :behavior (String)
|
152
152
|
# * :value (Pinnacle::Types::RcsCampaignUseCaseEnum)
|
153
153
|
# @param request_options [Pinnacle::RequestOptions]
|
@@ -163,7 +163,7 @@ module Pinnacle
|
|
163
163
|
# brand: 2,
|
164
164
|
# 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."],
|
165
165
|
# links: { privacy_policy: "https://www.trypinnacle.app/privacy", terms_of_service: "https://www.trypinnacle.app/terms" },
|
166
|
-
# opt_in: {
|
166
|
+
# opt_in: { method_: WEBSITE, terms_and_conditions: "Would you like to subscribe to Pinnacle?" },
|
167
167
|
# opt_out: { description: "Reply STOP to opt-out anytime.", keywords: ["STOP", "UNSUBSCRIBE", "END"] },
|
168
168
|
# use_case: { behavior: "Acts as a customer service representative.", value: OTHER }
|
169
169
|
# )
|
@@ -346,28 +346,28 @@ module Pinnacle
|
|
346
346
|
# Create a new RCS campaign or updates an existing one. <br>
|
347
347
|
# Omit campaignId to create a campaign.
|
348
348
|
#
|
349
|
-
# @param agent [Hash] Create an agent for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::
|
349
|
+
# @param agent [Hash] Create an agent for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsAgent, as a Hash
|
350
350
|
# * :color (String)
|
351
351
|
# * :description (String)
|
352
|
-
# * :emails (Array<Pinnacle::Campaigns::Rcs::Types::
|
352
|
+
# * :emails (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentEmail>)
|
353
353
|
# * :hero_url (String)
|
354
354
|
# * :icon_url (String)
|
355
355
|
# * :name (String)
|
356
|
-
# * :phones (Array<Pinnacle::Campaigns::Rcs::Types::
|
357
|
-
# * :websites (Array<Pinnacle::Campaigns::Rcs::Types::
|
356
|
+
# * :phones (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentPhone>)
|
357
|
+
# * :websites (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentWebsite>)
|
358
358
|
# @param brand [Integer] Unique identifier for the brand.
|
359
359
|
# @param campaign_id [Integer] Unique identifier for the campaign.
|
360
360
|
# @param expected_agent_responses [Array<String>] List of what the agent might say to users (1-5 required).
|
361
|
-
# @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Rcs::Types::
|
361
|
+
# @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsLinks, as a Hash
|
362
362
|
# * :privacy_policy (String)
|
363
363
|
# * :terms_of_service (String)
|
364
|
-
# @param opt_in [Hash] Opt-in configuration.Request of type Pinnacle::Campaigns::Rcs::Types::
|
365
|
-
# * :
|
364
|
+
# @param opt_in [Hash] Opt-in configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptIn, as a Hash
|
365
|
+
# * :method_ (Pinnacle::Types::RcsCampaignOptInMethodEnum)
|
366
366
|
# * :terms_and_conditions (String)
|
367
|
-
# @param opt_out [Hash] Opt-out configuration.Request of type Pinnacle::Campaigns::Rcs::Types::
|
367
|
+
# @param opt_out [Hash] Opt-out configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptOut, as a Hash
|
368
368
|
# * :description (String)
|
369
369
|
# * :keywords (Array<String>)
|
370
|
-
# @param use_case [Hash] Use case classification for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::
|
370
|
+
# @param use_case [Hash] Use case classification for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsUseCase, as a Hash
|
371
371
|
# * :behavior (String)
|
372
372
|
# * :value (Pinnacle::Types::RcsCampaignUseCaseEnum)
|
373
373
|
# @param request_options [Pinnacle::RequestOptions]
|
@@ -383,7 +383,7 @@ module Pinnacle
|
|
383
383
|
# brand: 2,
|
384
384
|
# 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."],
|
385
385
|
# links: { privacy_policy: "https://www.trypinnacle.app/privacy", terms_of_service: "https://www.trypinnacle.app/terms" },
|
386
|
-
# opt_in: {
|
386
|
+
# opt_in: { method_: WEBSITE, terms_and_conditions: "Would you like to subscribe to Pinnacle?" },
|
387
387
|
# opt_out: { description: "Reply STOP to opt-out anytime.", keywords: ["STOP", "UNSUBSCRIBE", "END"] },
|
388
388
|
# use_case: { behavior: "Acts as a customer service representative.", value: OTHER }
|
389
389
|
# )
|