api-sdk-rb 1.11.66 → 1.11.133

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 (430) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +294 -285
  3. data/docs/{GetPartnerCreditTransactions200Response.md → AccountCreditTransactionListResponse.md} +2 -2
  4. data/docs/AdapterConnection.md +7 -1
  5. data/docs/{GetUserAdapterConnections200Response.md → AdapterConnectionListResponse.md} +2 -2
  6. data/docs/{RemoveUserAdapterConnection200Response.md → AdapterConnectionRemovalResponse.md} +2 -2
  7. data/docs/{SetUserAdapterConnection200Response.md → AdapterConnectionResponse.md} +2 -2
  8. data/docs/{AddAiAnswersKnowledgeDocument201Response.md → AiAnswersKnowledgeDocumentResponse.md} +2 -2
  9. data/docs/BrandColor.md +22 -0
  10. data/docs/BrandFont.md +24 -0
  11. data/docs/BrandKitApi.md +593 -0
  12. data/docs/BrandKitAssetView.md +42 -0
  13. data/docs/BrandKitFigmaSource.md +26 -0
  14. data/docs/BrandKitTokens.md +26 -0
  15. data/docs/BrandKitTokensFonts.md +24 -0
  16. data/docs/BrandKitView.md +36 -0
  17. data/docs/BrandKitViewOwner.md +20 -0
  18. data/docs/{OperationsIdGetResponse.md → BrandKitViewResponse.md} +3 -3
  19. data/docs/BrandSpacing.md +32 -0
  20. data/docs/BrandTextStyle.md +22 -0
  21. data/docs/CanvasesApi.md +45 -45
  22. data/docs/Composition.md +5 -1
  23. data/docs/{CreateCompositionDatabaseRecord201Response.md → CompositionDatabaseRecordResponse.md} +2 -2
  24. data/docs/CompositionLastEditedBy.md +20 -0
  25. data/docs/CompositionsApi.md +821 -473
  26. data/docs/ConfirmAdapterConnectionRequest.md +18 -0
  27. data/docs/{CreateCompositionContentItem201Response.md → ContentItemWriteResultResponse.md} +2 -2
  28. data/docs/CreateWidget201ResponseData.md +2 -4
  29. data/docs/CreateWorkspaceWorkflowFromPresetRequest.md +20 -0
  30. data/docs/CreateWorkspaceWorkflowRequest.md +22 -0
  31. data/docs/CreditsApi.md +20 -20
  32. data/docs/DeleteUpload200Response.md +22 -0
  33. data/docs/{UploadsIdDelete200ResponseData.md → DeleteUpload200ResponseData.md} +2 -2
  34. data/docs/DeleteWorkspaceWorkflow200Response.md +22 -0
  35. data/docs/{GetPartnerDesignDefaults200Response.md → DesignDefaultsResponse.md} +2 -2
  36. data/docs/EntitlementsApi.md +18 -18
  37. data/docs/GetOperationResponse.md +22 -0
  38. data/docs/{OperationsIdGetResponseData.md → GetOperationResponseData.md} +3 -3
  39. data/docs/GetOperationResponseDataMetadata.md +24 -0
  40. data/docs/GetPublicCompositionEmbed200Response.md +7 -1
  41. data/docs/GetPublicCompositionEmbed200ResponseAdapters.md +20 -0
  42. data/docs/GetPublicCompositionEmbed200ResponseAdaptersCaptcha.md +18 -0
  43. data/docs/GetPublicCompositionEmbed200ResponseEntries.md +20 -0
  44. data/docs/GetPublicCompositionEmbed200ResponseMedia.md +18 -0
  45. data/docs/GetWorkspaceWorkflowStats200Response.md +22 -0
  46. data/docs/GetWorkspaceWorkflowVersion200Response.md +22 -0
  47. data/docs/InvoicesApi.md +9 -9
  48. data/docs/ListPartnerWorkflowPresets200Response.md +22 -0
  49. data/docs/{UploadsGet200Response.md → ListUploads200Response.md} +2 -2
  50. data/docs/ListWorkspaceWorkflowCompositionOptions200Response.md +22 -0
  51. data/docs/ListWorkspaceWorkflowPresets200Response.md +22 -0
  52. data/docs/ListWorkspaceWorkflowVersions200Response.md +22 -0
  53. data/docs/ListWorkspaceWorkflows200Response.md +22 -0
  54. data/docs/{GetManagedUserLimits200Response.md → ManagedUserLimitsResponse.md} +2 -2
  55. data/docs/{DeleteManagedUser200Response.md → ManagedUserRemovalResponse.md} +2 -2
  56. data/docs/ManagedUsersApi.md +261 -171
  57. data/docs/NewComposition.md +1 -1
  58. data/docs/NewEditorSession.md +1 -1
  59. data/docs/OfferWorkflowPresetRequest.md +24 -0
  60. data/docs/OfferedWorkflowPreset.md +40 -0
  61. data/docs/OfferedWorkflowPresetList.md +18 -0
  62. data/docs/OfferedWorkflowPresetWidget.md +22 -0
  63. data/docs/OperationsApi.md +11 -11
  64. data/docs/PartnerCustomization.md +2 -2
  65. data/docs/PartnerNotification.md +1 -1
  66. data/docs/PartnersApi.md +644 -352
  67. data/docs/PatchBrandKitAssetRequest.md +24 -0
  68. data/docs/PatchBrandKitRequest.md +30 -0
  69. data/docs/PatchBrandKitRequestFonts.md +24 -0
  70. data/docs/PatchBrandKitRequestSpacing.md +32 -0
  71. data/docs/PostBrandKitIconRequest.md +20 -0
  72. data/docs/PublicEmbedApi.md +324 -58
  73. data/docs/PublicWorkflow.md +36 -0
  74. data/docs/PublicWorkflowEventsAccepted.md +22 -0
  75. data/docs/PublicWorkflowEventsRequest.md +24 -0
  76. data/docs/PublicWorkflowEventsRequestEventsInner.md +24 -0
  77. data/docs/PublicWorkflowEventsRequestHeightsInner.md +20 -0
  78. data/docs/{CreateCompositionFromWidget201Response.md → PublicWorkflowResponse.md} +3 -3
  79. data/docs/PublicWorkflowTranslation.md +20 -0
  80. data/docs/PublishWorkspaceWorkflow200Response.md +22 -0
  81. data/docs/PublishWorkspaceWorkflowRequest.md +18 -0
  82. data/docs/PutBrandKitRequest.md +22 -0
  83. data/docs/RemovePartnerWorkflowPreset200Response.md +22 -0
  84. data/docs/ReportPublicWorkflowEvents200Response.md +22 -0
  85. data/docs/SaveWorkspaceWorkflowRequest.md +24 -0
  86. data/docs/SetAdapterConnectionRequest.md +1 -1
  87. data/docs/SetPartnerWorkflowPreset200Response.md +22 -0
  88. data/docs/TokensApi.md +11 -9
  89. data/docs/UpdateComposition.md +1 -1
  90. data/docs/Upload.md +1 -1
  91. data/docs/UploadLimits.md +3 -3
  92. data/docs/UploadsApi.md +85 -85
  93. data/docs/UsersApi.md +191 -115
  94. data/docs/Widget.md +2 -4
  95. data/docs/WidgetClarification.md +22 -0
  96. data/docs/WidgetClarificationOption.md +22 -0
  97. data/docs/WidgetClarificationQuestion.md +26 -0
  98. data/docs/WidgetNextStep.md +24 -0
  99. data/docs/WidgetPlan.md +26 -0
  100. data/docs/WidgetPlanDecisions.md +32 -0
  101. data/docs/WidgetPlanDecisionsAdaptersInner.md +20 -0
  102. data/docs/WidgetPlanDecisionsLibrariesInner.md +22 -0
  103. data/docs/WidgetPlanDecisionsResponsive.md +22 -0
  104. data/docs/WidgetPlanTask.md +24 -0
  105. data/docs/WidgetsApi.md +38 -38
  106. data/docs/Workflow.md +50 -0
  107. data/docs/WorkflowCompositionAction.md +24 -0
  108. data/docs/WorkflowCompositionField.md +24 -0
  109. data/docs/WorkflowCompositionOption.md +30 -0
  110. data/docs/WorkflowCompositionOptionActions.md +22 -0
  111. data/docs/WorkflowCompositionOptionInputs.md +24 -0
  112. data/docs/WorkflowCompositionOptions.md +24 -0
  113. data/docs/WorkflowConditionCase.md +24 -0
  114. data/docs/WorkflowConditionTest.md +22 -0
  115. data/docs/WorkflowCounter.md +20 -0
  116. data/docs/WorkflowDetail.md +60 -0
  117. data/docs/WorkflowDetailAllOfLastEditedBy.md +20 -0
  118. data/docs/WorkflowDetailResponse.md +22 -0
  119. data/docs/WorkflowEdge.md +24 -0
  120. data/docs/WorkflowFailureReason.md +15 -0
  121. data/docs/WorkflowFailureReasonCounter.md +22 -0
  122. data/docs/WorkflowFieldReference.md +22 -0
  123. data/docs/WorkflowGraph.md +22 -0
  124. data/docs/WorkflowIssue.md +28 -0
  125. data/docs/WorkflowList.md +24 -0
  126. data/docs/WorkflowNode.md +30 -0
  127. data/docs/WorkflowNodePosition.md +20 -0
  128. data/docs/WorkflowPresetChoice.md +26 -0
  129. data/docs/WorkflowPresetChoices.md +18 -0
  130. data/docs/WorkflowPresetRemoval.md +18 -0
  131. data/docs/WorkflowPresetWidget.md +20 -0
  132. data/docs/WorkflowPublishResult.md +22 -0
  133. data/docs/WorkflowRemoved.md +18 -0
  134. data/docs/WorkflowResponse.md +22 -0
  135. data/docs/WorkflowSchedule.md +24 -0
  136. data/docs/WorkflowStats.md +34 -0
  137. data/docs/WorkflowStatus.md +15 -0
  138. data/docs/WorkflowTrigger.md +28 -0
  139. data/docs/WorkflowTriggerValuesInner.md +20 -0
  140. data/docs/WorkflowVersion.md +28 -0
  141. data/docs/WorkflowVersionDetail.md +32 -0
  142. data/docs/WorkflowVersionList.md +18 -0
  143. data/docs/WorkflowVersionPublishedBy.md +20 -0
  144. data/docs/WorkflowsApi.md +1527 -0
  145. data/lib/api-sdk-rb/api/brand_kit_api.rb +581 -0
  146. data/lib/api-sdk-rb/api/canvases_api.rb +39 -39
  147. data/lib/api-sdk-rb/api/compositions_api.rb +993 -565
  148. data/lib/api-sdk-rb/api/credits_api.rb +20 -20
  149. data/lib/api-sdk-rb/api/entitlements_api.rb +14 -14
  150. data/lib/api-sdk-rb/api/invoices_api.rb +10 -10
  151. data/lib/api-sdk-rb/api/managed_users_api.rb +278 -172
  152. data/lib/api-sdk-rb/api/operations_api.rb +10 -10
  153. data/lib/api-sdk-rb/api/partners_api.rb +668 -352
  154. data/lib/api-sdk-rb/api/public_embed_api.rb +339 -62
  155. data/lib/api-sdk-rb/api/tokens_api.rb +8 -6
  156. data/lib/api-sdk-rb/api/uploads_api.rb +96 -96
  157. data/lib/api-sdk-rb/api/users_api.rb +213 -119
  158. data/lib/api-sdk-rb/api/widgets_api.rb +40 -40
  159. data/lib/api-sdk-rb/api/workflows_api.rb +1775 -0
  160. data/lib/api-sdk-rb/configuration.rb +11 -23
  161. data/lib/api-sdk-rb/models/{get_user_adapter_connections200_response.rb → account_credit_transaction_list_response.rb} +4 -4
  162. data/lib/api-sdk-rb/models/adapter_connection.rb +48 -5
  163. data/lib/api-sdk-rb/models/{get_partner_credit_transactions200_response.rb → adapter_connection_list_response.rb} +4 -4
  164. data/lib/api-sdk-rb/models/adapter_connection_removal_response.rb +246 -0
  165. data/lib/api-sdk-rb/models/{delete_managed_user200_response.rb → adapter_connection_response.rb} +4 -4
  166. data/lib/api-sdk-rb/models/ai_answers_knowledge_document_response.rb +246 -0
  167. data/lib/api-sdk-rb/models/brand_color.rb +329 -0
  168. data/lib/api-sdk-rb/models/brand_font.rb +357 -0
  169. data/lib/api-sdk-rb/models/brand_kit_asset_view.rb +409 -0
  170. data/lib/api-sdk-rb/models/brand_kit_figma_source.rb +277 -0
  171. data/lib/api-sdk-rb/models/brand_kit_tokens.rb +335 -0
  172. data/lib/api-sdk-rb/models/brand_kit_tokens_fonts.rb +241 -0
  173. data/lib/api-sdk-rb/models/brand_kit_view.rb +344 -0
  174. data/lib/api-sdk-rb/models/brand_kit_view_owner.rb +267 -0
  175. data/lib/api-sdk-rb/models/brand_kit_view_response.rb +247 -0
  176. data/lib/api-sdk-rb/models/brand_spacing.rb +557 -0
  177. data/lib/api-sdk-rb/models/brand_text_style.rb +344 -0
  178. data/lib/api-sdk-rb/models/composition.rb +26 -5
  179. data/lib/api-sdk-rb/models/{create_composition_database_record201_response.rb → composition_database_record_response.rb} +3 -3
  180. data/lib/api-sdk-rb/models/composition_last_edited_by.rb +242 -0
  181. data/lib/api-sdk-rb/models/confirm_adapter_connection_request.rb +241 -0
  182. data/lib/api-sdk-rb/models/content_item_write_result_response.rb +246 -0
  183. data/lib/api-sdk-rb/models/create_widget201_response_data.rb +9 -20
  184. data/lib/api-sdk-rb/models/create_workspace_workflow_from_preset_request.rb +278 -0
  185. data/lib/api-sdk-rb/models/create_workspace_workflow_request.rb +271 -0
  186. data/lib/api-sdk-rb/models/{operations_id_get_response.rb → delete_upload200_response.rb} +4 -5
  187. data/lib/api-sdk-rb/models/{uploads_id_delete200_response_data.rb → delete_upload200_response_data.rb} +3 -3
  188. data/lib/api-sdk-rb/models/delete_workspace_workflow200_response.rb +246 -0
  189. data/lib/api-sdk-rb/models/design_defaults_response.rb +246 -0
  190. data/lib/api-sdk-rb/models/get_operation_response.rb +247 -0
  191. data/lib/api-sdk-rb/models/{operations_id_get_response_data.rb → get_operation_response_data.rb} +5 -8
  192. data/lib/api-sdk-rb/models/get_operation_response_data_metadata.rb +283 -0
  193. data/lib/api-sdk-rb/models/get_public_composition_embed200_response.rb +29 -2
  194. data/lib/api-sdk-rb/models/get_public_composition_embed200_response_adapters.rb +225 -0
  195. data/lib/api-sdk-rb/models/get_public_composition_embed200_response_adapters_captcha.rb +216 -0
  196. data/lib/api-sdk-rb/models/get_public_composition_embed200_response_entries.rb +224 -0
  197. data/lib/api-sdk-rb/models/get_public_composition_embed200_response_media.rb +216 -0
  198. data/lib/api-sdk-rb/models/get_workspace_workflow_stats200_response.rb +246 -0
  199. data/lib/api-sdk-rb/models/{create_composition_from_widget201_response.rb → get_workspace_workflow_version200_response.rb} +4 -4
  200. data/lib/api-sdk-rb/models/list_partner_workflow_presets200_response.rb +246 -0
  201. data/lib/api-sdk-rb/models/{uploads_get200_response.rb → list_uploads200_response.rb} +3 -3
  202. data/lib/api-sdk-rb/models/list_workspace_workflow_composition_options200_response.rb +246 -0
  203. data/lib/api-sdk-rb/models/{create_composition_content_item201_response.rb → list_workspace_workflow_presets200_response.rb} +4 -4
  204. data/lib/api-sdk-rb/models/{add_ai_answers_knowledge_document201_response.rb → list_workspace_workflow_versions200_response.rb} +4 -4
  205. data/lib/api-sdk-rb/models/list_workspace_workflows200_response.rb +246 -0
  206. data/lib/api-sdk-rb/models/{get_managed_user_limits200_response.rb → managed_user_limits_response.rb} +3 -3
  207. data/lib/api-sdk-rb/models/{uploads_id_delete200_response.rb → managed_user_removal_response.rb} +4 -4
  208. data/lib/api-sdk-rb/models/new_composition.rb +1 -1
  209. data/lib/api-sdk-rb/models/new_editor_session.rb +1 -1
  210. data/lib/api-sdk-rb/models/offer_workflow_preset_request.rb +322 -0
  211. data/lib/api-sdk-rb/models/offered_workflow_preset.rb +423 -0
  212. data/lib/api-sdk-rb/models/offered_workflow_preset_list.rb +223 -0
  213. data/lib/api-sdk-rb/models/offered_workflow_preset_widget.rb +251 -0
  214. data/lib/api-sdk-rb/models/partner_notification.rb +1 -1
  215. data/lib/api-sdk-rb/models/partner_notification_event_type.rb +5 -1
  216. data/lib/api-sdk-rb/models/patch_brand_kit_asset_request.rb +289 -0
  217. data/lib/api-sdk-rb/models/patch_brand_kit_request.rb +363 -0
  218. data/lib/api-sdk-rb/models/patch_brand_kit_request_fonts.rb +242 -0
  219. data/lib/api-sdk-rb/models/patch_brand_kit_request_spacing.rb +502 -0
  220. data/lib/api-sdk-rb/models/post_brand_kit_icon_request.rb +237 -0
  221. data/lib/api-sdk-rb/models/public_workflow.rb +351 -0
  222. data/lib/api-sdk-rb/models/public_workflow_events_accepted.rb +242 -0
  223. data/lib/api-sdk-rb/models/public_workflow_events_request.rb +301 -0
  224. data/lib/api-sdk-rb/models/public_workflow_events_request_events_inner.rb +354 -0
  225. data/lib/api-sdk-rb/models/public_workflow_events_request_heights_inner.rb +267 -0
  226. data/lib/api-sdk-rb/models/public_workflow_response.rb +246 -0
  227. data/lib/api-sdk-rb/models/public_workflow_translation.rb +242 -0
  228. data/lib/api-sdk-rb/models/{set_user_adapter_connection200_response.rb → publish_workspace_workflow200_response.rb} +4 -4
  229. data/lib/api-sdk-rb/models/publish_workspace_workflow_request.rb +240 -0
  230. data/lib/api-sdk-rb/models/put_brand_kit_request.rb +239 -0
  231. data/lib/api-sdk-rb/models/{remove_user_adapter_connection200_response.rb → remove_partner_workflow_preset200_response.rb} +4 -4
  232. data/lib/api-sdk-rb/models/report_public_workflow_events200_response.rb +246 -0
  233. data/lib/api-sdk-rb/models/save_workspace_workflow_request.rb +296 -0
  234. data/lib/api-sdk-rb/models/set_adapter_connection_request.rb +1 -1
  235. data/lib/api-sdk-rb/models/{get_partner_design_defaults200_response.rb → set_partner_workflow_preset200_response.rb} +4 -4
  236. data/lib/api-sdk-rb/models/update_composition.rb +1 -1
  237. data/lib/api-sdk-rb/models/upload.rb +1 -1
  238. data/lib/api-sdk-rb/models/upload_limits.rb +3 -3
  239. data/lib/api-sdk-rb/models/widget.rb +9 -20
  240. data/lib/api-sdk-rb/models/widget_clarification.rb +279 -0
  241. data/lib/api-sdk-rb/models/widget_clarification_option.rb +256 -0
  242. data/lib/api-sdk-rb/models/widget_clarification_question.rb +329 -0
  243. data/lib/api-sdk-rb/models/widget_next_step.rb +307 -0
  244. data/lib/api-sdk-rb/models/widget_plan.rb +306 -0
  245. data/lib/api-sdk-rb/models/widget_plan_decisions.rb +346 -0
  246. data/lib/api-sdk-rb/models/widget_plan_decisions_adapters_inner.rb +237 -0
  247. data/lib/api-sdk-rb/models/widget_plan_decisions_libraries_inner.rb +255 -0
  248. data/lib/api-sdk-rb/models/widget_plan_decisions_responsive.rb +311 -0
  249. data/lib/api-sdk-rb/models/widget_plan_task.rb +320 -0
  250. data/lib/api-sdk-rb/models/workflow.rb +509 -0
  251. data/lib/api-sdk-rb/models/workflow_composition_action.rb +266 -0
  252. data/lib/api-sdk-rb/models/workflow_composition_field.rb +303 -0
  253. data/lib/api-sdk-rb/models/workflow_composition_option.rb +316 -0
  254. data/lib/api-sdk-rb/models/workflow_composition_option_actions.rb +284 -0
  255. data/lib/api-sdk-rb/models/workflow_composition_option_inputs.rb +304 -0
  256. data/lib/api-sdk-rb/models/workflow_composition_options.rb +271 -0
  257. data/lib/api-sdk-rb/models/workflow_condition_case.rb +322 -0
  258. data/lib/api-sdk-rb/models/workflow_condition_test.rb +284 -0
  259. data/lib/api-sdk-rb/models/workflow_counter.rb +238 -0
  260. data/lib/api-sdk-rb/models/workflow_detail.rb +580 -0
  261. data/lib/api-sdk-rb/models/workflow_detail_all_of_last_edited_by.rb +242 -0
  262. data/lib/api-sdk-rb/models/workflow_detail_response.rb +246 -0
  263. data/lib/api-sdk-rb/models/workflow_edge.rb +292 -0
  264. data/lib/api-sdk-rb/models/workflow_failure_reason.rb +42 -0
  265. data/lib/api-sdk-rb/models/workflow_failure_reason_counter.rb +277 -0
  266. data/lib/api-sdk-rb/models/workflow_field_reference.rb +300 -0
  267. data/lib/api-sdk-rb/models/workflow_graph.rb +330 -0
  268. data/lib/api-sdk-rb/models/workflow_issue.rb +309 -0
  269. data/lib/api-sdk-rb/models/workflow_list.rb +271 -0
  270. data/lib/api-sdk-rb/models/workflow_node.rb +343 -0
  271. data/lib/api-sdk-rb/models/workflow_node_position.rb +238 -0
  272. data/lib/api-sdk-rb/models/workflow_preset_choice.rb +288 -0
  273. data/lib/api-sdk-rb/models/workflow_preset_choices.rb +224 -0
  274. data/lib/api-sdk-rb/models/workflow_preset_removal.rb +222 -0
  275. data/lib/api-sdk-rb/models/workflow_preset_widget.rb +234 -0
  276. data/lib/api-sdk-rb/models/workflow_publish_result.rb +256 -0
  277. data/lib/api-sdk-rb/models/workflow_removed.rb +221 -0
  278. data/lib/api-sdk-rb/models/workflow_response.rb +246 -0
  279. data/lib/api-sdk-rb/models/workflow_schedule.rb +298 -0
  280. data/lib/api-sdk-rb/models/workflow_stats.rb +347 -0
  281. data/lib/api-sdk-rb/models/workflow_status.rb +42 -0
  282. data/lib/api-sdk-rb/models/workflow_trigger.rb +303 -0
  283. data/lib/api-sdk-rb/models/workflow_trigger_values_inner.rb +271 -0
  284. data/lib/api-sdk-rb/models/workflow_version.rb +316 -0
  285. data/lib/api-sdk-rb/models/workflow_version_detail.rb +354 -0
  286. data/lib/api-sdk-rb/models/workflow_version_list.rb +224 -0
  287. data/lib/api-sdk-rb/models/workflow_version_published_by.rb +225 -0
  288. data/lib/api-sdk-rb/version.rb +1 -1
  289. data/lib/api-sdk-rb.rb +116 -17
  290. data/spec/api/brand_kit_api_spec.rb +136 -0
  291. data/spec/api/canvases_api_spec.rb +10 -10
  292. data/spec/api/compositions_api_spec.rb +227 -149
  293. data/spec/api/credits_api_spec.rb +5 -5
  294. data/spec/api/entitlements_api_spec.rb +4 -4
  295. data/spec/api/invoices_api_spec.rb +2 -2
  296. data/spec/api/managed_users_api_spec.rb +63 -42
  297. data/spec/api/operations_api_spec.rb +3 -3
  298. data/spec/api/partners_api_spec.rb +138 -84
  299. data/spec/api/public_embed_api_spec.rb +66 -15
  300. data/spec/api/tokens_api_spec.rb +3 -2
  301. data/spec/api/uploads_api_spec.rb +24 -24
  302. data/spec/api/users_api_spec.rb +43 -28
  303. data/spec/api/widgets_api_spec.rb +9 -9
  304. data/spec/api/workflows_api_spec.rb +339 -0
  305. data/spec/models/account_credit_transaction_list_response_spec.rb +48 -0
  306. data/spec/models/adapter_connection_list_response_spec.rb +48 -0
  307. data/spec/models/{get_managed_user_limits200_response_spec.rb → adapter_connection_removal_response_spec.rb} +6 -6
  308. data/spec/models/{delete_managed_user200_response_spec.rb → adapter_connection_response_spec.rb} +6 -6
  309. data/spec/models/adapter_connection_spec.rb +18 -0
  310. data/spec/models/ai_answers_knowledge_document_response_spec.rb +48 -0
  311. data/spec/models/brand_color_spec.rb +52 -0
  312. data/spec/models/brand_font_spec.rb +62 -0
  313. data/spec/models/brand_kit_asset_view_spec.rb +120 -0
  314. data/spec/models/brand_kit_figma_source_spec.rb +60 -0
  315. data/spec/models/brand_kit_tokens_fonts_spec.rb +54 -0
  316. data/spec/models/brand_kit_tokens_spec.rb +60 -0
  317. data/spec/models/brand_kit_view_owner_spec.rb +46 -0
  318. data/spec/models/{uploads_get200_response_spec.rb → brand_kit_view_response_spec.rb} +6 -6
  319. data/spec/models/brand_kit_view_spec.rb +90 -0
  320. data/spec/models/brand_spacing_spec.rb +78 -0
  321. data/spec/models/brand_text_style_spec.rb +52 -0
  322. data/spec/models/composition_database_record_response_spec.rb +48 -0
  323. data/spec/models/composition_last_edited_by_spec.rb +42 -0
  324. data/spec/models/composition_spec.rb +12 -0
  325. data/spec/models/confirm_adapter_connection_request_spec.rb +36 -0
  326. data/spec/models/content_item_write_result_response_spec.rb +48 -0
  327. data/spec/models/create_widget201_response_data_spec.rb +1 -7
  328. data/spec/models/create_workspace_workflow_from_preset_request_spec.rb +42 -0
  329. data/spec/models/create_workspace_workflow_request_spec.rb +48 -0
  330. data/spec/models/{uploads_id_delete200_response_data_spec.rb → delete_upload200_response_data_spec.rb} +6 -6
  331. data/spec/models/{operations_id_get_response_spec.rb → delete_upload200_response_spec.rb} +6 -6
  332. data/spec/models/delete_workspace_workflow200_response_spec.rb +48 -0
  333. data/spec/models/design_defaults_response_spec.rb +48 -0
  334. data/spec/models/editor_session_spec.rb +1 -1
  335. data/spec/models/get_operation_response_data_metadata_spec.rb +58 -0
  336. data/spec/models/{operations_id_get_response_data_spec.rb → get_operation_response_data_spec.rb} +6 -6
  337. data/spec/models/get_operation_response_spec.rb +48 -0
  338. data/spec/models/get_public_composition_embed200_response_adapters_captcha_spec.rb +36 -0
  339. data/spec/models/get_public_composition_embed200_response_adapters_spec.rb +42 -0
  340. data/spec/models/get_public_composition_embed200_response_entries_spec.rb +42 -0
  341. data/spec/models/get_public_composition_embed200_response_media_spec.rb +36 -0
  342. data/spec/models/get_public_composition_embed200_response_spec.rb +18 -0
  343. data/spec/models/{get_user_adapter_connections200_response_spec.rb → get_workspace_workflow_stats200_response_spec.rb} +6 -6
  344. data/spec/models/{remove_user_adapter_connection200_response_spec.rb → get_workspace_workflow_version200_response_spec.rb} +6 -6
  345. data/spec/models/list_partner_workflow_presets200_response_spec.rb +48 -0
  346. data/spec/models/list_uploads200_response_spec.rb +48 -0
  347. data/spec/models/{create_composition_database_record201_response_spec.rb → list_workspace_workflow_composition_options200_response_spec.rb} +6 -6
  348. data/spec/models/{get_partner_credit_transactions200_response_spec.rb → list_workspace_workflow_presets200_response_spec.rb} +6 -6
  349. data/spec/models/{add_ai_answers_knowledge_document201_response_spec.rb → list_workspace_workflow_versions200_response_spec.rb} +6 -6
  350. data/spec/models/list_workspace_workflows200_response_spec.rb +48 -0
  351. data/spec/models/managed_user_limits_response_spec.rb +48 -0
  352. data/spec/models/{uploads_id_delete200_response_spec.rb → managed_user_removal_response_spec.rb} +6 -6
  353. data/spec/models/new_editor_session_spec.rb +1 -1
  354. data/spec/models/offer_workflow_preset_request_spec.rb +54 -0
  355. data/spec/models/offered_workflow_preset_list_spec.rb +36 -0
  356. data/spec/models/offered_workflow_preset_spec.rb +106 -0
  357. data/spec/models/offered_workflow_preset_widget_spec.rb +48 -0
  358. data/spec/models/patch_brand_kit_asset_request_spec.rb +62 -0
  359. data/spec/models/patch_brand_kit_request_fonts_spec.rb +54 -0
  360. data/spec/models/patch_brand_kit_request_spacing_spec.rb +78 -0
  361. data/spec/models/patch_brand_kit_request_spec.rb +72 -0
  362. data/spec/models/post_brand_kit_icon_request_spec.rb +42 -0
  363. data/spec/models/public_workflow_events_accepted_spec.rb +48 -0
  364. data/spec/models/public_workflow_events_request_events_inner_spec.rb +62 -0
  365. data/spec/models/public_workflow_events_request_heights_inner_spec.rb +42 -0
  366. data/spec/models/public_workflow_events_request_spec.rb +54 -0
  367. data/spec/models/public_workflow_response_spec.rb +48 -0
  368. data/spec/models/public_workflow_spec.rb +94 -0
  369. data/spec/models/public_workflow_translation_spec.rb +42 -0
  370. data/spec/models/{get_partner_design_defaults200_response_spec.rb → publish_workspace_workflow200_response_spec.rb} +6 -6
  371. data/spec/models/publish_workspace_workflow_request_spec.rb +36 -0
  372. data/spec/models/put_brand_kit_request_spec.rb +48 -0
  373. data/spec/models/{create_composition_from_widget201_response_spec.rb → remove_partner_workflow_preset200_response_spec.rb} +6 -6
  374. data/spec/models/report_public_workflow_events200_response_spec.rb +48 -0
  375. data/spec/models/save_workspace_workflow_request_spec.rb +54 -0
  376. data/spec/models/{set_user_adapter_connection200_response_spec.rb → set_partner_workflow_preset200_response_spec.rb} +6 -6
  377. data/spec/models/widget_clarification_option_spec.rb +48 -0
  378. data/spec/models/widget_clarification_question_spec.rb +60 -0
  379. data/spec/models/widget_clarification_spec.rb +48 -0
  380. data/spec/models/widget_next_step_spec.rb +58 -0
  381. data/spec/models/widget_plan_decisions_adapters_inner_spec.rb +42 -0
  382. data/spec/models/widget_plan_decisions_libraries_inner_spec.rb +48 -0
  383. data/spec/models/widget_plan_decisions_responsive_spec.rb +48 -0
  384. data/spec/models/widget_plan_decisions_spec.rb +78 -0
  385. data/spec/models/widget_plan_spec.rb +60 -0
  386. data/spec/models/widget_plan_task_spec.rb +62 -0
  387. data/spec/models/widget_spec.rb +1 -7
  388. data/spec/models/workflow_composition_action_spec.rb +54 -0
  389. data/spec/models/workflow_composition_field_spec.rb +58 -0
  390. data/spec/models/workflow_composition_option_actions_spec.rb +52 -0
  391. data/spec/models/workflow_composition_option_inputs_spec.rb +58 -0
  392. data/spec/models/workflow_composition_option_spec.rb +72 -0
  393. data/spec/models/workflow_composition_options_spec.rb +54 -0
  394. data/spec/models/workflow_condition_case_spec.rb +58 -0
  395. data/spec/models/workflow_condition_test_spec.rb +52 -0
  396. data/spec/models/workflow_counter_spec.rb +42 -0
  397. data/spec/models/workflow_detail_all_of_last_edited_by_spec.rb +42 -0
  398. data/spec/models/workflow_detail_response_spec.rb +48 -0
  399. data/spec/models/workflow_detail_spec.rb +162 -0
  400. data/spec/models/workflow_edge_spec.rb +54 -0
  401. data/spec/models/workflow_failure_reason_counter_spec.rb +48 -0
  402. data/spec/models/workflow_failure_reason_spec.rb +30 -0
  403. data/spec/models/workflow_field_reference_spec.rb +56 -0
  404. data/spec/models/workflow_graph_spec.rb +52 -0
  405. data/spec/models/workflow_issue_spec.rb +70 -0
  406. data/spec/models/{create_composition_content_item201_response_spec.rb → workflow_list_spec.rb} +15 -9
  407. data/spec/models/workflow_node_position_spec.rb +42 -0
  408. data/spec/models/workflow_node_spec.rb +76 -0
  409. data/spec/models/workflow_preset_choice_spec.rb +60 -0
  410. data/spec/models/workflow_preset_choices_spec.rb +36 -0
  411. data/spec/models/workflow_preset_removal_spec.rb +36 -0
  412. data/spec/models/workflow_preset_widget_spec.rb +42 -0
  413. data/spec/models/workflow_publish_result_spec.rb +48 -0
  414. data/spec/models/workflow_removed_spec.rb +36 -0
  415. data/spec/models/workflow_response_spec.rb +48 -0
  416. data/spec/models/workflow_schedule_spec.rb +62 -0
  417. data/spec/models/workflow_spec.rb +132 -0
  418. data/spec/models/workflow_stats_spec.rb +84 -0
  419. data/spec/models/workflow_status_spec.rb +30 -0
  420. data/spec/models/workflow_trigger_spec.rb +70 -0
  421. data/spec/models/workflow_trigger_values_inner_spec.rb +46 -0
  422. data/spec/models/workflow_version_detail_spec.rb +78 -0
  423. data/spec/models/workflow_version_list_spec.rb +36 -0
  424. data/spec/models/workflow_version_published_by_spec.rb +42 -0
  425. data/spec/models/workflow_version_spec.rb +66 -0
  426. metadata +476 -80
  427. data/docs/PartnerApi.md +0 -9892
  428. data/docs/UploadsIdDelete200Response.md +0 -22
  429. data/lib/api-sdk-rb/api/partner_api.rb +0 -10693
  430. data/spec/api/partner_api_spec.rb +0 -1895
@@ -19,53 +19,147 @@ module ApiSdkRb
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Confirm a partner's adapter address with the code that was emailed to it
23
+ # Some credentials are an email address Widgetic sends a widget's messages to (`confirmation: email_code` in `getPartnerAdapterConnections`). Saving one with `setPartnerAdapterConnection` emails a six-digit code to it; this gives the code back. Only then is the address used: until it is confirmed, the widgets of the partner's customers that need it are not charged and their visitors are told the feature is unavailable. The code works for 30 minutes and for five wrong tries. After that, save the address again and a new code is emailed (not sooner than a minute after the last one). A code that is not made of digits is refused without counting as a try. Confirming an address that is already confirmed answers 200 with the same state, so a retry of a request that went through is harmless. Saving a different address, or the same one before it was confirmed, starts again. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
24
+ # @param partner_id [String] The partner that keeps the address
25
+ # @param adapter_id [String] The adapter the address is for
26
+ # @param credential_key [String] The credential's name within the adapter
27
+ # @param confirm_adapter_connection_request [ConfirmAdapterConnectionRequest]
28
+ # @param [Hash] opts the optional parameters
29
+ # @return [AdapterConnectionResponse]
30
+ def confirm_partner_adapter_connection(partner_id, adapter_id, credential_key, confirm_adapter_connection_request, opts = {})
31
+ data, _status_code, _headers = confirm_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, confirm_adapter_connection_request, opts)
32
+ data
33
+ end
34
+
35
+ # Confirm a partner's adapter address with the code that was emailed to it
36
+ # Some credentials are an email address Widgetic sends a widget's messages to (`confirmation: email_code` in `getPartnerAdapterConnections`). Saving one with `setPartnerAdapterConnection` emails a six-digit code to it; this gives the code back. Only then is the address used: until it is confirmed, the widgets of the partner's customers that need it are not charged and their visitors are told the feature is unavailable. The code works for 30 minutes and for five wrong tries. After that, save the address again and a new code is emailed (not sooner than a minute after the last one). A code that is not made of digits is refused without counting as a try. Confirming an address that is already confirmed answers 200 with the same state, so a retry of a request that went through is harmless. Saving a different address, or the same one before it was confirmed, starts again. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator.
37
+ # @param partner_id [String] The partner that keeps the address
38
+ # @param adapter_id [String] The adapter the address is for
39
+ # @param credential_key [String] The credential's name within the adapter
40
+ # @param confirm_adapter_connection_request [ConfirmAdapterConnectionRequest]
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [Array<(AdapterConnectionResponse, Integer, Hash)>] AdapterConnectionResponse data, response status code and response headers
43
+ def confirm_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, confirm_adapter_connection_request, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: PartnersApi.confirm_partner_adapter_connection ...'
46
+ end
47
+ # verify the required parameter 'partner_id' is set
48
+ if @api_client.config.client_side_validation && partner_id.nil?
49
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.confirm_partner_adapter_connection"
50
+ end
51
+ # verify the required parameter 'adapter_id' is set
52
+ if @api_client.config.client_side_validation && adapter_id.nil?
53
+ fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.confirm_partner_adapter_connection"
54
+ end
55
+ if @api_client.config.client_side_validation && adapter_id.to_s.length > 40
56
+ fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.confirm_partner_adapter_connection, the character length must be smaller than or equal to 40.'
57
+ end
58
+
59
+ # verify the required parameter 'credential_key' is set
60
+ if @api_client.config.client_side_validation && credential_key.nil?
61
+ fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.confirm_partner_adapter_connection"
62
+ end
63
+ if @api_client.config.client_side_validation && credential_key.to_s.length > 40
64
+ fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.confirm_partner_adapter_connection, the character length must be smaller than or equal to 40.'
65
+ end
66
+
67
+ # verify the required parameter 'confirm_adapter_connection_request' is set
68
+ if @api_client.config.client_side_validation && confirm_adapter_connection_request.nil?
69
+ fail ArgumentError, "Missing the required parameter 'confirm_adapter_connection_request' when calling PartnersApi.confirm_partner_adapter_connection"
70
+ end
71
+ # resource path
72
+ local_var_path = '/partners/{partnerId}/adapter-connections/{adapterId}/{credentialKey}/confirm'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'adapterId' + '}', CGI.escape(adapter_id.to_s)).sub('{' + 'credentialKey' + '}', CGI.escape(credential_key.to_s))
73
+
74
+ # query parameters
75
+ query_params = opts[:query_params] || {}
76
+
77
+ # header parameters
78
+ header_params = opts[:header_params] || {}
79
+ # HTTP header 'Accept' (if needed)
80
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
81
+ # HTTP header 'Content-Type'
82
+ content_type = @api_client.select_header_content_type(['application/json'])
83
+ if !content_type.nil?
84
+ header_params['Content-Type'] = content_type
85
+ end
86
+
87
+ # form parameters
88
+ form_params = opts[:form_params] || {}
89
+
90
+ # http body (model)
91
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(confirm_adapter_connection_request)
92
+
93
+ # return_type
94
+ return_type = opts[:debug_return_type] || 'AdapterConnectionResponse'
95
+
96
+ # auth_names
97
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
98
+
99
+ new_options = opts.merge(
100
+ :operation => :"PartnersApi.confirm_partner_adapter_connection",
101
+ :header_params => header_params,
102
+ :query_params => query_params,
103
+ :form_params => form_params,
104
+ :body => post_body,
105
+ :auth_names => auth_names,
106
+ :return_type => return_type
107
+ )
108
+
109
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
110
+ if @api_client.config.debugging
111
+ @api_client.config.logger.debug "API called: PartnersApi#confirm_partner_adapter_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
112
+ end
113
+ return data, status_code, headers
114
+ end
115
+
22
116
  # Buy extra credits for a partner
23
- # Asks Widgetic for an invoice for extra credits, on top of the credits of the contract. Name the dollars; the invoice is for the most whole credits they buy at the **list price** of a credit (the price a contract may lower belongs to the contract), so it is never for more than you asked: 12.34 buys 123 credits and the invoice says 12.30. The smallest purchase is 10 dollars and one request buys at most 100000 (ask Widgetic for an invoice for more). Pay the invoice with the link in the answer. When it is paid the credits are added **once, for good**, to the account of the person who administers the partner, which is the account everything the partner builds is charged to (`getPartnerCreditBalance` shows it). Extra credits **do not expire**, unlike the credits of a contract period, which end with it. Nothing is added before the invoice is paid, and an unpaid invoice for extra credits never stops the partner: only an unpaid invoice of the contract does (`payment_arrears`). Allowed whatever the partner's standing: a partner that has run out of credits, or is stopped for an unpaid contract invoice, can still buy. No contract is needed. An `Idempotency-Key` is required, and it is what makes a retry safe: the same key with the same body returns the invoice already issued, the same key with a different body is refused with 422, and a duplicate that arrives while the first is still running is refused with 409. Use one key per purchase you mean to make, and a new key for the next one. At most 10 requests an hour. Who may ask: the person who administers the partner, or a Widgetic administrator. A key limited to scopes needs `billing:write`.
117
+ # Asks Widgetic for an invoice for extra credits, on top of the credits of the contract. Name the dollars; the invoice is for the most whole credits they buy at the **list price** of a credit (the price a contract may lower belongs to the contract), so it is never for more than you asked: 12.34 buys 123 credits and the invoice says 12.30. The smallest purchase is 10 dollars and one request buys at most 100000 (ask Widgetic for an invoice for more). Pay the invoice with the link in the answer. When it is paid the credits are added **once, for good**, to the account of the person who administers the partner, which is the account everything the partner builds is charged to (`getPartnerCreditBalance` shows it). Extra credits **do not expire**, unlike the credits of a contract period, which end with it. Nothing is added before the invoice is paid, and an unpaid invoice for extra credits never stops the partner: only an unpaid invoice of the contract does (`payment_arrears`). Available only to partners that have an active paid contract in force with Widgetic (`NO_PAID_CONTRACT` when none is in force) and no overdue contract invoice (`CONTRACT_INVOICE_OVERDUE` while a contract invoice is past its due day). A partner that has run out of credits during its period can buy more at the list price. An `Idempotency-Key` is required, and it is what makes a retry safe: the same key with the same body returns the invoice already issued, the same key with a different body is refused with 422, and a duplicate that arrives while the first is still running is refused with 409. Use one key per purchase you mean to make, and a new key for the next one. At most 10 requests an hour. Who may ask: the person who administers the partner, or a Widgetic administrator. A key limited to scopes needs `billing:write`.
24
118
  # @param partner_id [String] Partner ID
25
119
  # @param idempotency_key [String] A key of your own for this purchase, so that a retry cannot make a second invoice
26
120
  # @param request_extra_credits [RequestExtraCredits]
27
121
  # @param [Hash] opts the optional parameters
28
122
  # @return [PartnerExtraCreditsInvoiceResponse]
29
- def create_partner_extra_credits_invoice_0(partner_id, idempotency_key, request_extra_credits, opts = {})
30
- data, _status_code, _headers = create_partner_extra_credits_invoice_0_with_http_info(partner_id, idempotency_key, request_extra_credits, opts)
123
+ def create_partner_extra_credits_invoice(partner_id, idempotency_key, request_extra_credits, opts = {})
124
+ data, _status_code, _headers = create_partner_extra_credits_invoice_with_http_info(partner_id, idempotency_key, request_extra_credits, opts)
31
125
  data
32
126
  end
33
127
 
34
128
  # Buy extra credits for a partner
35
- # Asks Widgetic for an invoice for extra credits, on top of the credits of the contract. Name the dollars; the invoice is for the most whole credits they buy at the **list price** of a credit (the price a contract may lower belongs to the contract), so it is never for more than you asked: 12.34 buys 123 credits and the invoice says 12.30. The smallest purchase is 10 dollars and one request buys at most 100000 (ask Widgetic for an invoice for more). Pay the invoice with the link in the answer. When it is paid the credits are added **once, for good**, to the account of the person who administers the partner, which is the account everything the partner builds is charged to (&#x60;getPartnerCreditBalance&#x60; shows it). Extra credits **do not expire**, unlike the credits of a contract period, which end with it. Nothing is added before the invoice is paid, and an unpaid invoice for extra credits never stops the partner: only an unpaid invoice of the contract does (&#x60;payment_arrears&#x60;). Allowed whatever the partner&#39;s standing: a partner that has run out of credits, or is stopped for an unpaid contract invoice, can still buy. No contract is needed. An &#x60;Idempotency-Key&#x60; is required, and it is what makes a retry safe: the same key with the same body returns the invoice already issued, the same key with a different body is refused with 422, and a duplicate that arrives while the first is still running is refused with 409. Use one key per purchase you mean to make, and a new key for the next one. At most 10 requests an hour. Who may ask: the person who administers the partner, or a Widgetic administrator. A key limited to scopes needs &#x60;billing:write&#x60;.
129
+ # Asks Widgetic for an invoice for extra credits, on top of the credits of the contract. Name the dollars; the invoice is for the most whole credits they buy at the **list price** of a credit (the price a contract may lower belongs to the contract), so it is never for more than you asked: 12.34 buys 123 credits and the invoice says 12.30. The smallest purchase is 10 dollars and one request buys at most 100000 (ask Widgetic for an invoice for more). Pay the invoice with the link in the answer. When it is paid the credits are added **once, for good**, to the account of the person who administers the partner, which is the account everything the partner builds is charged to (&#x60;getPartnerCreditBalance&#x60; shows it). Extra credits **do not expire**, unlike the credits of a contract period, which end with it. Nothing is added before the invoice is paid, and an unpaid invoice for extra credits never stops the partner: only an unpaid invoice of the contract does (&#x60;payment_arrears&#x60;). Available only to partners that have an active paid contract in force with Widgetic (&#x60;NO_PAID_CONTRACT&#x60; when none is in force) and no overdue contract invoice (&#x60;CONTRACT_INVOICE_OVERDUE&#x60; while a contract invoice is past its due day). A partner that has run out of credits during its period can buy more at the list price. An &#x60;Idempotency-Key&#x60; is required, and it is what makes a retry safe: the same key with the same body returns the invoice already issued, the same key with a different body is refused with 422, and a duplicate that arrives while the first is still running is refused with 409. Use one key per purchase you mean to make, and a new key for the next one. At most 10 requests an hour. Who may ask: the person who administers the partner, or a Widgetic administrator. A key limited to scopes needs &#x60;billing:write&#x60;.
36
130
  # @param partner_id [String] Partner ID
37
131
  # @param idempotency_key [String] A key of your own for this purchase, so that a retry cannot make a second invoice
38
132
  # @param request_extra_credits [RequestExtraCredits]
39
133
  # @param [Hash] opts the optional parameters
40
134
  # @return [Array<(PartnerExtraCreditsInvoiceResponse, Integer, Hash)>] PartnerExtraCreditsInvoiceResponse data, response status code and response headers
41
- def create_partner_extra_credits_invoice_0_with_http_info(partner_id, idempotency_key, request_extra_credits, opts = {})
135
+ def create_partner_extra_credits_invoice_with_http_info(partner_id, idempotency_key, request_extra_credits, opts = {})
42
136
  if @api_client.config.debugging
43
- @api_client.config.logger.debug 'Calling API: PartnersApi.create_partner_extra_credits_invoice_0 ...'
137
+ @api_client.config.logger.debug 'Calling API: PartnersApi.create_partner_extra_credits_invoice ...'
44
138
  end
45
139
  # verify the required parameter 'partner_id' is set
46
140
  if @api_client.config.client_side_validation && partner_id.nil?
47
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.create_partner_extra_credits_invoice_0"
141
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.create_partner_extra_credits_invoice"
48
142
  end
49
143
  # verify the required parameter 'idempotency_key' is set
50
144
  if @api_client.config.client_side_validation && idempotency_key.nil?
51
- fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.create_partner_extra_credits_invoice_0"
145
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.create_partner_extra_credits_invoice"
52
146
  end
53
147
  if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
54
- fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.create_partner_extra_credits_invoice_0, the character length must be smaller than or equal to 50.'
148
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.create_partner_extra_credits_invoice, the character length must be smaller than or equal to 50.'
55
149
  end
56
150
 
57
151
  if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
58
- fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.create_partner_extra_credits_invoice_0, the character length must be great than or equal to 8.'
152
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.create_partner_extra_credits_invoice, the character length must be great than or equal to 8.'
59
153
  end
60
154
 
61
155
  pattern = Regexp.new(/^[A-Za-z0-9_-]+$/)
62
156
  if @api_client.config.client_side_validation && idempotency_key !~ pattern
63
- fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.create_partner_extra_credits_invoice_0, must conform to the pattern #{pattern}."
157
+ fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.create_partner_extra_credits_invoice, must conform to the pattern #{pattern}."
64
158
  end
65
159
 
66
160
  # verify the required parameter 'request_extra_credits' is set
67
161
  if @api_client.config.client_side_validation && request_extra_credits.nil?
68
- fail ArgumentError, "Missing the required parameter 'request_extra_credits' when calling PartnersApi.create_partner_extra_credits_invoice_0"
162
+ fail ArgumentError, "Missing the required parameter 'request_extra_credits' when calling PartnersApi.create_partner_extra_credits_invoice"
69
163
  end
70
164
  # resource path
71
165
  local_var_path = '/partners/{partnerId}/credits/extra-invoice'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -97,7 +191,7 @@ module ApiSdkRb
97
191
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
98
192
 
99
193
  new_options = opts.merge(
100
- :operation => :"PartnersApi.create_partner_extra_credits_invoice_0",
194
+ :operation => :"PartnersApi.create_partner_extra_credits_invoice",
101
195
  :header_params => header_params,
102
196
  :query_params => query_params,
103
197
  :form_params => form_params,
@@ -108,7 +202,7 @@ module ApiSdkRb
108
202
 
109
203
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
110
204
  if @api_client.config.debugging
111
- @api_client.config.logger.debug "API called: PartnersApi#create_partner_extra_credits_invoice_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
205
+ @api_client.config.logger.debug "API called: PartnersApi#create_partner_extra_credits_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
112
206
  end
113
207
  return data, status_code, headers
114
208
  end
@@ -117,8 +211,8 @@ module ApiSdkRb
117
211
  # Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended` (paused, with the reason Widgetic gave) or `payment_arrears` (a contract invoice is past its due date and unpaid, since `overdueSince`; the partner is stopped until it is paid). A partner API key is that account's key, so it reads its own partner here. An account that administers no partner is not refused: it gets `standing: not_a_partner` and an empty list, so a dashboard can tell \"this is not a partner account\" from \"something failed\". The call stays open while the partner is paused, not yet active or in payment arrears: that is when its dashboard has to say why.
118
212
  # @param [Hash] opts the optional parameters
119
213
  # @return [MyPartnersResponse]
120
- def get_my_partners_0(opts = {})
121
- data, _status_code, _headers = get_my_partners_0_with_http_info(opts)
214
+ def get_my_partners(opts = {})
215
+ data, _status_code, _headers = get_my_partners_with_http_info(opts)
122
216
  data
123
217
  end
124
218
 
@@ -126,9 +220,9 @@ module ApiSdkRb
126
220
  # Returns the partner (nearly always one) that the signed-in account administers, with the id every other partner route asks for and the standing it is in: &#x60;active&#x60;, &#x60;inactive&#x60; (not activated yet), &#x60;suspended&#x60; (paused, with the reason Widgetic gave) or &#x60;payment_arrears&#x60; (a contract invoice is past its due date and unpaid, since &#x60;overdueSince&#x60;; the partner is stopped until it is paid). A partner API key is that account&#39;s key, so it reads its own partner here. An account that administers no partner is not refused: it gets &#x60;standing: not_a_partner&#x60; and an empty list, so a dashboard can tell \&quot;this is not a partner account\&quot; from \&quot;something failed\&quot;. The call stays open while the partner is paused, not yet active or in payment arrears: that is when its dashboard has to say why.
127
221
  # @param [Hash] opts the optional parameters
128
222
  # @return [Array<(MyPartnersResponse, Integer, Hash)>] MyPartnersResponse data, response status code and response headers
129
- def get_my_partners_0_with_http_info(opts = {})
223
+ def get_my_partners_with_http_info(opts = {})
130
224
  if @api_client.config.debugging
131
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_my_partners_0 ...'
225
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_my_partners ...'
132
226
  end
133
227
  # resource path
134
228
  local_var_path = '/partners/mine'
@@ -154,7 +248,7 @@ module ApiSdkRb
154
248
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
155
249
 
156
250
  new_options = opts.merge(
157
- :operation => :"PartnersApi.get_my_partners_0",
251
+ :operation => :"PartnersApi.get_my_partners",
158
252
  :header_params => header_params,
159
253
  :query_params => query_params,
160
254
  :form_params => form_params,
@@ -165,7 +259,7 @@ module ApiSdkRb
165
259
 
166
260
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
167
261
  if @api_client.config.debugging
168
- @api_client.config.logger.debug "API called: PartnersApi#get_my_partners_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
262
+ @api_client.config.logger.debug "API called: PartnersApi#get_my_partners\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
169
263
  end
170
264
  return data, status_code, headers
171
265
  end
@@ -174,9 +268,9 @@ module ApiSdkRb
174
268
  # Widget adapters are capabilities a widget can use, and some of them act through a service the account that made the widget has with a provider: an adapter that sends email needs an email provider key, one that sends texts needs an SMS provider key. For the widgets of the customers a partner manages, those keys are the partner's. This lists every key an adapter takes from a partner and whether the partner has connected it. An empty list means no adapter takes a key from a partner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with `setPartnerAdapterConnection`; take it away with `removePartnerAdapterConnection`. A managed customer never holds a key: the widgets of a managed customer use the partner's, and never the personal key of the person who administers the partner. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
175
269
  # @param partner_id [String] The partner whose adapter keys to list
176
270
  # @param [Hash] opts the optional parameters
177
- # @return [GetUserAdapterConnections200Response]
178
- def get_partner_adapter_connections_0(partner_id, opts = {})
179
- data, _status_code, _headers = get_partner_adapter_connections_0_with_http_info(partner_id, opts)
271
+ # @return [AdapterConnectionListResponse]
272
+ def get_partner_adapter_connections(partner_id, opts = {})
273
+ data, _status_code, _headers = get_partner_adapter_connections_with_http_info(partner_id, opts)
180
274
  data
181
275
  end
182
276
 
@@ -184,14 +278,14 @@ module ApiSdkRb
184
278
  # Widget adapters are capabilities a widget can use, and some of them act through a service the account that made the widget has with a provider: an adapter that sends email needs an email provider key, one that sends texts needs an SMS provider key. For the widgets of the customers a partner manages, those keys are the partner&#39;s. This lists every key an adapter takes from a partner and whether the partner has connected it. An empty list means no adapter takes a key from a partner at the moment. The list never contains a key: only whether one is connected and when it was last set. Connect a key with &#x60;setPartnerAdapterConnection&#x60;; take it away with &#x60;removePartnerAdapterConnection&#x60;. A managed customer never holds a key: the widgets of a managed customer use the partner&#39;s, and never the personal key of the person who administers the partner. The caller must be the person who administers the partner (an API key of that account works, with the &#x60;partner:read&#x60; scope), or a Widgetic administrator.
185
279
  # @param partner_id [String] The partner whose adapter keys to list
186
280
  # @param [Hash] opts the optional parameters
187
- # @return [Array<(GetUserAdapterConnections200Response, Integer, Hash)>] GetUserAdapterConnections200Response data, response status code and response headers
188
- def get_partner_adapter_connections_0_with_http_info(partner_id, opts = {})
281
+ # @return [Array<(AdapterConnectionListResponse, Integer, Hash)>] AdapterConnectionListResponse data, response status code and response headers
282
+ def get_partner_adapter_connections_with_http_info(partner_id, opts = {})
189
283
  if @api_client.config.debugging
190
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_adapter_connections_0 ...'
284
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_adapter_connections ...'
191
285
  end
192
286
  # verify the required parameter 'partner_id' is set
193
287
  if @api_client.config.client_side_validation && partner_id.nil?
194
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_adapter_connections_0"
288
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_adapter_connections"
195
289
  end
196
290
  # resource path
197
291
  local_var_path = '/partners/{partnerId}/adapter-connections'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -211,13 +305,13 @@ module ApiSdkRb
211
305
  post_body = opts[:debug_body]
212
306
 
213
307
  # return_type
214
- return_type = opts[:debug_return_type] || 'GetUserAdapterConnections200Response'
308
+ return_type = opts[:debug_return_type] || 'AdapterConnectionListResponse'
215
309
 
216
310
  # auth_names
217
311
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
218
312
 
219
313
  new_options = opts.merge(
220
- :operation => :"PartnersApi.get_partner_adapter_connections_0",
314
+ :operation => :"PartnersApi.get_partner_adapter_connections",
221
315
  :header_params => header_params,
222
316
  :query_params => query_params,
223
317
  :form_params => form_params,
@@ -228,7 +322,7 @@ module ApiSdkRb
228
322
 
229
323
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
230
324
  if @api_client.config.debugging
231
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_adapter_connections_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
325
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_adapter_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
232
326
  end
233
327
  return data, status_code, headers
234
328
  end
@@ -242,8 +336,8 @@ module ApiSdkRb
242
336
  # @option opts [Integer] :limit How many managed users to list at most (default to 50)
243
337
  # @option opts [Integer] :offset How many managed users to skip (default to 0)
244
338
  # @return [PartnerAnalyticsByManagedUserResponse]
245
- def get_partner_analytics_by_managed_user_0(partner_id, opts = {})
246
- data, _status_code, _headers = get_partner_analytics_by_managed_user_0_with_http_info(partner_id, opts)
339
+ def get_partner_analytics_by_managed_user(partner_id, opts = {})
340
+ data, _status_code, _headers = get_partner_analytics_by_managed_user_with_http_info(partner_id, opts)
247
341
  data
248
342
  end
249
343
 
@@ -256,28 +350,28 @@ module ApiSdkRb
256
350
  # @option opts [Integer] :limit How many managed users to list at most (default to 50)
257
351
  # @option opts [Integer] :offset How many managed users to skip (default to 0)
258
352
  # @return [Array<(PartnerAnalyticsByManagedUserResponse, Integer, Hash)>] PartnerAnalyticsByManagedUserResponse data, response status code and response headers
259
- def get_partner_analytics_by_managed_user_0_with_http_info(partner_id, opts = {})
353
+ def get_partner_analytics_by_managed_user_with_http_info(partner_id, opts = {})
260
354
  if @api_client.config.debugging
261
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_by_managed_user_0 ...'
355
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_by_managed_user ...'
262
356
  end
263
357
  # verify the required parameter 'partner_id' is set
264
358
  if @api_client.config.client_side_validation && partner_id.nil?
265
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_by_managed_user_0"
359
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_by_managed_user"
266
360
  end
267
361
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
268
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_by_managed_user_0, must be smaller than or equal to 100.'
362
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_by_managed_user, must be smaller than or equal to 100.'
269
363
  end
270
364
 
271
365
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
272
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_by_managed_user_0, must be greater than or equal to 1.'
366
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_by_managed_user, must be greater than or equal to 1.'
273
367
  end
274
368
 
275
369
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 100000
276
- fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_analytics_by_managed_user_0, must be smaller than or equal to 100000.'
370
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_analytics_by_managed_user, must be smaller than or equal to 100000.'
277
371
  end
278
372
 
279
373
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
280
- fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_analytics_by_managed_user_0, must be greater than or equal to 0.'
374
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_analytics_by_managed_user, must be greater than or equal to 0.'
281
375
  end
282
376
 
283
377
  # resource path
@@ -308,7 +402,7 @@ module ApiSdkRb
308
402
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
309
403
 
310
404
  new_options = opts.merge(
311
- :operation => :"PartnersApi.get_partner_analytics_by_managed_user_0",
405
+ :operation => :"PartnersApi.get_partner_analytics_by_managed_user",
312
406
  :header_params => header_params,
313
407
  :query_params => query_params,
314
408
  :form_params => form_params,
@@ -319,7 +413,7 @@ module ApiSdkRb
319
413
 
320
414
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
321
415
  if @api_client.config.debugging
322
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_by_managed_user_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
416
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_by_managed_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
323
417
  end
324
418
  return data, status_code, headers
325
419
  end
@@ -333,8 +427,8 @@ module ApiSdkRb
333
427
  # @option opts [String] :managed_user_id Report only on this managed user (Widgetic&#39;s id for the user). Send this or &#x60;managedUserExternalId&#x60;, not both.
334
428
  # @option opts [String] :managed_user_external_id Report only on the managed user you registered with this &#x60;externalId&#x60; (your own identifier for the user). Send this or &#x60;managedUserId&#x60;, not both.
335
429
  # @return [PartnerAnalyticsSummaryResponse]
336
- def get_partner_analytics_summary_0(partner_id, opts = {})
337
- data, _status_code, _headers = get_partner_analytics_summary_0_with_http_info(partner_id, opts)
430
+ def get_partner_analytics_summary(partner_id, opts = {})
431
+ data, _status_code, _headers = get_partner_analytics_summary_with_http_info(partner_id, opts)
338
432
  data
339
433
  end
340
434
 
@@ -347,16 +441,16 @@ module ApiSdkRb
347
441
  # @option opts [String] :managed_user_id Report only on this managed user (Widgetic&#39;s id for the user). Send this or &#x60;managedUserExternalId&#x60;, not both.
348
442
  # @option opts [String] :managed_user_external_id Report only on the managed user you registered with this &#x60;externalId&#x60; (your own identifier for the user). Send this or &#x60;managedUserId&#x60;, not both.
349
443
  # @return [Array<(PartnerAnalyticsSummaryResponse, Integer, Hash)>] PartnerAnalyticsSummaryResponse data, response status code and response headers
350
- def get_partner_analytics_summary_0_with_http_info(partner_id, opts = {})
444
+ def get_partner_analytics_summary_with_http_info(partner_id, opts = {})
351
445
  if @api_client.config.debugging
352
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_summary_0 ...'
446
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_summary ...'
353
447
  end
354
448
  # verify the required parameter 'partner_id' is set
355
449
  if @api_client.config.client_side_validation && partner_id.nil?
356
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_summary_0"
450
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_summary"
357
451
  end
358
452
  if @api_client.config.client_side_validation && !opts[:'managed_user_external_id'].nil? && opts[:'managed_user_external_id'].to_s.length > 255
359
- fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.get_partner_analytics_summary_0, the character length must be smaller than or equal to 255.'
453
+ fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.get_partner_analytics_summary, the character length must be smaller than or equal to 255.'
360
454
  end
361
455
 
362
456
  # resource path
@@ -387,7 +481,7 @@ module ApiSdkRb
387
481
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
388
482
 
389
483
  new_options = opts.merge(
390
- :operation => :"PartnersApi.get_partner_analytics_summary_0",
484
+ :operation => :"PartnersApi.get_partner_analytics_summary",
391
485
  :header_params => header_params,
392
486
  :query_params => query_params,
393
487
  :form_params => form_params,
@@ -398,7 +492,7 @@ module ApiSdkRb
398
492
 
399
493
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
400
494
  if @api_client.config.debugging
401
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_summary_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
495
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
402
496
  end
403
497
  return data, status_code, headers
404
498
  end
@@ -412,8 +506,8 @@ module ApiSdkRb
412
506
  # @option opts [String] :managed_user_id Report only on this managed user (Widgetic&#39;s id for the user). Send this or &#x60;managedUserExternalId&#x60;, not both.
413
507
  # @option opts [String] :managed_user_external_id Report only on the managed user you registered with this &#x60;externalId&#x60;. Send this or &#x60;managedUserId&#x60;, not both.
414
508
  # @return [PartnerAnalyticsTimelineResponse]
415
- def get_partner_analytics_timeline_0(partner_id, opts = {})
416
- data, _status_code, _headers = get_partner_analytics_timeline_0_with_http_info(partner_id, opts)
509
+ def get_partner_analytics_timeline(partner_id, opts = {})
510
+ data, _status_code, _headers = get_partner_analytics_timeline_with_http_info(partner_id, opts)
417
511
  data
418
512
  end
419
513
 
@@ -426,16 +520,16 @@ module ApiSdkRb
426
520
  # @option opts [String] :managed_user_id Report only on this managed user (Widgetic&#39;s id for the user). Send this or &#x60;managedUserExternalId&#x60;, not both.
427
521
  # @option opts [String] :managed_user_external_id Report only on the managed user you registered with this &#x60;externalId&#x60;. Send this or &#x60;managedUserId&#x60;, not both.
428
522
  # @return [Array<(PartnerAnalyticsTimelineResponse, Integer, Hash)>] PartnerAnalyticsTimelineResponse data, response status code and response headers
429
- def get_partner_analytics_timeline_0_with_http_info(partner_id, opts = {})
523
+ def get_partner_analytics_timeline_with_http_info(partner_id, opts = {})
430
524
  if @api_client.config.debugging
431
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_timeline_0 ...'
525
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_timeline ...'
432
526
  end
433
527
  # verify the required parameter 'partner_id' is set
434
528
  if @api_client.config.client_side_validation && partner_id.nil?
435
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_timeline_0"
529
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_timeline"
436
530
  end
437
531
  if @api_client.config.client_side_validation && !opts[:'managed_user_external_id'].nil? && opts[:'managed_user_external_id'].to_s.length > 255
438
- fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.get_partner_analytics_timeline_0, the character length must be smaller than or equal to 255.'
532
+ fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.get_partner_analytics_timeline, the character length must be smaller than or equal to 255.'
439
533
  end
440
534
 
441
535
  # resource path
@@ -466,7 +560,7 @@ module ApiSdkRb
466
560
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
467
561
 
468
562
  new_options = opts.merge(
469
- :operation => :"PartnersApi.get_partner_analytics_timeline_0",
563
+ :operation => :"PartnersApi.get_partner_analytics_timeline",
470
564
  :header_params => header_params,
471
565
  :query_params => query_params,
472
566
  :form_params => form_params,
@@ -477,7 +571,7 @@ module ApiSdkRb
477
571
 
478
572
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
479
573
  if @api_client.config.debugging
480
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_timeline_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
574
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_timeline\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
481
575
  end
482
576
  return data, status_code, headers
483
577
  end
@@ -492,8 +586,8 @@ module ApiSdkRb
492
586
  # @option opts [String] :managed_user_external_id Report only on the managed user you registered with this &#x60;externalId&#x60;. Send this or &#x60;managedUserId&#x60;, not both.
493
587
  # @option opts [Integer] :limit How many widgets to list at most (default to 10)
494
588
  # @return [PartnerAnalyticsTopWidgetsResponse]
495
- def get_partner_analytics_top_widgets_0(partner_id, opts = {})
496
- data, _status_code, _headers = get_partner_analytics_top_widgets_0_with_http_info(partner_id, opts)
589
+ def get_partner_analytics_top_widgets(partner_id, opts = {})
590
+ data, _status_code, _headers = get_partner_analytics_top_widgets_with_http_info(partner_id, opts)
497
591
  data
498
592
  end
499
593
 
@@ -507,24 +601,24 @@ module ApiSdkRb
507
601
  # @option opts [String] :managed_user_external_id Report only on the managed user you registered with this &#x60;externalId&#x60;. Send this or &#x60;managedUserId&#x60;, not both.
508
602
  # @option opts [Integer] :limit How many widgets to list at most (default to 10)
509
603
  # @return [Array<(PartnerAnalyticsTopWidgetsResponse, Integer, Hash)>] PartnerAnalyticsTopWidgetsResponse data, response status code and response headers
510
- def get_partner_analytics_top_widgets_0_with_http_info(partner_id, opts = {})
604
+ def get_partner_analytics_top_widgets_with_http_info(partner_id, opts = {})
511
605
  if @api_client.config.debugging
512
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_top_widgets_0 ...'
606
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_analytics_top_widgets ...'
513
607
  end
514
608
  # verify the required parameter 'partner_id' is set
515
609
  if @api_client.config.client_side_validation && partner_id.nil?
516
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_top_widgets_0"
610
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_analytics_top_widgets"
517
611
  end
518
612
  if @api_client.config.client_side_validation && !opts[:'managed_user_external_id'].nil? && opts[:'managed_user_external_id'].to_s.length > 255
519
- fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.get_partner_analytics_top_widgets_0, the character length must be smaller than or equal to 255.'
613
+ fail ArgumentError, 'invalid value for "opts[:"managed_user_external_id"]" when calling PartnersApi.get_partner_analytics_top_widgets, the character length must be smaller than or equal to 255.'
520
614
  end
521
615
 
522
616
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
523
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_top_widgets_0, must be smaller than or equal to 50.'
617
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_top_widgets, must be smaller than or equal to 50.'
524
618
  end
525
619
 
526
620
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
527
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_top_widgets_0, must be greater than or equal to 1.'
621
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_analytics_top_widgets, must be greater than or equal to 1.'
528
622
  end
529
623
 
530
624
  # resource path
@@ -556,7 +650,7 @@ module ApiSdkRb
556
650
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
557
651
 
558
652
  new_options = opts.merge(
559
- :operation => :"PartnersApi.get_partner_analytics_top_widgets_0",
653
+ :operation => :"PartnersApi.get_partner_analytics_top_widgets",
560
654
  :header_params => header_params,
561
655
  :query_params => query_params,
562
656
  :form_params => form_params,
@@ -567,7 +661,7 @@ module ApiSdkRb
567
661
 
568
662
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
569
663
  if @api_client.config.debugging
570
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_top_widgets_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
664
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_analytics_top_widgets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
571
665
  end
572
666
  return data, status_code, headers
573
667
  end
@@ -577,8 +671,8 @@ module ApiSdkRb
577
671
  # @param partner_id [String] Partner ID
578
672
  # @param [Hash] opts the optional parameters
579
673
  # @return [GetPartnerBillingOverview200Response]
580
- def get_partner_billing_overview_0(partner_id, opts = {})
581
- data, _status_code, _headers = get_partner_billing_overview_0_with_http_info(partner_id, opts)
674
+ def get_partner_billing_overview(partner_id, opts = {})
675
+ data, _status_code, _headers = get_partner_billing_overview_with_http_info(partner_id, opts)
582
676
  data
583
677
  end
584
678
 
@@ -587,13 +681,13 @@ module ApiSdkRb
587
681
  # @param partner_id [String] Partner ID
588
682
  # @param [Hash] opts the optional parameters
589
683
  # @return [Array<(GetPartnerBillingOverview200Response, Integer, Hash)>] GetPartnerBillingOverview200Response data, response status code and response headers
590
- def get_partner_billing_overview_0_with_http_info(partner_id, opts = {})
684
+ def get_partner_billing_overview_with_http_info(partner_id, opts = {})
591
685
  if @api_client.config.debugging
592
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_billing_overview_0 ...'
686
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_billing_overview ...'
593
687
  end
594
688
  # verify the required parameter 'partner_id' is set
595
689
  if @api_client.config.client_side_validation && partner_id.nil?
596
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_billing_overview_0"
690
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_billing_overview"
597
691
  end
598
692
  # resource path
599
693
  local_var_path = '/partners/{partnerId}/billing-overview'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -619,7 +713,7 @@ module ApiSdkRb
619
713
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
620
714
 
621
715
  new_options = opts.merge(
622
- :operation => :"PartnersApi.get_partner_billing_overview_0",
716
+ :operation => :"PartnersApi.get_partner_billing_overview",
623
717
  :header_params => header_params,
624
718
  :query_params => query_params,
625
719
  :form_params => form_params,
@@ -630,7 +724,7 @@ module ApiSdkRb
630
724
 
631
725
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
632
726
  if @api_client.config.debugging
633
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_billing_overview_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
727
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_billing_overview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
634
728
  end
635
729
  return data, status_code, headers
636
730
  end
@@ -640,8 +734,8 @@ module ApiSdkRb
640
734
  # @param partner_id [String] The partner whose contract to read
641
735
  # @param [Hash] opts the optional parameters
642
736
  # @return [PartnerContractResponse]
643
- def get_partner_contract_0(partner_id, opts = {})
644
- data, _status_code, _headers = get_partner_contract_0_with_http_info(partner_id, opts)
737
+ def get_partner_contract(partner_id, opts = {})
738
+ data, _status_code, _headers = get_partner_contract_with_http_info(partner_id, opts)
645
739
  data
646
740
  end
647
741
 
@@ -650,13 +744,13 @@ module ApiSdkRb
650
744
  # @param partner_id [String] The partner whose contract to read
651
745
  # @param [Hash] opts the optional parameters
652
746
  # @return [Array<(PartnerContractResponse, Integer, Hash)>] PartnerContractResponse data, response status code and response headers
653
- def get_partner_contract_0_with_http_info(partner_id, opts = {})
747
+ def get_partner_contract_with_http_info(partner_id, opts = {})
654
748
  if @api_client.config.debugging
655
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_contract_0 ...'
749
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_contract ...'
656
750
  end
657
751
  # verify the required parameter 'partner_id' is set
658
752
  if @api_client.config.client_side_validation && partner_id.nil?
659
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_contract_0"
753
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_contract"
660
754
  end
661
755
  # resource path
662
756
  local_var_path = '/partners/{partnerId}/contract'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -682,7 +776,7 @@ module ApiSdkRb
682
776
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
683
777
 
684
778
  new_options = opts.merge(
685
- :operation => :"PartnersApi.get_partner_contract_0",
779
+ :operation => :"PartnersApi.get_partner_contract",
686
780
  :header_params => header_params,
687
781
  :query_params => query_params,
688
782
  :form_params => form_params,
@@ -693,7 +787,7 @@ module ApiSdkRb
693
787
 
694
788
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
695
789
  if @api_client.config.debugging
696
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_contract_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
790
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_contract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
697
791
  end
698
792
  return data, status_code, headers
699
793
  end
@@ -703,8 +797,8 @@ module ApiSdkRb
703
797
  # @param partner_id [String] Partner ID
704
798
  # @param [Hash] opts the optional parameters
705
799
  # @return [AccountCreditBalanceResponse]
706
- def get_partner_credit_balance_0(partner_id, opts = {})
707
- data, _status_code, _headers = get_partner_credit_balance_0_with_http_info(partner_id, opts)
800
+ def get_partner_credit_balance(partner_id, opts = {})
801
+ data, _status_code, _headers = get_partner_credit_balance_with_http_info(partner_id, opts)
708
802
  data
709
803
  end
710
804
 
@@ -713,13 +807,13 @@ module ApiSdkRb
713
807
  # @param partner_id [String] Partner ID
714
808
  # @param [Hash] opts the optional parameters
715
809
  # @return [Array<(AccountCreditBalanceResponse, Integer, Hash)>] AccountCreditBalanceResponse data, response status code and response headers
716
- def get_partner_credit_balance_0_with_http_info(partner_id, opts = {})
810
+ def get_partner_credit_balance_with_http_info(partner_id, opts = {})
717
811
  if @api_client.config.debugging
718
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_credit_balance_0 ...'
812
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_credit_balance ...'
719
813
  end
720
814
  # verify the required parameter 'partner_id' is set
721
815
  if @api_client.config.client_side_validation && partner_id.nil?
722
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_credit_balance_0"
816
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_credit_balance"
723
817
  end
724
818
  # resource path
725
819
  local_var_path = '/partners/{partnerId}/credits/balance'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -745,7 +839,7 @@ module ApiSdkRb
745
839
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
746
840
 
747
841
  new_options = opts.merge(
748
- :operation => :"PartnersApi.get_partner_credit_balance_0",
842
+ :operation => :"PartnersApi.get_partner_credit_balance",
749
843
  :header_params => header_params,
750
844
  :query_params => query_params,
751
845
  :form_params => form_params,
@@ -756,7 +850,7 @@ module ApiSdkRb
756
850
 
757
851
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
758
852
  if @api_client.config.debugging
759
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_credit_balance_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
853
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_credit_balance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
760
854
  end
761
855
  return data, status_code, headers
762
856
  end
@@ -768,9 +862,9 @@ module ApiSdkRb
768
862
  # @option opts [Integer] :limit Number of transactions to return (default to 20)
769
863
  # @option opts [Integer] :offset Number of transactions to skip (default to 0)
770
864
  # @option opts [String] :type Only entries of this type, for instance &#x60;debit&#x60; for the credits spent. The types are listed on &#x60;AccountCreditTransaction&#x60;.
771
- # @return [GetPartnerCreditTransactions200Response]
772
- def get_partner_credit_transactions_0(partner_id, opts = {})
773
- data, _status_code, _headers = get_partner_credit_transactions_0_with_http_info(partner_id, opts)
865
+ # @return [AccountCreditTransactionListResponse]
866
+ def get_partner_credit_transactions(partner_id, opts = {})
867
+ data, _status_code, _headers = get_partner_credit_transactions_with_http_info(partner_id, opts)
774
868
  data
775
869
  end
776
870
 
@@ -781,25 +875,25 @@ module ApiSdkRb
781
875
  # @option opts [Integer] :limit Number of transactions to return (default to 20)
782
876
  # @option opts [Integer] :offset Number of transactions to skip (default to 0)
783
877
  # @option opts [String] :type Only entries of this type, for instance &#x60;debit&#x60; for the credits spent. The types are listed on &#x60;AccountCreditTransaction&#x60;.
784
- # @return [Array<(GetPartnerCreditTransactions200Response, Integer, Hash)>] GetPartnerCreditTransactions200Response data, response status code and response headers
785
- def get_partner_credit_transactions_0_with_http_info(partner_id, opts = {})
878
+ # @return [Array<(AccountCreditTransactionListResponse, Integer, Hash)>] AccountCreditTransactionListResponse data, response status code and response headers
879
+ def get_partner_credit_transactions_with_http_info(partner_id, opts = {})
786
880
  if @api_client.config.debugging
787
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_credit_transactions_0 ...'
881
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_credit_transactions ...'
788
882
  end
789
883
  # verify the required parameter 'partner_id' is set
790
884
  if @api_client.config.client_side_validation && partner_id.nil?
791
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_credit_transactions_0"
885
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_credit_transactions"
792
886
  end
793
887
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
794
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_credit_transactions_0, must be smaller than or equal to 100.'
888
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_credit_transactions, must be smaller than or equal to 100.'
795
889
  end
796
890
 
797
891
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
798
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_credit_transactions_0, must be greater than or equal to 1.'
892
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_credit_transactions, must be greater than or equal to 1.'
799
893
  end
800
894
 
801
895
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
802
- fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_credit_transactions_0, must be greater than or equal to 0.'
896
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_credit_transactions, must be greater than or equal to 0.'
803
897
  end
804
898
 
805
899
  # resource path
@@ -823,13 +917,13 @@ module ApiSdkRb
823
917
  post_body = opts[:debug_body]
824
918
 
825
919
  # return_type
826
- return_type = opts[:debug_return_type] || 'GetPartnerCreditTransactions200Response'
920
+ return_type = opts[:debug_return_type] || 'AccountCreditTransactionListResponse'
827
921
 
828
922
  # auth_names
829
923
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
830
924
 
831
925
  new_options = opts.merge(
832
- :operation => :"PartnersApi.get_partner_credit_transactions_0",
926
+ :operation => :"PartnersApi.get_partner_credit_transactions",
833
927
  :header_params => header_params,
834
928
  :query_params => query_params,
835
929
  :form_params => form_params,
@@ -840,7 +934,7 @@ module ApiSdkRb
840
934
 
841
935
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
842
936
  if @api_client.config.debugging
843
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_credit_transactions_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
937
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_credit_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
844
938
  end
845
939
  return data, status_code, headers
846
940
  end
@@ -850,8 +944,8 @@ module ApiSdkRb
850
944
  # @param partner_id [String] The partner whose database to read
851
945
  # @param [Hash] opts the optional parameters
852
946
  # @return [PartnerDataDatabaseResponse]
853
- def get_partner_data_database_0(partner_id, opts = {})
854
- data, _status_code, _headers = get_partner_data_database_0_with_http_info(partner_id, opts)
947
+ def get_partner_data_database(partner_id, opts = {})
948
+ data, _status_code, _headers = get_partner_data_database_with_http_info(partner_id, opts)
855
949
  data
856
950
  end
857
951
 
@@ -860,13 +954,13 @@ module ApiSdkRb
860
954
  # @param partner_id [String] The partner whose database to read
861
955
  # @param [Hash] opts the optional parameters
862
956
  # @return [Array<(PartnerDataDatabaseResponse, Integer, Hash)>] PartnerDataDatabaseResponse data, response status code and response headers
863
- def get_partner_data_database_0_with_http_info(partner_id, opts = {})
957
+ def get_partner_data_database_with_http_info(partner_id, opts = {})
864
958
  if @api_client.config.debugging
865
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_data_database_0 ...'
959
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_data_database ...'
866
960
  end
867
961
  # verify the required parameter 'partner_id' is set
868
962
  if @api_client.config.client_side_validation && partner_id.nil?
869
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_data_database_0"
963
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_data_database"
870
964
  end
871
965
  # resource path
872
966
  local_var_path = '/partners/{partnerId}/data-database'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -892,7 +986,7 @@ module ApiSdkRb
892
986
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
893
987
 
894
988
  new_options = opts.merge(
895
- :operation => :"PartnersApi.get_partner_data_database_0",
989
+ :operation => :"PartnersApi.get_partner_data_database",
896
990
  :header_params => header_params,
897
991
  :query_params => query_params,
898
992
  :form_params => form_params,
@@ -903,7 +997,7 @@ module ApiSdkRb
903
997
 
904
998
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
905
999
  if @api_client.config.debugging
906
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_data_database_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1000
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_data_database\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
907
1001
  end
908
1002
  return data, status_code, headers
909
1003
  end
@@ -911,23 +1005,23 @@ module ApiSdkRb
911
1005
  # Read partner-wide design defaults
912
1006
  # @param partner_id [String]
913
1007
  # @param [Hash] opts the optional parameters
914
- # @return [GetPartnerDesignDefaults200Response]
915
- def get_partner_design_defaults_0(partner_id, opts = {})
916
- data, _status_code, _headers = get_partner_design_defaults_0_with_http_info(partner_id, opts)
1008
+ # @return [DesignDefaultsResponse]
1009
+ def get_partner_design_defaults(partner_id, opts = {})
1010
+ data, _status_code, _headers = get_partner_design_defaults_with_http_info(partner_id, opts)
917
1011
  data
918
1012
  end
919
1013
 
920
1014
  # Read partner-wide design defaults
921
1015
  # @param partner_id [String]
922
1016
  # @param [Hash] opts the optional parameters
923
- # @return [Array<(GetPartnerDesignDefaults200Response, Integer, Hash)>] GetPartnerDesignDefaults200Response data, response status code and response headers
924
- def get_partner_design_defaults_0_with_http_info(partner_id, opts = {})
1017
+ # @return [Array<(DesignDefaultsResponse, Integer, Hash)>] DesignDefaultsResponse data, response status code and response headers
1018
+ def get_partner_design_defaults_with_http_info(partner_id, opts = {})
925
1019
  if @api_client.config.debugging
926
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_design_defaults_0 ...'
1020
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_design_defaults ...'
927
1021
  end
928
1022
  # verify the required parameter 'partner_id' is set
929
1023
  if @api_client.config.client_side_validation && partner_id.nil?
930
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_design_defaults_0"
1024
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_design_defaults"
931
1025
  end
932
1026
  # resource path
933
1027
  local_var_path = '/partners/{partnerId}/design-defaults'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -947,13 +1041,13 @@ module ApiSdkRb
947
1041
  post_body = opts[:debug_body]
948
1042
 
949
1043
  # return_type
950
- return_type = opts[:debug_return_type] || 'GetPartnerDesignDefaults200Response'
1044
+ return_type = opts[:debug_return_type] || 'DesignDefaultsResponse'
951
1045
 
952
1046
  # auth_names
953
1047
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
954
1048
 
955
1049
  new_options = opts.merge(
956
- :operation => :"PartnersApi.get_partner_design_defaults_0",
1050
+ :operation => :"PartnersApi.get_partner_design_defaults",
957
1051
  :header_params => header_params,
958
1052
  :query_params => query_params,
959
1053
  :form_params => form_params,
@@ -964,7 +1058,7 @@ module ApiSdkRb
964
1058
 
965
1059
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
966
1060
  if @api_client.config.debugging
967
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_design_defaults_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1061
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_design_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
968
1062
  end
969
1063
  return data, status_code, headers
970
1064
  end
@@ -974,8 +1068,8 @@ module ApiSdkRb
974
1068
  # @param partner_id [String] The partner whose context signing to read
975
1069
  # @param [Hash] opts the optional parameters
976
1070
  # @return [PartnerEntryContextSigningResponse]
977
- def get_partner_entry_context_signing_0(partner_id, opts = {})
978
- data, _status_code, _headers = get_partner_entry_context_signing_0_with_http_info(partner_id, opts)
1071
+ def get_partner_entry_context_signing(partner_id, opts = {})
1072
+ data, _status_code, _headers = get_partner_entry_context_signing_with_http_info(partner_id, opts)
979
1073
  data
980
1074
  end
981
1075
 
@@ -984,13 +1078,13 @@ module ApiSdkRb
984
1078
  # @param partner_id [String] The partner whose context signing to read
985
1079
  # @param [Hash] opts the optional parameters
986
1080
  # @return [Array<(PartnerEntryContextSigningResponse, Integer, Hash)>] PartnerEntryContextSigningResponse data, response status code and response headers
987
- def get_partner_entry_context_signing_0_with_http_info(partner_id, opts = {})
1081
+ def get_partner_entry_context_signing_with_http_info(partner_id, opts = {})
988
1082
  if @api_client.config.debugging
989
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_entry_context_signing_0 ...'
1083
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_entry_context_signing ...'
990
1084
  end
991
1085
  # verify the required parameter 'partner_id' is set
992
1086
  if @api_client.config.client_side_validation && partner_id.nil?
993
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_entry_context_signing_0"
1087
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_entry_context_signing"
994
1088
  end
995
1089
  # resource path
996
1090
  local_var_path = '/partners/{partnerId}/entry-context-signing'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -1016,7 +1110,7 @@ module ApiSdkRb
1016
1110
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1017
1111
 
1018
1112
  new_options = opts.merge(
1019
- :operation => :"PartnersApi.get_partner_entry_context_signing_0",
1113
+ :operation => :"PartnersApi.get_partner_entry_context_signing",
1020
1114
  :header_params => header_params,
1021
1115
  :query_params => query_params,
1022
1116
  :form_params => form_params,
@@ -1027,7 +1121,7 @@ module ApiSdkRb
1027
1121
 
1028
1122
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1029
1123
  if @api_client.config.debugging
1030
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_entry_context_signing_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1124
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_entry_context_signing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1031
1125
  end
1032
1126
  return data, status_code, headers
1033
1127
  end
@@ -1037,8 +1131,8 @@ module ApiSdkRb
1037
1131
  # @param partner_id [String] The partner whose notification settings to read
1038
1132
  # @param [Hash] opts the optional parameters
1039
1133
  # @return [PartnerNotificationSettingsResponse]
1040
- def get_partner_notification_settings_0(partner_id, opts = {})
1041
- data, _status_code, _headers = get_partner_notification_settings_0_with_http_info(partner_id, opts)
1134
+ def get_partner_notification_settings(partner_id, opts = {})
1135
+ data, _status_code, _headers = get_partner_notification_settings_with_http_info(partner_id, opts)
1042
1136
  data
1043
1137
  end
1044
1138
 
@@ -1047,13 +1141,13 @@ module ApiSdkRb
1047
1141
  # @param partner_id [String] The partner whose notification settings to read
1048
1142
  # @param [Hash] opts the optional parameters
1049
1143
  # @return [Array<(PartnerNotificationSettingsResponse, Integer, Hash)>] PartnerNotificationSettingsResponse data, response status code and response headers
1050
- def get_partner_notification_settings_0_with_http_info(partner_id, opts = {})
1144
+ def get_partner_notification_settings_with_http_info(partner_id, opts = {})
1051
1145
  if @api_client.config.debugging
1052
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_notification_settings_0 ...'
1146
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_notification_settings ...'
1053
1147
  end
1054
1148
  # verify the required parameter 'partner_id' is set
1055
1149
  if @api_client.config.client_side_validation && partner_id.nil?
1056
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_notification_settings_0"
1150
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_notification_settings"
1057
1151
  end
1058
1152
  # resource path
1059
1153
  local_var_path = '/partners/{partnerId}/notifications/settings'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -1079,7 +1173,7 @@ module ApiSdkRb
1079
1173
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1080
1174
 
1081
1175
  new_options = opts.merge(
1082
- :operation => :"PartnersApi.get_partner_notification_settings_0",
1176
+ :operation => :"PartnersApi.get_partner_notification_settings",
1083
1177
  :header_params => header_params,
1084
1178
  :query_params => query_params,
1085
1179
  :form_params => form_params,
@@ -1090,7 +1184,7 @@ module ApiSdkRb
1090
1184
 
1091
1185
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1092
1186
  if @api_client.config.debugging
1093
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_notification_settings_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1187
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_notification_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1094
1188
  end
1095
1189
  return data, status_code, headers
1096
1190
  end
@@ -1100,8 +1194,8 @@ module ApiSdkRb
1100
1194
  # @param partner_id [String] The partner whose storage destination to read
1101
1195
  # @param [Hash] opts the optional parameters
1102
1196
  # @return [PartnerStorageDestinationResponse]
1103
- def get_partner_storage_destination_0(partner_id, opts = {})
1104
- data, _status_code, _headers = get_partner_storage_destination_0_with_http_info(partner_id, opts)
1197
+ def get_partner_storage_destination(partner_id, opts = {})
1198
+ data, _status_code, _headers = get_partner_storage_destination_with_http_info(partner_id, opts)
1105
1199
  data
1106
1200
  end
1107
1201
 
@@ -1110,13 +1204,13 @@ module ApiSdkRb
1110
1204
  # @param partner_id [String] The partner whose storage destination to read
1111
1205
  # @param [Hash] opts the optional parameters
1112
1206
  # @return [Array<(PartnerStorageDestinationResponse, Integer, Hash)>] PartnerStorageDestinationResponse data, response status code and response headers
1113
- def get_partner_storage_destination_0_with_http_info(partner_id, opts = {})
1207
+ def get_partner_storage_destination_with_http_info(partner_id, opts = {})
1114
1208
  if @api_client.config.debugging
1115
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_storage_destination_0 ...'
1209
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_storage_destination ...'
1116
1210
  end
1117
1211
  # verify the required parameter 'partner_id' is set
1118
1212
  if @api_client.config.client_side_validation && partner_id.nil?
1119
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_storage_destination_0"
1213
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_storage_destination"
1120
1214
  end
1121
1215
  # resource path
1122
1216
  local_var_path = '/partners/{partnerId}/storage'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -1142,7 +1236,7 @@ module ApiSdkRb
1142
1236
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1143
1237
 
1144
1238
  new_options = opts.merge(
1145
- :operation => :"PartnersApi.get_partner_storage_destination_0",
1239
+ :operation => :"PartnersApi.get_partner_storage_destination",
1146
1240
  :header_params => header_params,
1147
1241
  :query_params => query_params,
1148
1242
  :form_params => form_params,
@@ -1153,52 +1247,52 @@ module ApiSdkRb
1153
1247
 
1154
1248
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1155
1249
  if @api_client.config.debugging
1156
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_storage_destination_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1250
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_storage_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1157
1251
  end
1158
1252
  return data, status_code, headers
1159
1253
  end
1160
1254
 
1161
1255
  # What a partner's customers store
1162
- # Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic's storage and how much in your own storage destination (`setPartnerStorageDestination`). Use it to see which customers store the most, or to charge them for it. A file is counted for a managed user when it was filed under that user: by naming `managed_user_id` or `managed_user_external_id` when you upload it (`uploadsPost`, or the metadata of a resumable upload), or because it was uploaded through that user's editor session, which files everything under its user. The files that are not filed under anyone (your own, and the ones uploaded without naming a managed user) are the row whose `managedUserId` is null. Deleted files are not counted. To list the files of one managed user, use the `managed_user_id` filter of `uploadsGet`. The answer is counted when you ask, so it is always current. The groups are ordered by size, the heaviest first, and `page.hasMore` says whether more follow. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1256
+ # Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic's storage and how much in your own storage destination (`setPartnerStorageDestination`). Use it to see which customers store the most, or to charge them for it. A file is counted for a managed user when it was filed under that user: by naming `managed_user_id` or `managed_user_external_id` when you upload it (`uploadFile`, or the metadata of a resumable upload), or because it was uploaded through that user's editor session, which files everything under its user. The files that are not filed under anyone (your own, and the ones uploaded without naming a managed user) are the row whose `managedUserId` is null. Deleted files are not counted. To list the files of one managed user, use the `managed_user_id` filter of `listUploads`. The answer is counted when you ask, so it is always current. The groups are ordered by size, the heaviest first, and `page.hasMore` says whether more follow. The caller must be the person who administers the partner (an API key of that account works, with the `partner:read` scope), or a Widgetic administrator.
1163
1257
  # @param partner_id [String] The partner whose storage to report on
1164
1258
  # @param [Hash] opts the optional parameters
1165
1259
  # @option opts [Integer] :limit How many managed users to list at most (default to 50)
1166
1260
  # @option opts [Integer] :offset How many managed users to skip (default to 0)
1167
1261
  # @return [PartnerStorageUsageResponse]
1168
- def get_partner_storage_usage_0(partner_id, opts = {})
1169
- data, _status_code, _headers = get_partner_storage_usage_0_with_http_info(partner_id, opts)
1262
+ def get_partner_storage_usage(partner_id, opts = {})
1263
+ data, _status_code, _headers = get_partner_storage_usage_with_http_info(partner_id, opts)
1170
1264
  data
1171
1265
  end
1172
1266
 
1173
1267
  # What a partner&#39;s customers store
1174
- # Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic&#39;s storage and how much in your own storage destination (&#x60;setPartnerStorageDestination&#x60;). Use it to see which customers store the most, or to charge them for it. A file is counted for a managed user when it was filed under that user: by naming &#x60;managed_user_id&#x60; or &#x60;managed_user_external_id&#x60; when you upload it (&#x60;uploadsPost&#x60;, or the metadata of a resumable upload), or because it was uploaded through that user&#39;s editor session, which files everything under its user. The files that are not filed under anyone (your own, and the ones uploaded without naming a managed user) are the row whose &#x60;managedUserId&#x60; is null. Deleted files are not counted. To list the files of one managed user, use the &#x60;managed_user_id&#x60; filter of &#x60;uploadsGet&#x60;. The answer is counted when you ask, so it is always current. The groups are ordered by size, the heaviest first, and &#x60;page.hasMore&#x60; says whether more follow. The caller must be the person who administers the partner (an API key of that account works, with the &#x60;partner:read&#x60; scope), or a Widgetic administrator.
1268
+ # Says how many files, and how many bytes, your account keeps, in total and for each of your managed users, and how much of it is in Widgetic&#39;s storage and how much in your own storage destination (&#x60;setPartnerStorageDestination&#x60;). Use it to see which customers store the most, or to charge them for it. A file is counted for a managed user when it was filed under that user: by naming &#x60;managed_user_id&#x60; or &#x60;managed_user_external_id&#x60; when you upload it (&#x60;uploadFile&#x60;, or the metadata of a resumable upload), or because it was uploaded through that user&#39;s editor session, which files everything under its user. The files that are not filed under anyone (your own, and the ones uploaded without naming a managed user) are the row whose &#x60;managedUserId&#x60; is null. Deleted files are not counted. To list the files of one managed user, use the &#x60;managed_user_id&#x60; filter of &#x60;listUploads&#x60;. The answer is counted when you ask, so it is always current. The groups are ordered by size, the heaviest first, and &#x60;page.hasMore&#x60; says whether more follow. The caller must be the person who administers the partner (an API key of that account works, with the &#x60;partner:read&#x60; scope), or a Widgetic administrator.
1175
1269
  # @param partner_id [String] The partner whose storage to report on
1176
1270
  # @param [Hash] opts the optional parameters
1177
1271
  # @option opts [Integer] :limit How many managed users to list at most (default to 50)
1178
1272
  # @option opts [Integer] :offset How many managed users to skip (default to 0)
1179
1273
  # @return [Array<(PartnerStorageUsageResponse, Integer, Hash)>] PartnerStorageUsageResponse data, response status code and response headers
1180
- def get_partner_storage_usage_0_with_http_info(partner_id, opts = {})
1274
+ def get_partner_storage_usage_with_http_info(partner_id, opts = {})
1181
1275
  if @api_client.config.debugging
1182
- @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_storage_usage_0 ...'
1276
+ @api_client.config.logger.debug 'Calling API: PartnersApi.get_partner_storage_usage ...'
1183
1277
  end
1184
1278
  # verify the required parameter 'partner_id' is set
1185
1279
  if @api_client.config.client_side_validation && partner_id.nil?
1186
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_storage_usage_0"
1280
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.get_partner_storage_usage"
1187
1281
  end
1188
1282
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
1189
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_storage_usage_0, must be smaller than or equal to 100.'
1283
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_storage_usage, must be smaller than or equal to 100.'
1190
1284
  end
1191
1285
 
1192
1286
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1193
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_storage_usage_0, must be greater than or equal to 1.'
1287
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.get_partner_storage_usage, must be greater than or equal to 1.'
1194
1288
  end
1195
1289
 
1196
1290
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 100000
1197
- fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_storage_usage_0, must be smaller than or equal to 100000.'
1291
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_storage_usage, must be smaller than or equal to 100000.'
1198
1292
  end
1199
1293
 
1200
1294
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
1201
- fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_storage_usage_0, must be greater than or equal to 0.'
1295
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PartnersApi.get_partner_storage_usage, must be greater than or equal to 0.'
1202
1296
  end
1203
1297
 
1204
1298
  # resource path
@@ -1227,7 +1321,7 @@ module ApiSdkRb
1227
1321
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1228
1322
 
1229
1323
  new_options = opts.merge(
1230
- :operation => :"PartnersApi.get_partner_storage_usage_0",
1324
+ :operation => :"PartnersApi.get_partner_storage_usage",
1231
1325
  :header_params => header_params,
1232
1326
  :query_params => query_params,
1233
1327
  :form_params => form_params,
@@ -1238,7 +1332,7 @@ module ApiSdkRb
1238
1332
 
1239
1333
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1240
1334
  if @api_client.config.debugging
1241
- @api_client.config.logger.debug "API called: PartnersApi#get_partner_storage_usage_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1335
+ @api_client.config.logger.debug "API called: PartnersApi#get_partner_storage_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1242
1336
  end
1243
1337
  return data, status_code, headers
1244
1338
  end
@@ -1249,8 +1343,8 @@ module ApiSdkRb
1249
1343
  # @param [Hash] opts the optional parameters
1250
1344
  # @option opts [Integer] :limit How many deliveries to list at most (default to 100)
1251
1345
  # @return [PartnerNotificationDeliveryLogResponse]
1252
- def list_partner_notification_deliveries_0(partner_id, opts = {})
1253
- data, _status_code, _headers = list_partner_notification_deliveries_0_with_http_info(partner_id, opts)
1346
+ def list_partner_notification_deliveries(partner_id, opts = {})
1347
+ data, _status_code, _headers = list_partner_notification_deliveries_with_http_info(partner_id, opts)
1254
1348
  data
1255
1349
  end
1256
1350
 
@@ -1260,20 +1354,20 @@ module ApiSdkRb
1260
1354
  # @param [Hash] opts the optional parameters
1261
1355
  # @option opts [Integer] :limit How many deliveries to list at most (default to 100)
1262
1356
  # @return [Array<(PartnerNotificationDeliveryLogResponse, Integer, Hash)>] PartnerNotificationDeliveryLogResponse data, response status code and response headers
1263
- def list_partner_notification_deliveries_0_with_http_info(partner_id, opts = {})
1357
+ def list_partner_notification_deliveries_with_http_info(partner_id, opts = {})
1264
1358
  if @api_client.config.debugging
1265
- @api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_notification_deliveries_0 ...'
1359
+ @api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_notification_deliveries ...'
1266
1360
  end
1267
1361
  # verify the required parameter 'partner_id' is set
1268
1362
  if @api_client.config.client_side_validation && partner_id.nil?
1269
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_notification_deliveries_0"
1363
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_notification_deliveries"
1270
1364
  end
1271
1365
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 200
1272
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notification_deliveries_0, must be smaller than or equal to 200.'
1366
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notification_deliveries, must be smaller than or equal to 200.'
1273
1367
  end
1274
1368
 
1275
1369
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1276
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notification_deliveries_0, must be greater than or equal to 1.'
1370
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notification_deliveries, must be greater than or equal to 1.'
1277
1371
  end
1278
1372
 
1279
1373
  # resource path
@@ -1301,7 +1395,7 @@ module ApiSdkRb
1301
1395
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1302
1396
 
1303
1397
  new_options = opts.merge(
1304
- :operation => :"PartnersApi.list_partner_notification_deliveries_0",
1398
+ :operation => :"PartnersApi.list_partner_notification_deliveries",
1305
1399
  :header_params => header_params,
1306
1400
  :query_params => query_params,
1307
1401
  :form_params => form_params,
@@ -1312,7 +1406,7 @@ module ApiSdkRb
1312
1406
 
1313
1407
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1314
1408
  if @api_client.config.debugging
1315
- @api_client.config.logger.debug "API called: PartnersApi#list_partner_notification_deliveries_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1409
+ @api_client.config.logger.debug "API called: PartnersApi#list_partner_notification_deliveries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1316
1410
  end
1317
1411
  return data, status_code, headers
1318
1412
  end
@@ -1324,8 +1418,8 @@ module ApiSdkRb
1324
1418
  # @option opts [Integer] :limit How many notifications to list at most (default to 20)
1325
1419
  # @option opts [Time] :before Only the notifications made before this moment. Give the &#x60;nextBefore&#x60; of the previous page.
1326
1420
  # @return [PartnerNotificationPageResponse]
1327
- def list_partner_notifications_0(partner_id, opts = {})
1328
- data, _status_code, _headers = list_partner_notifications_0_with_http_info(partner_id, opts)
1421
+ def list_partner_notifications(partner_id, opts = {})
1422
+ data, _status_code, _headers = list_partner_notifications_with_http_info(partner_id, opts)
1329
1423
  data
1330
1424
  end
1331
1425
 
@@ -1336,20 +1430,20 @@ module ApiSdkRb
1336
1430
  # @option opts [Integer] :limit How many notifications to list at most (default to 20)
1337
1431
  # @option opts [Time] :before Only the notifications made before this moment. Give the &#x60;nextBefore&#x60; of the previous page.
1338
1432
  # @return [Array<(PartnerNotificationPageResponse, Integer, Hash)>] PartnerNotificationPageResponse data, response status code and response headers
1339
- def list_partner_notifications_0_with_http_info(partner_id, opts = {})
1433
+ def list_partner_notifications_with_http_info(partner_id, opts = {})
1340
1434
  if @api_client.config.debugging
1341
- @api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_notifications_0 ...'
1435
+ @api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_notifications ...'
1342
1436
  end
1343
1437
  # verify the required parameter 'partner_id' is set
1344
1438
  if @api_client.config.client_side_validation && partner_id.nil?
1345
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_notifications_0"
1439
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_notifications"
1346
1440
  end
1347
1441
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
1348
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notifications_0, must be smaller than or equal to 100.'
1442
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notifications, must be smaller than or equal to 100.'
1349
1443
  end
1350
1444
 
1351
1445
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1352
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notifications_0, must be greater than or equal to 1.'
1446
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PartnersApi.list_partner_notifications, must be greater than or equal to 1.'
1353
1447
  end
1354
1448
 
1355
1449
  # resource path
@@ -1378,7 +1472,7 @@ module ApiSdkRb
1378
1472
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1379
1473
 
1380
1474
  new_options = opts.merge(
1381
- :operation => :"PartnersApi.list_partner_notifications_0",
1475
+ :operation => :"PartnersApi.list_partner_notifications",
1382
1476
  :header_params => header_params,
1383
1477
  :query_params => query_params,
1384
1478
  :form_params => form_params,
@@ -1389,7 +1483,7 @@ module ApiSdkRb
1389
1483
 
1390
1484
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1391
1485
  if @api_client.config.debugging
1392
- @api_client.config.logger.debug "API called: PartnersApi#list_partner_notifications_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1486
+ @api_client.config.logger.debug "API called: PartnersApi#list_partner_notifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1393
1487
  end
1394
1488
  return data, status_code, headers
1395
1489
  end
@@ -1399,8 +1493,8 @@ module ApiSdkRb
1399
1493
  # @param partner_id [String] The partner whose presets to list
1400
1494
  # @param [Hash] opts the optional parameters
1401
1495
  # @return [ListPartnerPresets200Response]
1402
- def list_partner_presets_0(partner_id, opts = {})
1403
- data, _status_code, _headers = list_partner_presets_0_with_http_info(partner_id, opts)
1496
+ def list_partner_presets(partner_id, opts = {})
1497
+ data, _status_code, _headers = list_partner_presets_with_http_info(partner_id, opts)
1404
1498
  data
1405
1499
  end
1406
1500
 
@@ -1409,13 +1503,13 @@ module ApiSdkRb
1409
1503
  # @param partner_id [String] The partner whose presets to list
1410
1504
  # @param [Hash] opts the optional parameters
1411
1505
  # @return [Array<(ListPartnerPresets200Response, Integer, Hash)>] ListPartnerPresets200Response data, response status code and response headers
1412
- def list_partner_presets_0_with_http_info(partner_id, opts = {})
1506
+ def list_partner_presets_with_http_info(partner_id, opts = {})
1413
1507
  if @api_client.config.debugging
1414
- @api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_presets_0 ...'
1508
+ @api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_presets ...'
1415
1509
  end
1416
1510
  # verify the required parameter 'partner_id' is set
1417
1511
  if @api_client.config.client_side_validation && partner_id.nil?
1418
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_presets_0"
1512
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_presets"
1419
1513
  end
1420
1514
  # resource path
1421
1515
  local_var_path = '/partners/{partnerId}/presets'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -1441,7 +1535,7 @@ module ApiSdkRb
1441
1535
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1442
1536
 
1443
1537
  new_options = opts.merge(
1444
- :operation => :"PartnersApi.list_partner_presets_0",
1538
+ :operation => :"PartnersApi.list_partner_presets",
1445
1539
  :header_params => header_params,
1446
1540
  :query_params => query_params,
1447
1541
  :form_params => form_params,
@@ -1452,7 +1546,70 @@ module ApiSdkRb
1452
1546
 
1453
1547
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1454
1548
  if @api_client.config.debugging
1455
- @api_client.config.logger.debug "API called: PartnersApi#list_partner_presets_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1549
+ @api_client.config.logger.debug "API called: PartnersApi#list_partner_presets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1550
+ end
1551
+ return data, status_code, headers
1552
+ end
1553
+
1554
+ # List the workflows a partner offers as places to start
1555
+ # The partner's starting points, ordered by `position` and then by `key`: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is shown only what is available. A starting point is one of the partner account's own published workflows, built from compositions the account made for itself (not for a customer or a team) and from widgets the partner already offers as presets (`setPartnerPreset`), and it uses at most 10 widgets. A partner offers up to 50. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
1556
+ # @param partner_id [String] The partner whose starting points to list
1557
+ # @param [Hash] opts the optional parameters
1558
+ # @return [ListPartnerWorkflowPresets200Response]
1559
+ def list_partner_workflow_presets(partner_id, opts = {})
1560
+ data, _status_code, _headers = list_partner_workflow_presets_with_http_info(partner_id, opts)
1561
+ data
1562
+ end
1563
+
1564
+ # List the workflows a partner offers as places to start
1565
+ # The partner&#39;s starting points, ordered by &#x60;position&#x60; and then by &#x60;key&#x60;: the published workflows it offers its managed users when they make a new workflow. Each says whether people can start from it now and, when they cannot, why. The list is the same for every managed user, and a managed user is shown only what is available. A starting point is one of the partner account&#39;s own published workflows, built from compositions the account made for itself (not for a customer or a team) and from widgets the partner already offers as presets (&#x60;setPartnerPreset&#x60;), and it uses at most 10 widgets. A partner offers up to 50. The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator.
1566
+ # @param partner_id [String] The partner whose starting points to list
1567
+ # @param [Hash] opts the optional parameters
1568
+ # @return [Array<(ListPartnerWorkflowPresets200Response, Integer, Hash)>] ListPartnerWorkflowPresets200Response data, response status code and response headers
1569
+ def list_partner_workflow_presets_with_http_info(partner_id, opts = {})
1570
+ if @api_client.config.debugging
1571
+ @api_client.config.logger.debug 'Calling API: PartnersApi.list_partner_workflow_presets ...'
1572
+ end
1573
+ # verify the required parameter 'partner_id' is set
1574
+ if @api_client.config.client_side_validation && partner_id.nil?
1575
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.list_partner_workflow_presets"
1576
+ end
1577
+ # resource path
1578
+ local_var_path = '/partners/{partnerId}/workflow-presets'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
1579
+
1580
+ # query parameters
1581
+ query_params = opts[:query_params] || {}
1582
+
1583
+ # header parameters
1584
+ header_params = opts[:header_params] || {}
1585
+ # HTTP header 'Accept' (if needed)
1586
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1587
+
1588
+ # form parameters
1589
+ form_params = opts[:form_params] || {}
1590
+
1591
+ # http body (model)
1592
+ post_body = opts[:debug_body]
1593
+
1594
+ # return_type
1595
+ return_type = opts[:debug_return_type] || 'ListPartnerWorkflowPresets200Response'
1596
+
1597
+ # auth_names
1598
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1599
+
1600
+ new_options = opts.merge(
1601
+ :operation => :"PartnersApi.list_partner_workflow_presets",
1602
+ :header_params => header_params,
1603
+ :query_params => query_params,
1604
+ :form_params => form_params,
1605
+ :body => post_body,
1606
+ :auth_names => auth_names,
1607
+ :return_type => return_type
1608
+ )
1609
+
1610
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1611
+ if @api_client.config.debugging
1612
+ @api_client.config.logger.debug "API called: PartnersApi#list_partner_workflow_presets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1456
1613
  end
1457
1614
  return data, status_code, headers
1458
1615
  end
@@ -1463,9 +1620,9 @@ module ApiSdkRb
1463
1620
  # @param adapter_id [String] The adapter the key is for
1464
1621
  # @param credential_key [String] The key&#39;s name within the adapter
1465
1622
  # @param [Hash] opts the optional parameters
1466
- # @return [RemoveUserAdapterConnection200Response]
1467
- def remove_partner_adapter_connection_0(partner_id, adapter_id, credential_key, opts = {})
1468
- data, _status_code, _headers = remove_partner_adapter_connection_0_with_http_info(partner_id, adapter_id, credential_key, opts)
1623
+ # @return [AdapterConnectionRemovalResponse]
1624
+ def remove_partner_adapter_connection(partner_id, adapter_id, credential_key, opts = {})
1625
+ data, _status_code, _headers = remove_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, opts)
1469
1626
  data
1470
1627
  end
1471
1628
 
@@ -1475,29 +1632,29 @@ module ApiSdkRb
1475
1632
  # @param adapter_id [String] The adapter the key is for
1476
1633
  # @param credential_key [String] The key&#39;s name within the adapter
1477
1634
  # @param [Hash] opts the optional parameters
1478
- # @return [Array<(RemoveUserAdapterConnection200Response, Integer, Hash)>] RemoveUserAdapterConnection200Response data, response status code and response headers
1479
- def remove_partner_adapter_connection_0_with_http_info(partner_id, adapter_id, credential_key, opts = {})
1635
+ # @return [Array<(AdapterConnectionRemovalResponse, Integer, Hash)>] AdapterConnectionRemovalResponse data, response status code and response headers
1636
+ def remove_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, opts = {})
1480
1637
  if @api_client.config.debugging
1481
- @api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_adapter_connection_0 ...'
1638
+ @api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_adapter_connection ...'
1482
1639
  end
1483
1640
  # verify the required parameter 'partner_id' is set
1484
1641
  if @api_client.config.client_side_validation && partner_id.nil?
1485
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_adapter_connection_0"
1642
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_adapter_connection"
1486
1643
  end
1487
1644
  # verify the required parameter 'adapter_id' is set
1488
1645
  if @api_client.config.client_side_validation && adapter_id.nil?
1489
- fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.remove_partner_adapter_connection_0"
1646
+ fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.remove_partner_adapter_connection"
1490
1647
  end
1491
1648
  if @api_client.config.client_side_validation && adapter_id.to_s.length > 40
1492
- fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.remove_partner_adapter_connection_0, the character length must be smaller than or equal to 40.'
1649
+ fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.remove_partner_adapter_connection, the character length must be smaller than or equal to 40.'
1493
1650
  end
1494
1651
 
1495
1652
  # verify the required parameter 'credential_key' is set
1496
1653
  if @api_client.config.client_side_validation && credential_key.nil?
1497
- fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.remove_partner_adapter_connection_0"
1654
+ fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.remove_partner_adapter_connection"
1498
1655
  end
1499
1656
  if @api_client.config.client_side_validation && credential_key.to_s.length > 40
1500
- fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.remove_partner_adapter_connection_0, the character length must be smaller than or equal to 40.'
1657
+ fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.remove_partner_adapter_connection, the character length must be smaller than or equal to 40.'
1501
1658
  end
1502
1659
 
1503
1660
  # resource path
@@ -1518,13 +1675,13 @@ module ApiSdkRb
1518
1675
  post_body = opts[:debug_body]
1519
1676
 
1520
1677
  # return_type
1521
- return_type = opts[:debug_return_type] || 'RemoveUserAdapterConnection200Response'
1678
+ return_type = opts[:debug_return_type] || 'AdapterConnectionRemovalResponse'
1522
1679
 
1523
1680
  # auth_names
1524
1681
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1525
1682
 
1526
1683
  new_options = opts.merge(
1527
- :operation => :"PartnersApi.remove_partner_adapter_connection_0",
1684
+ :operation => :"PartnersApi.remove_partner_adapter_connection",
1528
1685
  :header_params => header_params,
1529
1686
  :query_params => query_params,
1530
1687
  :form_params => form_params,
@@ -1535,7 +1692,7 @@ module ApiSdkRb
1535
1692
 
1536
1693
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1537
1694
  if @api_client.config.debugging
1538
- @api_client.config.logger.debug "API called: PartnersApi#remove_partner_adapter_connection_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1695
+ @api_client.config.logger.debug "API called: PartnersApi#remove_partner_adapter_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1539
1696
  end
1540
1697
  return data, status_code, headers
1541
1698
  end
@@ -1545,8 +1702,8 @@ module ApiSdkRb
1545
1702
  # @param partner_id [String] The partner whose database to remove
1546
1703
  # @param [Hash] opts the optional parameters
1547
1704
  # @return [PartnerDataDatabaseRemovalResponse]
1548
- def remove_partner_data_database_0(partner_id, opts = {})
1549
- data, _status_code, _headers = remove_partner_data_database_0_with_http_info(partner_id, opts)
1705
+ def remove_partner_data_database(partner_id, opts = {})
1706
+ data, _status_code, _headers = remove_partner_data_database_with_http_info(partner_id, opts)
1550
1707
  data
1551
1708
  end
1552
1709
 
@@ -1555,13 +1712,13 @@ module ApiSdkRb
1555
1712
  # @param partner_id [String] The partner whose database to remove
1556
1713
  # @param [Hash] opts the optional parameters
1557
1714
  # @return [Array<(PartnerDataDatabaseRemovalResponse, Integer, Hash)>] PartnerDataDatabaseRemovalResponse data, response status code and response headers
1558
- def remove_partner_data_database_0_with_http_info(partner_id, opts = {})
1715
+ def remove_partner_data_database_with_http_info(partner_id, opts = {})
1559
1716
  if @api_client.config.debugging
1560
- @api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_data_database_0 ...'
1717
+ @api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_data_database ...'
1561
1718
  end
1562
1719
  # verify the required parameter 'partner_id' is set
1563
1720
  if @api_client.config.client_side_validation && partner_id.nil?
1564
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_data_database_0"
1721
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_data_database"
1565
1722
  end
1566
1723
  # resource path
1567
1724
  local_var_path = '/partners/{partnerId}/data-database'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -1587,7 +1744,7 @@ module ApiSdkRb
1587
1744
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1588
1745
 
1589
1746
  new_options = opts.merge(
1590
- :operation => :"PartnersApi.remove_partner_data_database_0",
1747
+ :operation => :"PartnersApi.remove_partner_data_database",
1591
1748
  :header_params => header_params,
1592
1749
  :query_params => query_params,
1593
1750
  :form_params => form_params,
@@ -1598,7 +1755,7 @@ module ApiSdkRb
1598
1755
 
1599
1756
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1600
1757
  if @api_client.config.debugging
1601
- @api_client.config.logger.debug "API called: PartnersApi#remove_partner_data_database_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1758
+ @api_client.config.logger.debug "API called: PartnersApi#remove_partner_data_database\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1602
1759
  end
1603
1760
  return data, status_code, headers
1604
1761
  end
@@ -1609,8 +1766,8 @@ module ApiSdkRb
1609
1766
  # @param key [String] The key of the preset to remove
1610
1767
  # @param [Hash] opts the optional parameters
1611
1768
  # @return [PartnerPresetRemovalResponse]
1612
- def remove_partner_preset_0(partner_id, key, opts = {})
1613
- data, _status_code, _headers = remove_partner_preset_0_with_http_info(partner_id, key, opts)
1769
+ def remove_partner_preset(partner_id, key, opts = {})
1770
+ data, _status_code, _headers = remove_partner_preset_with_http_info(partner_id, key, opts)
1614
1771
  data
1615
1772
  end
1616
1773
 
@@ -1620,21 +1777,21 @@ module ApiSdkRb
1620
1777
  # @param key [String] The key of the preset to remove
1621
1778
  # @param [Hash] opts the optional parameters
1622
1779
  # @return [Array<(PartnerPresetRemovalResponse, Integer, Hash)>] PartnerPresetRemovalResponse data, response status code and response headers
1623
- def remove_partner_preset_0_with_http_info(partner_id, key, opts = {})
1780
+ def remove_partner_preset_with_http_info(partner_id, key, opts = {})
1624
1781
  if @api_client.config.debugging
1625
- @api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_preset_0 ...'
1782
+ @api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_preset ...'
1626
1783
  end
1627
1784
  # verify the required parameter 'partner_id' is set
1628
1785
  if @api_client.config.client_side_validation && partner_id.nil?
1629
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_preset_0"
1786
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_preset"
1630
1787
  end
1631
1788
  # verify the required parameter 'key' is set
1632
1789
  if @api_client.config.client_side_validation && key.nil?
1633
- fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.remove_partner_preset_0"
1790
+ fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.remove_partner_preset"
1634
1791
  end
1635
1792
  pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
1636
1793
  if @api_client.config.client_side_validation && key !~ pattern
1637
- fail ArgumentError, "invalid value for 'key' when calling PartnersApi.remove_partner_preset_0, must conform to the pattern #{pattern}."
1794
+ fail ArgumentError, "invalid value for 'key' when calling PartnersApi.remove_partner_preset, must conform to the pattern #{pattern}."
1638
1795
  end
1639
1796
 
1640
1797
  # resource path
@@ -1661,7 +1818,7 @@ module ApiSdkRb
1661
1818
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1662
1819
 
1663
1820
  new_options = opts.merge(
1664
- :operation => :"PartnersApi.remove_partner_preset_0",
1821
+ :operation => :"PartnersApi.remove_partner_preset",
1665
1822
  :header_params => header_params,
1666
1823
  :query_params => query_params,
1667
1824
  :form_params => form_params,
@@ -1672,7 +1829,7 @@ module ApiSdkRb
1672
1829
 
1673
1830
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1674
1831
  if @api_client.config.debugging
1675
- @api_client.config.logger.debug "API called: PartnersApi#remove_partner_preset_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1832
+ @api_client.config.logger.debug "API called: PartnersApi#remove_partner_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1676
1833
  end
1677
1834
  return data, status_code, headers
1678
1835
  end
@@ -1682,8 +1839,8 @@ module ApiSdkRb
1682
1839
  # @param partner_id [String] The partner whose storage destination to remove
1683
1840
  # @param [Hash] opts the optional parameters
1684
1841
  # @return [PartnerStorageRemovalResponse]
1685
- def remove_partner_storage_destination_0(partner_id, opts = {})
1686
- data, _status_code, _headers = remove_partner_storage_destination_0_with_http_info(partner_id, opts)
1842
+ def remove_partner_storage_destination(partner_id, opts = {})
1843
+ data, _status_code, _headers = remove_partner_storage_destination_with_http_info(partner_id, opts)
1687
1844
  data
1688
1845
  end
1689
1846
 
@@ -1692,13 +1849,13 @@ module ApiSdkRb
1692
1849
  # @param partner_id [String] The partner whose storage destination to remove
1693
1850
  # @param [Hash] opts the optional parameters
1694
1851
  # @return [Array<(PartnerStorageRemovalResponse, Integer, Hash)>] PartnerStorageRemovalResponse data, response status code and response headers
1695
- def remove_partner_storage_destination_0_with_http_info(partner_id, opts = {})
1852
+ def remove_partner_storage_destination_with_http_info(partner_id, opts = {})
1696
1853
  if @api_client.config.debugging
1697
- @api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_storage_destination_0 ...'
1854
+ @api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_storage_destination ...'
1698
1855
  end
1699
1856
  # verify the required parameter 'partner_id' is set
1700
1857
  if @api_client.config.client_side_validation && partner_id.nil?
1701
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_storage_destination_0"
1858
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_storage_destination"
1702
1859
  end
1703
1860
  # resource path
1704
1861
  local_var_path = '/partners/{partnerId}/storage'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -1724,7 +1881,7 @@ module ApiSdkRb
1724
1881
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1725
1882
 
1726
1883
  new_options = opts.merge(
1727
- :operation => :"PartnersApi.remove_partner_storage_destination_0",
1884
+ :operation => :"PartnersApi.remove_partner_storage_destination",
1728
1885
  :header_params => header_params,
1729
1886
  :query_params => query_params,
1730
1887
  :form_params => form_params,
@@ -1735,7 +1892,81 @@ module ApiSdkRb
1735
1892
 
1736
1893
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1737
1894
  if @api_client.config.debugging
1738
- @api_client.config.logger.debug "API called: PartnersApi#remove_partner_storage_destination_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1895
+ @api_client.config.logger.debug "API called: PartnersApi#remove_partner_storage_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1896
+ end
1897
+ return data, status_code, headers
1898
+ end
1899
+
1900
+ # Stop offering a workflow as a place to start
1901
+ # Removes the starting point under `key`. The workflow itself is not touched, and neither are the workflows people already started from it. Removing a starting point the partner does not offer is not an error: the answer is `removed: false`.
1902
+ # @param partner_id [String] The partner whose starting point to remove
1903
+ # @param key [String] The key of the starting point to remove
1904
+ # @param [Hash] opts the optional parameters
1905
+ # @return [RemovePartnerWorkflowPreset200Response]
1906
+ def remove_partner_workflow_preset(partner_id, key, opts = {})
1907
+ data, _status_code, _headers = remove_partner_workflow_preset_with_http_info(partner_id, key, opts)
1908
+ data
1909
+ end
1910
+
1911
+ # Stop offering a workflow as a place to start
1912
+ # Removes the starting point under &#x60;key&#x60;. The workflow itself is not touched, and neither are the workflows people already started from it. Removing a starting point the partner does not offer is not an error: the answer is &#x60;removed: false&#x60;.
1913
+ # @param partner_id [String] The partner whose starting point to remove
1914
+ # @param key [String] The key of the starting point to remove
1915
+ # @param [Hash] opts the optional parameters
1916
+ # @return [Array<(RemovePartnerWorkflowPreset200Response, Integer, Hash)>] RemovePartnerWorkflowPreset200Response data, response status code and response headers
1917
+ def remove_partner_workflow_preset_with_http_info(partner_id, key, opts = {})
1918
+ if @api_client.config.debugging
1919
+ @api_client.config.logger.debug 'Calling API: PartnersApi.remove_partner_workflow_preset ...'
1920
+ end
1921
+ # verify the required parameter 'partner_id' is set
1922
+ if @api_client.config.client_side_validation && partner_id.nil?
1923
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.remove_partner_workflow_preset"
1924
+ end
1925
+ # verify the required parameter 'key' is set
1926
+ if @api_client.config.client_side_validation && key.nil?
1927
+ fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.remove_partner_workflow_preset"
1928
+ end
1929
+ pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
1930
+ if @api_client.config.client_side_validation && key !~ pattern
1931
+ fail ArgumentError, "invalid value for 'key' when calling PartnersApi.remove_partner_workflow_preset, must conform to the pattern #{pattern}."
1932
+ end
1933
+
1934
+ # resource path
1935
+ local_var_path = '/partners/{partnerId}/workflow-presets/{key}'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
1936
+
1937
+ # query parameters
1938
+ query_params = opts[:query_params] || {}
1939
+
1940
+ # header parameters
1941
+ header_params = opts[:header_params] || {}
1942
+ # HTTP header 'Accept' (if needed)
1943
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1944
+
1945
+ # form parameters
1946
+ form_params = opts[:form_params] || {}
1947
+
1948
+ # http body (model)
1949
+ post_body = opts[:debug_body]
1950
+
1951
+ # return_type
1952
+ return_type = opts[:debug_return_type] || 'RemovePartnerWorkflowPreset200Response'
1953
+
1954
+ # auth_names
1955
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1956
+
1957
+ new_options = opts.merge(
1958
+ :operation => :"PartnersApi.remove_partner_workflow_preset",
1959
+ :header_params => header_params,
1960
+ :query_params => query_params,
1961
+ :form_params => form_params,
1962
+ :body => post_body,
1963
+ :auth_names => auth_names,
1964
+ :return_type => return_type
1965
+ )
1966
+
1967
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1968
+ if @api_client.config.debugging
1969
+ @api_client.config.logger.debug "API called: PartnersApi#remove_partner_workflow_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1739
1970
  end
1740
1971
  return data, status_code, headers
1741
1972
  end
@@ -1747,8 +1978,8 @@ module ApiSdkRb
1747
1978
  # @param idempotency_key [String] Required: a call without it is refused with &#x60;400&#x60;. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
1748
1979
  # @param [Hash] opts the optional parameters
1749
1980
  # @return [PartnerNotificationDeliveryResponse]
1750
- def replay_partner_notification_delivery_0(partner_id, delivery_id, idempotency_key, opts = {})
1751
- data, _status_code, _headers = replay_partner_notification_delivery_0_with_http_info(partner_id, delivery_id, idempotency_key, opts)
1981
+ def replay_partner_notification_delivery(partner_id, delivery_id, idempotency_key, opts = {})
1982
+ data, _status_code, _headers = replay_partner_notification_delivery_with_http_info(partner_id, delivery_id, idempotency_key, opts)
1752
1983
  data
1753
1984
  end
1754
1985
 
@@ -1759,33 +1990,33 @@ module ApiSdkRb
1759
1990
  # @param idempotency_key [String] Required: a call without it is refused with &#x60;400&#x60;. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
1760
1991
  # @param [Hash] opts the optional parameters
1761
1992
  # @return [Array<(PartnerNotificationDeliveryResponse, Integer, Hash)>] PartnerNotificationDeliveryResponse data, response status code and response headers
1762
- def replay_partner_notification_delivery_0_with_http_info(partner_id, delivery_id, idempotency_key, opts = {})
1993
+ def replay_partner_notification_delivery_with_http_info(partner_id, delivery_id, idempotency_key, opts = {})
1763
1994
  if @api_client.config.debugging
1764
- @api_client.config.logger.debug 'Calling API: PartnersApi.replay_partner_notification_delivery_0 ...'
1995
+ @api_client.config.logger.debug 'Calling API: PartnersApi.replay_partner_notification_delivery ...'
1765
1996
  end
1766
1997
  # verify the required parameter 'partner_id' is set
1767
1998
  if @api_client.config.client_side_validation && partner_id.nil?
1768
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.replay_partner_notification_delivery_0"
1999
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.replay_partner_notification_delivery"
1769
2000
  end
1770
2001
  # verify the required parameter 'delivery_id' is set
1771
2002
  if @api_client.config.client_side_validation && delivery_id.nil?
1772
- fail ArgumentError, "Missing the required parameter 'delivery_id' when calling PartnersApi.replay_partner_notification_delivery_0"
2003
+ fail ArgumentError, "Missing the required parameter 'delivery_id' when calling PartnersApi.replay_partner_notification_delivery"
1773
2004
  end
1774
2005
  # verify the required parameter 'idempotency_key' is set
1775
2006
  if @api_client.config.client_side_validation && idempotency_key.nil?
1776
- fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.replay_partner_notification_delivery_0"
2007
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.replay_partner_notification_delivery"
1777
2008
  end
1778
2009
  if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
1779
- fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.replay_partner_notification_delivery_0, the character length must be smaller than or equal to 50.'
2010
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.replay_partner_notification_delivery, the character length must be smaller than or equal to 50.'
1780
2011
  end
1781
2012
 
1782
2013
  if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
1783
- fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.replay_partner_notification_delivery_0, the character length must be great than or equal to 8.'
2014
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.replay_partner_notification_delivery, the character length must be great than or equal to 8.'
1784
2015
  end
1785
2016
 
1786
2017
  pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
1787
2018
  if @api_client.config.client_side_validation && idempotency_key !~ pattern
1788
- fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.replay_partner_notification_delivery_0, must conform to the pattern #{pattern}."
2019
+ fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.replay_partner_notification_delivery, must conform to the pattern #{pattern}."
1789
2020
  end
1790
2021
 
1791
2022
  # resource path
@@ -1813,7 +2044,7 @@ module ApiSdkRb
1813
2044
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1814
2045
 
1815
2046
  new_options = opts.merge(
1816
- :operation => :"PartnersApi.replay_partner_notification_delivery_0",
2047
+ :operation => :"PartnersApi.replay_partner_notification_delivery",
1817
2048
  :header_params => header_params,
1818
2049
  :query_params => query_params,
1819
2050
  :form_params => form_params,
@@ -1824,7 +2055,7 @@ module ApiSdkRb
1824
2055
 
1825
2056
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1826
2057
  if @api_client.config.debugging
1827
- @api_client.config.logger.debug "API called: PartnersApi#replay_partner_notification_delivery_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2058
+ @api_client.config.logger.debug "API called: PartnersApi#replay_partner_notification_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1828
2059
  end
1829
2060
  return data, status_code, headers
1830
2061
  end
@@ -1835,8 +2066,8 @@ module ApiSdkRb
1835
2066
  # @param idempotency_key [String] Required: a call without it is refused with &#x60;400&#x60;. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
1836
2067
  # @param [Hash] opts the optional parameters
1837
2068
  # @return [PartnerEntryContextSecretResponse]
1838
- def rotate_partner_entry_context_secret_0(partner_id, idempotency_key, opts = {})
1839
- data, _status_code, _headers = rotate_partner_entry_context_secret_0_with_http_info(partner_id, idempotency_key, opts)
2069
+ def rotate_partner_entry_context_secret(partner_id, idempotency_key, opts = {})
2070
+ data, _status_code, _headers = rotate_partner_entry_context_secret_with_http_info(partner_id, idempotency_key, opts)
1840
2071
  data
1841
2072
  end
1842
2073
 
@@ -1846,29 +2077,29 @@ module ApiSdkRb
1846
2077
  # @param idempotency_key [String] Required: a call without it is refused with &#x60;400&#x60;. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
1847
2078
  # @param [Hash] opts the optional parameters
1848
2079
  # @return [Array<(PartnerEntryContextSecretResponse, Integer, Hash)>] PartnerEntryContextSecretResponse data, response status code and response headers
1849
- def rotate_partner_entry_context_secret_0_with_http_info(partner_id, idempotency_key, opts = {})
2080
+ def rotate_partner_entry_context_secret_with_http_info(partner_id, idempotency_key, opts = {})
1850
2081
  if @api_client.config.debugging
1851
- @api_client.config.logger.debug 'Calling API: PartnersApi.rotate_partner_entry_context_secret_0 ...'
2082
+ @api_client.config.logger.debug 'Calling API: PartnersApi.rotate_partner_entry_context_secret ...'
1852
2083
  end
1853
2084
  # verify the required parameter 'partner_id' is set
1854
2085
  if @api_client.config.client_side_validation && partner_id.nil?
1855
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.rotate_partner_entry_context_secret_0"
2086
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.rotate_partner_entry_context_secret"
1856
2087
  end
1857
2088
  # verify the required parameter 'idempotency_key' is set
1858
2089
  if @api_client.config.client_side_validation && idempotency_key.nil?
1859
- fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.rotate_partner_entry_context_secret_0"
2090
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.rotate_partner_entry_context_secret"
1860
2091
  end
1861
2092
  if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
1862
- fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_entry_context_secret_0, the character length must be smaller than or equal to 50.'
2093
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_entry_context_secret, the character length must be smaller than or equal to 50.'
1863
2094
  end
1864
2095
 
1865
2096
  if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
1866
- fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_entry_context_secret_0, the character length must be great than or equal to 8.'
2097
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_entry_context_secret, the character length must be great than or equal to 8.'
1867
2098
  end
1868
2099
 
1869
2100
  pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
1870
2101
  if @api_client.config.client_side_validation && idempotency_key !~ pattern
1871
- fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.rotate_partner_entry_context_secret_0, must conform to the pattern #{pattern}."
2102
+ fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.rotate_partner_entry_context_secret, must conform to the pattern #{pattern}."
1872
2103
  end
1873
2104
 
1874
2105
  # resource path
@@ -1896,7 +2127,7 @@ module ApiSdkRb
1896
2127
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1897
2128
 
1898
2129
  new_options = opts.merge(
1899
- :operation => :"PartnersApi.rotate_partner_entry_context_secret_0",
2130
+ :operation => :"PartnersApi.rotate_partner_entry_context_secret",
1900
2131
  :header_params => header_params,
1901
2132
  :query_params => query_params,
1902
2133
  :form_params => form_params,
@@ -1907,7 +2138,7 @@ module ApiSdkRb
1907
2138
 
1908
2139
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1909
2140
  if @api_client.config.debugging
1910
- @api_client.config.logger.debug "API called: PartnersApi#rotate_partner_entry_context_secret_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2141
+ @api_client.config.logger.debug "API called: PartnersApi#rotate_partner_entry_context_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1911
2142
  end
1912
2143
  return data, status_code, headers
1913
2144
  end
@@ -1918,8 +2149,8 @@ module ApiSdkRb
1918
2149
  # @param idempotency_key [String] Required: a call without it is refused with &#x60;400&#x60;. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
1919
2150
  # @param [Hash] opts the optional parameters
1920
2151
  # @return [PartnerNotificationSettingsChangeResponse]
1921
- def rotate_partner_webhook_secret_0(partner_id, idempotency_key, opts = {})
1922
- data, _status_code, _headers = rotate_partner_webhook_secret_0_with_http_info(partner_id, idempotency_key, opts)
2152
+ def rotate_partner_webhook_secret(partner_id, idempotency_key, opts = {})
2153
+ data, _status_code, _headers = rotate_partner_webhook_secret_with_http_info(partner_id, idempotency_key, opts)
1923
2154
  data
1924
2155
  end
1925
2156
 
@@ -1929,29 +2160,29 @@ module ApiSdkRb
1929
2160
  # @param idempotency_key [String] Required: a call without it is refused with &#x60;400&#x60;. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
1930
2161
  # @param [Hash] opts the optional parameters
1931
2162
  # @return [Array<(PartnerNotificationSettingsChangeResponse, Integer, Hash)>] PartnerNotificationSettingsChangeResponse data, response status code and response headers
1932
- def rotate_partner_webhook_secret_0_with_http_info(partner_id, idempotency_key, opts = {})
2163
+ def rotate_partner_webhook_secret_with_http_info(partner_id, idempotency_key, opts = {})
1933
2164
  if @api_client.config.debugging
1934
- @api_client.config.logger.debug 'Calling API: PartnersApi.rotate_partner_webhook_secret_0 ...'
2165
+ @api_client.config.logger.debug 'Calling API: PartnersApi.rotate_partner_webhook_secret ...'
1935
2166
  end
1936
2167
  # verify the required parameter 'partner_id' is set
1937
2168
  if @api_client.config.client_side_validation && partner_id.nil?
1938
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.rotate_partner_webhook_secret_0"
2169
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.rotate_partner_webhook_secret"
1939
2170
  end
1940
2171
  # verify the required parameter 'idempotency_key' is set
1941
2172
  if @api_client.config.client_side_validation && idempotency_key.nil?
1942
- fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.rotate_partner_webhook_secret_0"
2173
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.rotate_partner_webhook_secret"
1943
2174
  end
1944
2175
  if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
1945
- fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_webhook_secret_0, the character length must be smaller than or equal to 50.'
2176
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_webhook_secret, the character length must be smaller than or equal to 50.'
1946
2177
  end
1947
2178
 
1948
2179
  if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
1949
- fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_webhook_secret_0, the character length must be great than or equal to 8.'
2180
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.rotate_partner_webhook_secret, the character length must be great than or equal to 8.'
1950
2181
  end
1951
2182
 
1952
2183
  pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
1953
2184
  if @api_client.config.client_side_validation && idempotency_key !~ pattern
1954
- fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.rotate_partner_webhook_secret_0, must conform to the pattern #{pattern}."
2185
+ fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.rotate_partner_webhook_secret, must conform to the pattern #{pattern}."
1955
2186
  end
1956
2187
 
1957
2188
  # resource path
@@ -1979,7 +2210,7 @@ module ApiSdkRb
1979
2210
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
1980
2211
 
1981
2212
  new_options = opts.merge(
1982
- :operation => :"PartnersApi.rotate_partner_webhook_secret_0",
2213
+ :operation => :"PartnersApi.rotate_partner_webhook_secret",
1983
2214
  :header_params => header_params,
1984
2215
  :query_params => query_params,
1985
2216
  :form_params => form_params,
@@ -1990,7 +2221,7 @@ module ApiSdkRb
1990
2221
 
1991
2222
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1992
2223
  if @api_client.config.debugging
1993
- @api_client.config.logger.debug "API called: PartnersApi#rotate_partner_webhook_secret_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2224
+ @api_client.config.logger.debug "API called: PartnersApi#rotate_partner_webhook_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1994
2225
  end
1995
2226
  return data, status_code, headers
1996
2227
  end
@@ -2002,8 +2233,8 @@ module ApiSdkRb
2002
2233
  # @param partner_notification_test_event_request [PartnerNotificationTestEventRequest]
2003
2234
  # @param [Hash] opts the optional parameters
2004
2235
  # @return [PartnerNotificationTestEventResultResponse]
2005
- def send_partner_notification_test_event_0(partner_id, idempotency_key, partner_notification_test_event_request, opts = {})
2006
- data, _status_code, _headers = send_partner_notification_test_event_0_with_http_info(partner_id, idempotency_key, partner_notification_test_event_request, opts)
2236
+ def send_partner_notification_test_event(partner_id, idempotency_key, partner_notification_test_event_request, opts = {})
2237
+ data, _status_code, _headers = send_partner_notification_test_event_with_http_info(partner_id, idempotency_key, partner_notification_test_event_request, opts)
2007
2238
  data
2008
2239
  end
2009
2240
 
@@ -2014,34 +2245,34 @@ module ApiSdkRb
2014
2245
  # @param partner_notification_test_event_request [PartnerNotificationTestEventRequest]
2015
2246
  # @param [Hash] opts the optional parameters
2016
2247
  # @return [Array<(PartnerNotificationTestEventResultResponse, Integer, Hash)>] PartnerNotificationTestEventResultResponse data, response status code and response headers
2017
- def send_partner_notification_test_event_0_with_http_info(partner_id, idempotency_key, partner_notification_test_event_request, opts = {})
2248
+ def send_partner_notification_test_event_with_http_info(partner_id, idempotency_key, partner_notification_test_event_request, opts = {})
2018
2249
  if @api_client.config.debugging
2019
- @api_client.config.logger.debug 'Calling API: PartnersApi.send_partner_notification_test_event_0 ...'
2250
+ @api_client.config.logger.debug 'Calling API: PartnersApi.send_partner_notification_test_event ...'
2020
2251
  end
2021
2252
  # verify the required parameter 'partner_id' is set
2022
2253
  if @api_client.config.client_side_validation && partner_id.nil?
2023
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.send_partner_notification_test_event_0"
2254
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.send_partner_notification_test_event"
2024
2255
  end
2025
2256
  # verify the required parameter 'idempotency_key' is set
2026
2257
  if @api_client.config.client_side_validation && idempotency_key.nil?
2027
- fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.send_partner_notification_test_event_0"
2258
+ fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling PartnersApi.send_partner_notification_test_event"
2028
2259
  end
2029
2260
  if @api_client.config.client_side_validation && idempotency_key.to_s.length > 50
2030
- fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.send_partner_notification_test_event_0, the character length must be smaller than or equal to 50.'
2261
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.send_partner_notification_test_event, the character length must be smaller than or equal to 50.'
2031
2262
  end
2032
2263
 
2033
2264
  if @api_client.config.client_side_validation && idempotency_key.to_s.length < 8
2034
- fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.send_partner_notification_test_event_0, the character length must be great than or equal to 8.'
2265
+ fail ArgumentError, 'invalid value for "idempotency_key" when calling PartnersApi.send_partner_notification_test_event, the character length must be great than or equal to 8.'
2035
2266
  end
2036
2267
 
2037
2268
  pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
2038
2269
  if @api_client.config.client_side_validation && idempotency_key !~ pattern
2039
- fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.send_partner_notification_test_event_0, must conform to the pattern #{pattern}."
2270
+ fail ArgumentError, "invalid value for 'idempotency_key' when calling PartnersApi.send_partner_notification_test_event, must conform to the pattern #{pattern}."
2040
2271
  end
2041
2272
 
2042
2273
  # verify the required parameter 'partner_notification_test_event_request' is set
2043
2274
  if @api_client.config.client_side_validation && partner_notification_test_event_request.nil?
2044
- fail ArgumentError, "Missing the required parameter 'partner_notification_test_event_request' when calling PartnersApi.send_partner_notification_test_event_0"
2275
+ fail ArgumentError, "Missing the required parameter 'partner_notification_test_event_request' when calling PartnersApi.send_partner_notification_test_event"
2045
2276
  end
2046
2277
  # resource path
2047
2278
  local_var_path = '/partners/{partnerId}/notifications/test-event'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -2073,7 +2304,7 @@ module ApiSdkRb
2073
2304
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2074
2305
 
2075
2306
  new_options = opts.merge(
2076
- :operation => :"PartnersApi.send_partner_notification_test_event_0",
2307
+ :operation => :"PartnersApi.send_partner_notification_test_event",
2077
2308
  :header_params => header_params,
2078
2309
  :query_params => query_params,
2079
2310
  :form_params => form_params,
@@ -2084,59 +2315,59 @@ module ApiSdkRb
2084
2315
 
2085
2316
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2086
2317
  if @api_client.config.debugging
2087
- @api_client.config.logger.debug "API called: PartnersApi#send_partner_notification_test_event_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2318
+ @api_client.config.logger.debug "API called: PartnersApi#send_partner_notification_test_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2088
2319
  end
2089
2320
  return data, status_code, headers
2090
2321
  end
2091
2322
 
2092
2323
  # Connect an adapter key to a partner
2093
- # Gives an adapter the key it needs to act through a service the partner has an account with, for the widgets of the customers the partner manages. Take the `adapterId` and `credentialKey` from `getPartnerAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this partner, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget or to your customers. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on the partner's behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that a partner may keep it (some are for an owner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the partner is told once a day what to connect. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
2324
+ # Gives an adapter the key it needs to act through a service the partner has an account with, for the widgets of the customers the partner manages. Take the `adapterId` and `credentialKey` from `getPartnerAdapterConnections`. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this partner, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget or to your customers. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on the partner's behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that a partner may keep it (some are for an owner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it. **An address that has to be confirmed.** Some credentials are not a key but the email address Widgetic sends a widget's messages to (`confirmation: email_code` in `getPartnerAdapterConnections`). Saving one checks that it is one email address and emails a six-digit code to it; the answer says `awaitingConfirmation: true`, and nothing is sent to the address until the code is given back with `confirmPartnerAdapterConnection`. Saving the same address again before it is confirmed emails a new code (not sooner than a minute after the last); saving the address that is already confirmed changes nothing. If the code cannot be emailed, nothing is saved. A widget whose adapter has no key connected, or whose address is not confirmed yet, is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the partner is told once a day what to do. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
2094
2325
  # @param partner_id [String] The partner that keeps the key
2095
2326
  # @param adapter_id [String] The adapter the key is for
2096
2327
  # @param credential_key [String] The key&#39;s name within the adapter
2097
2328
  # @param set_adapter_connection_request [SetAdapterConnectionRequest]
2098
2329
  # @param [Hash] opts the optional parameters
2099
- # @return [SetUserAdapterConnection200Response]
2100
- def set_partner_adapter_connection_0(partner_id, adapter_id, credential_key, set_adapter_connection_request, opts = {})
2101
- data, _status_code, _headers = set_partner_adapter_connection_0_with_http_info(partner_id, adapter_id, credential_key, set_adapter_connection_request, opts)
2330
+ # @return [AdapterConnectionResponse]
2331
+ def set_partner_adapter_connection(partner_id, adapter_id, credential_key, set_adapter_connection_request, opts = {})
2332
+ data, _status_code, _headers = set_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, set_adapter_connection_request, opts)
2102
2333
  data
2103
2334
  end
2104
2335
 
2105
2336
  # Connect an adapter key to a partner
2106
- # Gives an adapter the key it needs to act through a service the partner has an account with, for the widgets of the customers the partner manages. Take the &#x60;adapterId&#x60; and &#x60;credentialKey&#x60; from &#x60;getPartnerAdapterConnections&#x60;. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this partner, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget or to your customers. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on the partner&#39;s behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that a partner may keep it (some are for an owner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it. A widget whose adapter has no key connected is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the partner is told once a day what to connect. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
2337
+ # Gives an adapter the key it needs to act through a service the partner has an account with, for the widgets of the customers the partner manages. Take the &#x60;adapterId&#x60; and &#x60;credentialKey&#x60; from &#x60;getPartnerAdapterConnections&#x60;. Saving a key that is already connected replaces it. **What Widgetic does with it.** The key is stored encrypted, bound to this partner, this adapter and this credential, so that a stored value cannot be moved to another. It is never returned, never logged and never shown to a visitor of a widget or to your customers. A server of Widgetic opens it for the one call a widget makes through the adapter, uses it to call the provider on the partner&#39;s behalf, and discards it. To cut that off, remove the key here, or revoke it with the provider. **What is checked.** That the adapter exists and takes this credential, that a partner may keep it (some are for an owner only) and that the text is one line of at most 2048 characters. Whether the provider accepts the key is not checked here: it shows the first time a widget uses it. **An address that has to be confirmed.** Some credentials are not a key but the email address Widgetic sends a widget&#39;s messages to (&#x60;confirmation: email_code&#x60; in &#x60;getPartnerAdapterConnections&#x60;). Saving one checks that it is one email address and emails a six-digit code to it; the answer says &#x60;awaitingConfirmation: true&#x60;, and nothing is sent to the address until the code is given back with &#x60;confirmPartnerAdapterConnection&#x60;. Saving the same address again before it is confirmed emails a new code (not sooner than a minute after the last); saving the address that is already confirmed changes nothing. If the code cannot be emailed, nothing is saved. A widget whose adapter has no key connected, or whose address is not confirmed yet, is not charged and does not run that adapter: its visitors are told the feature is unavailable, and the partner is told once a day what to do. This needs an API key with full access. The caller must be the person who administers the partner, or a Widgetic administrator. A retry is harmless: saving the same key twice only refreshes when it was set.
2107
2338
  # @param partner_id [String] The partner that keeps the key
2108
2339
  # @param adapter_id [String] The adapter the key is for
2109
2340
  # @param credential_key [String] The key&#39;s name within the adapter
2110
2341
  # @param set_adapter_connection_request [SetAdapterConnectionRequest]
2111
2342
  # @param [Hash] opts the optional parameters
2112
- # @return [Array<(SetUserAdapterConnection200Response, Integer, Hash)>] SetUserAdapterConnection200Response data, response status code and response headers
2113
- def set_partner_adapter_connection_0_with_http_info(partner_id, adapter_id, credential_key, set_adapter_connection_request, opts = {})
2343
+ # @return [Array<(AdapterConnectionResponse, Integer, Hash)>] AdapterConnectionResponse data, response status code and response headers
2344
+ def set_partner_adapter_connection_with_http_info(partner_id, adapter_id, credential_key, set_adapter_connection_request, opts = {})
2114
2345
  if @api_client.config.debugging
2115
- @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_adapter_connection_0 ...'
2346
+ @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_adapter_connection ...'
2116
2347
  end
2117
2348
  # verify the required parameter 'partner_id' is set
2118
2349
  if @api_client.config.client_side_validation && partner_id.nil?
2119
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_adapter_connection_0"
2350
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_adapter_connection"
2120
2351
  end
2121
2352
  # verify the required parameter 'adapter_id' is set
2122
2353
  if @api_client.config.client_side_validation && adapter_id.nil?
2123
- fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.set_partner_adapter_connection_0"
2354
+ fail ArgumentError, "Missing the required parameter 'adapter_id' when calling PartnersApi.set_partner_adapter_connection"
2124
2355
  end
2125
2356
  if @api_client.config.client_side_validation && adapter_id.to_s.length > 40
2126
- fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.set_partner_adapter_connection_0, the character length must be smaller than or equal to 40.'
2357
+ fail ArgumentError, 'invalid value for "adapter_id" when calling PartnersApi.set_partner_adapter_connection, the character length must be smaller than or equal to 40.'
2127
2358
  end
2128
2359
 
2129
2360
  # verify the required parameter 'credential_key' is set
2130
2361
  if @api_client.config.client_side_validation && credential_key.nil?
2131
- fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.set_partner_adapter_connection_0"
2362
+ fail ArgumentError, "Missing the required parameter 'credential_key' when calling PartnersApi.set_partner_adapter_connection"
2132
2363
  end
2133
2364
  if @api_client.config.client_side_validation && credential_key.to_s.length > 40
2134
- fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.set_partner_adapter_connection_0, the character length must be smaller than or equal to 40.'
2365
+ fail ArgumentError, 'invalid value for "credential_key" when calling PartnersApi.set_partner_adapter_connection, the character length must be smaller than or equal to 40.'
2135
2366
  end
2136
2367
 
2137
2368
  # verify the required parameter 'set_adapter_connection_request' is set
2138
2369
  if @api_client.config.client_side_validation && set_adapter_connection_request.nil?
2139
- fail ArgumentError, "Missing the required parameter 'set_adapter_connection_request' when calling PartnersApi.set_partner_adapter_connection_0"
2370
+ fail ArgumentError, "Missing the required parameter 'set_adapter_connection_request' when calling PartnersApi.set_partner_adapter_connection"
2140
2371
  end
2141
2372
  # resource path
2142
2373
  local_var_path = '/partners/{partnerId}/adapter-connections/{adapterId}/{credentialKey}'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'adapterId' + '}', CGI.escape(adapter_id.to_s)).sub('{' + 'credentialKey' + '}', CGI.escape(credential_key.to_s))
@@ -2161,13 +2392,13 @@ module ApiSdkRb
2161
2392
  post_body = opts[:debug_body] || @api_client.object_to_http_body(set_adapter_connection_request)
2162
2393
 
2163
2394
  # return_type
2164
- return_type = opts[:debug_return_type] || 'SetUserAdapterConnection200Response'
2395
+ return_type = opts[:debug_return_type] || 'AdapterConnectionResponse'
2165
2396
 
2166
2397
  # auth_names
2167
2398
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2168
2399
 
2169
2400
  new_options = opts.merge(
2170
- :operation => :"PartnersApi.set_partner_adapter_connection_0",
2401
+ :operation => :"PartnersApi.set_partner_adapter_connection",
2171
2402
  :header_params => header_params,
2172
2403
  :query_params => query_params,
2173
2404
  :form_params => form_params,
@@ -2178,7 +2409,7 @@ module ApiSdkRb
2178
2409
 
2179
2410
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2180
2411
  if @api_client.config.debugging
2181
- @api_client.config.logger.debug "API called: PartnersApi#set_partner_adapter_connection_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2412
+ @api_client.config.logger.debug "API called: PartnersApi#set_partner_adapter_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2182
2413
  end
2183
2414
  return data, status_code, headers
2184
2415
  end
@@ -2189,8 +2420,8 @@ module ApiSdkRb
2189
2420
  # @param set_partner_data_database_request [SetPartnerDataDatabaseRequest]
2190
2421
  # @param [Hash] opts the optional parameters
2191
2422
  # @return [PartnerDataDatabaseResponse]
2192
- def set_partner_data_database_0(partner_id, set_partner_data_database_request, opts = {})
2193
- data, _status_code, _headers = set_partner_data_database_0_with_http_info(partner_id, set_partner_data_database_request, opts)
2423
+ def set_partner_data_database(partner_id, set_partner_data_database_request, opts = {})
2424
+ data, _status_code, _headers = set_partner_data_database_with_http_info(partner_id, set_partner_data_database_request, opts)
2194
2425
  data
2195
2426
  end
2196
2427
 
@@ -2200,17 +2431,17 @@ module ApiSdkRb
2200
2431
  # @param set_partner_data_database_request [SetPartnerDataDatabaseRequest]
2201
2432
  # @param [Hash] opts the optional parameters
2202
2433
  # @return [Array<(PartnerDataDatabaseResponse, Integer, Hash)>] PartnerDataDatabaseResponse data, response status code and response headers
2203
- def set_partner_data_database_0_with_http_info(partner_id, set_partner_data_database_request, opts = {})
2434
+ def set_partner_data_database_with_http_info(partner_id, set_partner_data_database_request, opts = {})
2204
2435
  if @api_client.config.debugging
2205
- @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_data_database_0 ...'
2436
+ @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_data_database ...'
2206
2437
  end
2207
2438
  # verify the required parameter 'partner_id' is set
2208
2439
  if @api_client.config.client_side_validation && partner_id.nil?
2209
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_data_database_0"
2440
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_data_database"
2210
2441
  end
2211
2442
  # verify the required parameter 'set_partner_data_database_request' is set
2212
2443
  if @api_client.config.client_side_validation && set_partner_data_database_request.nil?
2213
- fail ArgumentError, "Missing the required parameter 'set_partner_data_database_request' when calling PartnersApi.set_partner_data_database_0"
2444
+ fail ArgumentError, "Missing the required parameter 'set_partner_data_database_request' when calling PartnersApi.set_partner_data_database"
2214
2445
  end
2215
2446
  # resource path
2216
2447
  local_var_path = '/partners/{partnerId}/data-database'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -2241,7 +2472,7 @@ module ApiSdkRb
2241
2472
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2242
2473
 
2243
2474
  new_options = opts.merge(
2244
- :operation => :"PartnersApi.set_partner_data_database_0",
2475
+ :operation => :"PartnersApi.set_partner_data_database",
2245
2476
  :header_params => header_params,
2246
2477
  :query_params => query_params,
2247
2478
  :form_params => form_params,
@@ -2252,7 +2483,7 @@ module ApiSdkRb
2252
2483
 
2253
2484
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2254
2485
  if @api_client.config.debugging
2255
- @api_client.config.logger.debug "API called: PartnersApi#set_partner_data_database_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2486
+ @api_client.config.logger.debug "API called: PartnersApi#set_partner_data_database\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2256
2487
  end
2257
2488
  return data, status_code, headers
2258
2489
  end
@@ -2262,9 +2493,9 @@ module ApiSdkRb
2262
2493
  # @param partner_id [String]
2263
2494
  # @param set_partner_design_defaults_request [SetPartnerDesignDefaultsRequest]
2264
2495
  # @param [Hash] opts the optional parameters
2265
- # @return [GetPartnerDesignDefaults200Response]
2266
- def set_partner_design_defaults_0(partner_id, set_partner_design_defaults_request, opts = {})
2267
- data, _status_code, _headers = set_partner_design_defaults_0_with_http_info(partner_id, set_partner_design_defaults_request, opts)
2496
+ # @return [DesignDefaultsResponse]
2497
+ def set_partner_design_defaults(partner_id, set_partner_design_defaults_request, opts = {})
2498
+ data, _status_code, _headers = set_partner_design_defaults_with_http_info(partner_id, set_partner_design_defaults_request, opts)
2268
2499
  data
2269
2500
  end
2270
2501
 
@@ -2273,18 +2504,18 @@ module ApiSdkRb
2273
2504
  # @param partner_id [String]
2274
2505
  # @param set_partner_design_defaults_request [SetPartnerDesignDefaultsRequest]
2275
2506
  # @param [Hash] opts the optional parameters
2276
- # @return [Array<(GetPartnerDesignDefaults200Response, Integer, Hash)>] GetPartnerDesignDefaults200Response data, response status code and response headers
2277
- def set_partner_design_defaults_0_with_http_info(partner_id, set_partner_design_defaults_request, opts = {})
2507
+ # @return [Array<(DesignDefaultsResponse, Integer, Hash)>] DesignDefaultsResponse data, response status code and response headers
2508
+ def set_partner_design_defaults_with_http_info(partner_id, set_partner_design_defaults_request, opts = {})
2278
2509
  if @api_client.config.debugging
2279
- @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_design_defaults_0 ...'
2510
+ @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_design_defaults ...'
2280
2511
  end
2281
2512
  # verify the required parameter 'partner_id' is set
2282
2513
  if @api_client.config.client_side_validation && partner_id.nil?
2283
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_design_defaults_0"
2514
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_design_defaults"
2284
2515
  end
2285
2516
  # verify the required parameter 'set_partner_design_defaults_request' is set
2286
2517
  if @api_client.config.client_side_validation && set_partner_design_defaults_request.nil?
2287
- fail ArgumentError, "Missing the required parameter 'set_partner_design_defaults_request' when calling PartnersApi.set_partner_design_defaults_0"
2518
+ fail ArgumentError, "Missing the required parameter 'set_partner_design_defaults_request' when calling PartnersApi.set_partner_design_defaults"
2288
2519
  end
2289
2520
  # resource path
2290
2521
  local_var_path = '/partners/{partnerId}/design-defaults'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -2309,13 +2540,13 @@ module ApiSdkRb
2309
2540
  post_body = opts[:debug_body] || @api_client.object_to_http_body(set_partner_design_defaults_request)
2310
2541
 
2311
2542
  # return_type
2312
- return_type = opts[:debug_return_type] || 'GetPartnerDesignDefaults200Response'
2543
+ return_type = opts[:debug_return_type] || 'DesignDefaultsResponse'
2313
2544
 
2314
2545
  # auth_names
2315
2546
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2316
2547
 
2317
2548
  new_options = opts.merge(
2318
- :operation => :"PartnersApi.set_partner_design_defaults_0",
2549
+ :operation => :"PartnersApi.set_partner_design_defaults",
2319
2550
  :header_params => header_params,
2320
2551
  :query_params => query_params,
2321
2552
  :form_params => form_params,
@@ -2326,7 +2557,7 @@ module ApiSdkRb
2326
2557
 
2327
2558
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2328
2559
  if @api_client.config.debugging
2329
- @api_client.config.logger.debug "API called: PartnersApi#set_partner_design_defaults_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2560
+ @api_client.config.logger.debug "API called: PartnersApi#set_partner_design_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2330
2561
  end
2331
2562
  return data, status_code, headers
2332
2563
  end
@@ -2338,8 +2569,8 @@ module ApiSdkRb
2338
2569
  # @param set_partner_preset_request [SetPartnerPresetRequest]
2339
2570
  # @param [Hash] opts the optional parameters
2340
2571
  # @return [PartnerPresetResponse]
2341
- def set_partner_preset_0(partner_id, key, set_partner_preset_request, opts = {})
2342
- data, _status_code, _headers = set_partner_preset_0_with_http_info(partner_id, key, set_partner_preset_request, opts)
2572
+ def set_partner_preset(partner_id, key, set_partner_preset_request, opts = {})
2573
+ data, _status_code, _headers = set_partner_preset_with_http_info(partner_id, key, set_partner_preset_request, opts)
2343
2574
  data
2344
2575
  end
2345
2576
 
@@ -2350,26 +2581,26 @@ module ApiSdkRb
2350
2581
  # @param set_partner_preset_request [SetPartnerPresetRequest]
2351
2582
  # @param [Hash] opts the optional parameters
2352
2583
  # @return [Array<(PartnerPresetResponse, Integer, Hash)>] PartnerPresetResponse data, response status code and response headers
2353
- def set_partner_preset_0_with_http_info(partner_id, key, set_partner_preset_request, opts = {})
2584
+ def set_partner_preset_with_http_info(partner_id, key, set_partner_preset_request, opts = {})
2354
2585
  if @api_client.config.debugging
2355
- @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_preset_0 ...'
2586
+ @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_preset ...'
2356
2587
  end
2357
2588
  # verify the required parameter 'partner_id' is set
2358
2589
  if @api_client.config.client_side_validation && partner_id.nil?
2359
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_preset_0"
2590
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_preset"
2360
2591
  end
2361
2592
  # verify the required parameter 'key' is set
2362
2593
  if @api_client.config.client_side_validation && key.nil?
2363
- fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.set_partner_preset_0"
2594
+ fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.set_partner_preset"
2364
2595
  end
2365
2596
  pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
2366
2597
  if @api_client.config.client_side_validation && key !~ pattern
2367
- fail ArgumentError, "invalid value for 'key' when calling PartnersApi.set_partner_preset_0, must conform to the pattern #{pattern}."
2598
+ fail ArgumentError, "invalid value for 'key' when calling PartnersApi.set_partner_preset, must conform to the pattern #{pattern}."
2368
2599
  end
2369
2600
 
2370
2601
  # verify the required parameter 'set_partner_preset_request' is set
2371
2602
  if @api_client.config.client_side_validation && set_partner_preset_request.nil?
2372
- fail ArgumentError, "Missing the required parameter 'set_partner_preset_request' when calling PartnersApi.set_partner_preset_0"
2603
+ fail ArgumentError, "Missing the required parameter 'set_partner_preset_request' when calling PartnersApi.set_partner_preset"
2373
2604
  end
2374
2605
  # resource path
2375
2606
  local_var_path = '/partners/{partnerId}/presets/{key}'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
@@ -2400,7 +2631,7 @@ module ApiSdkRb
2400
2631
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2401
2632
 
2402
2633
  new_options = opts.merge(
2403
- :operation => :"PartnersApi.set_partner_preset_0",
2634
+ :operation => :"PartnersApi.set_partner_preset",
2404
2635
  :header_params => header_params,
2405
2636
  :query_params => query_params,
2406
2637
  :form_params => form_params,
@@ -2411,39 +2642,39 @@ module ApiSdkRb
2411
2642
 
2412
2643
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2413
2644
  if @api_client.config.debugging
2414
- @api_client.config.logger.debug "API called: PartnersApi#set_partner_preset_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2645
+ @api_client.config.logger.debug "API called: PartnersApi#set_partner_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2415
2646
  end
2416
2647
  return data, status_code, headers
2417
2648
  end
2418
2649
 
2419
2650
  # Set where a partner's uploaded files are stored
2420
- # Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `uploadsPost` (with an API key, an SDK token, an editor session or from the Widgetic website), a resumable upload, the media library, and the files the agent tools and the MCP server save. It takes none of the account's storage allowance, and its `url` is served from `publicBaseUrl`. The chunks of a resumable upload wait in Widgetic's temporary staging area until it is completed and are removed then: the finished file is stored in your bucket and nowhere else. A destination is required. Partner storage is not optional: your customers' files, and your own however they arrive, are kept in this destination and nowhere else. An editor session (`createManagedUserEditorSession`) of any surface cannot be made until a destination is set (409 `PARTNER_STORAGE_REQUIRED`), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination (on any route, including a resumable upload, which is refused when it is started) is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under `<keyPrefix>widgetic-check/`, reads it back from `<publicBaseUrl>/<its key>`, and deletes it. If any step fails nothing is saved and the answer is 422 `STORAGE_DESTINATION_UNVERIFIED`: `details.step` says where (`endpoint`, `write` or `public_read`), `details.reason` says why, and `param` names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at `publicBaseUrl`, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (`accessKeyHint`). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 `STORAGE_DESTINATION_UNAVAILABLE`, and when the bucket rejects the file with 502 `STORAGE_DESTINATION_WRITE_FAILED`. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner's.
2651
+ # Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `uploadFile` (with an API key, an SDK token, an editor session or from the Widgetic website), a resumable upload, the media library, and the files the agent tools and the MCP server save. It takes none of the account's storage allowance, and its `url` is served from `publicBaseUrl`. The chunks of a resumable upload wait in Widgetic's temporary staging area until it is completed and are removed then: the finished file is stored in your bucket and nowhere else. A destination is required. Partner storage is not optional: your customers' files, and your own however they arrive, are kept in this destination and nowhere else. An editor session (`createManagedUserEditorSession`) of any surface cannot be made until a destination is set (409 `PARTNER_STORAGE_REQUIRED`), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination (on any route, including a resumable upload, which is refused when it is started) is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under `<keyPrefix>widgetic-check/`, reads it back from `<publicBaseUrl>/<its key>`, and deletes it. If any step fails nothing is saved and the answer is 422 `STORAGE_DESTINATION_UNVERIFIED`: `details.step` says where (`endpoint`, `write` or `public_read`), `details.reason` says why, and `param` names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at `publicBaseUrl`, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (`accessKeyHint`). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 `STORAGE_DESTINATION_UNAVAILABLE`, and when the bucket rejects the file with 502 `STORAGE_DESTINATION_WRITE_FAILED`. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner's.
2421
2652
  # @param partner_id [String] The partner whose storage destination to set
2422
2653
  # @param set_partner_storage_destination_request [SetPartnerStorageDestinationRequest]
2423
2654
  # @param [Hash] opts the optional parameters
2424
2655
  # @return [PartnerStorageDestinationResponse]
2425
- def set_partner_storage_destination_0(partner_id, set_partner_storage_destination_request, opts = {})
2426
- data, _status_code, _headers = set_partner_storage_destination_0_with_http_info(partner_id, set_partner_storage_destination_request, opts)
2656
+ def set_partner_storage_destination(partner_id, set_partner_storage_destination_request, opts = {})
2657
+ data, _status_code, _headers = set_partner_storage_destination_with_http_info(partner_id, set_partner_storage_destination_request, opts)
2427
2658
  data
2428
2659
  end
2429
2660
 
2430
2661
  # Set where a partner&#39;s uploaded files are stored
2431
- # Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with &#x60;uploadsPost&#x60; (with an API key, an SDK token, an editor session or from the Widgetic website), a resumable upload, the media library, and the files the agent tools and the MCP server save. It takes none of the account&#39;s storage allowance, and its &#x60;url&#x60; is served from &#x60;publicBaseUrl&#x60;. The chunks of a resumable upload wait in Widgetic&#39;s temporary staging area until it is completed and are removed then: the finished file is stored in your bucket and nowhere else. A destination is required. Partner storage is not optional: your customers&#39; files, and your own however they arrive, are kept in this destination and nowhere else. An editor session (&#x60;createManagedUserEditorSession&#x60;) of any surface cannot be made until a destination is set (409 &#x60;PARTNER_STORAGE_REQUIRED&#x60;), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination (on any route, including a resumable upload, which is refused when it is started) is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under &#x60;&lt;keyPrefix&gt;widgetic-check/&#x60;, reads it back from &#x60;&lt;publicBaseUrl&gt;/&lt;its key&gt;&#x60;, and deletes it. If any step fails nothing is saved and the answer is 422 &#x60;STORAGE_DESTINATION_UNVERIFIED&#x60;: &#x60;details.step&#x60; says where (&#x60;endpoint&#x60;, &#x60;write&#x60; or &#x60;public_read&#x60;), &#x60;details.reason&#x60; says why, and &#x60;param&#x60; names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at &#x60;publicBaseUrl&#x60;, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (&#x60;accessKeyHint&#x60;). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 &#x60;STORAGE_DESTINATION_UNAVAILABLE&#x60;, and when the bucket rejects the file with 502 &#x60;STORAGE_DESTINATION_WRITE_FAILED&#x60;. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner&#39;s.
2662
+ # Points the partner at a bucket of its own on an S3-compatible service (Cloudflare R2, Amazon S3, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with &#x60;uploadFile&#x60; (with an API key, an SDK token, an editor session or from the Widgetic website), a resumable upload, the media library, and the files the agent tools and the MCP server save. It takes none of the account&#39;s storage allowance, and its &#x60;url&#x60; is served from &#x60;publicBaseUrl&#x60;. The chunks of a resumable upload wait in Widgetic&#39;s temporary staging area until it is completed and are removed then: the finished file is stored in your bucket and nowhere else. A destination is required. Partner storage is not optional: your customers&#39; files, and your own however they arrive, are kept in this destination and nowhere else. An editor session (&#x60;createManagedUserEditorSession&#x60;) of any surface cannot be made until a destination is set (409 &#x60;PARTNER_STORAGE_REQUIRED&#x60;), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination (on any route, including a resumable upload, which is refused when it is started) is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under &#x60;&lt;keyPrefix&gt;widgetic-check/&#x60;, reads it back from &#x60;&lt;publicBaseUrl&gt;/&lt;its key&gt;&#x60;, and deletes it. If any step fails nothing is saved and the answer is 422 &#x60;STORAGE_DESTINATION_UNVERIFIED&#x60;: &#x60;details.step&#x60; says where (&#x60;endpoint&#x60;, &#x60;write&#x60; or &#x60;public_read&#x60;), &#x60;details.reason&#x60; says why, and &#x60;param&#x60; names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at &#x60;publicBaseUrl&#x60;, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (&#x60;accessKeyHint&#x60;). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 &#x60;STORAGE_DESTINATION_UNAVAILABLE&#x60;, and when the bucket rejects the file with 502 &#x60;STORAGE_DESTINATION_WRITE_FAILED&#x60;. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner&#39;s.
2432
2663
  # @param partner_id [String] The partner whose storage destination to set
2433
2664
  # @param set_partner_storage_destination_request [SetPartnerStorageDestinationRequest]
2434
2665
  # @param [Hash] opts the optional parameters
2435
2666
  # @return [Array<(PartnerStorageDestinationResponse, Integer, Hash)>] PartnerStorageDestinationResponse data, response status code and response headers
2436
- def set_partner_storage_destination_0_with_http_info(partner_id, set_partner_storage_destination_request, opts = {})
2667
+ def set_partner_storage_destination_with_http_info(partner_id, set_partner_storage_destination_request, opts = {})
2437
2668
  if @api_client.config.debugging
2438
- @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_storage_destination_0 ...'
2669
+ @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_storage_destination ...'
2439
2670
  end
2440
2671
  # verify the required parameter 'partner_id' is set
2441
2672
  if @api_client.config.client_side_validation && partner_id.nil?
2442
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_storage_destination_0"
2673
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_storage_destination"
2443
2674
  end
2444
2675
  # verify the required parameter 'set_partner_storage_destination_request' is set
2445
2676
  if @api_client.config.client_side_validation && set_partner_storage_destination_request.nil?
2446
- fail ArgumentError, "Missing the required parameter 'set_partner_storage_destination_request' when calling PartnersApi.set_partner_storage_destination_0"
2677
+ fail ArgumentError, "Missing the required parameter 'set_partner_storage_destination_request' when calling PartnersApi.set_partner_storage_destination"
2447
2678
  end
2448
2679
  # resource path
2449
2680
  local_var_path = '/partners/{partnerId}/storage'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -2474,7 +2705,92 @@ module ApiSdkRb
2474
2705
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2475
2706
 
2476
2707
  new_options = opts.merge(
2477
- :operation => :"PartnersApi.set_partner_storage_destination_0",
2708
+ :operation => :"PartnersApi.set_partner_storage_destination",
2709
+ :header_params => header_params,
2710
+ :query_params => query_params,
2711
+ :form_params => form_params,
2712
+ :body => post_body,
2713
+ :auth_names => auth_names,
2714
+ :return_type => return_type
2715
+ )
2716
+
2717
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2718
+ if @api_client.config.debugging
2719
+ @api_client.config.logger.debug "API called: PartnersApi#set_partner_storage_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2720
+ end
2721
+ return data, status_code, headers
2722
+ end
2723
+
2724
+ # Offer a workflow as a place to start, or replace what a key offers
2725
+ # Offers one of the partner account's own published workflows to its managed users under `key`. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: a `title`, `description` or `position` you leave out goes back to its default. Keys are 1 to 64 characters: lowercase letters, digits, hyphens and underscores, the first a letter or a digit. A workflow is offered once. What people get is the workflow's live version as it is when they start, so publishing the workflow changes what new starts get; workflows people already started are never touched. The offer is refused, and `error.details.reason` says why, when the workflow: - is not the partner account's own (a workflow of a team or of a customer, or of somebody else), or does not exist: 404, the same for both; - is archived (409 `workflow_archived`), or was never published (409 `workflow_not_published`); - shows no composition (422 `workflow_empty`), or a block shows a composition made for a customer or a team (422 `composition_not_own`); - chains more than 10 widgets (422 `too_many_widgets`), or a widget that the partner does not offer as a preset (422 `widget_not_preset`; `error.details.widgets` lists them, each with its `id` and `name`, so they can be offered first with `setPartnerPreset`); - is already offered under another key (409 `workflow_already_offered`; `error.details.key` says which), or the partner already offers 50 (409 `too_many_presets`). The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator, who offers the partner's workflow on its behalf.
2726
+ # @param partner_id [String] The partner whose starting point to set
2727
+ # @param key [String] The name your code and the picker use for the starting point
2728
+ # @param offer_workflow_preset_request [OfferWorkflowPresetRequest]
2729
+ # @param [Hash] opts the optional parameters
2730
+ # @return [SetPartnerWorkflowPreset200Response]
2731
+ def set_partner_workflow_preset(partner_id, key, offer_workflow_preset_request, opts = {})
2732
+ data, _status_code, _headers = set_partner_workflow_preset_with_http_info(partner_id, key, offer_workflow_preset_request, opts)
2733
+ data
2734
+ end
2735
+
2736
+ # Offer a workflow as a place to start, or replace what a key offers
2737
+ # Offers one of the partner account&#39;s own published workflows to its managed users under &#x60;key&#x60;. If the partner already offers something under that key it is replaced, so sending the same request twice is safe. Saving replaces the whole starting point: a &#x60;title&#x60;, &#x60;description&#x60; or &#x60;position&#x60; you leave out goes back to its default. Keys are 1 to 64 characters: lowercase letters, digits, hyphens and underscores, the first a letter or a digit. A workflow is offered once. What people get is the workflow&#39;s live version as it is when they start, so publishing the workflow changes what new starts get; workflows people already started are never touched. The offer is refused, and &#x60;error.details.reason&#x60; says why, when the workflow: - is not the partner account&#39;s own (a workflow of a team or of a customer, or of somebody else), or does not exist: 404, the same for both; - is archived (409 &#x60;workflow_archived&#x60;), or was never published (409 &#x60;workflow_not_published&#x60;); - shows no composition (422 &#x60;workflow_empty&#x60;), or a block shows a composition made for a customer or a team (422 &#x60;composition_not_own&#x60;); - chains more than 10 widgets (422 &#x60;too_many_widgets&#x60;), or a widget that the partner does not offer as a preset (422 &#x60;widget_not_preset&#x60;; &#x60;error.details.widgets&#x60; lists them, each with its &#x60;id&#x60; and &#x60;name&#x60;, so they can be offered first with &#x60;setPartnerPreset&#x60;); - is already offered under another key (409 &#x60;workflow_already_offered&#x60;; &#x60;error.details.key&#x60; says which), or the partner already offers 50 (409 &#x60;too_many_presets&#x60;). The caller must be the person who administers the partner (an API key of that account works), or a Widgetic administrator, who offers the partner&#39;s workflow on its behalf.
2738
+ # @param partner_id [String] The partner whose starting point to set
2739
+ # @param key [String] The name your code and the picker use for the starting point
2740
+ # @param offer_workflow_preset_request [OfferWorkflowPresetRequest]
2741
+ # @param [Hash] opts the optional parameters
2742
+ # @return [Array<(SetPartnerWorkflowPreset200Response, Integer, Hash)>] SetPartnerWorkflowPreset200Response data, response status code and response headers
2743
+ def set_partner_workflow_preset_with_http_info(partner_id, key, offer_workflow_preset_request, opts = {})
2744
+ if @api_client.config.debugging
2745
+ @api_client.config.logger.debug 'Calling API: PartnersApi.set_partner_workflow_preset ...'
2746
+ end
2747
+ # verify the required parameter 'partner_id' is set
2748
+ if @api_client.config.client_side_validation && partner_id.nil?
2749
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.set_partner_workflow_preset"
2750
+ end
2751
+ # verify the required parameter 'key' is set
2752
+ if @api_client.config.client_side_validation && key.nil?
2753
+ fail ArgumentError, "Missing the required parameter 'key' when calling PartnersApi.set_partner_workflow_preset"
2754
+ end
2755
+ pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
2756
+ if @api_client.config.client_side_validation && key !~ pattern
2757
+ fail ArgumentError, "invalid value for 'key' when calling PartnersApi.set_partner_workflow_preset, must conform to the pattern #{pattern}."
2758
+ end
2759
+
2760
+ # verify the required parameter 'offer_workflow_preset_request' is set
2761
+ if @api_client.config.client_side_validation && offer_workflow_preset_request.nil?
2762
+ fail ArgumentError, "Missing the required parameter 'offer_workflow_preset_request' when calling PartnersApi.set_partner_workflow_preset"
2763
+ end
2764
+ # resource path
2765
+ local_var_path = '/partners/{partnerId}/workflow-presets/{key}'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
2766
+
2767
+ # query parameters
2768
+ query_params = opts[:query_params] || {}
2769
+
2770
+ # header parameters
2771
+ header_params = opts[:header_params] || {}
2772
+ # HTTP header 'Accept' (if needed)
2773
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2774
+ # HTTP header 'Content-Type'
2775
+ content_type = @api_client.select_header_content_type(['application/json'])
2776
+ if !content_type.nil?
2777
+ header_params['Content-Type'] = content_type
2778
+ end
2779
+
2780
+ # form parameters
2781
+ form_params = opts[:form_params] || {}
2782
+
2783
+ # http body (model)
2784
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(offer_workflow_preset_request)
2785
+
2786
+ # return_type
2787
+ return_type = opts[:debug_return_type] || 'SetPartnerWorkflowPreset200Response'
2788
+
2789
+ # auth_names
2790
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2791
+
2792
+ new_options = opts.merge(
2793
+ :operation => :"PartnersApi.set_partner_workflow_preset",
2478
2794
  :header_params => header_params,
2479
2795
  :query_params => query_params,
2480
2796
  :form_params => form_params,
@@ -2485,7 +2801,7 @@ module ApiSdkRb
2485
2801
 
2486
2802
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2487
2803
  if @api_client.config.debugging
2488
- @api_client.config.logger.debug "API called: PartnersApi#set_partner_storage_destination_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2804
+ @api_client.config.logger.debug "API called: PartnersApi#set_partner_workflow_preset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2489
2805
  end
2490
2806
  return data, status_code, headers
2491
2807
  end
@@ -2497,8 +2813,8 @@ module ApiSdkRb
2497
2813
  # @param [Hash] opts the optional parameters
2498
2814
  # @option opts [String] :idempotency_key Optional: without it the call is carried out every time it is sent. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
2499
2815
  # @return [PartnerEntryContextSigningResponse]
2500
- def update_partner_entry_context_signing_0(partner_id, update_partner_entry_context_signing_request, opts = {})
2501
- data, _status_code, _headers = update_partner_entry_context_signing_0_with_http_info(partner_id, update_partner_entry_context_signing_request, opts)
2816
+ def update_partner_entry_context_signing(partner_id, update_partner_entry_context_signing_request, opts = {})
2817
+ data, _status_code, _headers = update_partner_entry_context_signing_with_http_info(partner_id, update_partner_entry_context_signing_request, opts)
2502
2818
  data
2503
2819
  end
2504
2820
 
@@ -2509,29 +2825,29 @@ module ApiSdkRb
2509
2825
  # @param [Hash] opts the optional parameters
2510
2826
  # @option opts [String] :idempotency_key Optional: without it the call is carried out every time it is sent. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
2511
2827
  # @return [Array<(PartnerEntryContextSigningResponse, Integer, Hash)>] PartnerEntryContextSigningResponse data, response status code and response headers
2512
- def update_partner_entry_context_signing_0_with_http_info(partner_id, update_partner_entry_context_signing_request, opts = {})
2828
+ def update_partner_entry_context_signing_with_http_info(partner_id, update_partner_entry_context_signing_request, opts = {})
2513
2829
  if @api_client.config.debugging
2514
- @api_client.config.logger.debug 'Calling API: PartnersApi.update_partner_entry_context_signing_0 ...'
2830
+ @api_client.config.logger.debug 'Calling API: PartnersApi.update_partner_entry_context_signing ...'
2515
2831
  end
2516
2832
  # verify the required parameter 'partner_id' is set
2517
2833
  if @api_client.config.client_side_validation && partner_id.nil?
2518
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.update_partner_entry_context_signing_0"
2834
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.update_partner_entry_context_signing"
2519
2835
  end
2520
2836
  # verify the required parameter 'update_partner_entry_context_signing_request' is set
2521
2837
  if @api_client.config.client_side_validation && update_partner_entry_context_signing_request.nil?
2522
- fail ArgumentError, "Missing the required parameter 'update_partner_entry_context_signing_request' when calling PartnersApi.update_partner_entry_context_signing_0"
2838
+ fail ArgumentError, "Missing the required parameter 'update_partner_entry_context_signing_request' when calling PartnersApi.update_partner_entry_context_signing"
2523
2839
  end
2524
2840
  if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 50
2525
- fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_entry_context_signing_0, the character length must be smaller than or equal to 50.'
2841
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_entry_context_signing, the character length must be smaller than or equal to 50.'
2526
2842
  end
2527
2843
 
2528
2844
  if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 8
2529
- fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_entry_context_signing_0, the character length must be great than or equal to 8.'
2845
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_entry_context_signing, the character length must be great than or equal to 8.'
2530
2846
  end
2531
2847
 
2532
2848
  pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
2533
2849
  if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'] !~ pattern
2534
- fail ArgumentError, "invalid value for 'opts[:\"idempotency_key\"]' when calling PartnersApi.update_partner_entry_context_signing_0, must conform to the pattern #{pattern}."
2850
+ fail ArgumentError, "invalid value for 'opts[:\"idempotency_key\"]' when calling PartnersApi.update_partner_entry_context_signing, must conform to the pattern #{pattern}."
2535
2851
  end
2536
2852
 
2537
2853
  # resource path
@@ -2564,7 +2880,7 @@ module ApiSdkRb
2564
2880
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2565
2881
 
2566
2882
  new_options = opts.merge(
2567
- :operation => :"PartnersApi.update_partner_entry_context_signing_0",
2883
+ :operation => :"PartnersApi.update_partner_entry_context_signing",
2568
2884
  :header_params => header_params,
2569
2885
  :query_params => query_params,
2570
2886
  :form_params => form_params,
@@ -2575,7 +2891,7 @@ module ApiSdkRb
2575
2891
 
2576
2892
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2577
2893
  if @api_client.config.debugging
2578
- @api_client.config.logger.debug "API called: PartnersApi#update_partner_entry_context_signing_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2894
+ @api_client.config.logger.debug "API called: PartnersApi#update_partner_entry_context_signing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2579
2895
  end
2580
2896
  return data, status_code, headers
2581
2897
  end
@@ -2587,8 +2903,8 @@ module ApiSdkRb
2587
2903
  # @param [Hash] opts the optional parameters
2588
2904
  # @option opts [String] :idempotency_key Optional: without it the call is carried out every time it is sent. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
2589
2905
  # @return [PartnerNotificationSettingsChangeResponse]
2590
- def update_partner_notification_settings_0(partner_id, update_partner_notification_settings_request, opts = {})
2591
- data, _status_code, _headers = update_partner_notification_settings_0_with_http_info(partner_id, update_partner_notification_settings_request, opts)
2906
+ def update_partner_notification_settings(partner_id, update_partner_notification_settings_request, opts = {})
2907
+ data, _status_code, _headers = update_partner_notification_settings_with_http_info(partner_id, update_partner_notification_settings_request, opts)
2592
2908
  data
2593
2909
  end
2594
2910
 
@@ -2599,29 +2915,29 @@ module ApiSdkRb
2599
2915
  # @param [Hash] opts the optional parameters
2600
2916
  # @option opts [String] :idempotency_key Optional: without it the call is carried out every time it is sent. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, &#x60;-&#x60; and &#x60;_&#x60;. Send the same key again when you retry (after a timeout, a dropped connection or a &#x60;5xx&#x60;) and the call is carried out once: the retry gets the first answer back, marked &#x60;X-Idempotency-Cached: true&#x60;. The same key with a different body is refused with &#x60;422&#x60;, and a retry that arrives while the first call is still running with &#x60;409&#x60; (see &#x60;Retry-After&#x60;).
2601
2917
  # @return [Array<(PartnerNotificationSettingsChangeResponse, Integer, Hash)>] PartnerNotificationSettingsChangeResponse data, response status code and response headers
2602
- def update_partner_notification_settings_0_with_http_info(partner_id, update_partner_notification_settings_request, opts = {})
2918
+ def update_partner_notification_settings_with_http_info(partner_id, update_partner_notification_settings_request, opts = {})
2603
2919
  if @api_client.config.debugging
2604
- @api_client.config.logger.debug 'Calling API: PartnersApi.update_partner_notification_settings_0 ...'
2920
+ @api_client.config.logger.debug 'Calling API: PartnersApi.update_partner_notification_settings ...'
2605
2921
  end
2606
2922
  # verify the required parameter 'partner_id' is set
2607
2923
  if @api_client.config.client_side_validation && partner_id.nil?
2608
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.update_partner_notification_settings_0"
2924
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.update_partner_notification_settings"
2609
2925
  end
2610
2926
  # verify the required parameter 'update_partner_notification_settings_request' is set
2611
2927
  if @api_client.config.client_side_validation && update_partner_notification_settings_request.nil?
2612
- fail ArgumentError, "Missing the required parameter 'update_partner_notification_settings_request' when calling PartnersApi.update_partner_notification_settings_0"
2928
+ fail ArgumentError, "Missing the required parameter 'update_partner_notification_settings_request' when calling PartnersApi.update_partner_notification_settings"
2613
2929
  end
2614
2930
  if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 50
2615
- fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_notification_settings_0, the character length must be smaller than or equal to 50.'
2931
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_notification_settings, the character length must be smaller than or equal to 50.'
2616
2932
  end
2617
2933
 
2618
2934
  if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 8
2619
- fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_notification_settings_0, the character length must be great than or equal to 8.'
2935
+ fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling PartnersApi.update_partner_notification_settings, the character length must be great than or equal to 8.'
2620
2936
  end
2621
2937
 
2622
2938
  pattern = Regexp.new(/^[a-zA-Z0-9_-]{8,50}$/)
2623
2939
  if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'] !~ pattern
2624
- fail ArgumentError, "invalid value for 'opts[:\"idempotency_key\"]' when calling PartnersApi.update_partner_notification_settings_0, must conform to the pattern #{pattern}."
2940
+ fail ArgumentError, "invalid value for 'opts[:\"idempotency_key\"]' when calling PartnersApi.update_partner_notification_settings, must conform to the pattern #{pattern}."
2625
2941
  end
2626
2942
 
2627
2943
  # resource path
@@ -2654,7 +2970,7 @@ module ApiSdkRb
2654
2970
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2655
2971
 
2656
2972
  new_options = opts.merge(
2657
- :operation => :"PartnersApi.update_partner_notification_settings_0",
2973
+ :operation => :"PartnersApi.update_partner_notification_settings",
2658
2974
  :header_params => header_params,
2659
2975
  :query_params => query_params,
2660
2976
  :form_params => form_params,
@@ -2665,7 +2981,7 @@ module ApiSdkRb
2665
2981
 
2666
2982
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2667
2983
  if @api_client.config.debugging
2668
- @api_client.config.logger.debug "API called: PartnersApi#update_partner_notification_settings_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2984
+ @api_client.config.logger.debug "API called: PartnersApi#update_partner_notification_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2669
2985
  end
2670
2986
  return data, status_code, headers
2671
2987
  end
@@ -2675,8 +2991,8 @@ module ApiSdkRb
2675
2991
  # @param partner_id [String] The partner whose database to check
2676
2992
  # @param [Hash] opts the optional parameters
2677
2993
  # @return [PartnerDataDatabaseResponse]
2678
- def verify_partner_data_database_0(partner_id, opts = {})
2679
- data, _status_code, _headers = verify_partner_data_database_0_with_http_info(partner_id, opts)
2994
+ def verify_partner_data_database(partner_id, opts = {})
2995
+ data, _status_code, _headers = verify_partner_data_database_with_http_info(partner_id, opts)
2680
2996
  data
2681
2997
  end
2682
2998
 
@@ -2685,13 +3001,13 @@ module ApiSdkRb
2685
3001
  # @param partner_id [String] The partner whose database to check
2686
3002
  # @param [Hash] opts the optional parameters
2687
3003
  # @return [Array<(PartnerDataDatabaseResponse, Integer, Hash)>] PartnerDataDatabaseResponse data, response status code and response headers
2688
- def verify_partner_data_database_0_with_http_info(partner_id, opts = {})
3004
+ def verify_partner_data_database_with_http_info(partner_id, opts = {})
2689
3005
  if @api_client.config.debugging
2690
- @api_client.config.logger.debug 'Calling API: PartnersApi.verify_partner_data_database_0 ...'
3006
+ @api_client.config.logger.debug 'Calling API: PartnersApi.verify_partner_data_database ...'
2691
3007
  end
2692
3008
  # verify the required parameter 'partner_id' is set
2693
3009
  if @api_client.config.client_side_validation && partner_id.nil?
2694
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.verify_partner_data_database_0"
3010
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.verify_partner_data_database"
2695
3011
  end
2696
3012
  # resource path
2697
3013
  local_var_path = '/partners/{partnerId}/data-database/verify'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -2717,7 +3033,7 @@ module ApiSdkRb
2717
3033
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2718
3034
 
2719
3035
  new_options = opts.merge(
2720
- :operation => :"PartnersApi.verify_partner_data_database_0",
3036
+ :operation => :"PartnersApi.verify_partner_data_database",
2721
3037
  :header_params => header_params,
2722
3038
  :query_params => query_params,
2723
3039
  :form_params => form_params,
@@ -2728,7 +3044,7 @@ module ApiSdkRb
2728
3044
 
2729
3045
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2730
3046
  if @api_client.config.debugging
2731
- @api_client.config.logger.debug "API called: PartnersApi#verify_partner_data_database_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3047
+ @api_client.config.logger.debug "API called: PartnersApi#verify_partner_data_database\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2732
3048
  end
2733
3049
  return data, status_code, headers
2734
3050
  end
@@ -2738,8 +3054,8 @@ module ApiSdkRb
2738
3054
  # @param partner_id [String] The partner whose storage destination to check
2739
3055
  # @param [Hash] opts the optional parameters
2740
3056
  # @return [PartnerStorageDestinationResponse]
2741
- def verify_partner_storage_destination_0(partner_id, opts = {})
2742
- data, _status_code, _headers = verify_partner_storage_destination_0_with_http_info(partner_id, opts)
3057
+ def verify_partner_storage_destination(partner_id, opts = {})
3058
+ data, _status_code, _headers = verify_partner_storage_destination_with_http_info(partner_id, opts)
2743
3059
  data
2744
3060
  end
2745
3061
 
@@ -2748,13 +3064,13 @@ module ApiSdkRb
2748
3064
  # @param partner_id [String] The partner whose storage destination to check
2749
3065
  # @param [Hash] opts the optional parameters
2750
3066
  # @return [Array<(PartnerStorageDestinationResponse, Integer, Hash)>] PartnerStorageDestinationResponse data, response status code and response headers
2751
- def verify_partner_storage_destination_0_with_http_info(partner_id, opts = {})
3067
+ def verify_partner_storage_destination_with_http_info(partner_id, opts = {})
2752
3068
  if @api_client.config.debugging
2753
- @api_client.config.logger.debug 'Calling API: PartnersApi.verify_partner_storage_destination_0 ...'
3069
+ @api_client.config.logger.debug 'Calling API: PartnersApi.verify_partner_storage_destination ...'
2754
3070
  end
2755
3071
  # verify the required parameter 'partner_id' is set
2756
3072
  if @api_client.config.client_side_validation && partner_id.nil?
2757
- fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.verify_partner_storage_destination_0"
3073
+ fail ArgumentError, "Missing the required parameter 'partner_id' when calling PartnersApi.verify_partner_storage_destination"
2758
3074
  end
2759
3075
  # resource path
2760
3076
  local_var_path = '/partners/{partnerId}/storage/verify'.sub('{' + 'partnerId' + '}', CGI.escape(partner_id.to_s))
@@ -2780,7 +3096,7 @@ module ApiSdkRb
2780
3096
  auth_names = opts[:debug_auth_names] || ['apiKeyAuth']
2781
3097
 
2782
3098
  new_options = opts.merge(
2783
- :operation => :"PartnersApi.verify_partner_storage_destination_0",
3099
+ :operation => :"PartnersApi.verify_partner_storage_destination",
2784
3100
  :header_params => header_params,
2785
3101
  :query_params => query_params,
2786
3102
  :form_params => form_params,
@@ -2791,7 +3107,7 @@ module ApiSdkRb
2791
3107
 
2792
3108
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2793
3109
  if @api_client.config.debugging
2794
- @api_client.config.logger.debug "API called: PartnersApi#verify_partner_storage_destination_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3110
+ @api_client.config.logger.debug "API called: PartnersApi#verify_partner_storage_destination\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2795
3111
  end
2796
3112
  return data, status_code, headers
2797
3113
  end