rcs 2.0.0.pre.rc.2 → 2.0.0.pre.rc.4

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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rcs/brands/client.rb +6 -6
  3. data/lib/rcs/brands/types/{autofill_brand_schema_options.rb → autofill_brand_options.rb} +5 -5
  4. data/lib/rcs/campaigns/dlc/client.rb +12 -12
  5. data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords_help.rb → upsert_dlc_campaign_help_keywords.rb} +5 -5
  6. data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords.rb → upsert_dlc_campaign_keywords.rb} +20 -20
  7. data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_links.rb → upsert_dlc_campaign_links.rb} +5 -5
  8. data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords_opt_in.rb → upsert_dlc_campaign_opt_in_keywords.rb} +5 -5
  9. data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_keywords_opt_out.rb → upsert_dlc_campaign_opt_out_keywords.rb} +5 -5
  10. data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_options.rb → upsert_dlc_campaign_options.rb} +5 -5
  11. data/lib/rcs/campaigns/dlc/types/{upsert_dlc_schema_use_case.rb → upsert_dlc_campaign_use_case.rb} +5 -5
  12. data/lib/rcs/campaigns/rcs/client.rb +39 -29
  13. data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent_emails_item.rb → rcs_agent_email.rb} +5 -5
  14. data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent_phones_item.rb → rcs_agent_phone.rb} +5 -5
  15. data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent_websites_item.rb → rcs_agent_website.rb} +5 -5
  16. data/lib/rcs/campaigns/rcs/types/rcs_autofill_response.rb +14 -2
  17. data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_agent.rb → upsert_rcs_agent.rb} +17 -17
  18. data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_links.rb → upsert_rcs_links.rb} +5 -5
  19. data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_opt_in.rb → upsert_rcs_opt_in.rb} +13 -13
  20. data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_opt_out.rb → upsert_rcs_opt_out.rb} +5 -5
  21. data/lib/rcs/campaigns/rcs/types/{upsert_rcs_schema_use_case.rb → upsert_rcs_use_case.rb} +5 -5
  22. data/lib/rcs/campaigns/toll_free/client.rb +4 -4
  23. data/lib/rcs/campaigns/toll_free/types/toll_free_autofill_response.rb +10 -10
  24. data/lib/rcs/campaigns/toll_free/types/upsert_toll_free_schema_opt_in.rb +8 -8
  25. data/lib/rcs/conversations/client.rb +2 -2
  26. data/lib/rcs/messages/client.rb +24 -10
  27. data/lib/rcs/messages/mms/client.rb +118 -0
  28. data/lib/rcs/messages/{send/types/send_mms_response.rb → mms/types/mms_send_response.rb} +4 -4
  29. data/lib/rcs/messages/{send/types/send_mms_schema_options.rb → mms/types/send_mms_options.rb} +6 -6
  30. data/lib/rcs/messages/rcs/client.rb +68 -0
  31. data/lib/rcs/messages/{send/types/send_rcs_response.rb → rcs/types/rcs_send_response.rb} +4 -4
  32. data/lib/rcs/messages/sms/client.rb +198 -0
  33. data/lib/rcs/messages/{send/types/send_sms_schema_options.rb → sms/types/send_sms_options.rb} +6 -6
  34. data/lib/rcs/messages/{send/types/send_sms_response.rb → sms/types/sms_send_response.rb} +4 -4
  35. data/lib/rcs/messages/types/{message_reaction_schema_options.rb → react_message_options.rb} +5 -5
  36. data/lib/rcs/phone_numbers/client.rb +18 -18
  37. data/lib/rcs/phone_numbers/types/{phone_details_schema_options_enhanced_contact_info.rb → enhanced_contact_info.rb} +5 -7
  38. data/lib/rcs/phone_numbers/types/{phone_details_schema_options.rb → retrieve_phone_number_details_options.rb} +10 -10
  39. data/lib/rcs/phone_numbers/types/{search_schema_number.rb → search_phone_number_by_digits.rb} +5 -5
  40. data/lib/rcs/phone_numbers/types/{search_schema_location.rb → search_phone_number_by_location.rb} +5 -5
  41. data/lib/rcs/phone_numbers/types/{search_schema_options.rb → search_phone_number_options.rb} +5 -5
  42. data/lib/rcs/phone_numbers/webhook/client.rb +2 -2
  43. data/lib/rcs/tools/file/client.rb +3 -3
  44. data/lib/rcs/tools/file/types/{file_upload_schema_options_download.rb → download_options.rb} +5 -5
  45. data/lib/rcs/tools/file/types/{file_upload_schema_options.rb → upload_file_options.rb} +10 -10
  46. data/lib/rcs/types/{attach_webhook_schema_webhook_id.rb → attach_webhook_by_id_params.rb} +5 -5
  47. data/lib/rcs/types/attach_webhook_params.rb +8 -8
  48. data/lib/rcs/types/{get_conversation_request_id.rb → conversation_by_id_params.rb} +5 -5
  49. data/lib/rcs/types/{get_conversation_request_recipient.rb → conversation_by_participants_params.rb} +5 -5
  50. data/lib/rcs/types/{attach_webhook_schema_name.rb → create_and_attach_webhook_by_url_params.rb} +5 -5
  51. data/lib/rcs/types/extended_rcs_campaign.rb +13 -1
  52. data/lib/rcs/types/get_conversation_params.rb +8 -8
  53. data/lib/rcs/types/link_click_event.rb +8 -8
  54. data/lib/rcs/types/message.rb +8 -8
  55. data/lib/rcs/types/rcs.rb +12 -12
  56. data/lib/rcs/types/rcs_campaign.rb +14 -2
  57. data/lib/rcs/types/rcs_campaign_schema_extra_opt_in.rb +8 -8
  58. data/lib/rcs/types/rcs_campaign_schema_opt_in.rb +8 -8
  59. data/lib/rcs/types/rcs_cards.rb +4 -4
  60. data/lib/rcs/types/rcs_cards_cards_item.rb +4 -4
  61. data/lib/rcs/types/rcs_cards_content.rb +4 -4
  62. data/lib/rcs/types/rcs_cards_content_cards_item.rb +4 -4
  63. data/lib/rcs/types/rcs_media_content.rb +4 -4
  64. data/lib/rcs/types/rcs_text_content.rb +4 -4
  65. data/lib/rcs/types/{rcs_button_content.rb → rich_button.rb} +10 -10
  66. data/lib/rcs/types/{rcs_card.rb → rich_cards_message.rb} +9 -9
  67. data/lib/rcs/types/{rcs_media.rb → rich_media_message.rb} +9 -9
  68. data/lib/rcs/types/{rcs_text.rb → rich_text_message.rb} +9 -9
  69. data/lib/rcs/types/toll_free_campaign.rb +10 -10
  70. data/lib/rcs/types/toll_free_campaign_with_extended_brand_and_status.rb +10 -10
  71. data/lib/rcs/types/{nullable_contact.rb → upsert_contact.rb} +5 -5
  72. data/lib/rcs/types/{toll_free_campaign_schema_opt_in.rb → upsert_toll_free_campaign_opt_in.rb} +13 -13
  73. data/lib/rcs/types/{toll_free_campaign_schema_use_case.rb → upsert_toll_free_campaign_use_case.rb} +5 -5
  74. data/lib/rcs.rb +0 -7
  75. data/lib/requests.rb +2 -2
  76. data/lib/types_export.rb +40 -40
  77. metadata +43 -45
  78. data/lib/rcs/message/client.rb +0 -30
  79. data/lib/rcs/message/sms/client.rb +0 -96
  80. data/lib/rcs/messages/send/client.rb +0 -318
@@ -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/upsert_rcs_schema_agent"
9
- require_relative "types/upsert_rcs_schema_links"
10
- require_relative "types/upsert_rcs_schema_opt_in"
11
- require_relative "types/upsert_rcs_schema_opt_out"
12
- require_relative "types/upsert_rcs_schema_use_case"
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,31 @@ 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::UpsertRcsSchemaAgent, as a Hash
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::UpsertRcsSchemaAgentEmailsItem>)
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::UpsertRcsSchemaAgentPhonesItem>)
137
- # * :websites (Array<Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentWebsitesItem>)
136
+ # * :phones (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentPhone>)
137
+ # * :websites (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentWebsite>)
138
+ # @param brand_verification_url [String] Link to document verifying the brand's name. This may be the certificate of
139
+ # incorporation, business license, or other relevant document. You can typically
140
+ # find this on the Secretary of State website.
138
141
  # @param brand [Integer] Unique identifier for the brand.
139
142
  # @param campaign_id [Integer] Unique identifier for the campaign.
140
143
  # @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::UpsertRcsSchemaLinks, as a Hash
144
+ # @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsLinks, as a Hash
142
145
  # * :privacy_policy (String)
143
146
  # * :terms_of_service (String)
144
- # @param opt_in [Hash] Opt-in configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaOptIn, as a Hash
145
- # * :method (Pinnacle::Types::RcsCampaignOptInMethodEnum)
147
+ # @param opt_in [Hash] Opt-in configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptIn, as a Hash
148
+ # * :method_ (Pinnacle::Types::RcsCampaignOptInMethodEnum)
146
149
  # * :terms_and_conditions (String)
147
- # @param opt_out [Hash] Opt-out configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaOptOut, as a Hash
150
+ # @param opt_out [Hash] Opt-out configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptOut, as a Hash
148
151
  # * :description (String)
149
152
  # * :keywords (Array<String>)
150
- # @param use_case [Hash] Use case classification for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaUseCase, as a Hash
153
+ # @param use_case [Hash] Use case classification for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsUseCase, as a Hash
151
154
  # * :behavior (String)
152
155
  # * :value (Pinnacle::Types::RcsCampaignUseCaseEnum)
153
156
  # @param request_options [Pinnacle::RequestOptions]
@@ -160,15 +163,16 @@ module Pinnacle
160
163
  # )
161
164
  # api.campaigns.rcs.upsert(
162
165
  # 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
+ # brand_verification_url: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
163
167
  # brand: 2,
164
168
  # 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
169
  # links: { privacy_policy: "https://www.trypinnacle.app/privacy", terms_of_service: "https://www.trypinnacle.app/terms" },
166
- # opt_in: { method: WEBSITE, terms_and_conditions: "Would you like to subscribe to Pinnacle?" },
170
+ # opt_in: { method_: WEBSITE, terms_and_conditions: "Would you like to subscribe to Pinnacle?" },
167
171
  # opt_out: { description: "Reply STOP to opt-out anytime.", keywords: ["STOP", "UNSUBSCRIBE", "END"] },
168
172
  # use_case: { behavior: "Acts as a customer service representative.", value: OTHER }
169
173
  # )
170
- def upsert(agent: nil, brand: nil, campaign_id: nil, expected_agent_responses: nil, links: nil, opt_in: nil,
171
- opt_out: nil, use_case: nil, request_options: nil)
174
+ def upsert(agent: nil, brand_verification_url: nil, brand: nil, campaign_id: nil, expected_agent_responses: nil,
175
+ links: nil, opt_in: nil, opt_out: nil, use_case: nil, request_options: nil)
172
176
  response = @request_client.conn.post do |req|
173
177
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
174
178
  req.headers["PINNACLE-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
@@ -183,6 +187,7 @@ module Pinnacle
183
187
  req.body = {
184
188
  **(request_options&.additional_body_parameters || {}),
185
189
  agent: agent,
190
+ brandVerificationUrl: brand_verification_url,
186
191
  brand: brand,
187
192
  campaignId: campaign_id,
188
193
  expectedAgentResponses: expected_agent_responses,
@@ -346,28 +351,31 @@ module Pinnacle
346
351
  # Create a new RCS campaign or updates an existing one. <br>
347
352
  # Omit campaignId to create a campaign.
348
353
  #
349
- # @param agent [Hash] Create an agent for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgent, as a Hash
354
+ # @param agent [Hash] Create an agent for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsAgent, as a Hash
350
355
  # * :color (String)
351
356
  # * :description (String)
352
- # * :emails (Array<Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentEmailsItem>)
357
+ # * :emails (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentEmail>)
353
358
  # * :hero_url (String)
354
359
  # * :icon_url (String)
355
360
  # * :name (String)
356
- # * :phones (Array<Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentPhonesItem>)
357
- # * :websites (Array<Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentWebsitesItem>)
361
+ # * :phones (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentPhone>)
362
+ # * :websites (Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentWebsite>)
363
+ # @param brand_verification_url [String] Link to document verifying the brand's name. This may be the certificate of
364
+ # incorporation, business license, or other relevant document. You can typically
365
+ # find this on the Secretary of State website.
358
366
  # @param brand [Integer] Unique identifier for the brand.
359
367
  # @param campaign_id [Integer] Unique identifier for the campaign.
360
368
  # @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::UpsertRcsSchemaLinks, as a Hash
369
+ # @param links [Hash] Legal documentation links.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsLinks, as a Hash
362
370
  # * :privacy_policy (String)
363
371
  # * :terms_of_service (String)
364
- # @param opt_in [Hash] Opt-in configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaOptIn, as a Hash
365
- # * :method (Pinnacle::Types::RcsCampaignOptInMethodEnum)
372
+ # @param opt_in [Hash] Opt-in configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptIn, as a Hash
373
+ # * :method_ (Pinnacle::Types::RcsCampaignOptInMethodEnum)
366
374
  # * :terms_and_conditions (String)
367
- # @param opt_out [Hash] Opt-out configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaOptOut, as a Hash
375
+ # @param opt_out [Hash] Opt-out configuration.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptOut, as a Hash
368
376
  # * :description (String)
369
377
  # * :keywords (Array<String>)
370
- # @param use_case [Hash] Use case classification for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaUseCase, as a Hash
378
+ # @param use_case [Hash] Use case classification for the campaign.Request of type Pinnacle::Campaigns::Rcs::Types::UpsertRcsUseCase, as a Hash
371
379
  # * :behavior (String)
372
380
  # * :value (Pinnacle::Types::RcsCampaignUseCaseEnum)
373
381
  # @param request_options [Pinnacle::RequestOptions]
@@ -380,15 +388,16 @@ module Pinnacle
380
388
  # )
381
389
  # api.campaigns.rcs.upsert(
382
390
  # 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
+ # brand_verification_url: "https://www.pinnacle.sh/articles-of-incorporation.pdf",
383
392
  # brand: 2,
384
393
  # 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
394
  # links: { privacy_policy: "https://www.trypinnacle.app/privacy", terms_of_service: "https://www.trypinnacle.app/terms" },
386
- # opt_in: { method: WEBSITE, terms_and_conditions: "Would you like to subscribe to Pinnacle?" },
395
+ # opt_in: { method_: WEBSITE, terms_and_conditions: "Would you like to subscribe to Pinnacle?" },
387
396
  # opt_out: { description: "Reply STOP to opt-out anytime.", keywords: ["STOP", "UNSUBSCRIBE", "END"] },
388
397
  # use_case: { behavior: "Acts as a customer service representative.", value: OTHER }
389
398
  # )
390
- def upsert(agent: nil, brand: nil, campaign_id: nil, expected_agent_responses: nil, links: nil, opt_in: nil,
391
- opt_out: nil, use_case: nil, request_options: nil)
399
+ def upsert(agent: nil, brand_verification_url: nil, brand: nil, campaign_id: nil, expected_agent_responses: nil,
400
+ links: nil, opt_in: nil, opt_out: nil, use_case: nil, request_options: nil)
392
401
  Async do
393
402
  response = @request_client.conn.post do |req|
394
403
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -404,6 +413,7 @@ module Pinnacle
404
413
  req.body = {
405
414
  **(request_options&.additional_body_parameters || {}),
406
415
  agent: agent,
416
+ brandVerificationUrl: brand_verification_url,
407
417
  brand: brand,
408
418
  campaignId: campaign_id,
409
419
  expectedAgentResponses: expected_agent_responses,
@@ -7,7 +7,7 @@ module Pinnacle
7
7
  module Campaigns
8
8
  module Rcs
9
9
  module Types
10
- class UpsertRcsSchemaAgentEmailsItem
10
+ class RcsAgentEmail
11
11
  # @return [String] Email attached to the agent.
12
12
  attr_reader :email
13
13
  # @return [String] Label for the email.
@@ -23,7 +23,7 @@ module Pinnacle
23
23
  # @param email [String] Email attached to the agent.
24
24
  # @param label [String] Label for the email.
25
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentEmailsItem]
26
+ # @return [Pinnacle::Campaigns::Rcs::Types::RcsAgentEmail]
27
27
  def initialize(email: OMIT, label: OMIT, additional_properties: nil)
28
28
  @email = email if email != OMIT
29
29
  @label = label if label != OMIT
@@ -33,10 +33,10 @@ module Pinnacle
33
33
  end
34
34
  end
35
35
 
36
- # Deserialize a JSON object to an instance of UpsertRcsSchemaAgentEmailsItem
36
+ # Deserialize a JSON object to an instance of RcsAgentEmail
37
37
  #
38
38
  # @param json_object [String]
39
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentEmailsItem]
39
+ # @return [Pinnacle::Campaigns::Rcs::Types::RcsAgentEmail]
40
40
  def self.from_json(json_object:)
41
41
  struct = JSON.parse(json_object, object_class: OpenStruct)
42
42
  parsed_json = JSON.parse(json_object)
@@ -49,7 +49,7 @@ module Pinnacle
49
49
  )
50
50
  end
51
51
 
52
- # Serialize an instance of UpsertRcsSchemaAgentEmailsItem to a JSON object
52
+ # Serialize an instance of RcsAgentEmail to a JSON object
53
53
  #
54
54
  # @return [String]
55
55
  def to_json(*_args)
@@ -7,7 +7,7 @@ module Pinnacle
7
7
  module Campaigns
8
8
  module Rcs
9
9
  module Types
10
- class UpsertRcsSchemaAgentPhonesItem
10
+ class RcsAgentPhone
11
11
  # @return [String] Label for the phone number.
12
12
  attr_reader :label
13
13
  # @return [String] Phone number attached to the agent in E.164 format.
@@ -23,7 +23,7 @@ module Pinnacle
23
23
  # @param label [String] Label for the phone number.
24
24
  # @param phone [String] Phone number attached to the agent in E.164 format.
25
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentPhonesItem]
26
+ # @return [Pinnacle::Campaigns::Rcs::Types::RcsAgentPhone]
27
27
  def initialize(label: OMIT, phone: OMIT, additional_properties: nil)
28
28
  @label = label if label != OMIT
29
29
  @phone = phone if phone != OMIT
@@ -33,10 +33,10 @@ module Pinnacle
33
33
  end
34
34
  end
35
35
 
36
- # Deserialize a JSON object to an instance of UpsertRcsSchemaAgentPhonesItem
36
+ # Deserialize a JSON object to an instance of RcsAgentPhone
37
37
  #
38
38
  # @param json_object [String]
39
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentPhonesItem]
39
+ # @return [Pinnacle::Campaigns::Rcs::Types::RcsAgentPhone]
40
40
  def self.from_json(json_object:)
41
41
  struct = JSON.parse(json_object, object_class: OpenStruct)
42
42
  parsed_json = JSON.parse(json_object)
@@ -49,7 +49,7 @@ module Pinnacle
49
49
  )
50
50
  end
51
51
 
52
- # Serialize an instance of UpsertRcsSchemaAgentPhonesItem to a JSON object
52
+ # Serialize an instance of RcsAgentPhone to a JSON object
53
53
  #
54
54
  # @return [String]
55
55
  def to_json(*_args)
@@ -7,7 +7,7 @@ module Pinnacle
7
7
  module Campaigns
8
8
  module Rcs
9
9
  module Types
10
- class UpsertRcsSchemaAgentWebsitesItem
10
+ class RcsAgentWebsite
11
11
  # @return [String] Label for the url.
12
12
  attr_reader :label
13
13
  # @return [String] Url attached to the agent.
@@ -23,7 +23,7 @@ module Pinnacle
23
23
  # @param label [String] Label for the url.
24
24
  # @param url [String] Url attached to the agent.
25
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentWebsitesItem]
26
+ # @return [Pinnacle::Campaigns::Rcs::Types::RcsAgentWebsite]
27
27
  def initialize(label: OMIT, url: OMIT, additional_properties: nil)
28
28
  @label = label if label != OMIT
29
29
  @url = url if url != OMIT
@@ -33,10 +33,10 @@ module Pinnacle
33
33
  end
34
34
  end
35
35
 
36
- # Deserialize a JSON object to an instance of UpsertRcsSchemaAgentWebsitesItem
36
+ # Deserialize a JSON object to an instance of RcsAgentWebsite
37
37
  #
38
38
  # @param json_object [String]
39
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentWebsitesItem]
39
+ # @return [Pinnacle::Campaigns::Rcs::Types::RcsAgentWebsite]
40
40
  def self.from_json(json_object:)
41
41
  struct = JSON.parse(json_object, object_class: OpenStruct)
42
42
  parsed_json = JSON.parse(json_object)
@@ -49,7 +49,7 @@ module Pinnacle
49
49
  )
50
50
  end
51
51
 
52
- # Serialize an instance of UpsertRcsSchemaAgentWebsitesItem to a JSON object
52
+ # Serialize an instance of RcsAgentWebsite to a JSON object
53
53
  #
54
54
  # @return [String]
55
55
  def to_json(*_args)
@@ -19,6 +19,10 @@ module Pinnacle
19
19
  attr_reader :agent
20
20
  # @return [Integer] Unique identifier for the campaign.
21
21
  attr_reader :campaign_id
22
+ # @return [String] Link to document verifying the brand's name. This may be the certificate of
23
+ # incorporation, business license, or other relevant document. You can typically
24
+ # find this on the Secretary of State website.
25
+ attr_reader :brand_verification_url
22
26
  # @return [Array<String>] List of what the agent might say to users.
23
27
  attr_reader :expected_agent_responses
24
28
  # @return [Pinnacle::Types::RcsCampaignSchemaLinks] Legal documentation links.
@@ -40,6 +44,9 @@ module Pinnacle
40
44
  # @param brand [Integer]
41
45
  # @param agent [Pinnacle::Types::RcsCampaignSchemaAgent] Agent configured to the campaign.
42
46
  # @param campaign_id [Integer] Unique identifier for the campaign.
47
+ # @param brand_verification_url [String] Link to document verifying the brand's name. This may be the certificate of
48
+ # incorporation, business license, or other relevant document. You can typically
49
+ # find this on the Secretary of State website.
43
50
  # @param expected_agent_responses [Array<String>] List of what the agent might say to users.
44
51
  # @param links [Pinnacle::Types::RcsCampaignSchemaLinks] Legal documentation links.
45
52
  # @param opt_in [Pinnacle::Types::RcsCampaignSchemaOptIn] Opt-in configuration.
@@ -47,11 +54,12 @@ module Pinnacle
47
54
  # @param use_case [Pinnacle::Types::RcsCampaignSchemaUseCase] Use case classification for the campaign.
48
55
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
49
56
  # @return [Pinnacle::Campaigns::Rcs::Types::RcsAutofillResponse]
50
- def initialize(brand: OMIT, agent: OMIT, campaign_id: OMIT, expected_agent_responses: OMIT, links: OMIT,
51
- opt_in: OMIT, opt_out: OMIT, use_case: OMIT, additional_properties: nil)
57
+ def initialize(brand: OMIT, agent: OMIT, campaign_id: OMIT, brand_verification_url: OMIT,
58
+ expected_agent_responses: OMIT, links: OMIT, opt_in: OMIT, opt_out: OMIT, use_case: OMIT, additional_properties: nil)
52
59
  @brand = brand if brand != OMIT
53
60
  @agent = agent if agent != OMIT
54
61
  @campaign_id = campaign_id if campaign_id != OMIT
62
+ @brand_verification_url = brand_verification_url if brand_verification_url != OMIT
55
63
  @expected_agent_responses = expected_agent_responses if expected_agent_responses != OMIT
56
64
  @links = links if links != OMIT
57
65
  @opt_in = opt_in if opt_in != OMIT
@@ -62,6 +70,7 @@ module Pinnacle
62
70
  "brand": brand,
63
71
  "agent": agent,
64
72
  "campaignId": campaign_id,
73
+ "brandVerificationUrl": brand_verification_url,
65
74
  "expectedAgentResponses": expected_agent_responses,
66
75
  "links": links,
67
76
  "optIn": opt_in,
@@ -87,6 +96,7 @@ module Pinnacle
87
96
  agent = Pinnacle::Types::RcsCampaignSchemaAgent.from_json(json_object: agent)
88
97
  end
89
98
  campaign_id = parsed_json["campaignId"]
99
+ brand_verification_url = parsed_json["brandVerificationUrl"]
90
100
  expected_agent_responses = parsed_json["expectedAgentResponses"]
91
101
  if parsed_json["links"].nil?
92
102
  links = nil
@@ -116,6 +126,7 @@ module Pinnacle
116
126
  brand: brand,
117
127
  agent: agent,
118
128
  campaign_id: campaign_id,
129
+ brand_verification_url: brand_verification_url,
119
130
  expected_agent_responses: expected_agent_responses,
120
131
  links: links,
121
132
  opt_in: opt_in,
@@ -142,6 +153,7 @@ module Pinnacle
142
153
  obj.brand&.is_a?(Integer) != false || raise("Passed value for field obj.brand is not the expected type, validation failed.")
143
154
  obj.agent.nil? || Pinnacle::Types::RcsCampaignSchemaAgent.validate_raw(obj: obj.agent)
144
155
  obj.campaign_id&.is_a?(Integer) != false || raise("Passed value for field obj.campaign_id is not the expected type, validation failed.")
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.")
145
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.")
146
158
  obj.links.nil? || Pinnacle::Types::RcsCampaignSchemaLinks.validate_raw(obj: obj.links)
147
159
  obj.opt_in.nil? || Pinnacle::Types::RcsCampaignSchemaOptIn.validate_raw(obj: obj.opt_in)
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "upsert_rcs_schema_agent_emails_item"
4
- require_relative "upsert_rcs_schema_agent_phones_item"
5
- require_relative "upsert_rcs_schema_agent_websites_item"
3
+ require_relative "rcs_agent_email"
4
+ require_relative "rcs_agent_phone"
5
+ require_relative "rcs_agent_website"
6
6
  require "ostruct"
7
7
  require "json"
8
8
 
@@ -11,13 +11,13 @@ module Pinnacle
11
11
  module Rcs
12
12
  module Types
13
13
  # Create an agent for the campaign.
14
- class UpsertRcsSchemaAgent
14
+ class UpsertRcsAgent
15
15
  # @return [String] Color of the agent's buttons. <br>
16
16
  # Must have sufficient contrast with white.
17
17
  attr_reader :color
18
18
  # @return [String] Description of the agent.
19
19
  attr_reader :description
20
- # @return [Array<Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentEmailsItem>] List of emails (1-3 required).
20
+ # @return [Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentEmail>] List of emails (1-3 required).
21
21
  attr_reader :emails
22
22
  # @return [String] Link to the agent's hero.
23
23
  attr_reader :hero_url
@@ -25,9 +25,9 @@ module Pinnacle
25
25
  attr_reader :icon_url
26
26
  # @return [String] Name of the agent.
27
27
  attr_reader :name
28
- # @return [Array<Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentPhonesItem>] List of phone numbers (1-3 required).
28
+ # @return [Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentPhone>] List of phone numbers (1-3 required).
29
29
  attr_reader :phones
30
- # @return [Array<Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentWebsitesItem>] List of urls (1-3 required).
30
+ # @return [Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentWebsite>] List of urls (1-3 required).
31
31
  attr_reader :websites
32
32
  # @return [OpenStruct] Additional properties unmapped to the current class definition
33
33
  attr_reader :additional_properties
@@ -40,14 +40,14 @@ module Pinnacle
40
40
  # @param color [String] Color of the agent's buttons. <br>
41
41
  # Must have sufficient contrast with white.
42
42
  # @param description [String] Description of the agent.
43
- # @param emails [Array<Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentEmailsItem>] List of emails (1-3 required).
43
+ # @param emails [Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentEmail>] List of emails (1-3 required).
44
44
  # @param hero_url [String] Link to the agent's hero.
45
45
  # @param icon_url [String] Link to the agent's icon.
46
46
  # @param name [String] Name of the agent.
47
- # @param phones [Array<Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentPhonesItem>] List of phone numbers (1-3 required).
48
- # @param websites [Array<Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentWebsitesItem>] List of urls (1-3 required).
47
+ # @param phones [Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentPhone>] List of phone numbers (1-3 required).
48
+ # @param websites [Array<Pinnacle::Campaigns::Rcs::Types::RcsAgentWebsite>] List of urls (1-3 required).
49
49
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
50
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgent]
50
+ # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsAgent]
51
51
  def initialize(color: OMIT, description: OMIT, emails: OMIT, hero_url: OMIT, icon_url: OMIT, name: OMIT,
52
52
  phones: OMIT, websites: OMIT, additional_properties: nil)
53
53
  @color = color if color != OMIT
@@ -73,10 +73,10 @@ module Pinnacle
73
73
  end
74
74
  end
75
75
 
76
- # Deserialize a JSON object to an instance of UpsertRcsSchemaAgent
76
+ # Deserialize a JSON object to an instance of UpsertRcsAgent
77
77
  #
78
78
  # @param json_object [String]
79
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgent]
79
+ # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsAgent]
80
80
  def self.from_json(json_object:)
81
81
  struct = JSON.parse(json_object, object_class: OpenStruct)
82
82
  parsed_json = JSON.parse(json_object)
@@ -84,18 +84,18 @@ module Pinnacle
84
84
  description = parsed_json["description"]
85
85
  emails = parsed_json["emails"]&.map do |item|
86
86
  item = item.to_json
87
- Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentEmailsItem.from_json(json_object: item)
87
+ Pinnacle::Campaigns::Rcs::Types::RcsAgentEmail.from_json(json_object: item)
88
88
  end
89
89
  hero_url = parsed_json["heroUrl"]
90
90
  icon_url = parsed_json["iconUrl"]
91
91
  name = parsed_json["name"]
92
92
  phones = parsed_json["phones"]&.map do |item|
93
93
  item = item.to_json
94
- Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentPhonesItem.from_json(json_object: item)
94
+ Pinnacle::Campaigns::Rcs::Types::RcsAgentPhone.from_json(json_object: item)
95
95
  end
96
96
  websites = parsed_json["websites"]&.map do |item|
97
97
  item = item.to_json
98
- Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaAgentWebsitesItem.from_json(json_object: item)
98
+ Pinnacle::Campaigns::Rcs::Types::RcsAgentWebsite.from_json(json_object: item)
99
99
  end
100
100
  new(
101
101
  color: color,
@@ -110,7 +110,7 @@ module Pinnacle
110
110
  )
111
111
  end
112
112
 
113
- # Serialize an instance of UpsertRcsSchemaAgent to a JSON object
113
+ # Serialize an instance of UpsertRcsAgent to a JSON object
114
114
  #
115
115
  # @return [String]
116
116
  def to_json(*_args)
@@ -8,7 +8,7 @@ module Pinnacle
8
8
  module Rcs
9
9
  module Types
10
10
  # Legal documentation links.
11
- class UpsertRcsSchemaLinks
11
+ class UpsertRcsLinks
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::Rcs::Types::UpsertRcsSchemaLinks]
27
+ # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsLinks]
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 UpsertRcsSchemaLinks
37
+ # Deserialize a JSON object to an instance of UpsertRcsLinks
38
38
  #
39
39
  # @param json_object [String]
40
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaLinks]
40
+ # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsLinks]
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 UpsertRcsSchemaLinks to a JSON object
53
+ # Serialize an instance of UpsertRcsLinks to a JSON object
54
54
  #
55
55
  # @return [String]
56
56
  def to_json(*_args)
@@ -9,9 +9,9 @@ module Pinnacle
9
9
  module Rcs
10
10
  module Types
11
11
  # Opt-in configuration.
12
- class UpsertRcsSchemaOptIn
12
+ class UpsertRcsOptIn
13
13
  # @return [Pinnacle::Types::RcsCampaignOptInMethodEnum]
14
- attr_reader :method
14
+ attr_reader :method_
15
15
  # @return [String] Message shown to users explaining what they are agreeing to when opting in.
16
16
  attr_reader :terms_and_conditions
17
17
  # @return [OpenStruct] Additional properties unmapped to the current class definition
@@ -22,36 +22,36 @@ module Pinnacle
22
22
 
23
23
  OMIT = Object.new
24
24
 
25
- # @param method [Pinnacle::Types::RcsCampaignOptInMethodEnum]
25
+ # @param method_ [Pinnacle::Types::RcsCampaignOptInMethodEnum]
26
26
  # @param terms_and_conditions [String] Message shown to users explaining what they are agreeing to when opting in.
27
27
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
28
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaOptIn]
29
- def initialize(method: OMIT, terms_and_conditions: OMIT, additional_properties: nil)
30
- @method = method if method != OMIT
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
31
  @terms_and_conditions = terms_and_conditions if terms_and_conditions != OMIT
32
32
  @additional_properties = additional_properties
33
- @_field_set = { "method": method, "termsAndConditions": terms_and_conditions }.reject do |_k, v|
33
+ @_field_set = { "method": method_, "termsAndConditions": terms_and_conditions }.reject do |_k, v|
34
34
  v == OMIT
35
35
  end
36
36
  end
37
37
 
38
- # Deserialize a JSON object to an instance of UpsertRcsSchemaOptIn
38
+ # Deserialize a JSON object to an instance of UpsertRcsOptIn
39
39
  #
40
40
  # @param json_object [String]
41
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaOptIn]
41
+ # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptIn]
42
42
  def self.from_json(json_object:)
43
43
  struct = JSON.parse(json_object, object_class: OpenStruct)
44
44
  parsed_json = JSON.parse(json_object)
45
- method = parsed_json["method"]
45
+ method_ = parsed_json["method"]
46
46
  terms_and_conditions = parsed_json["termsAndConditions"]
47
47
  new(
48
- method: method,
48
+ method_: method_,
49
49
  terms_and_conditions: terms_and_conditions,
50
50
  additional_properties: struct
51
51
  )
52
52
  end
53
53
 
54
- # Serialize an instance of UpsertRcsSchemaOptIn to a JSON object
54
+ # Serialize an instance of UpsertRcsOptIn to a JSON object
55
55
  #
56
56
  # @return [String]
57
57
  def to_json(*_args)
@@ -65,7 +65,7 @@ module Pinnacle
65
65
  # @param obj [Object]
66
66
  # @return [Void]
67
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.")
68
+ obj.method_&.is_a?(Pinnacle::Types::RcsCampaignOptInMethodEnum) != false || raise("Passed value for field obj.method_ is not the expected type, validation failed.")
69
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
70
  end
71
71
  end
@@ -8,7 +8,7 @@ module Pinnacle
8
8
  module Rcs
9
9
  module Types
10
10
  # Opt-out configuration.
11
- class UpsertRcsSchemaOptOut
11
+ class UpsertRcsOptOut
12
12
  # @return [String] Description for the keyword.
13
13
  attr_reader :description
14
14
  # @return [Array<String>] Keywords to opt-out. <br>
@@ -26,7 +26,7 @@ module Pinnacle
26
26
  # @param keywords [Array<String>] Keywords to opt-out. <br>
27
27
  # Each keyword must be a single word with no spaces or whitespace characters.
28
28
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
29
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaOptOut]
29
+ # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptOut]
30
30
  def initialize(description: OMIT, keywords: OMIT, additional_properties: nil)
31
31
  @description = description if description != OMIT
32
32
  @keywords = keywords if keywords != OMIT
@@ -36,10 +36,10 @@ module Pinnacle
36
36
  end
37
37
  end
38
38
 
39
- # Deserialize a JSON object to an instance of UpsertRcsSchemaOptOut
39
+ # Deserialize a JSON object to an instance of UpsertRcsOptOut
40
40
  #
41
41
  # @param json_object [String]
42
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaOptOut]
42
+ # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsOptOut]
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 UpsertRcsSchemaOptOut to a JSON object
55
+ # Serialize an instance of UpsertRcsOptOut to a JSON object
56
56
  #
57
57
  # @return [String]
58
58
  def to_json(*_args)
@@ -9,7 +9,7 @@ module Pinnacle
9
9
  module Rcs
10
10
  module Types
11
11
  # Use case classification for the campaign.
12
- class UpsertRcsSchemaUseCase
12
+ class UpsertRcsUseCase
13
13
  # @return [String] Summary of the use case.
14
14
  attr_reader :behavior
15
15
  # @return [Pinnacle::Types::RcsCampaignUseCaseEnum]
@@ -25,7 +25,7 @@ module Pinnacle
25
25
  # @param behavior [String] Summary of the use case.
26
26
  # @param value [Pinnacle::Types::RcsCampaignUseCaseEnum]
27
27
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
28
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaUseCase]
28
+ # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsUseCase]
29
29
  def initialize(behavior: OMIT, value: OMIT, additional_properties: nil)
30
30
  @behavior = behavior if behavior != OMIT
31
31
  @value = value if value != OMIT
@@ -35,10 +35,10 @@ module Pinnacle
35
35
  end
36
36
  end
37
37
 
38
- # Deserialize a JSON object to an instance of UpsertRcsSchemaUseCase
38
+ # Deserialize a JSON object to an instance of UpsertRcsUseCase
39
39
  #
40
40
  # @param json_object [String]
41
- # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsSchemaUseCase]
41
+ # @return [Pinnacle::Campaigns::Rcs::Types::UpsertRcsUseCase]
42
42
  def self.from_json(json_object:)
43
43
  struct = JSON.parse(json_object, object_class: OpenStruct)
44
44
  parsed_json = JSON.parse(json_object)
@@ -51,7 +51,7 @@ module Pinnacle
51
51
  )
52
52
  end
53
53
 
54
- # Serialize an instance of UpsertRcsSchemaUseCase to a JSON object
54
+ # Serialize an instance of UpsertRcsUseCase to a JSON object
55
55
  #
56
56
  # @return [String]
57
57
  def to_json(*_args)