hubspot-api-client 9.3.0 → 9.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile.lock +3 -1
  4. data/hubspot-api-client.gemspec +1 -0
  5. data/lib/hubspot-api-client.rb +5 -664
  6. data/lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb +728 -0
  7. data/lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb +247 -0
  8. data/lib/hubspot/codegen/crm/extensions/accounting/api/settings_api.rb +160 -0
  9. data/lib/hubspot/codegen/crm/extensions/accounting/api/sync_api.rb +168 -0
  10. data/lib/hubspot/codegen/crm/extensions/accounting/api/user_accounts_api.rb +154 -0
  11. data/lib/hubspot/codegen/crm/extensions/accounting/api_client.rb +394 -0
  12. data/lib/hubspot/codegen/crm/extensions/accounting/api_error.rb +63 -0
  13. data/lib/hubspot/codegen/crm/extensions/accounting/configuration.rb +265 -0
  14. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_settings.rb +241 -0
  15. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_urls.rb +381 -0
  16. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_customer.rb +262 -0
  17. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_invoice.rb +357 -0
  18. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_term.rb +253 -0
  19. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_features.rb +248 -0
  20. data/lib/hubspot/codegen/crm/extensions/accounting/models/action_response.rb +299 -0
  21. data/lib/hubspot/codegen/crm/extensions/accounting/models/address.rb +253 -0
  22. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_feature.rb +232 -0
  23. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_sub_features.rb +293 -0
  24. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_user_account_request_external.rb +248 -0
  25. data/lib/hubspot/codegen/crm/extensions/accounting/models/customer_search_response_external.rb +269 -0
  26. data/lib/hubspot/codegen/crm/extensions/accounting/models/error.rb +294 -0
  27. data/lib/hubspot/codegen/crm/extensions/accounting/models/error_detail.rb +260 -0
  28. data/lib/hubspot/codegen/crm/extensions/accounting/models/exchange_rate_response.rb +297 -0
  29. data/lib/hubspot/codegen/crm/extensions/accounting/models/import_invoice_feature.rb +218 -0
  30. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_create_payment_request.rb +263 -0
  31. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_pdf_response.rb +283 -0
  32. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_read_response.rb +455 -0
  33. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_search_response.rb +264 -0
  34. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_request.rb +281 -0
  35. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_response.rb +441 -0
  36. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoices_response_external.rb +264 -0
  37. data/lib/hubspot/codegen/crm/extensions/accounting/models/object_sync_feature.rb +218 -0
  38. data/lib/hubspot/codegen/crm/extensions/accounting/models/product.rb +281 -0
  39. data/lib/hubspot/codegen/crm/extensions/accounting/models/product_search_response.rb +264 -0
  40. data/lib/hubspot/codegen/crm/extensions/accounting/models/result_id_accounting_response.rb +267 -0
  41. data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_contacts_request.rb +235 -0
  42. data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_products_request.rb +235 -0
  43. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax.rb +248 -0
  44. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_search_response.rb +264 -0
  45. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_type.rb +228 -0
  46. data/lib/hubspot/codegen/crm/extensions/accounting/models/terms_response.rb +264 -0
  47. data/lib/hubspot/codegen/crm/extensions/accounting/models/unit_price.rb +228 -0
  48. data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_contact.rb +319 -0
  49. data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_product.rb +324 -0
  50. data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +284 -0
  51. data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +394 -0
  52. data/lib/hubspot/codegen/crm/extensions/calling/api_error.rb +63 -0
  53. data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +258 -0
  54. data/lib/hubspot/codegen/crm/extensions/calling/models/error.rb +294 -0
  55. data/lib/hubspot/codegen/crm/extensions/calling/models/error_detail.rb +260 -0
  56. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +253 -0
  57. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +263 -0
  58. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +308 -0
  59. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api/settings_api.rb +222 -0
  60. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +394 -0
  61. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_error.rb +63 -0
  62. data/lib/hubspot/codegen/crm/extensions/videoconferencing/configuration.rb +258 -0
  63. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/error.rb +294 -0
  64. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/error_detail.rb +260 -0
  65. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/external_settings.rb +248 -0
  66. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +103 -0
  67. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +181 -0
  68. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +95 -0
  69. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +92 -0
  70. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_client.rb +394 -0
  71. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_error.rb +63 -0
  72. data/lib/hubspot/codegen/crm/objects/feedback_submissions/configuration.rb +258 -0
  73. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/associated_id.rb +231 -0
  74. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_batch_input.rb +219 -0
  75. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_id.rb +219 -0
  76. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_input.rb +219 -0
  77. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id.rb +244 -0
  78. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object.rb +315 -0
  79. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object_with_errors.rb +335 -0
  80. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id.rb +228 -0
  81. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object.rb +228 -0
  82. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_with_total_simple_public_object.rb +243 -0
  83. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error.rb +294 -0
  84. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error_category.rb +265 -0
  85. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error_detail.rb +260 -0
  86. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +274 -0
  87. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter_group.rb +219 -0
  88. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/next_page.rb +226 -0
  89. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/paging.rb +221 -0
  90. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/previous_page.rb +226 -0
  91. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_object_search_request.rb +288 -0
  92. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object.rb +290 -0
  93. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_batch_input.rb +233 -0
  94. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_id.rb +217 -0
  95. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_input.rb +219 -0
  96. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/standard_error.rb +311 -0
  97. data/lib/hubspot/codegen/files/files/api/files_api.rb +787 -0
  98. data/lib/hubspot/codegen/files/files/api/folders_api.rb +579 -0
  99. data/lib/hubspot/codegen/files/files/api_client.rb +392 -0
  100. data/lib/hubspot/codegen/files/files/api_error.rb +61 -0
  101. data/lib/hubspot/codegen/files/files/configuration.rb +263 -0
  102. data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +226 -0
  103. data/lib/hubspot/codegen/files/files/models/collection_response_folder.rb +226 -0
  104. data/lib/hubspot/codegen/files/files/models/error.rb +292 -0
  105. data/lib/hubspot/codegen/files/files/models/error_category.rb +263 -0
  106. data/lib/hubspot/codegen/files/files/models/error_detail.rb +258 -0
  107. data/lib/hubspot/codegen/files/files/models/file.rb +440 -0
  108. data/lib/hubspot/codegen/files/files/models/file_action_response.rb +348 -0
  109. data/lib/hubspot/codegen/files/files/models/file_update_input.rb +285 -0
  110. data/lib/hubspot/codegen/files/files/models/folder.rb +301 -0
  111. data/lib/hubspot/codegen/files/files/models/folder_action_response.rb +348 -0
  112. data/lib/hubspot/codegen/files/files/models/folder_input.rb +236 -0
  113. data/lib/hubspot/codegen/files/files/models/folder_update_input.rb +236 -0
  114. data/lib/hubspot/codegen/files/files/models/folder_update_task_locator.rb +228 -0
  115. data/lib/hubspot/codegen/files/files/models/import_from_url_input.rb +374 -0
  116. data/lib/hubspot/codegen/files/files/models/import_from_url_task_locator.rb +228 -0
  117. data/lib/hubspot/codegen/files/files/models/next_page.rb +224 -0
  118. data/lib/hubspot/codegen/files/files/models/paging.rb +219 -0
  119. data/lib/hubspot/codegen/files/files/models/previous_page.rb +224 -0
  120. data/lib/hubspot/codegen/files/files/models/signed_url.rb +311 -0
  121. data/lib/hubspot/codegen/files/files/models/standard_error.rb +309 -0
  122. data/lib/hubspot/codegen/marketing/transactional/api/default_api.rb +400 -0
  123. data/lib/hubspot/codegen/marketing/transactional/api_client.rb +392 -0
  124. data/lib/hubspot/codegen/marketing/transactional/api_error.rb +61 -0
  125. data/lib/hubspot/codegen/marketing/transactional/configuration.rb +263 -0
  126. data/lib/hubspot/codegen/marketing/transactional/models/collection_response_smtp_api_token_view.rb +227 -0
  127. data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +326 -0
  128. data/lib/hubspot/codegen/marketing/transactional/models/error.rb +292 -0
  129. data/lib/hubspot/codegen/marketing/transactional/models/error_detail.rb +258 -0
  130. data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +231 -0
  131. data/lib/hubspot/codegen/marketing/transactional/models/next_page.rb +224 -0
  132. data/lib/hubspot/codegen/marketing/transactional/models/paging.rb +210 -0
  133. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +282 -0
  134. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +262 -0
  135. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +231 -0
  136. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +301 -0
  137. data/lib/hubspot/version.rb +1 -1
  138. data/spec/codegen/crm/extensions/accounting/api/callbacks_api_spec.rb +165 -0
  139. data/spec/codegen/crm/extensions/accounting/api/invoice_api_spec.rb +76 -0
  140. data/spec/codegen/crm/extensions/accounting/api/settings_api_spec.rb +60 -0
  141. data/spec/codegen/crm/extensions/accounting/api/sync_api_spec.rb +61 -0
  142. data/spec/codegen/crm/extensions/accounting/api/user_accounts_api_spec.rb +59 -0
  143. data/spec/codegen/crm/extensions/accounting/models/accounting_app_settings_spec.rb +53 -0
  144. data/spec/codegen/crm/extensions/accounting/models/accounting_app_urls_spec.rb +125 -0
  145. data/spec/codegen/crm/extensions/accounting/models/accounting_extension_customer_spec.rb +65 -0
  146. data/spec/codegen/crm/extensions/accounting/models/accounting_extension_invoice_spec.rb +93 -0
  147. data/spec/codegen/crm/extensions/accounting/models/accounting_extension_term_spec.rb +59 -0
  148. data/spec/codegen/crm/extensions/accounting/models/accounting_features_spec.rb +53 -0
  149. data/spec/codegen/crm/extensions/accounting/models/action_response_spec.rb +69 -0
  150. data/spec/codegen/crm/extensions/accounting/models/address_spec.rb +65 -0
  151. data/spec/codegen/crm/extensions/accounting/models/create_invoice_feature_spec.rb +47 -0
  152. data/spec/codegen/crm/extensions/accounting/models/create_invoice_sub_features_spec.rb +71 -0
  153. data/spec/codegen/crm/extensions/accounting/models/create_user_account_request_external_spec.rb +53 -0
  154. data/spec/codegen/crm/extensions/accounting/models/customer_search_response_external_spec.rb +51 -0
  155. data/spec/codegen/crm/extensions/accounting/models/error_detail_spec.rb +65 -0
  156. data/spec/codegen/crm/extensions/accounting/models/error_spec.rb +77 -0
  157. data/spec/codegen/crm/extensions/accounting/models/exchange_rate_response_spec.rb +63 -0
  158. data/spec/codegen/crm/extensions/accounting/models/import_invoice_feature_spec.rb +41 -0
  159. data/spec/codegen/crm/extensions/accounting/models/invoice_create_payment_request_spec.rb +59 -0
  160. data/spec/codegen/crm/extensions/accounting/models/invoice_pdf_response_spec.rb +51 -0
  161. data/spec/codegen/crm/extensions/accounting/models/invoice_read_response_spec.rb +135 -0
  162. data/spec/codegen/crm/extensions/accounting/models/invoice_search_response_spec.rb +51 -0
  163. data/spec/codegen/crm/extensions/accounting/models/invoice_update_request_spec.rb +83 -0
  164. data/spec/codegen/crm/extensions/accounting/models/invoice_update_response_spec.rb +135 -0
  165. data/spec/codegen/crm/extensions/accounting/models/invoices_response_external_spec.rb +51 -0
  166. data/spec/codegen/crm/extensions/accounting/models/object_sync_feature_spec.rb +41 -0
  167. data/spec/codegen/crm/extensions/accounting/models/product_search_response_spec.rb +51 -0
  168. data/spec/codegen/crm/extensions/accounting/models/product_spec.rb +71 -0
  169. data/spec/codegen/crm/extensions/accounting/models/result_id_accounting_response_spec.rb +51 -0
  170. data/spec/codegen/crm/extensions/accounting/models/sync_contacts_request_spec.rb +47 -0
  171. data/spec/codegen/crm/extensions/accounting/models/sync_products_request_spec.rb +47 -0
  172. data/spec/codegen/crm/extensions/accounting/models/tax_search_response_spec.rb +51 -0
  173. data/spec/codegen/crm/extensions/accounting/models/tax_spec.rb +53 -0
  174. data/spec/codegen/crm/extensions/accounting/models/tax_type_spec.rb +47 -0
  175. data/spec/codegen/crm/extensions/accounting/models/terms_response_spec.rb +51 -0
  176. data/spec/codegen/crm/extensions/accounting/models/unit_price_spec.rb +47 -0
  177. data/spec/codegen/crm/extensions/accounting/models/updated_contact_spec.rb +73 -0
  178. data/spec/codegen/crm/extensions/accounting/models/updated_product_spec.rb +75 -0
  179. data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +85 -0
  180. data/spec/codegen/crm/extensions/calling/models/error_detail_spec.rb +65 -0
  181. data/spec/codegen/crm/extensions/calling/models/error_spec.rb +77 -0
  182. data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +65 -0
  183. data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +65 -0
  184. data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +77 -0
  185. data/spec/codegen/crm/extensions/videoconferencing/api/settings_api_spec.rb +72 -0
  186. data/spec/codegen/crm/extensions/videoconferencing/models/error_detail_spec.rb +65 -0
  187. data/spec/codegen/crm/extensions/videoconferencing/models/error_spec.rb +77 -0
  188. data/spec/codegen/crm/extensions/videoconferencing/models/external_settings_spec.rb +59 -0
  189. data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +50 -0
  190. data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +69 -0
  191. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +48 -0
  192. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +47 -0
  193. data/spec/codegen/crm/objects/feedback_submissions/models/associated_id_spec.rb +47 -0
  194. data/spec/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  195. data/spec/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_id_spec.rb +41 -0
  196. data/spec/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_input_spec.rb +41 -0
  197. data/spec/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
  198. data/spec/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object_spec.rb +75 -0
  199. data/spec/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
  200. data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id_spec.rb +47 -0
  201. data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object_spec.rb +47 -0
  202. data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  203. data/spec/codegen/crm/objects/feedback_submissions/models/error_category_spec.rb +51 -0
  204. data/spec/codegen/crm/objects/feedback_submissions/models/error_detail_spec.rb +65 -0
  205. data/spec/codegen/crm/objects/feedback_submissions/models/error_spec.rb +77 -0
  206. data/spec/codegen/crm/objects/feedback_submissions/models/filter_group_spec.rb +41 -0
  207. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +57 -0
  208. data/spec/codegen/crm/objects/feedback_submissions/models/next_page_spec.rb +47 -0
  209. data/spec/codegen/crm/objects/feedback_submissions/models/paging_spec.rb +47 -0
  210. data/spec/codegen/crm/objects/feedback_submissions/models/previous_page_spec.rb +47 -0
  211. data/spec/codegen/crm/objects/feedback_submissions/models/public_object_search_request_spec.rb +71 -0
  212. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_batch_input_spec.rb +47 -0
  213. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_id_spec.rb +41 -0
  214. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_input_spec.rb +41 -0
  215. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_spec.rb +77 -0
  216. data/spec/codegen/crm/objects/feedback_submissions/models/standard_error_spec.rb +83 -0
  217. data/spec/codegen/files/files/api/files_api_spec.rb +189 -0
  218. data/spec/codegen/files/files/api/folders_api_spec.rb +143 -0
  219. data/spec/codegen/files/files/models/collection_response_file_spec.rb +47 -0
  220. data/spec/codegen/files/files/models/collection_response_folder_spec.rb +47 -0
  221. data/spec/codegen/files/files/models/error_category_spec.rb +51 -0
  222. data/spec/codegen/files/files/models/error_detail_spec.rb +65 -0
  223. data/spec/codegen/files/files/models/error_spec.rb +77 -0
  224. data/spec/codegen/files/files/models/file_action_response_spec.rb +93 -0
  225. data/spec/codegen/files/files/models/file_spec.rb +147 -0
  226. data/spec/codegen/files/files/models/file_update_input_spec.rb +69 -0
  227. data/spec/codegen/files/files/models/folder_action_response_spec.rb +93 -0
  228. data/spec/codegen/files/files/models/folder_input_spec.rb +53 -0
  229. data/spec/codegen/files/files/models/folder_spec.rb +83 -0
  230. data/spec/codegen/files/files/models/folder_update_input_spec.rb +53 -0
  231. data/spec/codegen/files/files/models/folder_update_task_locator_spec.rb +47 -0
  232. data/spec/codegen/files/files/models/import_from_url_input_spec.rb +101 -0
  233. data/spec/codegen/files/files/models/import_from_url_task_locator_spec.rb +47 -0
  234. data/spec/codegen/files/files/models/next_page_spec.rb +47 -0
  235. data/spec/codegen/files/files/models/paging_spec.rb +47 -0
  236. data/spec/codegen/files/files/models/previous_page_spec.rb +47 -0
  237. data/spec/codegen/files/files/models/signed_url_spec.rb +83 -0
  238. data/spec/codegen/files/files/models/standard_error_spec.rb +83 -0
  239. data/spec/codegen/marketing/transactional/api/default_api_spec.rb +110 -0
  240. data/spec/codegen/marketing/transactional/models/collection_response_smtp_api_token_view_spec.rb +47 -0
  241. data/spec/codegen/marketing/transactional/models/email_send_status_view_spec.rb +85 -0
  242. data/spec/codegen/marketing/transactional/models/error_detail_spec.rb +65 -0
  243. data/spec/codegen/marketing/transactional/models/error_spec.rb +77 -0
  244. data/spec/codegen/marketing/transactional/models/event_id_view_spec.rb +47 -0
  245. data/spec/codegen/marketing/transactional/models/next_page_spec.rb +47 -0
  246. data/spec/codegen/marketing/transactional/models/paging_spec.rb +41 -0
  247. data/spec/codegen/marketing/transactional/models/public_single_send_email_spec.rb +71 -0
  248. data/spec/codegen/marketing/transactional/models/public_single_send_request_egg_spec.rb +59 -0
  249. data/spec/codegen/marketing/transactional/models/smtp_api_token_request_egg_spec.rb +47 -0
  250. data/spec/codegen/marketing/transactional/models/smtp_api_token_view_spec.rb +77 -0
  251. data/spec/features/crm/extensions/accounting/callbacks_api_spec.rb +16 -0
  252. data/spec/features/crm/extensions/accounting/invoice_api_spec.rb +9 -0
  253. data/spec/features/crm/extensions/accounting/settings_api_spec.rb +8 -0
  254. data/spec/features/crm/extensions/accounting/sync_api_spec.rb +8 -0
  255. data/spec/features/crm/extensions/accounting/user_accounts_api_spec.rb +8 -0
  256. data/spec/features/crm/extensions/calling/settings_api_spec.rb +10 -0
  257. data/spec/features/crm/extensions/videoconferencing/settings_api_spec.rb +9 -0
  258. data/spec/features/crm/objects/feedback_submissions/associations_api_spec.rb +7 -0
  259. data/spec/features/crm/objects/feedback_submissions/basic_api_spec.rb +8 -0
  260. data/spec/features/crm/objects/feedback_submissions/batch_api_spec.rb +7 -0
  261. data/spec/features/crm/objects/feedback_submissions/search_api_spec.rb +7 -0
  262. data/spec/features/files/files/files_api_spec.rb +16 -0
  263. data/spec/features/files/files/folders_api_spec.rb +14 -0
  264. data/spec/features/marketing/transactional/default_api_spec.rb +12 -0
  265. metadata +401 -2
@@ -0,0 +1,728 @@
1
+ =begin
2
+ #Accounting Extension
3
+
4
+ #These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Hubspot
16
+ module Crm
17
+ module Extensions
18
+ module Accounting
19
+ class CallbacksApi
20
+ attr_accessor :api_client
21
+
22
+ def initialize(api_client = ApiClient.default)
23
+ @api_client = api_client
24
+ end
25
+ # Endpoint for customer creation response
26
+ # Call this endpoint with the response to a customer creation request.
27
+ # @param request_id [String] The ID of the request that this response is for
28
+ # @param result_id_accounting_response [ResultIdAccountingResponse] The ID of the created customer.
29
+ # @param [Hash] opts the optional parameters
30
+ # @return [nil]
31
+ def create_customer(request_id, result_id_accounting_response, opts = {})
32
+ create_customer_with_http_info(request_id, result_id_accounting_response, opts)
33
+ nil
34
+ end
35
+
36
+ # Endpoint for customer creation response
37
+ # Call this endpoint with the response to a customer creation request.
38
+ # @param request_id [String] The ID of the request that this response is for
39
+ # @param result_id_accounting_response [ResultIdAccountingResponse] The ID of the created customer.
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
42
+ def create_customer_with_http_info(request_id, result_id_accounting_response, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.create_customer ...'
45
+ end
46
+ # verify the required parameter 'request_id' is set
47
+ if @api_client.config.client_side_validation && request_id.nil?
48
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.create_customer"
49
+ end
50
+ # verify the required parameter 'result_id_accounting_response' is set
51
+ if @api_client.config.client_side_validation && result_id_accounting_response.nil?
52
+ fail ArgumentError, "Missing the required parameter 'result_id_accounting_response' when calling CallbacksApi.create_customer"
53
+ end
54
+ # resource path
55
+ local_var_path = '/crm/v3/extensions/accounting/callback/customer-create/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s))
56
+
57
+ # query parameters
58
+ query_params = opts[:query_params] || {}
59
+
60
+ # header parameters
61
+ header_params = opts[:header_params] || {}
62
+ # HTTP header 'Accept' (if needed)
63
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
64
+ # HTTP header 'Content-Type'
65
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
66
+
67
+ # form parameters
68
+ form_params = opts[:form_params] || {}
69
+
70
+ # http body (model)
71
+ post_body = opts[:body] || @api_client.object_to_http_body(result_id_accounting_response)
72
+
73
+ # return_type
74
+ return_type = opts[:return_type]
75
+
76
+ # auth_names
77
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
78
+
79
+ new_options = opts.merge(
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => return_type
86
+ )
87
+
88
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: CallbacksApi#create_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+
95
+ # Endpoint for exchange rate response
96
+ # Call this endpoint with the response to an exchange rate request.
97
+ # @param request_id [String] The ID of the request that this response is for
98
+ # @param exchange_rate_response [ExchangeRateResponse] The result of the exchange rate request.
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [nil]
101
+ def create_exchange_rate(request_id, exchange_rate_response, opts = {})
102
+ create_exchange_rate_with_http_info(request_id, exchange_rate_response, opts)
103
+ nil
104
+ end
105
+
106
+ # Endpoint for exchange rate response
107
+ # Call this endpoint with the response to an exchange rate request.
108
+ # @param request_id [String] The ID of the request that this response is for
109
+ # @param exchange_rate_response [ExchangeRateResponse] The result of the exchange rate request.
110
+ # @param [Hash] opts the optional parameters
111
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
112
+ def create_exchange_rate_with_http_info(request_id, exchange_rate_response, opts = {})
113
+ if @api_client.config.debugging
114
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.create_exchange_rate ...'
115
+ end
116
+ # verify the required parameter 'request_id' is set
117
+ if @api_client.config.client_side_validation && request_id.nil?
118
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.create_exchange_rate"
119
+ end
120
+ # verify the required parameter 'exchange_rate_response' is set
121
+ if @api_client.config.client_side_validation && exchange_rate_response.nil?
122
+ fail ArgumentError, "Missing the required parameter 'exchange_rate_response' when calling CallbacksApi.create_exchange_rate"
123
+ end
124
+ # resource path
125
+ local_var_path = '/crm/v3/extensions/accounting/callback/exchange-rate/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s))
126
+
127
+ # query parameters
128
+ query_params = opts[:query_params] || {}
129
+
130
+ # header parameters
131
+ header_params = opts[:header_params] || {}
132
+ # HTTP header 'Accept' (if needed)
133
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
134
+ # HTTP header 'Content-Type'
135
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
136
+
137
+ # form parameters
138
+ form_params = opts[:form_params] || {}
139
+
140
+ # http body (model)
141
+ post_body = opts[:body] || @api_client.object_to_http_body(exchange_rate_response)
142
+
143
+ # return_type
144
+ return_type = opts[:return_type]
145
+
146
+ # auth_names
147
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
148
+
149
+ new_options = opts.merge(
150
+ :header_params => header_params,
151
+ :query_params => query_params,
152
+ :form_params => form_params,
153
+ :body => post_body,
154
+ :auth_names => auth_names,
155
+ :return_type => return_type
156
+ )
157
+
158
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
159
+ if @api_client.config.debugging
160
+ @api_client.config.logger.debug "API called: CallbacksApi#create_exchange_rate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
161
+ end
162
+ return data, status_code, headers
163
+ end
164
+
165
+ # Endpoint for invoice creation response
166
+ # Call this endpoint with the response to a invoice creation request.
167
+ # @param request_id [String] The ID of the request that this response is for
168
+ # @param result_id_accounting_response [ResultIdAccountingResponse] The ID of the created invoice.
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [nil]
171
+ def create_invoice(request_id, result_id_accounting_response, opts = {})
172
+ create_invoice_with_http_info(request_id, result_id_accounting_response, opts)
173
+ nil
174
+ end
175
+
176
+ # Endpoint for invoice creation response
177
+ # Call this endpoint with the response to a invoice creation request.
178
+ # @param request_id [String] The ID of the request that this response is for
179
+ # @param result_id_accounting_response [ResultIdAccountingResponse] The ID of the created invoice.
180
+ # @param [Hash] opts the optional parameters
181
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
182
+ def create_invoice_with_http_info(request_id, result_id_accounting_response, opts = {})
183
+ if @api_client.config.debugging
184
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.create_invoice ...'
185
+ end
186
+ # verify the required parameter 'request_id' is set
187
+ if @api_client.config.client_side_validation && request_id.nil?
188
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.create_invoice"
189
+ end
190
+ # verify the required parameter 'result_id_accounting_response' is set
191
+ if @api_client.config.client_side_validation && result_id_accounting_response.nil?
192
+ fail ArgumentError, "Missing the required parameter 'result_id_accounting_response' when calling CallbacksApi.create_invoice"
193
+ end
194
+ # resource path
195
+ local_var_path = '/crm/v3/extensions/accounting/callback/invoice-create/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s))
196
+
197
+ # query parameters
198
+ query_params = opts[:query_params] || {}
199
+
200
+ # header parameters
201
+ header_params = opts[:header_params] || {}
202
+ # HTTP header 'Accept' (if needed)
203
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
204
+ # HTTP header 'Content-Type'
205
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
206
+
207
+ # form parameters
208
+ form_params = opts[:form_params] || {}
209
+
210
+ # http body (model)
211
+ post_body = opts[:body] || @api_client.object_to_http_body(result_id_accounting_response)
212
+
213
+ # return_type
214
+ return_type = opts[:return_type]
215
+
216
+ # auth_names
217
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
218
+
219
+ new_options = opts.merge(
220
+ :header_params => header_params,
221
+ :query_params => query_params,
222
+ :form_params => form_params,
223
+ :body => post_body,
224
+ :auth_names => auth_names,
225
+ :return_type => return_type
226
+ )
227
+
228
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
229
+ if @api_client.config.debugging
230
+ @api_client.config.logger.debug "API called: CallbacksApi#create_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
231
+ end
232
+ return data, status_code, headers
233
+ end
234
+
235
+ # Endpoint for terms search response
236
+ # Call this endpoint with the response to a terms search request.
237
+ # @param request_id [String] The ID of the request that this response is for
238
+ # @param terms_response [TermsResponse] The result of the terms search
239
+ # @param [Hash] opts the optional parameters
240
+ # @return [nil]
241
+ def create_term(request_id, terms_response, opts = {})
242
+ create_term_with_http_info(request_id, terms_response, opts)
243
+ nil
244
+ end
245
+
246
+ # Endpoint for terms search response
247
+ # Call this endpoint with the response to a terms search request.
248
+ # @param request_id [String] The ID of the request that this response is for
249
+ # @param terms_response [TermsResponse] The result of the terms search
250
+ # @param [Hash] opts the optional parameters
251
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
252
+ def create_term_with_http_info(request_id, terms_response, opts = {})
253
+ if @api_client.config.debugging
254
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.create_term ...'
255
+ end
256
+ # verify the required parameter 'request_id' is set
257
+ if @api_client.config.client_side_validation && request_id.nil?
258
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.create_term"
259
+ end
260
+ # verify the required parameter 'terms_response' is set
261
+ if @api_client.config.client_side_validation && terms_response.nil?
262
+ fail ArgumentError, "Missing the required parameter 'terms_response' when calling CallbacksApi.create_term"
263
+ end
264
+ # resource path
265
+ local_var_path = '/crm/v3/extensions/accounting/callback/terms/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s))
266
+
267
+ # query parameters
268
+ query_params = opts[:query_params] || {}
269
+
270
+ # header parameters
271
+ header_params = opts[:header_params] || {}
272
+ # HTTP header 'Accept' (if needed)
273
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
274
+ # HTTP header 'Content-Type'
275
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
276
+
277
+ # form parameters
278
+ form_params = opts[:form_params] || {}
279
+
280
+ # http body (model)
281
+ post_body = opts[:body] || @api_client.object_to_http_body(terms_response)
282
+
283
+ # return_type
284
+ return_type = opts[:return_type]
285
+
286
+ # auth_names
287
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
288
+
289
+ new_options = opts.merge(
290
+ :header_params => header_params,
291
+ :query_params => query_params,
292
+ :form_params => form_params,
293
+ :body => post_body,
294
+ :auth_names => auth_names,
295
+ :return_type => return_type
296
+ )
297
+
298
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
299
+ if @api_client.config.debugging
300
+ @api_client.config.logger.debug "API called: CallbacksApi#create_term\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
301
+ end
302
+ return data, status_code, headers
303
+ end
304
+
305
+ # Endpoint for customer search response
306
+ # Call this endpoint with the response to a customer search request.
307
+ # @param request_id [String] The ID of the request that this response is for
308
+ # @param customer_search_response_external [CustomerSearchResponseExternal] The result of the customer search request.
309
+ # @param [Hash] opts the optional parameters
310
+ # @return [nil]
311
+ def do_customer_search(request_id, customer_search_response_external, opts = {})
312
+ do_customer_search_with_http_info(request_id, customer_search_response_external, opts)
313
+ nil
314
+ end
315
+
316
+ # Endpoint for customer search response
317
+ # Call this endpoint with the response to a customer search request.
318
+ # @param request_id [String] The ID of the request that this response is for
319
+ # @param customer_search_response_external [CustomerSearchResponseExternal] The result of the customer search request.
320
+ # @param [Hash] opts the optional parameters
321
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
322
+ def do_customer_search_with_http_info(request_id, customer_search_response_external, opts = {})
323
+ if @api_client.config.debugging
324
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.do_customer_search ...'
325
+ end
326
+ # verify the required parameter 'request_id' is set
327
+ if @api_client.config.client_side_validation && request_id.nil?
328
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.do_customer_search"
329
+ end
330
+ # verify the required parameter 'customer_search_response_external' is set
331
+ if @api_client.config.client_side_validation && customer_search_response_external.nil?
332
+ fail ArgumentError, "Missing the required parameter 'customer_search_response_external' when calling CallbacksApi.do_customer_search"
333
+ end
334
+ # resource path
335
+ local_var_path = '/crm/v3/extensions/accounting/callback/customer-search/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s))
336
+
337
+ # query parameters
338
+ query_params = opts[:query_params] || {}
339
+
340
+ # header parameters
341
+ header_params = opts[:header_params] || {}
342
+ # HTTP header 'Accept' (if needed)
343
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
344
+ # HTTP header 'Content-Type'
345
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
346
+
347
+ # form parameters
348
+ form_params = opts[:form_params] || {}
349
+
350
+ # http body (model)
351
+ post_body = opts[:body] || @api_client.object_to_http_body(customer_search_response_external)
352
+
353
+ # return_type
354
+ return_type = opts[:return_type]
355
+
356
+ # auth_names
357
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
358
+
359
+ new_options = opts.merge(
360
+ :header_params => header_params,
361
+ :query_params => query_params,
362
+ :form_params => form_params,
363
+ :body => post_body,
364
+ :auth_names => auth_names,
365
+ :return_type => return_type
366
+ )
367
+
368
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
369
+ if @api_client.config.debugging
370
+ @api_client.config.logger.debug "API called: CallbacksApi#do_customer_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
371
+ end
372
+ return data, status_code, headers
373
+ end
374
+
375
+ # Endpoint for invoice search response
376
+ # Call this endpoint with the response to a invoice search request.
377
+ # @param request_id [String] The ID of the request that this response is for
378
+ # @param invoice_search_response [InvoiceSearchResponse] The result of the invoice search request.
379
+ # @param [Hash] opts the optional parameters
380
+ # @return [nil]
381
+ def do_invoice_search(request_id, invoice_search_response, opts = {})
382
+ do_invoice_search_with_http_info(request_id, invoice_search_response, opts)
383
+ nil
384
+ end
385
+
386
+ # Endpoint for invoice search response
387
+ # Call this endpoint with the response to a invoice search request.
388
+ # @param request_id [String] The ID of the request that this response is for
389
+ # @param invoice_search_response [InvoiceSearchResponse] The result of the invoice search request.
390
+ # @param [Hash] opts the optional parameters
391
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
392
+ def do_invoice_search_with_http_info(request_id, invoice_search_response, opts = {})
393
+ if @api_client.config.debugging
394
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.do_invoice_search ...'
395
+ end
396
+ # verify the required parameter 'request_id' is set
397
+ if @api_client.config.client_side_validation && request_id.nil?
398
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.do_invoice_search"
399
+ end
400
+ # verify the required parameter 'invoice_search_response' is set
401
+ if @api_client.config.client_side_validation && invoice_search_response.nil?
402
+ fail ArgumentError, "Missing the required parameter 'invoice_search_response' when calling CallbacksApi.do_invoice_search"
403
+ end
404
+ # resource path
405
+ local_var_path = '/crm/v3/extensions/accounting/callback/invoice-search/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s))
406
+
407
+ # query parameters
408
+ query_params = opts[:query_params] || {}
409
+
410
+ # header parameters
411
+ header_params = opts[:header_params] || {}
412
+ # HTTP header 'Accept' (if needed)
413
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
414
+ # HTTP header 'Content-Type'
415
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
416
+
417
+ # form parameters
418
+ form_params = opts[:form_params] || {}
419
+
420
+ # http body (model)
421
+ post_body = opts[:body] || @api_client.object_to_http_body(invoice_search_response)
422
+
423
+ # return_type
424
+ return_type = opts[:return_type]
425
+
426
+ # auth_names
427
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
428
+
429
+ new_options = opts.merge(
430
+ :header_params => header_params,
431
+ :query_params => query_params,
432
+ :form_params => form_params,
433
+ :body => post_body,
434
+ :auth_names => auth_names,
435
+ :return_type => return_type
436
+ )
437
+
438
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
439
+ if @api_client.config.debugging
440
+ @api_client.config.logger.debug "API called: CallbacksApi#do_invoice_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
441
+ end
442
+ return data, status_code, headers
443
+ end
444
+
445
+ # Endpoint for product search response
446
+ # Call this endpoint with the response to a product search request.
447
+ # @param request_id [String] The ID of the request that this response is for
448
+ # @param product_search_response [ProductSearchResponse] The result of the product search request.
449
+ # @param [Hash] opts the optional parameters
450
+ # @return [nil]
451
+ def do_product_search(request_id, product_search_response, opts = {})
452
+ do_product_search_with_http_info(request_id, product_search_response, opts)
453
+ nil
454
+ end
455
+
456
+ # Endpoint for product search response
457
+ # Call this endpoint with the response to a product search request.
458
+ # @param request_id [String] The ID of the request that this response is for
459
+ # @param product_search_response [ProductSearchResponse] The result of the product search request.
460
+ # @param [Hash] opts the optional parameters
461
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
462
+ def do_product_search_with_http_info(request_id, product_search_response, opts = {})
463
+ if @api_client.config.debugging
464
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.do_product_search ...'
465
+ end
466
+ # verify the required parameter 'request_id' is set
467
+ if @api_client.config.client_side_validation && request_id.nil?
468
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.do_product_search"
469
+ end
470
+ # verify the required parameter 'product_search_response' is set
471
+ if @api_client.config.client_side_validation && product_search_response.nil?
472
+ fail ArgumentError, "Missing the required parameter 'product_search_response' when calling CallbacksApi.do_product_search"
473
+ end
474
+ # resource path
475
+ local_var_path = '/crm/v3/extensions/accounting/callback/product-search/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s))
476
+
477
+ # query parameters
478
+ query_params = opts[:query_params] || {}
479
+
480
+ # header parameters
481
+ header_params = opts[:header_params] || {}
482
+ # HTTP header 'Accept' (if needed)
483
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
484
+ # HTTP header 'Content-Type'
485
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
486
+
487
+ # form parameters
488
+ form_params = opts[:form_params] || {}
489
+
490
+ # http body (model)
491
+ post_body = opts[:body] || @api_client.object_to_http_body(product_search_response)
492
+
493
+ # return_type
494
+ return_type = opts[:return_type]
495
+
496
+ # auth_names
497
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
498
+
499
+ new_options = opts.merge(
500
+ :header_params => header_params,
501
+ :query_params => query_params,
502
+ :form_params => form_params,
503
+ :body => post_body,
504
+ :auth_names => auth_names,
505
+ :return_type => return_type
506
+ )
507
+
508
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
509
+ if @api_client.config.debugging
510
+ @api_client.config.logger.debug "API called: CallbacksApi#do_product_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
511
+ end
512
+ return data, status_code, headers
513
+ end
514
+
515
+ # Endpoint for taxes search response
516
+ # Call this endpoint with the response to a taxes search request.
517
+ # @param request_id [String] The ID of the request that this response is for
518
+ # @param tax_search_response [TaxSearchResponse] The result of the taxes search request.
519
+ # @param [Hash] opts the optional parameters
520
+ # @return [nil]
521
+ def do_tax_search(request_id, tax_search_response, opts = {})
522
+ do_tax_search_with_http_info(request_id, tax_search_response, opts)
523
+ nil
524
+ end
525
+
526
+ # Endpoint for taxes search response
527
+ # Call this endpoint with the response to a taxes search request.
528
+ # @param request_id [String] The ID of the request that this response is for
529
+ # @param tax_search_response [TaxSearchResponse] The result of the taxes search request.
530
+ # @param [Hash] opts the optional parameters
531
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
532
+ def do_tax_search_with_http_info(request_id, tax_search_response, opts = {})
533
+ if @api_client.config.debugging
534
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.do_tax_search ...'
535
+ end
536
+ # verify the required parameter 'request_id' is set
537
+ if @api_client.config.client_side_validation && request_id.nil?
538
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.do_tax_search"
539
+ end
540
+ # verify the required parameter 'tax_search_response' is set
541
+ if @api_client.config.client_side_validation && tax_search_response.nil?
542
+ fail ArgumentError, "Missing the required parameter 'tax_search_response' when calling CallbacksApi.do_tax_search"
543
+ end
544
+ # resource path
545
+ local_var_path = '/crm/v3/extensions/accounting/callback/tax-search/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s))
546
+
547
+ # query parameters
548
+ query_params = opts[:query_params] || {}
549
+
550
+ # header parameters
551
+ header_params = opts[:header_params] || {}
552
+ # HTTP header 'Accept' (if needed)
553
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
554
+ # HTTP header 'Content-Type'
555
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
556
+
557
+ # form parameters
558
+ form_params = opts[:form_params] || {}
559
+
560
+ # http body (model)
561
+ post_body = opts[:body] || @api_client.object_to_http_body(tax_search_response)
562
+
563
+ # return_type
564
+ return_type = opts[:return_type]
565
+
566
+ # auth_names
567
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
568
+
569
+ new_options = opts.merge(
570
+ :header_params => header_params,
571
+ :query_params => query_params,
572
+ :form_params => form_params,
573
+ :body => post_body,
574
+ :auth_names => auth_names,
575
+ :return_type => return_type
576
+ )
577
+
578
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
579
+ if @api_client.config.debugging
580
+ @api_client.config.logger.debug "API called: CallbacksApi#do_tax_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
581
+ end
582
+ return data, status_code, headers
583
+ end
584
+
585
+ # Endpoint for invoice get-by-id response
586
+ # Call this endpoint with the response to a invoice get-by-id request.
587
+ # @param request_id [String] The ID of the request that this response is for
588
+ # @param invoices_response_external [InvoicesResponseExternal] The result of the invoice request.
589
+ # @param [Hash] opts the optional parameters
590
+ # @return [nil]
591
+ def get_by_id(request_id, invoices_response_external, opts = {})
592
+ get_by_id_with_http_info(request_id, invoices_response_external, opts)
593
+ nil
594
+ end
595
+
596
+ # Endpoint for invoice get-by-id response
597
+ # Call this endpoint with the response to a invoice get-by-id request.
598
+ # @param request_id [String] The ID of the request that this response is for
599
+ # @param invoices_response_external [InvoicesResponseExternal] The result of the invoice request.
600
+ # @param [Hash] opts the optional parameters
601
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
602
+ def get_by_id_with_http_info(request_id, invoices_response_external, opts = {})
603
+ if @api_client.config.debugging
604
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.get_by_id ...'
605
+ end
606
+ # verify the required parameter 'request_id' is set
607
+ if @api_client.config.client_side_validation && request_id.nil?
608
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.get_by_id"
609
+ end
610
+ # verify the required parameter 'invoices_response_external' is set
611
+ if @api_client.config.client_side_validation && invoices_response_external.nil?
612
+ fail ArgumentError, "Missing the required parameter 'invoices_response_external' when calling CallbacksApi.get_by_id"
613
+ end
614
+ # resource path
615
+ local_var_path = '/crm/v3/extensions/accounting/callback/invoices/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s))
616
+
617
+ # query parameters
618
+ query_params = opts[:query_params] || {}
619
+
620
+ # header parameters
621
+ header_params = opts[:header_params] || {}
622
+ # HTTP header 'Accept' (if needed)
623
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
624
+ # HTTP header 'Content-Type'
625
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
626
+
627
+ # form parameters
628
+ form_params = opts[:form_params] || {}
629
+
630
+ # http body (model)
631
+ post_body = opts[:body] || @api_client.object_to_http_body(invoices_response_external)
632
+
633
+ # return_type
634
+ return_type = opts[:return_type]
635
+
636
+ # auth_names
637
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
638
+
639
+ new_options = opts.merge(
640
+ :header_params => header_params,
641
+ :query_params => query_params,
642
+ :form_params => form_params,
643
+ :body => post_body,
644
+ :auth_names => auth_names,
645
+ :return_type => return_type
646
+ )
647
+
648
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
649
+ if @api_client.config.debugging
650
+ @api_client.config.logger.debug "API called: CallbacksApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
651
+ end
652
+ return data, status_code, headers
653
+ end
654
+
655
+ # Endpoint for PDF content of invoice
656
+ # Call this endpoint with the PDF content of a requested invoice.
657
+ # @param request_id [String] The ID of the request that this response is for
658
+ # @param invoice_pdf_response [InvoicePdfResponse] The bytes of the invoice PDF.
659
+ # @param [Hash] opts the optional parameters
660
+ # @return [nil]
661
+ def invoice_pdf(request_id, invoice_pdf_response, opts = {})
662
+ invoice_pdf_with_http_info(request_id, invoice_pdf_response, opts)
663
+ nil
664
+ end
665
+
666
+ # Endpoint for PDF content of invoice
667
+ # Call this endpoint with the PDF content of a requested invoice.
668
+ # @param request_id [String] The ID of the request that this response is for
669
+ # @param invoice_pdf_response [InvoicePdfResponse] The bytes of the invoice PDF.
670
+ # @param [Hash] opts the optional parameters
671
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
672
+ def invoice_pdf_with_http_info(request_id, invoice_pdf_response, opts = {})
673
+ if @api_client.config.debugging
674
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.invoice_pdf ...'
675
+ end
676
+ # verify the required parameter 'request_id' is set
677
+ if @api_client.config.client_side_validation && request_id.nil?
678
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.invoice_pdf"
679
+ end
680
+ # verify the required parameter 'invoice_pdf_response' is set
681
+ if @api_client.config.client_side_validation && invoice_pdf_response.nil?
682
+ fail ArgumentError, "Missing the required parameter 'invoice_pdf_response' when calling CallbacksApi.invoice_pdf"
683
+ end
684
+ # resource path
685
+ local_var_path = '/crm/v3/extensions/accounting/callback/invoice-pdf/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s))
686
+
687
+ # query parameters
688
+ query_params = opts[:query_params] || {}
689
+
690
+ # header parameters
691
+ header_params = opts[:header_params] || {}
692
+ # HTTP header 'Accept' (if needed)
693
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
694
+ # HTTP header 'Content-Type'
695
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
696
+
697
+ # form parameters
698
+ form_params = opts[:form_params] || {}
699
+
700
+ # http body (model)
701
+ post_body = opts[:body] || @api_client.object_to_http_body(invoice_pdf_response)
702
+
703
+ # return_type
704
+ return_type = opts[:return_type]
705
+
706
+ # auth_names
707
+ auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
708
+
709
+ new_options = opts.merge(
710
+ :header_params => header_params,
711
+ :query_params => query_params,
712
+ :form_params => form_params,
713
+ :body => post_body,
714
+ :auth_names => auth_names,
715
+ :return_type => return_type
716
+ )
717
+
718
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
719
+ if @api_client.config.debugging
720
+ @api_client.config.logger.debug "API called: CallbacksApi#invoice_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
721
+ end
722
+ return data, status_code, headers
723
+ end
724
+ end
725
+ end
726
+ end
727
+ end
728
+ end