rcs 1.0.18 → 2.0.0.pre.rc.2

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 (321) hide show
  1. checksums.yaml +4 -4
  2. data/lib/environment.rb +1 -1
  3. data/lib/rcs/brands/client.rb +631 -0
  4. data/lib/rcs/brands/types/autofill_brand_schema_options.rb +61 -0
  5. data/lib/rcs/brands/types/brand_contact.rb +84 -0
  6. data/lib/rcs/campaigns/client.rb +44 -0
  7. data/lib/rcs/campaigns/dlc/client.rb +480 -0
  8. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_keywords.rb +99 -0
  9. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_keywords_help.rb +74 -0
  10. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_keywords_opt_in.rb +74 -0
  11. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_keywords_opt_out.rb +74 -0
  12. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_links.rb +74 -0
  13. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_options.rb +110 -0
  14. data/lib/rcs/campaigns/dlc/types/upsert_dlc_schema_use_case.rb +76 -0
  15. data/lib/rcs/campaigns/rcs/client.rb +457 -0
  16. data/lib/rcs/campaigns/rcs/types/rcs_autofill_response.rb +155 -0
  17. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_agent.rb +140 -0
  18. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_agent_emails_item.rb +73 -0
  19. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_agent_phones_item.rb +73 -0
  20. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_agent_websites_item.rb +73 -0
  21. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_links.rb +74 -0
  22. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_opt_in.rb +75 -0
  23. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_opt_out.rb +76 -0
  24. data/lib/rcs/campaigns/rcs/types/upsert_rcs_schema_use_case.rb +75 -0
  25. data/lib/rcs/campaigns/toll_free/client.rb +429 -0
  26. data/lib/rcs/campaigns/toll_free/types/toll_free_autofill_response.rb +130 -0
  27. data/lib/rcs/campaigns/toll_free/types/upsert_toll_free_schema_opt_in.rb +86 -0
  28. data/lib/rcs/campaigns/toll_free/types/upsert_toll_free_schema_use_case.rb +75 -0
  29. data/lib/rcs/contacts/client.rb +275 -0
  30. data/lib/rcs/conversations/client.rb +273 -0
  31. data/lib/rcs/message/client.rb +30 -0
  32. data/lib/rcs/message/sms/client.rb +96 -0
  33. data/lib/rcs/messages/client.rb +192 -0
  34. data/lib/rcs/messages/mms/client.rb +98 -0
  35. data/lib/rcs/messages/rcs/client.rb +94 -0
  36. data/lib/rcs/messages/send/client.rb +318 -0
  37. data/lib/rcs/messages/send/types/send_mms_response.rb +60 -0
  38. data/lib/rcs/messages/send/types/send_mms_schema_options.rb +108 -0
  39. data/lib/rcs/messages/send/types/send_rcs_response.rb +60 -0
  40. data/lib/rcs/messages/send/types/send_sms_response.rb +60 -0
  41. data/lib/rcs/messages/send/types/send_sms_schema_options.rb +81 -0
  42. data/lib/rcs/messages/types/message_reaction_schema_options.rb +71 -0
  43. data/lib/rcs/phone_numbers/campaign/client.rb +179 -0
  44. data/lib/rcs/phone_numbers/client.rb +359 -0
  45. data/lib/rcs/phone_numbers/types/phone_details_schema_level.rb +16 -0
  46. data/lib/rcs/phone_numbers/types/phone_details_schema_options.rb +93 -0
  47. data/lib/rcs/phone_numbers/types/phone_details_schema_options_enhanced_contact_info.rb +64 -0
  48. data/lib/rcs/phone_numbers/types/phone_numbers_get_response.rb +58 -0
  49. data/lib/rcs/phone_numbers/types/search_schema_location.rb +96 -0
  50. data/lib/rcs/phone_numbers/types/search_schema_number.rb +81 -0
  51. data/lib/rcs/phone_numbers/types/search_schema_options.rb +62 -0
  52. data/lib/rcs/phone_numbers/webhook/client.rb +191 -0
  53. data/lib/rcs/status/client.rb +30 -0
  54. data/lib/rcs/status/get/client.rb +367 -0
  55. data/lib/rcs/tools/client.rb +32 -199
  56. data/lib/rcs/tools/contact_card/client.rb +285 -0
  57. data/lib/rcs/tools/contact_card/types/get_v_card_schema_options.rb +67 -0
  58. data/lib/rcs/tools/file/client.rb +138 -0
  59. data/lib/rcs/tools/file/types/file_upload_schema_options.rb +70 -0
  60. data/lib/rcs/tools/file/types/file_upload_schema_options_download.rb +66 -0
  61. data/lib/rcs/tools/url/client.rb +245 -0
  62. data/lib/rcs/types/advanced_phone_information.rb +147 -0
  63. data/lib/rcs/types/advanced_phone_information_carrier.rb +90 -0
  64. data/lib/rcs/types/advanced_phone_information_contact.rb +146 -0
  65. data/lib/rcs/types/advanced_phone_information_location.rb +142 -0
  66. data/lib/rcs/types/advanced_phone_information_location_coordinates.rb +73 -0
  67. data/lib/rcs/types/advanced_phone_information_location_country.rb +77 -0
  68. data/lib/rcs/types/advanced_phone_information_type.rb +97 -0
  69. data/lib/rcs/types/advanced_phone_information_type_recommendation.rb +15 -0
  70. data/lib/rcs/types/agent.rb +68 -0
  71. data/lib/rcs/types/attach_webhook_params.rb +60 -0
  72. data/lib/rcs/types/attach_webhook_response_webhook.rb +86 -0
  73. data/lib/rcs/types/attach_webhook_schema_name.rb +88 -0
  74. data/lib/rcs/types/attach_webhook_schema_webhook_id.rb +77 -0
  75. data/lib/rcs/types/attached_phone_number_result.rb +75 -0
  76. data/lib/rcs/types/autofill_campaign_params.rb +69 -0
  77. data/lib/rcs/types/autofill_dlc_campaign_response.rb +169 -0
  78. data/lib/rcs/types/autofill_dlc_response_keywords.rb +95 -0
  79. data/lib/rcs/types/autofill_dlc_response_keywords_help.rb +70 -0
  80. data/lib/rcs/{send/types/send_sms_response.rb → types/autofill_dlc_response_keywords_opt_in.rb} +18 -17
  81. data/lib/rcs/types/autofill_dlc_response_keywords_opt_out.rb +70 -0
  82. data/lib/rcs/types/autofill_dlc_response_links.rb +70 -0
  83. data/lib/rcs/types/autofill_dlc_response_options.rb +106 -0
  84. data/lib/rcs/types/autofill_dlc_response_use_case.rb +72 -0
  85. data/lib/rcs/types/bad_request_error_body.rb +44 -45
  86. data/lib/rcs/types/basic_phone_information.rb +127 -0
  87. data/lib/rcs/{company/types/company_register_response_brand.rb → types/basic_phone_information_contact.rb} +12 -21
  88. data/lib/rcs/types/basic_phone_information_location.rb +74 -0
  89. data/lib/rcs/types/basic_phone_information_location_country.rb +75 -0
  90. data/lib/rcs/types/brand_status.rb +92 -0
  91. data/lib/rcs/types/brand_status_enum.rb +21 -0
  92. data/lib/rcs/types/buy_response_capabilities.rb +77 -0
  93. data/lib/rcs/types/campaign_enum.rb +15 -0
  94. data/lib/rcs/types/campaign_query.rb +69 -0
  95. data/lib/rcs/{company/types/company_register_request_company_id.rb → types/campaign_submission_result.rb} +15 -16
  96. data/lib/rcs/types/campaign_validation_response_errors_item.rb +76 -0
  97. data/lib/rcs/types/campaign_validation_result.rb +71 -0
  98. data/lib/rcs/types/click_action.rb +73 -0
  99. data/lib/rcs/types/click_action_data.rb +56 -0
  100. data/lib/rcs/types/click_action_data_metadata.rb +69 -0
  101. data/lib/rcs/types/company_sector_enum.rb +26 -0
  102. data/lib/rcs/types/company_type_enum.rb +14 -0
  103. data/lib/rcs/types/configured_webhook.rb +85 -0
  104. data/lib/rcs/types/contact.rb +105 -0
  105. data/lib/rcs/types/contact_id.rb +57 -0
  106. data/lib/rcs/types/conversation.rb +146 -0
  107. data/lib/rcs/types/conversation_contact.rb +68 -0
  108. data/lib/rcs/types/conversation_list.rb +79 -0
  109. data/lib/rcs/types/conversation_sender.rb +60 -0
  110. data/lib/rcs/types/create_url_options.rb +61 -0
  111. data/lib/rcs/types/detached_phone_number_result.rb +75 -0
  112. data/lib/rcs/types/detached_webhook_info.rb +74 -0
  113. data/lib/rcs/types/detailed_phone_number_enum.rb +25 -0
  114. data/lib/rcs/types/dlc_assignment_status_enum.rb +19 -0
  115. data/lib/rcs/types/dlc_campaign_status.rb +107 -0
  116. data/lib/rcs/types/dlc_campaign_use_case_enum.rb +35 -0
  117. data/lib/rcs/types/dlc_campaign_with_extended_brand_and_status.rb +194 -0
  118. data/lib/rcs/types/dlc_with_extended_brand_and_status_keywords.rb +94 -0
  119. data/lib/rcs/types/dlc_with_extended_brand_and_status_keywords_help.rb +72 -0
  120. data/lib/rcs/{send/types/send_mms_response.rb → types/dlc_with_extended_brand_and_status_keywords_opt_in.rb} +20 -17
  121. data/lib/rcs/{send/types/send_rcs_response.rb → types/dlc_with_extended_brand_and_status_keywords_opt_out.rb} +20 -17
  122. data/lib/rcs/types/dlc_with_extended_brand_and_status_links.rb +70 -0
  123. data/lib/rcs/types/dlc_with_extended_brand_and_status_options.rb +106 -0
  124. data/lib/rcs/types/dlc_with_extended_brand_and_status_use_case.rb +72 -0
  125. data/lib/rcs/types/enhanced_contact.rb +9 -0
  126. data/lib/rcs/types/enhanced_contact_item.rb +104 -0
  127. data/lib/rcs/types/error.rb +61 -0
  128. data/lib/rcs/types/extended_brand.rb +194 -0
  129. data/lib/rcs/types/extended_brand_with_vetting.rb +226 -0
  130. data/lib/rcs/types/extended_rcs_campaign.rb +173 -0
  131. data/lib/rcs/{company/types/company_register_request.rb → types/get_conversation_params.rb} +13 -12
  132. data/lib/rcs/types/get_conversation_request_id.rb +58 -0
  133. data/lib/rcs/types/get_conversation_request_recipient.rb +72 -0
  134. data/lib/rcs/types/get_dlc_campaign_status_response_updates.rb +96 -0
  135. data/lib/rcs/types/get_toll_free_campaign_status_response_updates.rb +92 -0
  136. data/lib/rcs/types/inbound_button.rb +56 -0
  137. data/lib/rcs/types/link_click_event.rb +465 -0
  138. data/lib/rcs/{company/types/company_update_response.rb → types/location_share_action.rb} +19 -19
  139. data/lib/rcs/types/location_share_action_data.rb +89 -0
  140. data/lib/rcs/types/message.rb +174 -0
  141. data/lib/rcs/types/message_content.rb +85 -0
  142. data/lib/rcs/types/message_method_enum.rb +12 -0
  143. data/lib/rcs/types/message_protocol_enum.rb +12 -0
  144. data/lib/rcs/types/message_schedule.rb +94 -0
  145. data/lib/rcs/types/message_status_enum.rb +16 -0
  146. data/lib/rcs/types/message_volume_enum.rb +20 -0
  147. data/lib/rcs/types/messaging_profile_enum.rb +11 -0
  148. data/lib/rcs/types/mms_content.rb +74 -0
  149. data/lib/rcs/types/mms_validation_response_segments.rb +85 -0
  150. data/lib/rcs/types/mms_validation_response_segments_value_item.rb +75 -0
  151. data/lib/rcs/types/mms_validation_result.rb +82 -0
  152. data/lib/rcs/types/nullable_contact.rb +84 -0
  153. data/lib/rcs/types/number_format.rb +79 -0
  154. data/lib/rcs/types/opt_in_method_enum.rb +13 -0
  155. data/lib/rcs/types/optional_brand_info.rb +145 -0
  156. data/lib/rcs/types/optional_contact.rb +83 -0
  157. data/lib/rcs/types/optional_contacts.rb +84 -0
  158. data/lib/rcs/types/phone.rb +101 -0
  159. data/lib/rcs/types/phone_capabilities.rb +75 -0
  160. data/lib/rcs/types/phone_enum.rb +13 -0
  161. data/lib/rcs/types/phone_feature_enum.rb +18 -0
  162. data/lib/rcs/types/phone_number_campaign_attach_failed_item.rb +67 -0
  163. data/lib/rcs/types/phone_number_campaign_attach_phone_numbers_item.rb +75 -0
  164. data/lib/rcs/types/phone_number_campaign_attach_phone_numbers_item_campaign.rb +78 -0
  165. data/lib/rcs/types/phone_number_campaign_detach_failed_item.rb +67 -0
  166. data/lib/rcs/types/phone_number_campaign_detach_phone_numbers_item.rb +75 -0
  167. data/lib/rcs/types/phone_number_campaign_detach_phone_numbers_item_campaign.rb +78 -0
  168. data/lib/rcs/types/phone_number_cost.rb +75 -0
  169. data/lib/rcs/types/phone_number_details.rb +110 -0
  170. data/lib/rcs/types/phone_number_enum.rb +18 -0
  171. data/lib/rcs/types/phone_number_region.rb +91 -0
  172. data/lib/rcs/types/phone_number_status.rb +90 -0
  173. data/lib/rcs/types/phone_number_status_enum.rb +16 -0
  174. data/lib/rcs/types/pinnacle_file_upload_metadata.rb +84 -0
  175. data/lib/rcs/types/pinnacle_url_config.rb +71 -0
  176. data/lib/rcs/types/profile_status_enum.rb +17 -0
  177. data/lib/rcs/types/purchased_number.rb +75 -0
  178. data/lib/rcs/types/rcs.rb +70 -0
  179. data/lib/rcs/types/rcs_base.rb +82 -0
  180. data/lib/rcs/types/rcs_base_options.rb +100 -0
  181. data/lib/rcs/types/rcs_button_call.rb +68 -0
  182. data/lib/rcs/types/rcs_button_content.rb +148 -0
  183. data/lib/rcs/types/rcs_button_open_url.rb +68 -0
  184. data/lib/rcs/types/rcs_button_request_user_location.rb +58 -0
  185. data/lib/rcs/types/rcs_button_schedule_event.rb +98 -0
  186. data/lib/rcs/types/rcs_button_send_location.rb +74 -0
  187. data/lib/rcs/types/rcs_button_send_location_lat_long.rb +68 -0
  188. data/lib/rcs/types/rcs_button_trigger.rb +78 -0
  189. data/lib/rcs/types/rcs_campaign.rb +143 -0
  190. data/lib/rcs/types/rcs_campaign_opt_in_method_enum.rb +15 -0
  191. data/lib/rcs/types/rcs_campaign_schema_agent.rb +134 -0
  192. data/lib/rcs/types/rcs_campaign_schema_agent_emails_item.rb +69 -0
  193. data/lib/rcs/types/rcs_campaign_schema_agent_phones_item.rb +69 -0
  194. data/lib/rcs/types/rcs_campaign_schema_agent_websites_item.rb +69 -0
  195. data/lib/rcs/types/rcs_campaign_schema_extra_agent.rb +134 -0
  196. data/lib/rcs/types/rcs_campaign_schema_extra_agent_emails_item.rb +70 -0
  197. data/lib/rcs/types/rcs_campaign_schema_extra_agent_phones_item.rb +70 -0
  198. data/lib/rcs/types/rcs_campaign_schema_extra_agent_websites_item.rb +71 -0
  199. data/lib/rcs/types/rcs_campaign_schema_extra_links.rb +70 -0
  200. data/lib/rcs/types/rcs_campaign_schema_extra_opt_in.rb +71 -0
  201. data/lib/rcs/types/rcs_campaign_schema_extra_opt_out.rb +70 -0
  202. data/lib/rcs/types/rcs_campaign_schema_extra_use_case.rb +71 -0
  203. data/lib/rcs/types/rcs_campaign_schema_links.rb +70 -0
  204. data/lib/rcs/types/rcs_campaign_schema_opt_in.rb +71 -0
  205. data/lib/rcs/types/rcs_campaign_schema_opt_out.rb +70 -0
  206. data/lib/rcs/types/rcs_campaign_schema_use_case.rb +71 -0
  207. data/lib/rcs/types/rcs_campaign_status.rb +86 -0
  208. data/lib/rcs/types/rcs_campaign_use_case_enum.rb +23 -0
  209. data/lib/rcs/types/rcs_card.rb +110 -0
  210. data/lib/rcs/types/rcs_cards.rb +79 -0
  211. data/lib/rcs/types/rcs_cards_cards_item.rb +88 -0
  212. data/lib/rcs/types/rcs_cards_content.rb +79 -0
  213. data/lib/rcs/types/rcs_cards_content_cards_item.rb +94 -0
  214. data/lib/rcs/types/rcs_content.rb +72 -0
  215. data/lib/rcs/types/rcs_media.rb +110 -0
  216. data/lib/rcs/types/rcs_media_content.rb +81 -0
  217. data/lib/rcs/types/rcs_media_details_content.rb +77 -0
  218. data/lib/rcs/types/rcs_text.rb +106 -0
  219. data/lib/rcs/types/rcs_text_content.rb +72 -0
  220. data/lib/rcs/types/rcs_validate_content.rb +70 -0
  221. data/lib/rcs/{company/types/company_register_response.rb → types/rcs_validate_content_media.rb} +19 -21
  222. data/lib/rcs/types/rcs_validation_result.rb +76 -0
  223. data/lib/rcs/types/reaction_result.rb +67 -0
  224. data/lib/rcs/types/scheduled_messaage.rb +73 -0
  225. data/lib/rcs/types/scheduled_send_response_config.rb +89 -0
  226. data/lib/rcs/types/send_sms_response_segments.rb +69 -0
  227. data/lib/rcs/types/send_sms_response_segments_encoding.rb +11 -0
  228. data/lib/rcs/types/sent_mms_details.rb +102 -0
  229. data/lib/rcs/types/sent_rcs_details.rb +105 -0
  230. data/lib/rcs/types/sent_sms_details.rb +108 -0
  231. data/lib/rcs/types/shortened_url.rb +77 -0
  232. data/lib/rcs/types/shortened_url_with_click_data.rb +90 -0
  233. data/lib/rcs/types/sms_content.rb +58 -0
  234. data/lib/rcs/types/sms_validation_response_segments.rb +80 -0
  235. data/lib/rcs/types/sms_validation_response_segments_gsm_7.rb +75 -0
  236. data/lib/rcs/types/sms_validation_response_segments_utf_16.rb +68 -0
  237. data/lib/rcs/types/sms_validation_response_total.rb +75 -0
  238. data/lib/rcs/types/sms_validation_result.rb +102 -0
  239. data/lib/rcs/types/sub_use_case_enum.rb +19 -0
  240. data/lib/rcs/types/submission_results.rb +57 -0
  241. data/lib/rcs/types/successful_conversation_update.rb +58 -0
  242. data/lib/rcs/types/toll_free_campaign.rb +118 -0
  243. data/lib/rcs/types/toll_free_campaign_schema_opt_in.rb +78 -0
  244. data/lib/rcs/types/toll_free_campaign_schema_use_case.rb +71 -0
  245. data/lib/rcs/types/toll_free_campaign_status.rb +91 -0
  246. data/lib/rcs/types/toll_free_campaign_use_case_enum.rb +52 -0
  247. data/lib/rcs/types/toll_free_campaign_with_extended_brand_and_status.rb +155 -0
  248. data/lib/rcs/types/toll_free_status_enum.rb +20 -0
  249. data/lib/rcs/types/tracking.rb +17 -0
  250. data/lib/rcs/types/updated_contact_id.rb +57 -0
  251. data/lib/rcs/types/upload_results.rb +80 -0
  252. data/lib/rcs/types/v_card_address_schema_type_item.rb +15 -0
  253. data/lib/rcs/types/v_card_data.rb +237 -0
  254. data/lib/rcs/types/v_card_data_file.rb +74 -0
  255. data/lib/rcs/types/v_card_data_file_metadata.rb +62 -0
  256. data/lib/rcs/types/v_card_email_schema_type_item.rb +21 -0
  257. data/lib/rcs/types/v_card_geo.rb +70 -0
  258. data/lib/rcs/types/v_card_name.rb +98 -0
  259. data/lib/rcs/types/v_card_organization.rb +70 -0
  260. data/lib/rcs/types/v_card_phone_schema_type_item.rb +21 -0
  261. data/lib/rcs/types/validate_campaign_params.rb +69 -0
  262. data/lib/rcs/types/validation_error_details.rb +76 -0
  263. data/lib/rcs/types/validation_results.rb +71 -0
  264. data/lib/rcs/types/vcard.rb +215 -0
  265. data/lib/rcs/types/vcard_address.rb +130 -0
  266. data/lib/rcs/types/vcard_content.rb +223 -0
  267. data/lib/rcs/types/vcard_email.rb +70 -0
  268. data/lib/rcs/types/vcard_phone.rb +70 -0
  269. data/lib/rcs/types/vcard_resource.rb +71 -0
  270. data/lib/rcs/types/vetting_feedback.rb +81 -0
  271. data/lib/rcs/types/vetting_history.rb +98 -0
  272. data/lib/rcs/types/vetting_history_vetting_status.rb +13 -0
  273. data/lib/rcs/types/vetting_results.rb +57 -0
  274. data/lib/rcs/types/webhook_event_enum.rb +13 -0
  275. data/lib/rcs/types/webhook_result.rb +64 -0
  276. data/lib/rcs/{company/types/company_update_response_brand.rb → types/webhooks.rb} +25 -17
  277. data/lib/rcs/types/zod_error.rb +73 -0
  278. data/lib/rcs/webhooks/client.rb +93 -0
  279. data/lib/rcs.rb +67 -83
  280. data/lib/requests.rb +4 -4
  281. data/lib/types_export.rb +252 -46
  282. metadata +278 -52
  283. data/lib/rcs/company/client.rb +0 -375
  284. data/lib/rcs/company/types/company_register_request_company.rb +0 -128
  285. data/lib/rcs/send/client.rb +0 -382
  286. data/lib/rcs/send/types/rcs_fallback.rb +0 -84
  287. data/lib/rcs/tools/types/tools_shorten_url_response.rb +0 -70
  288. data/lib/rcs/tools/types/tools_upload_url_response.rb +0 -69
  289. data/lib/rcs/types/action.rb +0 -154
  290. data/lib/rcs/types/action_lat_long.rb +0 -68
  291. data/lib/rcs/types/action_type.rb +0 -16
  292. data/lib/rcs/types/additional_email.rb +0 -65
  293. data/lib/rcs/types/additional_phone_number.rb +0 -65
  294. data/lib/rcs/types/additional_website.rb +0 -65
  295. data/lib/rcs/types/card.rb +0 -90
  296. data/lib/rcs/types/company.rb +0 -319
  297. data/lib/rcs/types/company_additional_emails_item.rb +0 -67
  298. data/lib/rcs/types/company_additional_phone_numbers_item.rb +0 -67
  299. data/lib/rcs/types/company_additional_websites_item.rb +0 -67
  300. data/lib/rcs/types/company_category.rb +0 -20
  301. data/lib/rcs/types/company_contact.rb +0 -117
  302. data/lib/rcs/types/company_details.rb +0 -120
  303. data/lib/rcs/types/forbidden_error_body.rb +0 -57
  304. data/lib/rcs/types/inbound_action_message.rb +0 -117
  305. data/lib/rcs/types/inbound_location_message.rb +0 -106
  306. data/lib/rcs/types/inbound_location_message_coordinates.rb +0 -65
  307. data/lib/rcs/types/inbound_media_message.rb +0 -112
  308. data/lib/rcs/types/inbound_message.rb +0 -88
  309. data/lib/rcs/types/inbound_message_message_type.rb +0 -10
  310. data/lib/rcs/types/inbound_message_metadata.rb +0 -79
  311. data/lib/rcs/types/inbound_text_message.rb +0 -100
  312. data/lib/rcs/types/internal_server_error_body.rb +0 -57
  313. data/lib/rcs/types/media_payload.rb +0 -65
  314. data/lib/rcs/types/message_metadata.rb +0 -56
  315. data/lib/rcs/types/messaging.rb +0 -95
  316. data/lib/rcs/types/optionals.rb +0 -99
  317. data/lib/rcs/types/payment_required_error_body.rb +0 -57
  318. data/lib/rcs/types/point_of_contact.rb +0 -72
  319. data/lib/rcs/types/rcs_functionalities.rb +0 -117
  320. data/lib/rcs/types/sender_metadata.rb +0 -74
  321. data/lib/rcs/types/unauthorized_error_body.rb +0 -57
@@ -0,0 +1,223 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "v_card_name"
4
+ require_relative "vcard_address"
5
+ require_relative "vcard_phone"
6
+ require_relative "vcard_email"
7
+ require_relative "v_card_geo"
8
+ require_relative "v_card_organization"
9
+ require "ostruct"
10
+ require "json"
11
+
12
+ module Pinnacle
13
+ module Types
14
+ class VcardContent
15
+ # @return [String] ISO 8601 timestamp of last vCard update.
16
+ attr_reader :revision
17
+ # @return [Integer] Unique identifier for the contact.
18
+ attr_reader :id
19
+ # @return [String] Full display name for the vCard.
20
+ attr_reader :formatted_name
21
+ # @return [Pinnacle::Types::VCardName] Structured name components.
22
+ attr_reader :name
23
+ # @return [Array<String>] Nicknames or aliases.
24
+ attr_reader :nickname
25
+ # @return [String] Birthday in ISO 8601 date format (YYYY-MM-DD).
26
+ attr_reader :birthday
27
+ # @return [Array<Pinnacle::Types::VcardAddress>] Physical addresses.
28
+ attr_reader :addresses
29
+ # @return [String] Website URL.
30
+ attr_reader :url
31
+ # @return [Array<Pinnacle::Types::VcardPhone>] Phone numbers.
32
+ attr_reader :phones
33
+ # @return [Array<Pinnacle::Types::VcardEmail>] Email addresses.
34
+ attr_reader :emails
35
+ # @return [String] Timezone (e.g., "America/New_York").
36
+ attr_reader :timezone
37
+ # @return [Pinnacle::Types::VCardGeo] Geographic coordinates.
38
+ attr_reader :geo
39
+ # @return [String] Job title or position.
40
+ attr_reader :title
41
+ # @return [String] Role or function within the organization.
42
+ attr_reader :role
43
+ # @return [Pinnacle::Types::VCardOrganization] Organization or company information.
44
+ attr_reader :organization
45
+ # @return [Array<String>] Categories or tags for organizing contacts.
46
+ attr_reader :categories
47
+ # @return [String] Additional notes or comments.
48
+ attr_reader :note
49
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
50
+ attr_reader :additional_properties
51
+ # @return [Object]
52
+ attr_reader :_field_set
53
+ protected :_field_set
54
+
55
+ OMIT = Object.new
56
+
57
+ # @param revision [String] ISO 8601 timestamp of last vCard update.
58
+ # @param id [Integer] Unique identifier for the contact.
59
+ # @param formatted_name [String] Full display name for the vCard.
60
+ # @param name [Pinnacle::Types::VCardName] Structured name components.
61
+ # @param nickname [Array<String>] Nicknames or aliases.
62
+ # @param birthday [String] Birthday in ISO 8601 date format (YYYY-MM-DD).
63
+ # @param addresses [Array<Pinnacle::Types::VcardAddress>] Physical addresses.
64
+ # @param url [String] Website URL.
65
+ # @param phones [Array<Pinnacle::Types::VcardPhone>] Phone numbers.
66
+ # @param emails [Array<Pinnacle::Types::VcardEmail>] Email addresses.
67
+ # @param timezone [String] Timezone (e.g., "America/New_York").
68
+ # @param geo [Pinnacle::Types::VCardGeo] Geographic coordinates.
69
+ # @param title [String] Job title or position.
70
+ # @param role [String] Role or function within the organization.
71
+ # @param organization [Pinnacle::Types::VCardOrganization] Organization or company information.
72
+ # @param categories [Array<String>] Categories or tags for organizing contacts.
73
+ # @param note [String] Additional notes or comments.
74
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
75
+ # @return [Pinnacle::Types::VcardContent]
76
+ def initialize(revision: OMIT, id: OMIT, formatted_name: OMIT, name: OMIT, nickname: OMIT, birthday: OMIT,
77
+ addresses: OMIT, url: OMIT, phones: OMIT, emails: OMIT, timezone: OMIT, geo: OMIT, title: OMIT, role: OMIT, organization: OMIT, categories: OMIT, note: OMIT, additional_properties: nil)
78
+ @revision = revision if revision != OMIT
79
+ @id = id if id != OMIT
80
+ @formatted_name = formatted_name if formatted_name != OMIT
81
+ @name = name if name != OMIT
82
+ @nickname = nickname if nickname != OMIT
83
+ @birthday = birthday if birthday != OMIT
84
+ @addresses = addresses if addresses != OMIT
85
+ @url = url if url != OMIT
86
+ @phones = phones if phones != OMIT
87
+ @emails = emails if emails != OMIT
88
+ @timezone = timezone if timezone != OMIT
89
+ @geo = geo if geo != OMIT
90
+ @title = title if title != OMIT
91
+ @role = role if role != OMIT
92
+ @organization = organization if organization != OMIT
93
+ @categories = categories if categories != OMIT
94
+ @note = note if note != OMIT
95
+ @additional_properties = additional_properties
96
+ @_field_set = {
97
+ "revision": revision,
98
+ "id": id,
99
+ "formattedName": formatted_name,
100
+ "name": name,
101
+ "nickname": nickname,
102
+ "birthday": birthday,
103
+ "addresses": addresses,
104
+ "url": url,
105
+ "phones": phones,
106
+ "emails": emails,
107
+ "timezone": timezone,
108
+ "geo": geo,
109
+ "title": title,
110
+ "role": role,
111
+ "organization": organization,
112
+ "categories": categories,
113
+ "note": note
114
+ }.reject do |_k, v|
115
+ v == OMIT
116
+ end
117
+ end
118
+
119
+ # Deserialize a JSON object to an instance of VcardContent
120
+ #
121
+ # @param json_object [String]
122
+ # @return [Pinnacle::Types::VcardContent]
123
+ def self.from_json(json_object:)
124
+ struct = JSON.parse(json_object, object_class: OpenStruct)
125
+ parsed_json = JSON.parse(json_object)
126
+ revision = parsed_json["revision"]
127
+ id = parsed_json["id"]
128
+ formatted_name = parsed_json["formattedName"]
129
+ if parsed_json["name"].nil?
130
+ name = nil
131
+ else
132
+ name = parsed_json["name"].to_json
133
+ name = Pinnacle::Types::VCardName.from_json(json_object: name)
134
+ end
135
+ nickname = parsed_json["nickname"]
136
+ birthday = parsed_json["birthday"]
137
+ addresses = parsed_json["addresses"]&.map do |item|
138
+ item = item.to_json
139
+ Pinnacle::Types::VcardAddress.from_json(json_object: item)
140
+ end
141
+ url = parsed_json["url"]
142
+ phones = parsed_json["phones"]&.map do |item|
143
+ item = item.to_json
144
+ Pinnacle::Types::VcardPhone.from_json(json_object: item)
145
+ end
146
+ emails = parsed_json["emails"]&.map do |item|
147
+ item = item.to_json
148
+ Pinnacle::Types::VcardEmail.from_json(json_object: item)
149
+ end
150
+ timezone = parsed_json["timezone"]
151
+ if parsed_json["geo"].nil?
152
+ geo = nil
153
+ else
154
+ geo = parsed_json["geo"].to_json
155
+ geo = Pinnacle::Types::VCardGeo.from_json(json_object: geo)
156
+ end
157
+ title = parsed_json["title"]
158
+ role = parsed_json["role"]
159
+ if parsed_json["organization"].nil?
160
+ organization = nil
161
+ else
162
+ organization = parsed_json["organization"].to_json
163
+ organization = Pinnacle::Types::VCardOrganization.from_json(json_object: organization)
164
+ end
165
+ categories = parsed_json["categories"]
166
+ note = parsed_json["note"]
167
+ new(
168
+ revision: revision,
169
+ id: id,
170
+ formatted_name: formatted_name,
171
+ name: name,
172
+ nickname: nickname,
173
+ birthday: birthday,
174
+ addresses: addresses,
175
+ url: url,
176
+ phones: phones,
177
+ emails: emails,
178
+ timezone: timezone,
179
+ geo: geo,
180
+ title: title,
181
+ role: role,
182
+ organization: organization,
183
+ categories: categories,
184
+ note: note,
185
+ additional_properties: struct
186
+ )
187
+ end
188
+
189
+ # Serialize an instance of VcardContent to a JSON object
190
+ #
191
+ # @return [String]
192
+ def to_json(*_args)
193
+ @_field_set&.to_json
194
+ end
195
+
196
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
197
+ # hash and check each fields type against the current object's property
198
+ # definitions.
199
+ #
200
+ # @param obj [Object]
201
+ # @return [Void]
202
+ def self.validate_raw(obj:)
203
+ obj.revision&.is_a?(String) != false || raise("Passed value for field obj.revision is not the expected type, validation failed.")
204
+ obj.id&.is_a?(Integer) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
205
+ obj.formatted_name&.is_a?(String) != false || raise("Passed value for field obj.formatted_name is not the expected type, validation failed.")
206
+ obj.name.nil? || Pinnacle::Types::VCardName.validate_raw(obj: obj.name)
207
+ obj.nickname&.is_a?(Array) != false || raise("Passed value for field obj.nickname is not the expected type, validation failed.")
208
+ obj.birthday&.is_a?(String) != false || raise("Passed value for field obj.birthday is not the expected type, validation failed.")
209
+ obj.addresses&.is_a?(Array) != false || raise("Passed value for field obj.addresses is not the expected type, validation failed.")
210
+ obj.url&.is_a?(String) != false || raise("Passed value for field obj.url is not the expected type, validation failed.")
211
+ obj.phones&.is_a?(Array) != false || raise("Passed value for field obj.phones is not the expected type, validation failed.")
212
+ obj.emails&.is_a?(Array) != false || raise("Passed value for field obj.emails is not the expected type, validation failed.")
213
+ obj.timezone&.is_a?(String) != false || raise("Passed value for field obj.timezone is not the expected type, validation failed.")
214
+ obj.geo.nil? || Pinnacle::Types::VCardGeo.validate_raw(obj: obj.geo)
215
+ obj.title&.is_a?(String) != false || raise("Passed value for field obj.title is not the expected type, validation failed.")
216
+ obj.role&.is_a?(String) != false || raise("Passed value for field obj.role is not the expected type, validation failed.")
217
+ obj.organization.nil? || Pinnacle::Types::VCardOrganization.validate_raw(obj: obj.organization)
218
+ obj.categories&.is_a?(Array) != false || raise("Passed value for field obj.categories is not the expected type, validation failed.")
219
+ obj.note&.is_a?(String) != false || raise("Passed value for field obj.note is not the expected type, validation failed.")
220
+ end
221
+ end
222
+ end
223
+ end
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "v_card_email_schema_type_item"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module Pinnacle
8
+ module Types
9
+ class VcardEmail
10
+ # @return [Array<Pinnacle::Types::VCardEmailSchemaTypeItem>] Email address type classifications.
11
+ attr_reader :type
12
+ # @return [String] Email address.
13
+ attr_reader :value
14
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
15
+ attr_reader :additional_properties
16
+ # @return [Object]
17
+ attr_reader :_field_set
18
+ protected :_field_set
19
+
20
+ OMIT = Object.new
21
+
22
+ # @param type [Array<Pinnacle::Types::VCardEmailSchemaTypeItem>] Email address type classifications.
23
+ # @param value [String] Email address.
24
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
25
+ # @return [Pinnacle::Types::VcardEmail]
26
+ def initialize(type: OMIT, value: OMIT, additional_properties: nil)
27
+ @type = type if type != OMIT
28
+ @value = value if value != OMIT
29
+ @additional_properties = additional_properties
30
+ @_field_set = { "type": type, "value": value }.reject do |_k, v|
31
+ v == OMIT
32
+ end
33
+ end
34
+
35
+ # Deserialize a JSON object to an instance of VcardEmail
36
+ #
37
+ # @param json_object [String]
38
+ # @return [Pinnacle::Types::VcardEmail]
39
+ def self.from_json(json_object:)
40
+ struct = JSON.parse(json_object, object_class: OpenStruct)
41
+ parsed_json = JSON.parse(json_object)
42
+ type = parsed_json["type"]
43
+ value = parsed_json["value"]
44
+ new(
45
+ type: type,
46
+ value: value,
47
+ additional_properties: struct
48
+ )
49
+ end
50
+
51
+ # Serialize an instance of VcardEmail to a JSON object
52
+ #
53
+ # @return [String]
54
+ def to_json(*_args)
55
+ @_field_set&.to_json
56
+ end
57
+
58
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
59
+ # hash and check each fields type against the current object's property
60
+ # definitions.
61
+ #
62
+ # @param obj [Object]
63
+ # @return [Void]
64
+ def self.validate_raw(obj:)
65
+ obj.type&.is_a?(Array) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
66
+ obj.value&.is_a?(String) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "v_card_phone_schema_type_item"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module Pinnacle
8
+ module Types
9
+ class VcardPhone
10
+ # @return [Array<Pinnacle::Types::VCardPhoneSchemaTypeItem>] Phone number type classifications.
11
+ attr_reader :type
12
+ # @return [String] Phone number in any format.
13
+ attr_reader :value
14
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
15
+ attr_reader :additional_properties
16
+ # @return [Object]
17
+ attr_reader :_field_set
18
+ protected :_field_set
19
+
20
+ OMIT = Object.new
21
+
22
+ # @param type [Array<Pinnacle::Types::VCardPhoneSchemaTypeItem>] Phone number type classifications.
23
+ # @param value [String] Phone number in any format.
24
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
25
+ # @return [Pinnacle::Types::VcardPhone]
26
+ def initialize(type: OMIT, value: OMIT, additional_properties: nil)
27
+ @type = type if type != OMIT
28
+ @value = value if value != OMIT
29
+ @additional_properties = additional_properties
30
+ @_field_set = { "type": type, "value": value }.reject do |_k, v|
31
+ v == OMIT
32
+ end
33
+ end
34
+
35
+ # Deserialize a JSON object to an instance of VcardPhone
36
+ #
37
+ # @param json_object [String]
38
+ # @return [Pinnacle::Types::VcardPhone]
39
+ def self.from_json(json_object:)
40
+ struct = JSON.parse(json_object, object_class: OpenStruct)
41
+ parsed_json = JSON.parse(json_object)
42
+ type = parsed_json["type"]
43
+ value = parsed_json["value"]
44
+ new(
45
+ type: type,
46
+ value: value,
47
+ additional_properties: struct
48
+ )
49
+ end
50
+
51
+ # Serialize an instance of VcardPhone to a JSON object
52
+ #
53
+ # @return [String]
54
+ def to_json(*_args)
55
+ @_field_set&.to_json
56
+ end
57
+
58
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
59
+ # hash and check each fields type against the current object's property
60
+ # definitions.
61
+ #
62
+ # @param obj [Object]
63
+ # @return [Void]
64
+ def self.validate_raw(obj:)
65
+ obj.type&.is_a?(Array) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
66
+ obj.value&.is_a?(String) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module Pinnacle
7
+ module Types
8
+ class VcardResource
9
+ # @return [Integer] Contact's id
10
+ attr_reader :id
11
+ # @return [String] Presigned download url to download vCard data. <br>
12
+ # This link will expire in one hour.
13
+ attr_reader :download_url
14
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
15
+ attr_reader :additional_properties
16
+ # @return [Object]
17
+ attr_reader :_field_set
18
+ protected :_field_set
19
+
20
+ OMIT = Object.new
21
+
22
+ # @param id [Integer] Contact's id
23
+ # @param download_url [String] Presigned download url to download vCard data. <br>
24
+ # This link will expire in one hour.
25
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
+ # @return [Pinnacle::Types::VcardResource]
27
+ def initialize(id: OMIT, download_url: OMIT, additional_properties: nil)
28
+ @id = id if id != OMIT
29
+ @download_url = download_url if download_url != OMIT
30
+ @additional_properties = additional_properties
31
+ @_field_set = { "id": id, "downloadUrl": download_url }.reject do |_k, v|
32
+ v == OMIT
33
+ end
34
+ end
35
+
36
+ # Deserialize a JSON object to an instance of VcardResource
37
+ #
38
+ # @param json_object [String]
39
+ # @return [Pinnacle::Types::VcardResource]
40
+ def self.from_json(json_object:)
41
+ struct = JSON.parse(json_object, object_class: OpenStruct)
42
+ parsed_json = JSON.parse(json_object)
43
+ id = parsed_json["id"]
44
+ download_url = parsed_json["downloadUrl"]
45
+ new(
46
+ id: id,
47
+ download_url: download_url,
48
+ additional_properties: struct
49
+ )
50
+ end
51
+
52
+ # Serialize an instance of VcardResource 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.id&.is_a?(Integer) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
67
+ obj.download_url&.is_a?(String) != false || raise("Passed value for field obj.download_url is not the expected type, validation failed.")
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module Pinnacle
7
+ module Types
8
+ class VettingFeedback
9
+ # @return [String] Detailed description of the feedback.
10
+ attr_reader :description
11
+ # @return [String] Human-readable name of the feedback item.
12
+ attr_reader :display_name
13
+ # @return [Array<String>] Fields affected by this feedback item.
14
+ attr_reader :fields
15
+ # @return [String] Feedback item identifier.
16
+ attr_reader :id
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 description [String] Detailed description of the feedback.
26
+ # @param display_name [String] Human-readable name of the feedback item.
27
+ # @param fields [Array<String>] Fields affected by this feedback item.
28
+ # @param id [String] Feedback item identifier.
29
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
+ # @return [Pinnacle::Types::VettingFeedback]
31
+ def initialize(description:, display_name:, fields:, id:, additional_properties: nil)
32
+ @description = description
33
+ @display_name = display_name
34
+ @fields = fields
35
+ @id = id
36
+ @additional_properties = additional_properties
37
+ @_field_set = { "description": description, "displayName": display_name, "fields": fields, "id": id }
38
+ end
39
+
40
+ # Deserialize a JSON object to an instance of VettingFeedback
41
+ #
42
+ # @param json_object [String]
43
+ # @return [Pinnacle::Types::VettingFeedback]
44
+ def self.from_json(json_object:)
45
+ struct = JSON.parse(json_object, object_class: OpenStruct)
46
+ parsed_json = JSON.parse(json_object)
47
+ description = parsed_json["description"]
48
+ display_name = parsed_json["displayName"]
49
+ fields = parsed_json["fields"]
50
+ id = parsed_json["id"]
51
+ new(
52
+ description: description,
53
+ display_name: display_name,
54
+ fields: fields,
55
+ id: id,
56
+ additional_properties: struct
57
+ )
58
+ end
59
+
60
+ # Serialize an instance of VettingFeedback to a JSON object
61
+ #
62
+ # @return [String]
63
+ def to_json(*_args)
64
+ @_field_set&.to_json
65
+ end
66
+
67
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
68
+ # hash and check each fields type against the current object's property
69
+ # definitions.
70
+ #
71
+ # @param obj [Object]
72
+ # @return [Void]
73
+ def self.validate_raw(obj:)
74
+ obj.description.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
75
+ obj.display_name.is_a?(String) != false || raise("Passed value for field obj.display_name is not the expected type, validation failed.")
76
+ obj.fields.is_a?(Array) != false || raise("Passed value for field obj.fields is not the expected type, validation failed.")
77
+ obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "vetting_history_vetting_status"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module Pinnacle
8
+ module Types
9
+ class VettingHistory
10
+ # @return [String] The vetting provider used.
11
+ attr_reader :provider
12
+ # @return [String] The vetting class level.
13
+ attr_reader :vetting_class
14
+ # @return [String] ISO 8601 formatted timestamp of when the vetting was initiated.
15
+ attr_reader :vetting_date
16
+ # @return [Float] Vetting score if available.
17
+ attr_reader :vetting_score
18
+ # @return [Pinnacle::Types::VettingHistoryVettingStatus] Current status of the vetting process.
19
+ attr_reader :vetting_status
20
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
21
+ attr_reader :additional_properties
22
+ # @return [Object]
23
+ attr_reader :_field_set
24
+ protected :_field_set
25
+
26
+ OMIT = Object.new
27
+
28
+ # @param provider [String] The vetting provider used.
29
+ # @param vetting_class [String] The vetting class level.
30
+ # @param vetting_date [String] ISO 8601 formatted timestamp of when the vetting was initiated.
31
+ # @param vetting_score [Float] Vetting score if available.
32
+ # @param vetting_status [Pinnacle::Types::VettingHistoryVettingStatus] Current status of the vetting process.
33
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
34
+ # @return [Pinnacle::Types::VettingHistory]
35
+ def initialize(provider:, vetting_class:, vetting_date:, vetting_status:, vetting_score: OMIT,
36
+ additional_properties: nil)
37
+ @provider = provider
38
+ @vetting_class = vetting_class
39
+ @vetting_date = vetting_date
40
+ @vetting_score = vetting_score if vetting_score != OMIT
41
+ @vetting_status = vetting_status
42
+ @additional_properties = additional_properties
43
+ @_field_set = {
44
+ "provider": provider,
45
+ "vettingClass": vetting_class,
46
+ "vettingDate": vetting_date,
47
+ "vettingScore": vetting_score,
48
+ "vettingStatus": vetting_status
49
+ }.reject do |_k, v|
50
+ v == OMIT
51
+ end
52
+ end
53
+
54
+ # Deserialize a JSON object to an instance of VettingHistory
55
+ #
56
+ # @param json_object [String]
57
+ # @return [Pinnacle::Types::VettingHistory]
58
+ def self.from_json(json_object:)
59
+ struct = JSON.parse(json_object, object_class: OpenStruct)
60
+ parsed_json = JSON.parse(json_object)
61
+ provider = parsed_json["provider"]
62
+ vetting_class = parsed_json["vettingClass"]
63
+ vetting_date = parsed_json["vettingDate"]
64
+ vetting_score = parsed_json["vettingScore"]
65
+ vetting_status = parsed_json["vettingStatus"]
66
+ new(
67
+ provider: provider,
68
+ vetting_class: vetting_class,
69
+ vetting_date: vetting_date,
70
+ vetting_score: vetting_score,
71
+ vetting_status: vetting_status,
72
+ additional_properties: struct
73
+ )
74
+ end
75
+
76
+ # Serialize an instance of VettingHistory to a JSON object
77
+ #
78
+ # @return [String]
79
+ def to_json(*_args)
80
+ @_field_set&.to_json
81
+ end
82
+
83
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
84
+ # hash and check each fields type against the current object's property
85
+ # definitions.
86
+ #
87
+ # @param obj [Object]
88
+ # @return [Void]
89
+ def self.validate_raw(obj:)
90
+ obj.provider.is_a?(String) != false || raise("Passed value for field obj.provider is not the expected type, validation failed.")
91
+ obj.vetting_class.is_a?(String) != false || raise("Passed value for field obj.vetting_class is not the expected type, validation failed.")
92
+ obj.vetting_date.is_a?(String) != false || raise("Passed value for field obj.vetting_date is not the expected type, validation failed.")
93
+ obj.vetting_score&.is_a?(Float) != false || raise("Passed value for field obj.vetting_score is not the expected type, validation failed.")
94
+ obj.vetting_status.is_a?(Pinnacle::Types::VettingHistoryVettingStatus) != false || raise("Passed value for field obj.vetting_status is not the expected type, validation failed.")
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Pinnacle
4
+ module Types
5
+ # Current status of the vetting process.
6
+ class VettingHistoryVettingStatus
7
+ ACTIVE = "ACTIVE"
8
+ FAILED = "FAILED"
9
+ IN_PROGRESS = "IN_PROGRESS"
10
+ PENDING = "PENDING"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module Pinnacle
7
+ module Types
8
+ class VettingResults
9
+ # @return [Boolean] Indicates if the vetting was successful.
10
+ attr_reader :success
11
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
12
+ attr_reader :additional_properties
13
+ # @return [Object]
14
+ attr_reader :_field_set
15
+ protected :_field_set
16
+
17
+ OMIT = Object.new
18
+
19
+ # @param success [Boolean] Indicates if the vetting was successful.
20
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
21
+ # @return [Pinnacle::Types::VettingResults]
22
+ def initialize(success:, additional_properties: nil)
23
+ @success = success
24
+ @additional_properties = additional_properties
25
+ @_field_set = { "success": success }
26
+ end
27
+
28
+ # Deserialize a JSON object to an instance of VettingResults
29
+ #
30
+ # @param json_object [String]
31
+ # @return [Pinnacle::Types::VettingResults]
32
+ def self.from_json(json_object:)
33
+ struct = JSON.parse(json_object, object_class: OpenStruct)
34
+ parsed_json = JSON.parse(json_object)
35
+ success = parsed_json["success"]
36
+ new(success: success, additional_properties: struct)
37
+ end
38
+
39
+ # Serialize an instance of VettingResults to a JSON object
40
+ #
41
+ # @return [String]
42
+ def to_json(*_args)
43
+ @_field_set&.to_json
44
+ end
45
+
46
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
47
+ # hash and check each fields type against the current object's property
48
+ # definitions.
49
+ #
50
+ # @param obj [Object]
51
+ # @return [Void]
52
+ def self.validate_raw(obj:)
53
+ obj.success.is_a?(Boolean) != false || raise("Passed value for field obj.success is not the expected type, validation failed.")
54
+ end
55
+ end
56
+ end
57
+ end