rcs 2.0.1 → 2.0.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/audiences/client.rb +347 -0
- data/lib/rcs/audiences/contacts/client.rb +173 -0
- data/lib/rcs/audiences/types/audiences_get_response.rb +58 -0
- data/lib/rcs/brands/client.rb +19 -6
- data/lib/rcs/campaigns/dlc/client.rb +12 -12
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_campaign_help_keywords.rb → dlc_campaign_help_keywords.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_campaign_keywords.rb → dlc_campaign_keywords.rb} +20 -20
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_campaign_links.rb → dlc_campaign_links.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_campaign_opt_in_keywords.rb → dlc_campaign_opt_in_keywords.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_campaign_opt_out_keywords.rb → dlc_campaign_opt_out_keywords.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_campaign_options.rb → dlc_campaign_options.rb} +5 -5
- data/lib/rcs/campaigns/dlc/types/{upsert_dlc_campaign_use_case.rb → dlc_campaign_use_case.rb} +5 -5
- data/lib/rcs/campaigns/rcs/client.rb +144 -51
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_agent.rb → rcs_agent.rb} +15 -9
- data/lib/rcs/campaigns/rcs/types/rcs_autofill_response.rb +122 -43
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_opt_out.rb → rcs_campaign_help_keywords.rb} +20 -19
- data/lib/rcs/campaigns/rcs/types/rcs_campaign_keywords.rb +98 -0
- data/lib/rcs/campaigns/rcs/types/rcs_campaign_opt_in_keywords.rb +87 -0
- data/lib/rcs/campaigns/rcs/types/rcs_campaign_opt_out_keywords.rb +83 -0
- data/lib/rcs/campaigns/rcs/types/rcs_campaign_traffic.rb +76 -0
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_links.rb → rcs_links.rb} +5 -5
- data/lib/rcs/campaigns/rcs/types/{upsert_rcs_use_case.rb → rcs_use_case.rb} +7 -7
- data/lib/rcs/campaigns/toll_free/client.rb +53 -10
- data/lib/rcs/campaigns/toll_free/types/toll_free_autofill_response.rb +54 -12
- data/lib/rcs/campaigns/toll_free/types/toll_free_campaign_help_keywords.rb +66 -0
- data/lib/rcs/campaigns/toll_free/types/toll_free_campaign_keywords.rb +86 -0
- data/lib/rcs/campaigns/toll_free/types/toll_free_campaign_links.rb +74 -0
- data/lib/rcs/campaigns/toll_free/types/{upsert_toll_free_schema_opt_in.rb → toll_free_campaign_opt_in.rb} +5 -5
- data/lib/rcs/campaigns/toll_free/types/toll_free_campaign_opt_in_keywords.rb +78 -0
- data/lib/rcs/campaigns/toll_free/types/toll_free_campaign_options.rb +64 -0
- data/lib/rcs/campaigns/toll_free/types/{upsert_toll_free_schema_use_case.rb → toll_free_campaign_use_case.rb} +5 -5
- data/lib/rcs/messages/blast/client.rb +419 -0
- data/lib/rcs/messages/blast/types/blast_mms_options.rb +82 -0
- data/lib/rcs/messages/blast/types/blast_mms_response.rb +60 -0
- data/lib/rcs/messages/blast/types/blast_rcs_options.rb +118 -0
- data/lib/rcs/messages/blast/types/blast_rcs_request_options_standalone_card.rb +82 -0
- data/lib/rcs/messages/blast/types/blast_rcs_request_options_standalone_card_image_alignment.rb +16 -0
- data/lib/rcs/messages/blast/types/blast_rcs_request_options_standalone_card_orientation.rb +15 -0
- data/lib/rcs/messages/blast/types/blast_rcs_response.rb +60 -0
- data/lib/rcs/messages/blast/types/blast_sms_options.rb +70 -0
- data/lib/rcs/messages/blast/types/blast_sms_response.rb +60 -0
- data/lib/rcs/messages/mms/client.rb +6 -6
- data/lib/rcs/messages/mms/types/mms_send_response.rb +4 -4
- data/lib/rcs/messages/rcs/client.rb +7 -7
- data/lib/rcs/messages/rcs/types/{rcs_send_response.rb → send_rich_message_response.rb} +11 -11
- data/lib/rcs/messages/schedule/client.rb +103 -0
- data/lib/rcs/messages/sms/client.rb +6 -6
- data/lib/rcs/messages/sms/types/sms_send_response.rb +4 -4
- data/lib/rcs/types/audience_count_only.rb +87 -0
- data/lib/rcs/types/audience_with_pagination.rb +114 -0
- data/lib/rcs/types/{rcs_base.rb → base_rich_message.rb} +10 -10
- data/lib/rcs/types/blast_details.rb +110 -0
- data/lib/rcs/types/company_entity_type_enum.rb +14 -0
- data/lib/rcs/types/delete_audience_response.rb +57 -0
- data/lib/rcs/types/dlc_campaign_with_extended_brand_and_status.rb +30 -2
- data/lib/rcs/types/dlc_with_extended_brand_and_status_mno_brand_tier.rb +15 -0
- data/lib/rcs/types/dlc_with_extended_brand_and_status_mno_tcr_tier.rb +22 -0
- data/lib/rcs/types/extended_brand.rb +10 -1
- data/lib/rcs/types/extended_brand_with_vetting.rb +10 -1
- data/lib/rcs/types/extended_rcs_campaign.rb +122 -51
- data/lib/rcs/types/message_schedule.rb +52 -24
- data/lib/rcs/types/message_status_enum.rb +1 -0
- data/lib/rcs/types/optional_brand_info.rb +10 -1
- data/lib/rcs/types/pagination.rb +81 -0
- data/lib/rcs/types/rcs_campaign.rb +122 -43
- data/lib/rcs/types/rcs_campaign_schema_extra_keywords.rb +94 -0
- data/lib/rcs/types/{rcs_campaign_schema_extra_opt_out.rb → rcs_campaign_schema_extra_keywords_help.rb} +18 -17
- data/lib/rcs/types/rcs_campaign_schema_extra_keywords_opt_in.rb +73 -0
- data/lib/rcs/types/rcs_campaign_schema_extra_keywords_opt_out.rb +73 -0
- data/lib/rcs/types/rcs_campaign_schema_extra_traffic.rb +72 -0
- data/lib/rcs/types/rcs_campaign_schema_extra_use_case.rb +2 -2
- data/lib/rcs/types/rcs_campaign_schema_keywords.rb +94 -0
- data/lib/rcs/types/{rcs_campaign_schema_opt_out.rb → rcs_campaign_schema_keywords_help.rb} +18 -17
- data/lib/rcs/types/rcs_campaign_schema_keywords_opt_in.rb +73 -0
- data/lib/rcs/types/rcs_campaign_schema_keywords_opt_out.rb +73 -0
- data/lib/rcs/types/rcs_campaign_schema_traffic.rb +72 -0
- data/lib/rcs/types/rcs_campaign_schema_use_case.rb +2 -2
- data/lib/rcs/types/rcs_cards_content_cards_item.rb +4 -2
- data/lib/rcs/types/rcs_content.rb +4 -4
- data/lib/rcs/types/rcs_messaging_type_enum.rb +17 -0
- data/lib/rcs/types/rcs_validate_content.rb +8 -8
- data/lib/rcs/types/rcs_validation_result.rb +9 -2
- data/lib/rcs/types/{rcs_cards_cards_item.rb → rich_card.rb} +9 -7
- data/lib/rcs/types/{rcs_cards.rb → rich_cards.rb} +9 -9
- data/lib/rcs/types/rich_cards_message.rb +9 -9
- data/lib/rcs/types/rich_media_message.rb +5 -5
- data/lib/rcs/types/{send_rcs_card_options_standalone_card.rb → rich_standalone_card_options.rb} +9 -7
- data/lib/rcs/types/{rcs_text_content.rb → rich_text.rb} +5 -5
- data/lib/rcs/types/rich_text_message.rb +5 -5
- data/lib/rcs/types/schedule_cancel_result.rb +58 -0
- data/lib/rcs/types/scheduled_blast_details.rb +76 -0
- data/lib/rcs/types/scheduled_blast_response_config.rb +89 -0
- data/lib/rcs/types/{scheduled_messaage.rb → scheduled_message.rb} +5 -5
- data/lib/rcs/types/{send_rcs_card_options.rb → send_rich_cards_options.rb} +18 -14
- data/lib/rcs/types/{options.rb → send_rich_message_options.rb} +5 -5
- data/lib/rcs/types/sent_mms_details.rb +18 -4
- data/lib/rcs/types/{sent_rcs_details.rb → sent_rich_message.rb} +5 -5
- data/lib/rcs/types/toll_free_campaign.rb +54 -12
- data/lib/rcs/types/toll_free_campaign_schema_keywords.rb +82 -0
- data/lib/rcs/types/toll_free_campaign_schema_keywords_help.rb +62 -0
- data/lib/rcs/types/toll_free_campaign_schema_keywords_opt_in.rb +74 -0
- data/lib/rcs/types/toll_free_campaign_schema_links.rb +70 -0
- data/lib/rcs/types/{upsert_toll_free_campaign_opt_in.rb → toll_free_campaign_schema_opt_in.rb} +5 -5
- data/lib/rcs/types/toll_free_campaign_schema_options.rb +60 -0
- data/lib/rcs/types/{upsert_toll_free_campaign_use_case.rb → toll_free_campaign_schema_use_case.rb} +5 -5
- data/lib/rcs/types/toll_free_campaign_with_extended_brand_and_status.rb +54 -12
- data/lib/rcs.rb +7 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +71 -32
- metadata +77 -34
- data/lib/rcs/campaigns/rcs/types/upsert_rcs_opt_in.rb +0 -75
- data/lib/rcs/types/rcs_base_options.rb +0 -111
- data/lib/rcs/types/rcs_campaign_opt_in_method_enum.rb +0 -15
- data/lib/rcs/types/rcs_campaign_schema_extra_opt_in.rb +0 -71
- data/lib/rcs/types/rcs_campaign_schema_opt_in.rb +0 -71
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rcs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: async-http-faraday
|
|
@@ -99,45 +99,67 @@ files:
|
|
|
99
99
|
- lib/environment.rb
|
|
100
100
|
- lib/gemconfig.rb
|
|
101
101
|
- lib/rcs.rb
|
|
102
|
+
- lib/rcs/audiences/client.rb
|
|
103
|
+
- lib/rcs/audiences/contacts/client.rb
|
|
104
|
+
- lib/rcs/audiences/types/audiences_get_response.rb
|
|
102
105
|
- lib/rcs/brands/client.rb
|
|
103
106
|
- lib/rcs/brands/types/autofill_brand_options.rb
|
|
104
107
|
- lib/rcs/brands/types/brand_contact.rb
|
|
105
108
|
- lib/rcs/campaigns/client.rb
|
|
106
109
|
- lib/rcs/campaigns/dlc/client.rb
|
|
107
|
-
- lib/rcs/campaigns/dlc/types/
|
|
108
|
-
- lib/rcs/campaigns/dlc/types/
|
|
109
|
-
- lib/rcs/campaigns/dlc/types/
|
|
110
|
-
- lib/rcs/campaigns/dlc/types/
|
|
111
|
-
- lib/rcs/campaigns/dlc/types/
|
|
112
|
-
- lib/rcs/campaigns/dlc/types/
|
|
113
|
-
- lib/rcs/campaigns/dlc/types/
|
|
110
|
+
- lib/rcs/campaigns/dlc/types/dlc_campaign_help_keywords.rb
|
|
111
|
+
- lib/rcs/campaigns/dlc/types/dlc_campaign_keywords.rb
|
|
112
|
+
- lib/rcs/campaigns/dlc/types/dlc_campaign_links.rb
|
|
113
|
+
- lib/rcs/campaigns/dlc/types/dlc_campaign_opt_in_keywords.rb
|
|
114
|
+
- lib/rcs/campaigns/dlc/types/dlc_campaign_opt_out_keywords.rb
|
|
115
|
+
- lib/rcs/campaigns/dlc/types/dlc_campaign_options.rb
|
|
116
|
+
- lib/rcs/campaigns/dlc/types/dlc_campaign_use_case.rb
|
|
114
117
|
- lib/rcs/campaigns/rcs/client.rb
|
|
118
|
+
- lib/rcs/campaigns/rcs/types/rcs_agent.rb
|
|
115
119
|
- lib/rcs/campaigns/rcs/types/rcs_agent_email.rb
|
|
116
120
|
- lib/rcs/campaigns/rcs/types/rcs_agent_phone.rb
|
|
117
121
|
- lib/rcs/campaigns/rcs/types/rcs_agent_website.rb
|
|
118
122
|
- lib/rcs/campaigns/rcs/types/rcs_autofill_response.rb
|
|
119
|
-
- lib/rcs/campaigns/rcs/types/
|
|
120
|
-
- lib/rcs/campaigns/rcs/types/
|
|
121
|
-
- lib/rcs/campaigns/rcs/types/
|
|
122
|
-
- lib/rcs/campaigns/rcs/types/
|
|
123
|
-
- lib/rcs/campaigns/rcs/types/
|
|
123
|
+
- lib/rcs/campaigns/rcs/types/rcs_campaign_help_keywords.rb
|
|
124
|
+
- lib/rcs/campaigns/rcs/types/rcs_campaign_keywords.rb
|
|
125
|
+
- lib/rcs/campaigns/rcs/types/rcs_campaign_opt_in_keywords.rb
|
|
126
|
+
- lib/rcs/campaigns/rcs/types/rcs_campaign_opt_out_keywords.rb
|
|
127
|
+
- lib/rcs/campaigns/rcs/types/rcs_campaign_traffic.rb
|
|
128
|
+
- lib/rcs/campaigns/rcs/types/rcs_links.rb
|
|
129
|
+
- lib/rcs/campaigns/rcs/types/rcs_use_case.rb
|
|
124
130
|
- lib/rcs/campaigns/toll_free/client.rb
|
|
125
131
|
- lib/rcs/campaigns/toll_free/types/toll_free_autofill_response.rb
|
|
126
|
-
- lib/rcs/campaigns/toll_free/types/
|
|
127
|
-
- lib/rcs/campaigns/toll_free/types/
|
|
132
|
+
- lib/rcs/campaigns/toll_free/types/toll_free_campaign_help_keywords.rb
|
|
133
|
+
- lib/rcs/campaigns/toll_free/types/toll_free_campaign_keywords.rb
|
|
134
|
+
- lib/rcs/campaigns/toll_free/types/toll_free_campaign_links.rb
|
|
135
|
+
- lib/rcs/campaigns/toll_free/types/toll_free_campaign_opt_in.rb
|
|
136
|
+
- lib/rcs/campaigns/toll_free/types/toll_free_campaign_opt_in_keywords.rb
|
|
137
|
+
- lib/rcs/campaigns/toll_free/types/toll_free_campaign_options.rb
|
|
138
|
+
- lib/rcs/campaigns/toll_free/types/toll_free_campaign_use_case.rb
|
|
128
139
|
- lib/rcs/contacts/client.rb
|
|
129
140
|
- lib/rcs/conversations/client.rb
|
|
130
141
|
- lib/rcs/conversations/types/conversations_list_messages_request_direction.rb
|
|
131
142
|
- lib/rcs/conversations/types/conversations_list_messages_request_sort_order.rb
|
|
132
143
|
- lib/rcs/conversations/types/conversations_list_messages_request_status.rb
|
|
133
144
|
- lib/rcs/conversations/types/conversations_list_messages_request_type.rb
|
|
145
|
+
- lib/rcs/messages/blast/client.rb
|
|
146
|
+
- lib/rcs/messages/blast/types/blast_mms_options.rb
|
|
147
|
+
- lib/rcs/messages/blast/types/blast_mms_response.rb
|
|
148
|
+
- lib/rcs/messages/blast/types/blast_rcs_options.rb
|
|
149
|
+
- lib/rcs/messages/blast/types/blast_rcs_request_options_standalone_card.rb
|
|
150
|
+
- lib/rcs/messages/blast/types/blast_rcs_request_options_standalone_card_image_alignment.rb
|
|
151
|
+
- lib/rcs/messages/blast/types/blast_rcs_request_options_standalone_card_orientation.rb
|
|
152
|
+
- lib/rcs/messages/blast/types/blast_rcs_response.rb
|
|
153
|
+
- lib/rcs/messages/blast/types/blast_sms_options.rb
|
|
154
|
+
- lib/rcs/messages/blast/types/blast_sms_response.rb
|
|
134
155
|
- lib/rcs/messages/client.rb
|
|
135
156
|
- lib/rcs/messages/mms/client.rb
|
|
136
157
|
- lib/rcs/messages/mms/types/mms_send_response.rb
|
|
137
158
|
- lib/rcs/messages/mms/types/send_mms_options.rb
|
|
138
159
|
- lib/rcs/messages/rcs/client.rb
|
|
139
|
-
- lib/rcs/messages/rcs/types/
|
|
160
|
+
- lib/rcs/messages/rcs/types/send_rich_message_response.rb
|
|
140
161
|
- lib/rcs/messages/rcs/types/send_typing_indicator_schema_options.rb
|
|
162
|
+
- lib/rcs/messages/schedule/client.rb
|
|
141
163
|
- lib/rcs/messages/sms/client.rb
|
|
142
164
|
- lib/rcs/messages/sms/types/send_sms_options.rb
|
|
143
165
|
- lib/rcs/messages/sms/types/sms_send_response.rb
|
|
@@ -175,6 +197,8 @@ files:
|
|
|
175
197
|
- lib/rcs/types/attach_webhook_params.rb
|
|
176
198
|
- lib/rcs/types/attach_webhook_response_webhook.rb
|
|
177
199
|
- lib/rcs/types/attached_phone_number_result.rb
|
|
200
|
+
- lib/rcs/types/audience_count_only.rb
|
|
201
|
+
- lib/rcs/types/audience_with_pagination.rb
|
|
178
202
|
- lib/rcs/types/autofill_campaign_params.rb
|
|
179
203
|
- lib/rcs/types/autofill_dlc_campaign_response.rb
|
|
180
204
|
- lib/rcs/types/autofill_dlc_response_keywords.rb
|
|
@@ -185,10 +209,12 @@ files:
|
|
|
185
209
|
- lib/rcs/types/autofill_dlc_response_options.rb
|
|
186
210
|
- lib/rcs/types/autofill_dlc_response_use_case.rb
|
|
187
211
|
- lib/rcs/types/bad_request_error_body.rb
|
|
212
|
+
- lib/rcs/types/base_rich_message.rb
|
|
188
213
|
- lib/rcs/types/basic_phone_information.rb
|
|
189
214
|
- lib/rcs/types/basic_phone_information_contact.rb
|
|
190
215
|
- lib/rcs/types/basic_phone_information_location.rb
|
|
191
216
|
- lib/rcs/types/basic_phone_information_location_country.rb
|
|
217
|
+
- lib/rcs/types/blast_details.rb
|
|
192
218
|
- lib/rcs/types/brand_status.rb
|
|
193
219
|
- lib/rcs/types/brand_status_enum.rb
|
|
194
220
|
- lib/rcs/types/button_clicked.rb
|
|
@@ -202,6 +228,7 @@ files:
|
|
|
202
228
|
- lib/rcs/types/campaign_submission_result.rb
|
|
203
229
|
- lib/rcs/types/campaign_validation_response_errors_item.rb
|
|
204
230
|
- lib/rcs/types/campaign_validation_result.rb
|
|
231
|
+
- lib/rcs/types/company_entity_type_enum.rb
|
|
205
232
|
- lib/rcs/types/company_sector_enum.rb
|
|
206
233
|
- lib/rcs/types/company_type_enum.rb
|
|
207
234
|
- lib/rcs/types/configured_webhook.rb
|
|
@@ -215,6 +242,7 @@ files:
|
|
|
215
242
|
- lib/rcs/types/conversation_sender.rb
|
|
216
243
|
- lib/rcs/types/create_and_attach_webhook_by_url_params.rb
|
|
217
244
|
- lib/rcs/types/create_url_options.rb
|
|
245
|
+
- lib/rcs/types/delete_audience_response.rb
|
|
218
246
|
- lib/rcs/types/detached_phone_number_result.rb
|
|
219
247
|
- lib/rcs/types/detached_webhook_info.rb
|
|
220
248
|
- lib/rcs/types/detailed_phone_number_enum.rb
|
|
@@ -227,6 +255,8 @@ files:
|
|
|
227
255
|
- lib/rcs/types/dlc_with_extended_brand_and_status_keywords_opt_in.rb
|
|
228
256
|
- lib/rcs/types/dlc_with_extended_brand_and_status_keywords_opt_out.rb
|
|
229
257
|
- lib/rcs/types/dlc_with_extended_brand_and_status_links.rb
|
|
258
|
+
- lib/rcs/types/dlc_with_extended_brand_and_status_mno_brand_tier.rb
|
|
259
|
+
- lib/rcs/types/dlc_with_extended_brand_and_status_mno_tcr_tier.rb
|
|
230
260
|
- lib/rcs/types/dlc_with_extended_brand_and_status_options.rb
|
|
231
261
|
- lib/rcs/types/dlc_with_extended_brand_and_status_use_case.rb
|
|
232
262
|
- lib/rcs/types/enhanced_contact.rb
|
|
@@ -274,7 +304,7 @@ files:
|
|
|
274
304
|
- lib/rcs/types/optional_brand_info.rb
|
|
275
305
|
- lib/rcs/types/optional_contact.rb
|
|
276
306
|
- lib/rcs/types/optional_contacts.rb
|
|
277
|
-
- lib/rcs/types/
|
|
307
|
+
- lib/rcs/types/pagination.rb
|
|
278
308
|
- lib/rcs/types/phone.rb
|
|
279
309
|
- lib/rcs/types/phone_capabilities.rb
|
|
280
310
|
- lib/rcs/types/phone_enum.rb
|
|
@@ -295,8 +325,6 @@ files:
|
|
|
295
325
|
- lib/rcs/types/pinnacle_url_config.rb
|
|
296
326
|
- lib/rcs/types/profile_status_enum.rb
|
|
297
327
|
- lib/rcs/types/purchased_number.rb
|
|
298
|
-
- lib/rcs/types/rcs_base.rb
|
|
299
|
-
- lib/rcs/types/rcs_base_options.rb
|
|
300
328
|
- lib/rcs/types/rcs_button_call.rb
|
|
301
329
|
- lib/rcs/types/rcs_button_open_url.rb
|
|
302
330
|
- lib/rcs/types/rcs_button_open_url_webview_mode.rb
|
|
@@ -306,7 +334,6 @@ files:
|
|
|
306
334
|
- lib/rcs/types/rcs_button_send_location_lat_long.rb
|
|
307
335
|
- lib/rcs/types/rcs_button_trigger.rb
|
|
308
336
|
- lib/rcs/types/rcs_campaign.rb
|
|
309
|
-
- lib/rcs/types/rcs_campaign_opt_in_method_enum.rb
|
|
310
337
|
- lib/rcs/types/rcs_campaign_schema_agent.rb
|
|
311
338
|
- lib/rcs/types/rcs_campaign_schema_agent_emails_item.rb
|
|
312
339
|
- lib/rcs/types/rcs_campaign_schema_agent_phones_item.rb
|
|
@@ -315,13 +342,19 @@ files:
|
|
|
315
342
|
- lib/rcs/types/rcs_campaign_schema_extra_agent_emails_item.rb
|
|
316
343
|
- lib/rcs/types/rcs_campaign_schema_extra_agent_phones_item.rb
|
|
317
344
|
- lib/rcs/types/rcs_campaign_schema_extra_agent_websites_item.rb
|
|
345
|
+
- lib/rcs/types/rcs_campaign_schema_extra_keywords.rb
|
|
346
|
+
- lib/rcs/types/rcs_campaign_schema_extra_keywords_help.rb
|
|
347
|
+
- lib/rcs/types/rcs_campaign_schema_extra_keywords_opt_in.rb
|
|
348
|
+
- lib/rcs/types/rcs_campaign_schema_extra_keywords_opt_out.rb
|
|
318
349
|
- lib/rcs/types/rcs_campaign_schema_extra_links.rb
|
|
319
|
-
- lib/rcs/types/
|
|
320
|
-
- lib/rcs/types/rcs_campaign_schema_extra_opt_out.rb
|
|
350
|
+
- lib/rcs/types/rcs_campaign_schema_extra_traffic.rb
|
|
321
351
|
- lib/rcs/types/rcs_campaign_schema_extra_use_case.rb
|
|
352
|
+
- lib/rcs/types/rcs_campaign_schema_keywords.rb
|
|
353
|
+
- lib/rcs/types/rcs_campaign_schema_keywords_help.rb
|
|
354
|
+
- lib/rcs/types/rcs_campaign_schema_keywords_opt_in.rb
|
|
355
|
+
- lib/rcs/types/rcs_campaign_schema_keywords_opt_out.rb
|
|
322
356
|
- lib/rcs/types/rcs_campaign_schema_links.rb
|
|
323
|
-
- lib/rcs/types/
|
|
324
|
-
- lib/rcs/types/rcs_campaign_schema_opt_out.rb
|
|
357
|
+
- lib/rcs/types/rcs_campaign_schema_traffic.rb
|
|
325
358
|
- lib/rcs/types/rcs_campaign_schema_use_case.rb
|
|
326
359
|
- lib/rcs/types/rcs_campaign_status.rb
|
|
327
360
|
- lib/rcs/types/rcs_campaign_use_case_enum.rb
|
|
@@ -329,15 +362,13 @@ files:
|
|
|
329
362
|
- lib/rcs/types/rcs_capability.rb
|
|
330
363
|
- lib/rcs/types/rcs_capability_actions.rb
|
|
331
364
|
- lib/rcs/types/rcs_capability_cards.rb
|
|
332
|
-
- lib/rcs/types/rcs_cards.rb
|
|
333
|
-
- lib/rcs/types/rcs_cards_cards_item.rb
|
|
334
365
|
- lib/rcs/types/rcs_cards_content.rb
|
|
335
366
|
- lib/rcs/types/rcs_cards_content_cards_item.rb
|
|
336
367
|
- lib/rcs/types/rcs_content.rb
|
|
337
368
|
- lib/rcs/types/rcs_link_result.rb
|
|
338
369
|
- lib/rcs/types/rcs_media_content.rb
|
|
339
370
|
- lib/rcs/types/rcs_media_details_content.rb
|
|
340
|
-
- lib/rcs/types/
|
|
371
|
+
- lib/rcs/types/rcs_messaging_type_enum.rb
|
|
341
372
|
- lib/rcs/types/rcs_validate_content.rb
|
|
342
373
|
- lib/rcs/types/rcs_validate_content_media.rb
|
|
343
374
|
- lib/rcs/types/rcs_validation_result.rb
|
|
@@ -345,21 +376,28 @@ files:
|
|
|
345
376
|
- lib/rcs/types/reaction_result.rb
|
|
346
377
|
- lib/rcs/types/refreshed_file.rb
|
|
347
378
|
- lib/rcs/types/rich_button.rb
|
|
379
|
+
- lib/rcs/types/rich_card.rb
|
|
380
|
+
- lib/rcs/types/rich_cards.rb
|
|
348
381
|
- lib/rcs/types/rich_cards_message.rb
|
|
349
382
|
- lib/rcs/types/rich_media_message.rb
|
|
350
383
|
- lib/rcs/types/rich_message.rb
|
|
384
|
+
- lib/rcs/types/rich_standalone_card_options.rb
|
|
385
|
+
- lib/rcs/types/rich_text.rb
|
|
351
386
|
- lib/rcs/types/rich_text_message.rb
|
|
352
|
-
- lib/rcs/types/
|
|
387
|
+
- lib/rcs/types/schedule_cancel_result.rb
|
|
388
|
+
- lib/rcs/types/scheduled_blast_details.rb
|
|
389
|
+
- lib/rcs/types/scheduled_blast_response_config.rb
|
|
390
|
+
- lib/rcs/types/scheduled_message.rb
|
|
353
391
|
- lib/rcs/types/scheduled_send_response_config.rb
|
|
354
|
-
- lib/rcs/types/send_rcs_card_options.rb
|
|
355
|
-
- lib/rcs/types/send_rcs_card_options_standalone_card.rb
|
|
356
392
|
- lib/rcs/types/send_rcs_card_options_standalone_card_image_alignment.rb
|
|
357
393
|
- lib/rcs/types/send_rcs_card_options_standalone_card_orientation.rb
|
|
394
|
+
- lib/rcs/types/send_rich_cards_options.rb
|
|
395
|
+
- lib/rcs/types/send_rich_message_options.rb
|
|
358
396
|
- lib/rcs/types/send_sms_response_segments.rb
|
|
359
397
|
- lib/rcs/types/send_sms_response_segments_encoding.rb
|
|
360
398
|
- lib/rcs/types/send_typing_indicator_response.rb
|
|
361
399
|
- lib/rcs/types/sent_mms_details.rb
|
|
362
|
-
- lib/rcs/types/
|
|
400
|
+
- lib/rcs/types/sent_rich_message.rb
|
|
363
401
|
- lib/rcs/types/sent_sms_details.rb
|
|
364
402
|
- lib/rcs/types/shortened_url.rb
|
|
365
403
|
- lib/rcs/types/shortened_url_with_click_data.rb
|
|
@@ -373,6 +411,13 @@ files:
|
|
|
373
411
|
- lib/rcs/types/submission_results.rb
|
|
374
412
|
- lib/rcs/types/successful_conversation_update.rb
|
|
375
413
|
- lib/rcs/types/toll_free_campaign.rb
|
|
414
|
+
- lib/rcs/types/toll_free_campaign_schema_keywords.rb
|
|
415
|
+
- lib/rcs/types/toll_free_campaign_schema_keywords_help.rb
|
|
416
|
+
- lib/rcs/types/toll_free_campaign_schema_keywords_opt_in.rb
|
|
417
|
+
- lib/rcs/types/toll_free_campaign_schema_links.rb
|
|
418
|
+
- lib/rcs/types/toll_free_campaign_schema_opt_in.rb
|
|
419
|
+
- lib/rcs/types/toll_free_campaign_schema_options.rb
|
|
420
|
+
- lib/rcs/types/toll_free_campaign_schema_use_case.rb
|
|
376
421
|
- lib/rcs/types/toll_free_campaign_status.rb
|
|
377
422
|
- lib/rcs/types/toll_free_campaign_use_case_enum.rb
|
|
378
423
|
- lib/rcs/types/toll_free_campaign_with_extended_brand_and_status.rb
|
|
@@ -381,8 +426,6 @@ files:
|
|
|
381
426
|
- lib/rcs/types/updated_contact_id.rb
|
|
382
427
|
- lib/rcs/types/upload_results.rb
|
|
383
428
|
- lib/rcs/types/upsert_contact.rb
|
|
384
|
-
- lib/rcs/types/upsert_toll_free_campaign_opt_in.rb
|
|
385
|
-
- lib/rcs/types/upsert_toll_free_campaign_use_case.rb
|
|
386
429
|
- lib/rcs/types/user_event.rb
|
|
387
430
|
- lib/rcs/types/user_event_conversation.rb
|
|
388
431
|
- lib/rcs/types/v_card_address_schema_type_item.rb
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "../../../types/rcs_campaign_opt_in_method_enum"
|
|
4
|
-
require "ostruct"
|
|
5
|
-
require "json"
|
|
6
|
-
|
|
7
|
-
module Pinnacle
|
|
8
|
-
module Campaigns
|
|
9
|
-
module Rcs
|
|
10
|
-
module Types
|
|
11
|
-
# Opt-in configuration.
|
|
12
|
-
class UpsertRcsOptIn
|
|
13
|
-
# @return [Pinnacle::Types::RcsCampaignOptInMethodEnum]
|
|
14
|
-
attr_reader :method_
|
|
15
|
-
# @return [String] Message shown to users explaining what they are agreeing to when opting in.
|
|
16
|
-
attr_reader :terms_and_conditions
|
|
17
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
18
|
-
attr_reader :additional_properties
|
|
19
|
-
# @return [Object]
|
|
20
|
-
attr_reader :_field_set
|
|
21
|
-
protected :_field_set
|
|
22
|
-
|
|
23
|
-
OMIT = Object.new
|
|
24
|
-
|
|
25
|
-
# @param method_ [Pinnacle::Types::RcsCampaignOptInMethodEnum]
|
|
26
|
-
# @param terms_and_conditions [String] Message shown to users explaining what they are agreeing to when opting in.
|
|
27
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
28
|
-
# @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptIn]
|
|
29
|
-
def initialize(method_: OMIT, terms_and_conditions: OMIT, additional_properties: nil)
|
|
30
|
-
@method_ = method_ if method_ != OMIT
|
|
31
|
-
@terms_and_conditions = terms_and_conditions if terms_and_conditions != OMIT
|
|
32
|
-
@additional_properties = additional_properties
|
|
33
|
-
@_field_set = { "method": method_, "termsAndConditions": terms_and_conditions }.reject do |_k, v|
|
|
34
|
-
v == OMIT
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
# Deserialize a JSON object to an instance of UpsertRcsOptIn
|
|
39
|
-
#
|
|
40
|
-
# @param json_object [String]
|
|
41
|
-
# @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptIn]
|
|
42
|
-
def self.from_json(json_object:)
|
|
43
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
44
|
-
parsed_json = JSON.parse(json_object)
|
|
45
|
-
method_ = parsed_json["method"]
|
|
46
|
-
terms_and_conditions = parsed_json["termsAndConditions"]
|
|
47
|
-
new(
|
|
48
|
-
method_: method_,
|
|
49
|
-
terms_and_conditions: terms_and_conditions,
|
|
50
|
-
additional_properties: struct
|
|
51
|
-
)
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
# Serialize an instance of UpsertRcsOptIn to a JSON object
|
|
55
|
-
#
|
|
56
|
-
# @return [String]
|
|
57
|
-
def to_json(*_args)
|
|
58
|
-
@_field_set&.to_json
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
62
|
-
# hash and check each fields type against the current object's property
|
|
63
|
-
# definitions.
|
|
64
|
-
#
|
|
65
|
-
# @param obj [Object]
|
|
66
|
-
# @return [Void]
|
|
67
|
-
def self.validate_raw(obj:)
|
|
68
|
-
obj.method_&.is_a?(Pinnacle::Types::RcsCampaignOptInMethodEnum) != false || raise("Passed value for field obj.method_ is not the expected type, validation failed.")
|
|
69
|
-
obj.terms_and_conditions&.is_a?(String) != false || raise("Passed value for field obj.terms_and_conditions is not the expected type, validation failed.")
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
end
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "message_schedule"
|
|
4
|
-
require_relative "tracking"
|
|
5
|
-
require "ostruct"
|
|
6
|
-
require "json"
|
|
7
|
-
|
|
8
|
-
module Pinnacle
|
|
9
|
-
module Types
|
|
10
|
-
# Configure how your RCS message is sent and tracked.
|
|
11
|
-
class RcsBaseOptions
|
|
12
|
-
# @return [Pinnacle::Types::MessageSchedule]
|
|
13
|
-
attr_reader :schedule
|
|
14
|
-
# @return [Boolean] Send via the test agent to whitelisted test devices. Useful for development and
|
|
15
|
-
# debugging.
|
|
16
|
-
attr_reader :test_mode
|
|
17
|
-
# @return [Pinnacle::Types::Tracking]
|
|
18
|
-
attr_reader :tracking
|
|
19
|
-
# @return [Boolean] Media files and card media will be transcoded to a supported RCS format. This
|
|
20
|
-
# adds a small delay to sending the message. Ignored for rich text messages.
|
|
21
|
-
attr_reader :transcode
|
|
22
|
-
# @return [Boolean] Validate your message for any unsupported files. <br>
|
|
23
|
-
# If failed, errors will be thrown and the message will not send.
|
|
24
|
-
attr_reader :validate
|
|
25
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
26
|
-
attr_reader :additional_properties
|
|
27
|
-
# @return [Object]
|
|
28
|
-
attr_reader :_field_set
|
|
29
|
-
protected :_field_set
|
|
30
|
-
|
|
31
|
-
OMIT = Object.new
|
|
32
|
-
|
|
33
|
-
# @param schedule [Pinnacle::Types::MessageSchedule]
|
|
34
|
-
# @param test_mode [Boolean] Send via the test agent to whitelisted test devices. Useful for development and
|
|
35
|
-
# debugging.
|
|
36
|
-
# @param tracking [Pinnacle::Types::Tracking]
|
|
37
|
-
# @param transcode [Boolean] Media files and card media will be transcoded to a supported RCS format. This
|
|
38
|
-
# adds a small delay to sending the message. Ignored for rich text messages.
|
|
39
|
-
# @param validate [Boolean] Validate your message for any unsupported files. <br>
|
|
40
|
-
# If failed, errors will be thrown and the message will not send.
|
|
41
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
42
|
-
# @return [Pinnacle::Types::RcsBaseOptions]
|
|
43
|
-
def initialize(schedule: OMIT, test_mode: OMIT, tracking: OMIT, transcode: OMIT, validate: OMIT,
|
|
44
|
-
additional_properties: nil)
|
|
45
|
-
@schedule = schedule if schedule != OMIT
|
|
46
|
-
@test_mode = test_mode if test_mode != OMIT
|
|
47
|
-
@tracking = tracking if tracking != OMIT
|
|
48
|
-
@transcode = transcode if transcode != OMIT
|
|
49
|
-
@validate = validate if validate != OMIT
|
|
50
|
-
@additional_properties = additional_properties
|
|
51
|
-
@_field_set = {
|
|
52
|
-
"schedule": schedule,
|
|
53
|
-
"test_mode": test_mode,
|
|
54
|
-
"tracking": tracking,
|
|
55
|
-
"transcode": transcode,
|
|
56
|
-
"validate": validate
|
|
57
|
-
}.reject do |_k, v|
|
|
58
|
-
v == OMIT
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# Deserialize a JSON object to an instance of RcsBaseOptions
|
|
63
|
-
#
|
|
64
|
-
# @param json_object [String]
|
|
65
|
-
# @return [Pinnacle::Types::RcsBaseOptions]
|
|
66
|
-
def self.from_json(json_object:)
|
|
67
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
68
|
-
parsed_json = JSON.parse(json_object)
|
|
69
|
-
if parsed_json["schedule"].nil?
|
|
70
|
-
schedule = nil
|
|
71
|
-
else
|
|
72
|
-
schedule = parsed_json["schedule"].to_json
|
|
73
|
-
schedule = Pinnacle::Types::MessageSchedule.from_json(json_object: schedule)
|
|
74
|
-
end
|
|
75
|
-
test_mode = parsed_json["test_mode"]
|
|
76
|
-
tracking = parsed_json["tracking"]
|
|
77
|
-
transcode = parsed_json["transcode"]
|
|
78
|
-
validate = parsed_json["validate"]
|
|
79
|
-
new(
|
|
80
|
-
schedule: schedule,
|
|
81
|
-
test_mode: test_mode,
|
|
82
|
-
tracking: tracking,
|
|
83
|
-
transcode: transcode,
|
|
84
|
-
validate: validate,
|
|
85
|
-
additional_properties: struct
|
|
86
|
-
)
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
# Serialize an instance of RcsBaseOptions to a JSON object
|
|
90
|
-
#
|
|
91
|
-
# @return [String]
|
|
92
|
-
def to_json(*_args)
|
|
93
|
-
@_field_set&.to_json
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
97
|
-
# hash and check each fields type against the current object's property
|
|
98
|
-
# definitions.
|
|
99
|
-
#
|
|
100
|
-
# @param obj [Object]
|
|
101
|
-
# @return [Void]
|
|
102
|
-
def self.validate_raw(obj:)
|
|
103
|
-
obj.schedule.nil? || Pinnacle::Types::MessageSchedule.validate_raw(obj: obj.schedule)
|
|
104
|
-
obj.test_mode&.is_a?(Boolean) != false || raise("Passed value for field obj.test_mode is not the expected type, validation failed.")
|
|
105
|
-
obj.tracking&.is_a?(Pinnacle::Types::Tracking) != false || raise("Passed value for field obj.tracking is not the expected type, validation failed.")
|
|
106
|
-
obj.transcode&.is_a?(Boolean) != false || raise("Passed value for field obj.transcode is not the expected type, validation failed.")
|
|
107
|
-
obj.validate&.is_a?(Boolean) != false || raise("Passed value for field obj.validate is not the expected type, validation failed.")
|
|
108
|
-
end
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Pinnacle
|
|
4
|
-
module Types
|
|
5
|
-
# Opt in options.
|
|
6
|
-
class RcsCampaignOptInMethodEnum
|
|
7
|
-
WEBSITE = "WEBSITE"
|
|
8
|
-
SMS = "SMS"
|
|
9
|
-
APP = "APP"
|
|
10
|
-
VERBAL = "VERBAL"
|
|
11
|
-
WRITTEN = "WRITTEN"
|
|
12
|
-
OTHER = "OTHER"
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "rcs_campaign_opt_in_method_enum"
|
|
4
|
-
require "ostruct"
|
|
5
|
-
require "json"
|
|
6
|
-
|
|
7
|
-
module Pinnacle
|
|
8
|
-
module Types
|
|
9
|
-
# Opt-in configuration.
|
|
10
|
-
class RcsCampaignSchemaExtraOptIn
|
|
11
|
-
# @return [Pinnacle::Types::RcsCampaignOptInMethodEnum]
|
|
12
|
-
attr_reader :method_
|
|
13
|
-
# @return [String] Message shown to users explaining what they are agreeing to when opting in.
|
|
14
|
-
attr_reader :terms_and_conditions
|
|
15
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
16
|
-
attr_reader :additional_properties
|
|
17
|
-
# @return [Object]
|
|
18
|
-
attr_reader :_field_set
|
|
19
|
-
protected :_field_set
|
|
20
|
-
|
|
21
|
-
OMIT = Object.new
|
|
22
|
-
|
|
23
|
-
# @param method_ [Pinnacle::Types::RcsCampaignOptInMethodEnum]
|
|
24
|
-
# @param terms_and_conditions [String] Message shown to users explaining what they are agreeing to when opting in.
|
|
25
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
26
|
-
# @return [Pinnacle::Types::RcsCampaignSchemaExtraOptIn]
|
|
27
|
-
def initialize(method_: OMIT, terms_and_conditions: OMIT, additional_properties: nil)
|
|
28
|
-
@method_ = method_ if method_ != OMIT
|
|
29
|
-
@terms_and_conditions = terms_and_conditions if terms_and_conditions != OMIT
|
|
30
|
-
@additional_properties = additional_properties
|
|
31
|
-
@_field_set = { "method": method_, "termsAndConditions": terms_and_conditions }.reject do |_k, v|
|
|
32
|
-
v == OMIT
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Deserialize a JSON object to an instance of RcsCampaignSchemaExtraOptIn
|
|
37
|
-
#
|
|
38
|
-
# @param json_object [String]
|
|
39
|
-
# @return [Pinnacle::Types::RcsCampaignSchemaExtraOptIn]
|
|
40
|
-
def self.from_json(json_object:)
|
|
41
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
42
|
-
parsed_json = JSON.parse(json_object)
|
|
43
|
-
method_ = parsed_json["method"]
|
|
44
|
-
terms_and_conditions = parsed_json["termsAndConditions"]
|
|
45
|
-
new(
|
|
46
|
-
method_: method_,
|
|
47
|
-
terms_and_conditions: terms_and_conditions,
|
|
48
|
-
additional_properties: struct
|
|
49
|
-
)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# Serialize an instance of RcsCampaignSchemaExtraOptIn to a JSON object
|
|
53
|
-
#
|
|
54
|
-
# @return [String]
|
|
55
|
-
def to_json(*_args)
|
|
56
|
-
@_field_set&.to_json
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
60
|
-
# hash and check each fields type against the current object's property
|
|
61
|
-
# definitions.
|
|
62
|
-
#
|
|
63
|
-
# @param obj [Object]
|
|
64
|
-
# @return [Void]
|
|
65
|
-
def self.validate_raw(obj:)
|
|
66
|
-
obj.method_&.is_a?(Pinnacle::Types::RcsCampaignOptInMethodEnum) != false || raise("Passed value for field obj.method_ is not the expected type, validation failed.")
|
|
67
|
-
obj.terms_and_conditions&.is_a?(String) != false || raise("Passed value for field obj.terms_and_conditions is not the expected type, validation failed.")
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "rcs_campaign_opt_in_method_enum"
|
|
4
|
-
require "ostruct"
|
|
5
|
-
require "json"
|
|
6
|
-
|
|
7
|
-
module Pinnacle
|
|
8
|
-
module Types
|
|
9
|
-
# Opt-in configuration.
|
|
10
|
-
class RcsCampaignSchemaOptIn
|
|
11
|
-
# @return [String] Message shown to users explaining what they are agreeing to when opting in.
|
|
12
|
-
attr_reader :terms_and_conditions
|
|
13
|
-
# @return [Pinnacle::Types::RcsCampaignOptInMethodEnum]
|
|
14
|
-
attr_reader :method_
|
|
15
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
16
|
-
attr_reader :additional_properties
|
|
17
|
-
# @return [Object]
|
|
18
|
-
attr_reader :_field_set
|
|
19
|
-
protected :_field_set
|
|
20
|
-
|
|
21
|
-
OMIT = Object.new
|
|
22
|
-
|
|
23
|
-
# @param terms_and_conditions [String] Message shown to users explaining what they are agreeing to when opting in.
|
|
24
|
-
# @param method_ [Pinnacle::Types::RcsCampaignOptInMethodEnum]
|
|
25
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
26
|
-
# @return [Pinnacle::Types::RcsCampaignSchemaOptIn]
|
|
27
|
-
def initialize(terms_and_conditions: OMIT, method_: OMIT, additional_properties: nil)
|
|
28
|
-
@terms_and_conditions = terms_and_conditions if terms_and_conditions != OMIT
|
|
29
|
-
@method_ = method_ if method_ != OMIT
|
|
30
|
-
@additional_properties = additional_properties
|
|
31
|
-
@_field_set = { "termsAndConditions": terms_and_conditions, "method": method_ }.reject do |_k, v|
|
|
32
|
-
v == OMIT
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Deserialize a JSON object to an instance of RcsCampaignSchemaOptIn
|
|
37
|
-
#
|
|
38
|
-
# @param json_object [String]
|
|
39
|
-
# @return [Pinnacle::Types::RcsCampaignSchemaOptIn]
|
|
40
|
-
def self.from_json(json_object:)
|
|
41
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
42
|
-
parsed_json = JSON.parse(json_object)
|
|
43
|
-
terms_and_conditions = parsed_json["termsAndConditions"]
|
|
44
|
-
method_ = parsed_json["method"]
|
|
45
|
-
new(
|
|
46
|
-
terms_and_conditions: terms_and_conditions,
|
|
47
|
-
method_: method_,
|
|
48
|
-
additional_properties: struct
|
|
49
|
-
)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# Serialize an instance of RcsCampaignSchemaOptIn to a JSON object
|
|
53
|
-
#
|
|
54
|
-
# @return [String]
|
|
55
|
-
def to_json(*_args)
|
|
56
|
-
@_field_set&.to_json
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
60
|
-
# hash and check each fields type against the current object's property
|
|
61
|
-
# definitions.
|
|
62
|
-
#
|
|
63
|
-
# @param obj [Object]
|
|
64
|
-
# @return [Void]
|
|
65
|
-
def self.validate_raw(obj:)
|
|
66
|
-
obj.terms_and_conditions&.is_a?(String) != false || raise("Passed value for field obj.terms_and_conditions is not the expected type, validation failed.")
|
|
67
|
-
obj.method_&.is_a?(Pinnacle::Types::RcsCampaignOptInMethodEnum) != false || raise("Passed value for field obj.method_ is not the expected type, validation failed.")
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|