subskribe_dev 1.1.0 → 1.2.0

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 (568) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +499 -9
  3. data/docs/AccountAddress.md +17 -0
  4. data/docs/AccountAddressJson.md +13 -0
  5. data/docs/AccountContact.md +24 -0
  6. data/docs/AccountContactJson.md +18 -0
  7. data/docs/AccountJson.md +27 -0
  8. data/docs/AccountPaymentMethodJson.md +13 -0
  9. data/docs/AccountReceivableContactJson.md +12 -0
  10. data/docs/AccountingApi.md +182 -0
  11. data/docs/AccountingEvent.md +19 -0
  12. data/docs/AccountingEventPaginatedResponse.md +10 -0
  13. data/docs/AccountingPeriod.md +22 -0
  14. data/docs/AccountingPeriodCalculation.md +13 -0
  15. data/docs/AccountsApi.md +884 -0
  16. data/docs/AddAndApplyPaymentApplicationJson.md +19 -0
  17. data/docs/AnrokIntegrationInput.md +8 -0
  18. data/docs/ApprovalMatrixImportDataJson.md +13 -0
  19. data/docs/ApprovalMatrixImportPreview.md +12 -0
  20. data/docs/ApprovalRoleJson.md +12 -0
  21. data/docs/ApprovalRoleSegmentChange.md +11 -0
  22. data/docs/ApprovalSegmentJson.md +12 -0
  23. data/docs/ApprovalsApi.md +1028 -0
  24. data/docs/Attachment.md +17 -0
  25. data/docs/AttachmentsApi.md +294 -0
  26. data/docs/AttributeReference.md +9 -0
  27. data/docs/AuthSamlIntegrationJson.md +10 -0
  28. data/docs/AuthenticationApi.md +329 -0
  29. data/docs/AutomatedInvoiceRule.md +24 -0
  30. data/docs/AutomatedInvoiceRuleRequestJson.md +20 -0
  31. data/docs/AvalaraIntegration.md +14 -0
  32. data/docs/AvalaraIntegrationInput.md +12 -0
  33. data/docs/BillingApi.md +2173 -0
  34. data/docs/BillingEventEntry.md +11 -0
  35. data/docs/BillingEventInput.md +11 -0
  36. data/docs/BulkInvoiceRun.md +20 -0
  37. data/docs/BulkInvoiceRunExclusions.md +9 -0
  38. data/docs/BulkInvoiceRunInput.md +13 -0
  39. data/docs/BulkInvoiceRunItem.md +28 -0
  40. data/docs/BulkInvoiceRunSelector.md +8 -0
  41. data/docs/BulkPaymentUploadData.md +18 -0
  42. data/docs/BulkPaymentUploadResult.md +10 -0
  43. data/docs/ByteBuffer.md +15 -0
  44. data/docs/CatalogRelationship.md +13 -0
  45. data/docs/ChargeJson.md +47 -0
  46. data/docs/ChargePartialJson.md +22 -0
  47. data/docs/CompanyContactJson.md +12 -0
  48. data/docs/CreditMemoApi.md +671 -0
  49. data/docs/CreditMemoApplicationJson.md +13 -0
  50. data/docs/CreditMemoBalanceJson.md +11 -0
  51. data/docs/CreditMemoJson.md +20 -0
  52. data/docs/CreditMemoLineItemJson.md +15 -0
  53. data/docs/CreditMemoLineItemRequestJson.md +11 -0
  54. data/docs/CreditMemoPaginationResponseJson.md +10 -0
  55. data/docs/CrmAccountImportResponse.md +9 -0
  56. data/docs/CustomFieldApi.md +411 -0
  57. data/docs/CustomFieldDefault.md +9 -0
  58. data/docs/CustomFieldDefinitionCreateInput.md +15 -0
  59. data/docs/CustomFieldDefinitionJson.md +17 -0
  60. data/docs/CustomFieldDefinitionUpdateInput.md +12 -0
  61. data/docs/CustomFieldEntry.md +17 -0
  62. data/docs/CustomFieldUpdateInput.md +9 -0
  63. data/docs/CustomFieldValue.md +16 -0
  64. data/docs/CustomizationApi.md +244 -0
  65. data/docs/DataImport.md +19 -0
  66. data/docs/DefaultApi.md +225 -0
  67. data/docs/DiscountDetailJson.md +13 -0
  68. data/docs/DiscountJson.md +12 -0
  69. data/docs/DiscountsApi.md +337 -0
  70. data/docs/DocuSignIntegrationRequestJson.md +10 -0
  71. data/docs/DocuSignIntegrationResponseJson.md +11 -0
  72. data/docs/DocumentCustomContent.md +11 -0
  73. data/docs/DocumentSection.md +13 -0
  74. data/docs/DocumentTemplateJson.md +15 -0
  75. data/docs/DunningSettingJson.md +9 -0
  76. data/docs/ERPApi.md +278 -0
  77. data/docs/EmailNotifiersList.md +10 -0
  78. data/docs/EntitiesApi.md +389 -0
  79. data/docs/Entity.md +22 -0
  80. data/docs/EntityApi.md +66 -0
  81. data/docs/EntityJson.md +21 -0
  82. data/docs/EntityRef.md +10 -0
  83. data/docs/Entry.md +10 -0
  84. data/docs/ExternalArrScheduleJson.md +17 -0
  85. data/docs/FlatfileWorkbookResponse.md +8 -0
  86. data/docs/FlatfileWorkbookResponseData.md +9 -0
  87. data/docs/ImportApi.md +589 -0
  88. data/docs/InputStream.md +7 -0
  89. data/docs/Integration.md +17 -0
  90. data/docs/IntegrationsApi.md +1747 -0
  91. data/docs/InvoiceBalanceJson.md +11 -0
  92. data/docs/InvoiceItemJson.md +27 -0
  93. data/docs/InvoiceItemPreviewJson.md +13 -0
  94. data/docs/InvoiceJson.md +31 -0
  95. data/docs/InvoiceJsonPaginationResponse.md +10 -0
  96. data/docs/InvoiceNumberPrefix.md +8 -0
  97. data/docs/InvoicePreviewJson.md +12 -0
  98. data/docs/LedgerAccount.md +16 -0
  99. data/docs/LedgerAccountMapping.md +12 -0
  100. data/docs/MetricsJson.md +17 -0
  101. data/docs/MetricsReportingApi.md +228 -0
  102. data/docs/NotificationTargetAndSubscriptions.md +13 -0
  103. data/docs/NotificationsApi.md +226 -0
  104. data/docs/NumberConfig.md +12 -0
  105. data/docs/Opportunity.md +20 -0
  106. data/docs/OpportunityApi.md +178 -0
  107. data/docs/OpportunityJson.md +20 -0
  108. data/docs/OpportunityPaginationResponse.md +10 -0
  109. data/docs/OpportunityRestJson.md +19 -0
  110. data/docs/OrderJson.md +59 -0
  111. data/docs/OrderJsonPaginationResponse.md +10 -0
  112. data/docs/OrderLineItemJson.md +34 -0
  113. data/docs/OrderLineItemRequestJson.md +24 -0
  114. data/docs/OrderRequestJson.md +46 -0
  115. data/docs/OrderTerms.md +13 -0
  116. data/docs/OrdersApi.md +1429 -0
  117. data/docs/PaginatedResponse.md +10 -0
  118. data/docs/PaymentBalanceJson.md +11 -0
  119. data/docs/PaymentConfiguration.md +8 -0
  120. data/docs/PaymentJson.md +16 -0
  121. data/docs/PaymentJsonPaginationResponse.md +10 -0
  122. data/docs/PaymentTermSettingsJson.md +10 -0
  123. data/docs/PaymentsApi.md +450 -0
  124. data/docs/PlanJson.md +20 -0
  125. data/docs/PlanJsonPaginationResponse.md +10 -0
  126. data/docs/PredefinedReportDefChartJson.md +17 -0
  127. data/docs/PredefinedReportDefJson.md +12 -0
  128. data/docs/PredefinedReportDefsJson.md +8 -0
  129. data/docs/PredefinedReportJson.md +11 -0
  130. data/docs/PredefinedReportParam.md +14 -0
  131. data/docs/PredefinedReportParamObject.md +14 -0
  132. data/docs/PrepaidStats.md +22 -0
  133. data/docs/PriceTierJson.md +10 -0
  134. data/docs/ProductCatalogApi.md +1866 -0
  135. data/docs/ProductCategory.md +14 -0
  136. data/docs/ProductCategoryPaginationResponse.md +10 -0
  137. data/docs/ProductInputJson.md +15 -0
  138. data/docs/ProductJson.md +18 -0
  139. data/docs/ProductJsonPaginationResponse.md +10 -0
  140. data/docs/PurchaseOrder.md +10 -0
  141. data/docs/RateCardApi.md +56 -0
  142. data/docs/RawUsage.md +14 -0
  143. data/docs/RawUsagesData.md +8 -0
  144. data/docs/RecognitionEventCompletion.md +19 -0
  145. data/docs/RecognitionRule.md +20 -0
  146. data/docs/RecurrenceJson.md +9 -0
  147. data/docs/Refund.md +21 -0
  148. data/docs/RefundDetail.md +20 -0
  149. data/docs/RefundRequestJson.md +15 -0
  150. data/docs/RefundsApi.md +179 -0
  151. data/docs/ReportDuration.md +9 -0
  152. data/docs/ReportJobResponse.md +11 -0
  153. data/docs/ReportsApi.md +220 -0
  154. data/docs/RevenueRecognitionApi.md +495 -0
  155. data/docs/SalesRoomApi.md +62 -0
  156. data/docs/SalesforceAccount.md +13 -0
  157. data/docs/SalesforceAccountBillingAddress.md +12 -0
  158. data/docs/SalesforceClientIntegrationRequestJson.md +11 -0
  159. data/docs/SettingsApi.md +1101 -30
  160. data/docs/SettlementApplication.md +19 -0
  161. data/docs/StandaloneCreditMemoRequest.md +20 -0
  162. data/docs/SubscriptionChargeAlias.md +11 -0
  163. data/docs/SubscriptionChargeJson.md +23 -0
  164. data/docs/SubscriptionJson.md +40 -0
  165. data/docs/SubscriptionUpdateJson.md +16 -0
  166. data/docs/SubscriptionsApi.md +573 -0
  167. data/docs/TaxJarIntegration.md +14 -0
  168. data/docs/TaxJarIntegrationInput.md +9 -0
  169. data/docs/TaxRateJson.md +15 -0
  170. data/docs/TaxRatePaginationResponseJson.md +10 -0
  171. data/docs/TenantCreditMemoConfigurationJson.md +11 -0
  172. data/docs/TenantDiscountJson.md +9 -0
  173. data/docs/TenantDiscountLineItemJson.md +10 -0
  174. data/docs/TenantInvoiceConfig.md +12 -0
  175. data/docs/TenantJson.md +19 -0
  176. data/docs/TenantSettingJson.md +15 -0
  177. data/docs/TimeSeriesAmountJson.md +9 -0
  178. data/docs/TimeZone.md +11 -0
  179. data/docs/UpdateInvoiceRequest.md +13 -0
  180. data/docs/UsageAggregateOutput.md +16 -0
  181. data/docs/UsageApi.md +611 -0
  182. data/docs/UsageBatchInsertResult.md +11 -0
  183. data/docs/UserGroupJson.md +12 -0
  184. data/docs/UserGroupRequestJson.md +12 -0
  185. data/docs/UserInput.md +16 -0
  186. data/docs/UserJson.md +22 -0
  187. data/docs/UserPaginationResponseJson.md +10 -0
  188. data/docs/UsersApi.md +774 -0
  189. data/docs/VoidInvoiceRequest.md +9 -0
  190. data/docs/VoidPaymentJson.md +12 -0
  191. data/lib/subskribe_dev/api/accounting_api.rb +193 -0
  192. data/lib/subskribe_dev/api/accounts_api.rb +858 -0
  193. data/lib/subskribe_dev/api/approvals_api.rb +965 -0
  194. data/lib/subskribe_dev/api/attachments_api.rb +299 -0
  195. data/lib/subskribe_dev/api/authentication_api.rb +335 -0
  196. data/lib/subskribe_dev/api/billing_api.rb +2098 -0
  197. data/lib/subskribe_dev/api/credit_memo_api.rb +636 -0
  198. data/lib/subskribe_dev/api/custom_field_api.rb +434 -0
  199. data/lib/subskribe_dev/api/customization_api.rb +269 -0
  200. data/lib/subskribe_dev/api/default_api.rb +223 -0
  201. data/lib/subskribe_dev/api/discounts_api.rb +340 -0
  202. data/lib/subskribe_dev/api/entities_api.rb +374 -0
  203. data/lib/subskribe_dev/api/entity_api.rb +79 -0
  204. data/lib/subskribe_dev/api/erp_api.rb +278 -0
  205. data/lib/subskribe_dev/api/import_api.rb +568 -0
  206. data/lib/subskribe_dev/api/integrations_api.rb +1678 -0
  207. data/lib/subskribe_dev/api/metrics_reporting_api.rb +223 -0
  208. data/lib/subskribe_dev/api/notifications_api.rb +245 -0
  209. data/lib/subskribe_dev/api/opportunity_api.rb +177 -0
  210. data/lib/subskribe_dev/api/orders_api.rb +1381 -0
  211. data/lib/subskribe_dev/api/payments_api.rb +431 -0
  212. data/lib/subskribe_dev/api/product_catalog_api.rb +1828 -0
  213. data/lib/subskribe_dev/api/rate_card_api.rb +68 -0
  214. data/lib/subskribe_dev/api/refunds_api.rb +189 -0
  215. data/lib/subskribe_dev/api/reports_api.rb +227 -0
  216. data/lib/subskribe_dev/api/revenue_recognition_api.rb +484 -0
  217. data/lib/subskribe_dev/api/sales_room_api.rb +74 -0
  218. data/lib/subskribe_dev/api/settings_api.rb +1027 -39
  219. data/lib/subskribe_dev/api/subscriptions_api.rb +576 -0
  220. data/lib/subskribe_dev/api/usage_api.rb +604 -0
  221. data/lib/subskribe_dev/api/users_api.rb +728 -0
  222. data/lib/subskribe_dev/models/account_address.rb +265 -0
  223. data/lib/subskribe_dev/models/account_address_json.rb +229 -0
  224. data/lib/subskribe_dev/models/account_contact.rb +530 -0
  225. data/lib/subskribe_dev/models/account_contact_json.rb +274 -0
  226. data/lib/subskribe_dev/models/account_json.rb +395 -0
  227. data/lib/subskribe_dev/models/account_payment_method_json.rb +268 -0
  228. data/lib/subskribe_dev/models/account_receivable_contact_json.rb +225 -0
  229. data/lib/subskribe_dev/models/accounting_event.rb +319 -0
  230. data/lib/subskribe_dev/models/accounting_event_paginated_response.rb +204 -0
  231. data/lib/subskribe_dev/models/accounting_period.rb +356 -0
  232. data/lib/subskribe_dev/models/accounting_period_calculation.rb +229 -0
  233. data/lib/subskribe_dev/models/add_and_apply_payment_application_json.rb +344 -0
  234. data/lib/subskribe_dev/models/anrok_integration_input.rb +184 -0
  235. data/lib/subskribe_dev/models/approval_matrix_import_data_json.rb +229 -0
  236. data/lib/subskribe_dev/models/approval_matrix_import_preview.rb +226 -0
  237. data/lib/subskribe_dev/models/approval_role_json.rb +220 -0
  238. data/lib/subskribe_dev/models/approval_role_segment_change.rb +211 -0
  239. data/lib/subskribe_dev/models/approval_segment_json.rb +220 -0
  240. data/lib/subskribe_dev/models/attachment.rb +326 -0
  241. data/lib/subskribe_dev/models/attribute_reference.rb +193 -0
  242. data/lib/subskribe_dev/models/auth_saml_integration_json.rb +204 -0
  243. data/lib/subskribe_dev/models/automated_invoice_rule.rb +328 -0
  244. data/lib/subskribe_dev/models/automated_invoice_rule_request_json.rb +307 -0
  245. data/lib/subskribe_dev/models/avalara_integration.rb +238 -0
  246. data/lib/subskribe_dev/models/avalara_integration_input.rb +268 -0
  247. data/lib/subskribe_dev/models/billing_event_entry.rb +211 -0
  248. data/lib/subskribe_dev/models/billing_event_input.rb +216 -0
  249. data/lib/subskribe_dev/models/bulk_invoice_run.rb +350 -0
  250. data/lib/subskribe_dev/models/bulk_invoice_run_exclusions.rb +197 -0
  251. data/lib/subskribe_dev/models/bulk_invoice_run_input.rb +263 -0
  252. data/lib/subskribe_dev/models/bulk_invoice_run_item.rb +364 -0
  253. data/lib/subskribe_dev/models/bulk_invoice_run_selector.rb +184 -0
  254. data/lib/subskribe_dev/models/bulk_payment_upload_data.rb +274 -0
  255. data/lib/subskribe_dev/models/bulk_payment_upload_result.rb +204 -0
  256. data/lib/subskribe_dev/models/byte_buffer.rb +247 -0
  257. data/lib/subskribe_dev/models/catalog_relationship.rb +364 -0
  258. data/lib/subskribe_dev/models/charge_json.rb +631 -0
  259. data/lib/subskribe_dev/models/charge_partial_json.rb +310 -0
  260. data/lib/subskribe_dev/models/company_contact_json.rb +225 -0
  261. data/lib/subskribe_dev/models/credit_memo_application_json.rb +239 -0
  262. data/lib/subskribe_dev/models/credit_memo_balance_json.rb +211 -0
  263. data/lib/subskribe_dev/models/credit_memo_json.rb +363 -0
  264. data/lib/subskribe_dev/models/credit_memo_line_item_json.rb +252 -0
  265. data/lib/subskribe_dev/models/credit_memo_line_item_request_json.rb +211 -0
  266. data/lib/subskribe_dev/models/credit_memo_pagination_response_json.rb +204 -0
  267. data/lib/subskribe_dev/models/crm_account_import_response.rb +193 -0
  268. data/lib/subskribe_dev/models/custom_field_default.rb +195 -0
  269. data/lib/subskribe_dev/models/custom_field_definition_create_input.rb +317 -0
  270. data/lib/subskribe_dev/models/custom_field_definition_json.rb +313 -0
  271. data/lib/subskribe_dev/models/custom_field_definition_update_input.rb +256 -0
  272. data/lib/subskribe_dev/models/custom_field_entry.rb +325 -0
  273. data/lib/subskribe_dev/models/custom_field_update_input.rb +195 -0
  274. data/lib/subskribe_dev/models/custom_field_value.rb +316 -0
  275. data/lib/subskribe_dev/models/data_import.rb +355 -0
  276. data/lib/subskribe_dev/models/discount_detail_json.rb +263 -0
  277. data/lib/subskribe_dev/models/discount_json.rb +254 -0
  278. data/lib/subskribe_dev/models/docu_sign_integration_request_json.rb +236 -0
  279. data/lib/subskribe_dev/models/docu_sign_integration_response_json.rb +245 -0
  280. data/lib/subskribe_dev/models/document_custom_content.rb +211 -0
  281. data/lib/subskribe_dev/models/document_section.rb +265 -0
  282. data/lib/subskribe_dev/models/document_template_json.rb +300 -0
  283. data/lib/subskribe_dev/models/dunning_setting_json.rb +200 -0
  284. data/lib/subskribe_dev/models/email_notifiers_list.rb +208 -0
  285. data/lib/subskribe_dev/models/entity.rb +356 -0
  286. data/lib/subskribe_dev/models/entity_json.rb +347 -0
  287. data/lib/subskribe_dev/models/entity_ref.rb +202 -0
  288. data/lib/subskribe_dev/models/entry.rb +202 -0
  289. data/lib/subskribe_dev/models/external_arr_schedule_json.rb +319 -0
  290. data/lib/subskribe_dev/models/flatfile_workbook_response.rb +184 -0
  291. data/lib/subskribe_dev/models/flatfile_workbook_response_data.rb +193 -0
  292. data/lib/subskribe_dev/models/input_stream.rb +175 -0
  293. data/lib/subskribe_dev/models/integration.rb +311 -0
  294. data/lib/subskribe_dev/models/invoice_balance_json.rb +211 -0
  295. data/lib/subskribe_dev/models/invoice_item_json.rb +355 -0
  296. data/lib/subskribe_dev/models/invoice_item_preview_json.rb +229 -0
  297. data/lib/subskribe_dev/models/invoice_json.rb +439 -0
  298. data/lib/subskribe_dev/models/invoice_json_pagination_response.rb +204 -0
  299. data/lib/subskribe_dev/models/invoice_number_prefix.rb +184 -0
  300. data/lib/subskribe_dev/models/invoice_preview_json.rb +222 -0
  301. data/lib/subskribe_dev/models/ledger_account.rb +316 -0
  302. data/lib/subskribe_dev/models/ledger_account_mapping.rb +222 -0
  303. data/lib/subskribe_dev/models/metrics_json.rb +267 -0
  304. data/lib/subskribe_dev/models/notification_target_and_subscriptions.rb +265 -0
  305. data/lib/subskribe_dev/models/number_config.rb +254 -0
  306. data/lib/subskribe_dev/models/opportunity.rb +326 -0
  307. data/lib/subskribe_dev/models/opportunity_json.rb +326 -0
  308. data/lib/subskribe_dev/models/opportunity_pagination_response.rb +204 -0
  309. data/lib/subskribe_dev/models/opportunity_rest_json.rb +317 -0
  310. data/lib/subskribe_dev/models/order_json.rb +754 -0
  311. data/lib/subskribe_dev/models/order_json_pagination_response.rb +204 -0
  312. data/lib/subskribe_dev/models/order_line_item_json.rb +465 -0
  313. data/lib/subskribe_dev/models/order_line_item_request_json.rb +375 -0
  314. data/lib/subskribe_dev/models/order_request_json.rb +616 -0
  315. data/lib/subskribe_dev/models/order_terms.rb +265 -0
  316. data/lib/subskribe_dev/models/paginated_response.rb +204 -0
  317. data/lib/subskribe_dev/models/payment_balance_json.rb +211 -0
  318. data/lib/subskribe_dev/models/payment_configuration.rb +208 -0
  319. data/lib/subskribe_dev/models/payment_json.rb +300 -0
  320. data/lib/subskribe_dev/models/payment_json_pagination_response.rb +204 -0
  321. data/lib/subskribe_dev/models/payment_term_settings_json.rb +219 -0
  322. data/lib/subskribe_dev/models/plan_json.rb +339 -0
  323. data/lib/subskribe_dev/models/plan_json_pagination_response.rb +204 -0
  324. data/lib/subskribe_dev/models/predefined_report_def_chart_json.rb +265 -0
  325. data/lib/subskribe_dev/models/predefined_report_def_json.rb +222 -0
  326. data/lib/subskribe_dev/models/predefined_report_defs_json.rb +186 -0
  327. data/lib/subskribe_dev/models/predefined_report_json.rb +213 -0
  328. data/lib/subskribe_dev/models/predefined_report_param.rb +296 -0
  329. data/lib/subskribe_dev/models/predefined_report_param_object.rb +296 -0
  330. data/lib/subskribe_dev/models/prepaid_stats.rb +310 -0
  331. data/lib/subskribe_dev/models/price_tier_json.rb +212 -0
  332. data/lib/subskribe_dev/models/product_category.rb +264 -0
  333. data/lib/subskribe_dev/models/product_category_pagination_response.rb +204 -0
  334. data/lib/subskribe_dev/models/product_input_json.rb +249 -0
  335. data/lib/subskribe_dev/models/product_json.rb +276 -0
  336. data/lib/subskribe_dev/models/product_json_pagination_response.rb +204 -0
  337. data/lib/subskribe_dev/models/purchase_order.rb +226 -0
  338. data/lib/subskribe_dev/models/raw_usage.rb +247 -0
  339. data/lib/subskribe_dev/models/raw_usages_data.rb +192 -0
  340. data/lib/subskribe_dev/models/recognition_event_completion.rb +322 -0
  341. data/lib/subskribe_dev/models/recognition_rule.rb +376 -0
  342. data/lib/subskribe_dev/models/recurrence_json.rb +256 -0
  343. data/lib/subskribe_dev/models/refund.rb +301 -0
  344. data/lib/subskribe_dev/models/refund_detail.rb +322 -0
  345. data/lib/subskribe_dev/models/refund_request_json.rb +272 -0
  346. data/lib/subskribe_dev/models/report_duration.rb +193 -0
  347. data/lib/subskribe_dev/models/report_job_response.rb +245 -0
  348. data/lib/subskribe_dev/models/salesforce_account.rb +229 -0
  349. data/lib/subskribe_dev/models/salesforce_account_billing_address.rb +220 -0
  350. data/lib/subskribe_dev/models/salesforce_client_integration_request_json.rb +211 -0
  351. data/lib/subskribe_dev/models/settlement_application.rb +329 -0
  352. data/lib/subskribe_dev/models/standalone_credit_memo_request.rb +353 -0
  353. data/lib/subskribe_dev/models/subscription_charge_alias.rb +283 -0
  354. data/lib/subskribe_dev/models/subscription_charge_json.rb +362 -0
  355. data/lib/subskribe_dev/models/subscription_json.rb +583 -0
  356. data/lib/subskribe_dev/models/subscription_update_json.rb +280 -0
  357. data/lib/subskribe_dev/models/tax_jar_integration.rb +238 -0
  358. data/lib/subskribe_dev/models/tax_jar_integration_input.rb +193 -0
  359. data/lib/subskribe_dev/models/tax_rate_json.rb +286 -0
  360. data/lib/subskribe_dev/models/tax_rate_pagination_response_json.rb +204 -0
  361. data/lib/subskribe_dev/models/tenant_credit_memo_configuration_json.rb +211 -0
  362. data/lib/subskribe_dev/models/tenant_discount_json.rb +193 -0
  363. data/lib/subskribe_dev/models/tenant_discount_line_item_json.rb +202 -0
  364. data/lib/subskribe_dev/models/tenant_invoice_config.rb +254 -0
  365. data/lib/subskribe_dev/models/tenant_json.rb +283 -0
  366. data/lib/subskribe_dev/models/tenant_setting_json.rb +307 -0
  367. data/lib/subskribe_dev/models/time_series_amount_json.rb +193 -0
  368. data/lib/subskribe_dev/models/time_zone.rb +211 -0
  369. data/lib/subskribe_dev/models/update_invoice_request.rb +282 -0
  370. data/lib/subskribe_dev/models/usage_aggregate_output.rb +258 -0
  371. data/lib/subskribe_dev/models/usage_batch_insert_result.rb +213 -0
  372. data/lib/subskribe_dev/models/user_group_json.rb +224 -0
  373. data/lib/subskribe_dev/models/user_group_request_json.rb +224 -0
  374. data/lib/subskribe_dev/models/user_input.rb +304 -0
  375. data/lib/subskribe_dev/models/user_json.rb +376 -0
  376. data/lib/subskribe_dev/models/user_pagination_response_json.rb +204 -0
  377. data/lib/subskribe_dev/models/void_invoice_request.rb +203 -0
  378. data/lib/subskribe_dev/models/void_payment_json.rb +235 -0
  379. data/lib/subskribe_dev/version.rb +1 -1
  380. data/lib/subskribe_dev.rb +187 -0
  381. data/spec/api/accounting_api_spec.rb +74 -0
  382. data/spec/api/accounts_api_spec.rb +232 -0
  383. data/spec/api/approvals_api_spec.rb +260 -0
  384. data/spec/api/attachments_api_spec.rb +100 -0
  385. data/spec/api/authentication_api_spec.rb +108 -0
  386. data/spec/api/billing_api_spec.rb +516 -0
  387. data/spec/api/credit_memo_api_spec.rb +181 -0
  388. data/spec/api/custom_field_api_spec.rb +126 -0
  389. data/spec/api/customization_api_spec.rb +89 -0
  390. data/spec/api/default_api_spec.rb +81 -0
  391. data/spec/api/discounts_api_spec.rb +108 -0
  392. data/spec/api/entities_api_spec.rb +120 -0
  393. data/spec/api/entity_api_spec.rb +48 -0
  394. data/spec/api/erp_api_spec.rb +95 -0
  395. data/spec/api/import_api_spec.rb +164 -0
  396. data/spec/api/integrations_api_spec.rb +420 -0
  397. data/spec/api/metrics_reporting_api_spec.rb +84 -0
  398. data/spec/api/notifications_api_spec.rb +84 -0
  399. data/spec/api/opportunity_api_spec.rb +72 -0
  400. data/spec/api/orders_api_spec.rb +351 -0
  401. data/spec/api/payments_api_spec.rb +132 -0
  402. data/spec/api/product_catalog_api_spec.rb +448 -0
  403. data/spec/api/rate_card_api_spec.rb +46 -0
  404. data/spec/api/refunds_api_spec.rb +73 -0
  405. data/spec/api/reports_api_spec.rb +82 -0
  406. data/spec/api/revenue_recognition_api_spec.rb +144 -0
  407. data/spec/api/sales_room_api_spec.rb +47 -0
  408. data/spec/api/subscriptions_api_spec.rb +162 -0
  409. data/spec/api/usage_api_spec.rb +169 -0
  410. data/spec/api/users_api_spec.rb +203 -0
  411. data/spec/models/account_address_json_spec.rb +71 -0
  412. data/spec/models/account_address_spec.rb +95 -0
  413. data/spec/models/account_contact_json_spec.rb +101 -0
  414. data/spec/models/account_contact_spec.rb +141 -0
  415. data/spec/models/account_json_spec.rb +163 -0
  416. data/spec/models/account_payment_method_json_spec.rb +75 -0
  417. data/spec/models/account_receivable_contact_json_spec.rb +65 -0
  418. data/spec/models/accounting_event_paginated_response_spec.rb +53 -0
  419. data/spec/models/accounting_event_spec.rb +111 -0
  420. data/spec/models/accounting_period_calculation_spec.rb +71 -0
  421. data/spec/models/accounting_period_spec.rb +133 -0
  422. data/spec/models/add_and_apply_payment_application_json_spec.rb +115 -0
  423. data/spec/models/anrok_integration_input_spec.rb +41 -0
  424. data/spec/models/approval_matrix_import_data_json_spec.rb +71 -0
  425. data/spec/models/approval_matrix_import_preview_spec.rb +65 -0
  426. data/spec/models/approval_role_json_spec.rb +65 -0
  427. data/spec/models/approval_role_segment_change_spec.rb +59 -0
  428. data/spec/models/approval_segment_json_spec.rb +65 -0
  429. data/spec/models/attachment_spec.rb +103 -0
  430. data/spec/models/attribute_reference_spec.rb +47 -0
  431. data/spec/models/auth_saml_integration_json_spec.rb +53 -0
  432. data/spec/models/automated_invoice_rule_request_json_spec.rb +113 -0
  433. data/spec/models/automated_invoice_rule_spec.rb +137 -0
  434. data/spec/models/avalara_integration_input_spec.rb +65 -0
  435. data/spec/models/avalara_integration_spec.rb +77 -0
  436. data/spec/models/billing_event_entry_spec.rb +59 -0
  437. data/spec/models/billing_event_input_spec.rb +59 -0
  438. data/spec/models/bulk_invoice_run_exclusions_spec.rb +47 -0
  439. data/spec/models/bulk_invoice_run_input_spec.rb +75 -0
  440. data/spec/models/bulk_invoice_run_item_spec.rb +161 -0
  441. data/spec/models/bulk_invoice_run_selector_spec.rb +41 -0
  442. data/spec/models/bulk_invoice_run_spec.rb +125 -0
  443. data/spec/models/bulk_payment_upload_data_spec.rb +101 -0
  444. data/spec/models/bulk_payment_upload_result_spec.rb +53 -0
  445. data/spec/models/byte_buffer_spec.rb +83 -0
  446. data/spec/models/catalog_relationship_spec.rb +75 -0
  447. data/spec/models/charge_json_spec.rb +295 -0
  448. data/spec/models/charge_partial_json_spec.rb +125 -0
  449. data/spec/models/company_contact_json_spec.rb +65 -0
  450. data/spec/models/credit_memo_application_json_spec.rb +71 -0
  451. data/spec/models/credit_memo_balance_json_spec.rb +59 -0
  452. data/spec/models/credit_memo_json_spec.rb +117 -0
  453. data/spec/models/credit_memo_line_item_json_spec.rb +83 -0
  454. data/spec/models/credit_memo_line_item_request_json_spec.rb +59 -0
  455. data/spec/models/credit_memo_pagination_response_json_spec.rb +53 -0
  456. data/spec/models/crm_account_import_response_spec.rb +47 -0
  457. data/spec/models/custom_field_default_spec.rb +47 -0
  458. data/spec/models/custom_field_definition_create_input_spec.rb +95 -0
  459. data/spec/models/custom_field_definition_json_spec.rb +103 -0
  460. data/spec/models/custom_field_definition_update_input_spec.rb +69 -0
  461. data/spec/models/custom_field_entry_spec.rb +103 -0
  462. data/spec/models/custom_field_update_input_spec.rb +47 -0
  463. data/spec/models/custom_field_value_spec.rb +97 -0
  464. data/spec/models/data_import_spec.rb +123 -0
  465. data/spec/models/discount_detail_json_spec.rb +75 -0
  466. data/spec/models/discount_json_spec.rb +69 -0
  467. data/spec/models/docu_sign_integration_request_json_spec.rb +57 -0
  468. data/spec/models/docu_sign_integration_response_json_spec.rb +63 -0
  469. data/spec/models/document_custom_content_spec.rb +59 -0
  470. data/spec/models/document_section_spec.rb +75 -0
  471. data/spec/models/document_template_json_spec.rb +91 -0
  472. data/spec/models/dunning_setting_json_spec.rb +47 -0
  473. data/spec/models/email_notifiers_list_spec.rb +53 -0
  474. data/spec/models/entity_json_spec.rb +127 -0
  475. data/spec/models/entity_ref_spec.rb +53 -0
  476. data/spec/models/entity_spec.rb +133 -0
  477. data/spec/models/entry_spec.rb +53 -0
  478. data/spec/models/external_arr_schedule_json_spec.rb +99 -0
  479. data/spec/models/flatfile_workbook_response_data_spec.rb +47 -0
  480. data/spec/models/flatfile_workbook_response_spec.rb +41 -0
  481. data/spec/models/input_stream_spec.rb +35 -0
  482. data/spec/models/integration_spec.rb +103 -0
  483. data/spec/models/invoice_balance_json_spec.rb +59 -0
  484. data/spec/models/invoice_item_json_spec.rb +155 -0
  485. data/spec/models/invoice_item_preview_json_spec.rb +71 -0
  486. data/spec/models/invoice_json_pagination_response_spec.rb +53 -0
  487. data/spec/models/invoice_json_spec.rb +187 -0
  488. data/spec/models/invoice_number_prefix_spec.rb +41 -0
  489. data/spec/models/invoice_preview_json_spec.rb +65 -0
  490. data/spec/models/ledger_account_mapping_spec.rb +65 -0
  491. data/spec/models/ledger_account_spec.rb +93 -0
  492. data/spec/models/metrics_json_spec.rb +95 -0
  493. data/spec/models/notification_target_and_subscriptions_spec.rb +79 -0
  494. data/spec/models/number_config_spec.rb +69 -0
  495. data/spec/models/opportunity_json_spec.rb +117 -0
  496. data/spec/models/opportunity_pagination_response_spec.rb +53 -0
  497. data/spec/models/opportunity_rest_json_spec.rb +111 -0
  498. data/spec/models/opportunity_spec.rb +117 -0
  499. data/spec/models/order_json_pagination_response_spec.rb +53 -0
  500. data/spec/models/order_json_spec.rb +367 -0
  501. data/spec/models/order_line_item_json_spec.rb +201 -0
  502. data/spec/models/order_line_item_request_json_spec.rb +141 -0
  503. data/spec/models/order_request_json_spec.rb +285 -0
  504. data/spec/models/order_terms_spec.rb +75 -0
  505. data/spec/models/paginated_response_spec.rb +53 -0
  506. data/spec/models/payment_balance_json_spec.rb +59 -0
  507. data/spec/models/payment_configuration_spec.rb +45 -0
  508. data/spec/models/payment_json_pagination_response_spec.rb +53 -0
  509. data/spec/models/payment_json_spec.rb +93 -0
  510. data/spec/models/payment_term_settings_json_spec.rb +53 -0
  511. data/spec/models/plan_json_pagination_response_spec.rb +53 -0
  512. data/spec/models/plan_json_spec.rb +117 -0
  513. data/spec/models/predefined_report_def_chart_json_spec.rb +95 -0
  514. data/spec/models/predefined_report_def_json_spec.rb +65 -0
  515. data/spec/models/predefined_report_defs_json_spec.rb +41 -0
  516. data/spec/models/predefined_report_json_spec.rb +59 -0
  517. data/spec/models/predefined_report_param_object_spec.rb +85 -0
  518. data/spec/models/predefined_report_param_spec.rb +85 -0
  519. data/spec/models/prepaid_stats_spec.rb +125 -0
  520. data/spec/models/price_tier_json_spec.rb +53 -0
  521. data/spec/models/product_category_pagination_response_spec.rb +53 -0
  522. data/spec/models/product_category_spec.rb +77 -0
  523. data/spec/models/product_input_json_spec.rb +83 -0
  524. data/spec/models/product_json_pagination_response_spec.rb +53 -0
  525. data/spec/models/product_json_spec.rb +101 -0
  526. data/spec/models/purchase_order_spec.rb +53 -0
  527. data/spec/models/raw_usage_spec.rb +77 -0
  528. data/spec/models/raw_usages_data_spec.rb +41 -0
  529. data/spec/models/recognition_event_completion_spec.rb +111 -0
  530. data/spec/models/recognition_rule_spec.rb +133 -0
  531. data/spec/models/recurrence_json_spec.rb +51 -0
  532. data/spec/models/refund_detail_spec.rb +113 -0
  533. data/spec/models/refund_request_json_spec.rb +83 -0
  534. data/spec/models/refund_spec.rb +119 -0
  535. data/spec/models/report_duration_spec.rb +47 -0
  536. data/spec/models/report_job_response_spec.rb +63 -0
  537. data/spec/models/salesforce_account_billing_address_spec.rb +65 -0
  538. data/spec/models/salesforce_account_spec.rb +71 -0
  539. data/spec/models/salesforce_client_integration_request_json_spec.rb +59 -0
  540. data/spec/models/settlement_application_spec.rb +115 -0
  541. data/spec/models/standalone_credit_memo_request_spec.rb +117 -0
  542. data/spec/models/subscription_charge_alias_spec.rb +59 -0
  543. data/spec/models/subscription_charge_json_spec.rb +131 -0
  544. data/spec/models/subscription_json_spec.rb +241 -0
  545. data/spec/models/subscription_update_json_spec.rb +89 -0
  546. data/spec/models/tax_jar_integration_input_spec.rb +47 -0
  547. data/spec/models/tax_jar_integration_spec.rb +77 -0
  548. data/spec/models/tax_rate_json_spec.rb +87 -0
  549. data/spec/models/tax_rate_pagination_response_json_spec.rb +53 -0
  550. data/spec/models/tenant_credit_memo_configuration_json_spec.rb +59 -0
  551. data/spec/models/tenant_discount_json_spec.rb +47 -0
  552. data/spec/models/tenant_discount_line_item_json_spec.rb +53 -0
  553. data/spec/models/tenant_invoice_config_spec.rb +69 -0
  554. data/spec/models/tenant_json_spec.rb +107 -0
  555. data/spec/models/tenant_setting_json_spec.rb +95 -0
  556. data/spec/models/time_series_amount_json_spec.rb +47 -0
  557. data/spec/models/time_zone_spec.rb +59 -0
  558. data/spec/models/update_invoice_request_spec.rb +71 -0
  559. data/spec/models/usage_aggregate_output_spec.rb +89 -0
  560. data/spec/models/usage_batch_insert_result_spec.rb +59 -0
  561. data/spec/models/user_group_json_spec.rb +65 -0
  562. data/spec/models/user_group_request_json_spec.rb +65 -0
  563. data/spec/models/user_input_spec.rb +97 -0
  564. data/spec/models/user_json_spec.rb +137 -0
  565. data/spec/models/user_pagination_response_json_spec.rb +53 -0
  566. data/spec/models/void_invoice_request_spec.rb +47 -0
  567. data/spec/models/void_payment_json_spec.rb +65 -0
  568. metadata +749 -1
@@ -0,0 +1,1866 @@
1
+ # SubskribeDevClient::ProductCatalogApi
2
+
3
+ All URIs are relative to *https://api.dev2.subskribe.net*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**activate_plan**](ProductCatalogApi.md#activate_plan) | **PUT** /plans/{planId}/activate | Activate a plan
8
+ [**add_charge**](ProductCatalogApi.md#add_charge) | **POST** /plans/{planId}/charges | Add charge to plan
9
+ [**add_percent_of_plan_relationship**](ProductCatalogApi.md#add_percent_of_plan_relationship) | **POST** /plans/relationships/percentOf | Create percent of relationship
10
+ [**add_plan**](ProductCatalogApi.md#add_plan) | **POST** /plans | Create a plan
11
+ [**add_product**](ProductCatalogApi.md#add_product) | **POST** /products | Create a product
12
+ [**add_product_category**](ProductCatalogApi.md#add_product_category) | **POST** /product/categories | Create a product category
13
+ [**deactivate_plan**](ProductCatalogApi.md#deactivate_plan) | **PUT** /plans/{planId}/revertToDraft | Revert a plan to draft
14
+ [**delete_catalog_relationship_by_id**](ProductCatalogApi.md#delete_catalog_relationship_by_id) | **DELETE** /plans/relationships/{relationshipId} | Delete a catalog relationship
15
+ [**delete_charge**](ProductCatalogApi.md#delete_charge) | **DELETE** /plans/{planId}/charges/{chargeId} | Delete a charge
16
+ [**delete_plan**](ProductCatalogApi.md#delete_plan) | **DELETE** /plans/{planId} | Delete a plan
17
+ [**delete_product**](ProductCatalogApi.md#delete_product) | **DELETE** /products/{id} | Delete a product
18
+ [**delete_product_category**](ProductCatalogApi.md#delete_product_category) | **DELETE** /product/categories/{id} | Delete a product category
19
+ [**deprecate_plan**](ProductCatalogApi.md#deprecate_plan) | **PUT** /plans/{planId}/deprecate | Deprecate a plan
20
+ [**duplicate_plan**](ProductCatalogApi.md#duplicate_plan) | **POST** /plans/{planId}/duplicate | Duplicate a plan
21
+ [**export_product_catalog**](ProductCatalogApi.md#export_product_catalog) | **GET** /products/export | Export product catalog
22
+ [**get_catalog_relationship_by_id**](ProductCatalogApi.md#get_catalog_relationship_by_id) | **GET** /plans/relationships/{relationshipId} | Get relationship details
23
+ [**get_charge**](ProductCatalogApi.md#get_charge) | **GET** /plans/{planId}/charges/{chargeId} | Get charge details
24
+ [**get_charge_ledger_accounts**](ProductCatalogApi.md#get_charge_ledger_accounts) | **GET** /plans/{planId}/charges/{chargeId}/ledgerAccounts | Get ledger accounts
25
+ [**get_percent_of_relationships**](ProductCatalogApi.md#get_percent_of_relationships) | **GET** /plans/relationships/percentOf | Get percent of relationships for a plan
26
+ [**get_plan**](ProductCatalogApi.md#get_plan) | **GET** /plans/{planId} | Get plan details
27
+ [**get_plans**](ProductCatalogApi.md#get_plans) | **GET** /plans | Get plans
28
+ [**get_product**](ProductCatalogApi.md#get_product) | **GET** /products/{id} | Get product details.
29
+ [**get_product_categories**](ProductCatalogApi.md#get_product_categories) | **GET** /product/categories | Get product Categories
30
+ [**get_product_category**](ProductCatalogApi.md#get_product_category) | **GET** /product/categories/{id} | Get product category details
31
+ [**get_products**](ProductCatalogApi.md#get_products) | **GET** /products | Get products
32
+ [**get_target_plans_for_percent_of_plan_id**](ProductCatalogApi.md#get_target_plans_for_percent_of_plan_id) | **GET** /plans/relationships/percentOf/{planId} | Get percent of target plans
33
+ [**map_ledger_accounts_to_charge**](ProductCatalogApi.md#map_ledger_accounts_to_charge) | **PUT** /plans/{planId}/charges/{chargeId}/ledgerAccounts | Map ledger accounts
34
+ [**patch_charge**](ProductCatalogApi.md#patch_charge) | **PUT** /plans/{planId}/charges/{chargeId}/partial | Update non-financial charge details
35
+ [**reactivate_plan**](ProductCatalogApi.md#reactivate_plan) | **PUT** /plans/{planId}/reactivate | Reactivate a plan
36
+ [**update_charge**](ProductCatalogApi.md#update_charge) | **PUT** /plans/{planId}/charges/{chargeId} | Update charge details
37
+ [**update_plan**](ProductCatalogApi.md#update_plan) | **PUT** /plans/{planId} | Update plan
38
+ [**update_product**](ProductCatalogApi.md#update_product) | **PUT** /products/{id} | Update product details
39
+ [**update_product_category**](ProductCatalogApi.md#update_product_category) | **PUT** /product/categories/{id} | Update product category details
40
+
41
+
42
+ # **activate_plan**
43
+ > PlanJson activate_plan(plan_id)
44
+
45
+ Activate a plan
46
+
47
+ Marks a plan as active
48
+
49
+ ### Example
50
+ ```ruby
51
+ # load the gem
52
+ require 'subskribe_dev'
53
+ # setup authorization
54
+ SubskribeDevClient.configure do |config|
55
+ # Configure API key authorization: ApiKeyAuth
56
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
57
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
58
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
59
+ end
60
+
61
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
62
+
63
+ plan_id = 'plan_id_example' # String | id of the plan
64
+
65
+
66
+ begin
67
+ #Activate a plan
68
+ result = api_instance.activate_plan(plan_id)
69
+ p result
70
+ rescue SubskribeDevClient::ApiError => e
71
+ puts "Exception when calling ProductCatalogApi->activate_plan: #{e}"
72
+ end
73
+ ```
74
+
75
+ ### Parameters
76
+
77
+ Name | Type | Description | Notes
78
+ ------------- | ------------- | ------------- | -------------
79
+ **plan_id** | **String**| id of the plan |
80
+
81
+ ### Return type
82
+
83
+ [**PlanJson**](PlanJson.md)
84
+
85
+ ### Authorization
86
+
87
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
88
+
89
+ ### HTTP request headers
90
+
91
+ - **Content-Type**: Not defined
92
+ - **Accept**: application/json
93
+
94
+
95
+
96
+ # **add_charge**
97
+ > ChargeJson add_charge(plan_id, body)
98
+
99
+ Add charge to plan
100
+
101
+ Adds a charge to the specified plan. On success the id of the new charge is returned
102
+
103
+ ### Example
104
+ ```ruby
105
+ # load the gem
106
+ require 'subskribe_dev'
107
+ # setup authorization
108
+ SubskribeDevClient.configure do |config|
109
+ # Configure API key authorization: ApiKeyAuth
110
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
111
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
112
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
113
+ end
114
+
115
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
116
+
117
+ plan_id = 'plan_id_example' # String | id of the plan
118
+
119
+ body = SubskribeDevClient::ChargeJson.new # ChargeJson | json representing the charge details
120
+
121
+
122
+ begin
123
+ #Add charge to plan
124
+ result = api_instance.add_charge(plan_id, body)
125
+ p result
126
+ rescue SubskribeDevClient::ApiError => e
127
+ puts "Exception when calling ProductCatalogApi->add_charge: #{e}"
128
+ end
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+ Name | Type | Description | Notes
134
+ ------------- | ------------- | ------------- | -------------
135
+ **plan_id** | **String**| id of the plan |
136
+ **body** | [**ChargeJson**](ChargeJson.md)| json representing the charge details |
137
+
138
+ ### Return type
139
+
140
+ [**ChargeJson**](ChargeJson.md)
141
+
142
+ ### Authorization
143
+
144
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: application/json
149
+ - **Accept**: application/json
150
+
151
+
152
+
153
+ # **add_percent_of_plan_relationship**
154
+ > add_percent_of_plan_relationship(body)
155
+
156
+ Create percent of relationship
157
+
158
+ Creates a percent of relationship between a charge and plan. On success the id of the relationship is returned.
159
+
160
+ ### Example
161
+ ```ruby
162
+ # load the gem
163
+ require 'subskribe_dev'
164
+ # setup authorization
165
+ SubskribeDevClient.configure do |config|
166
+ # Configure API key authorization: ApiKeyAuth
167
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
168
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
169
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
170
+ end
171
+
172
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
173
+
174
+ body = SubskribeDevClient::CatalogRelationship.new # CatalogRelationship | json representing the relationship
175
+
176
+
177
+ begin
178
+ #Create percent of relationship
179
+ api_instance.add_percent_of_plan_relationship(body)
180
+ rescue SubskribeDevClient::ApiError => e
181
+ puts "Exception when calling ProductCatalogApi->add_percent_of_plan_relationship: #{e}"
182
+ end
183
+ ```
184
+
185
+ ### Parameters
186
+
187
+ Name | Type | Description | Notes
188
+ ------------- | ------------- | ------------- | -------------
189
+ **body** | [**CatalogRelationship**](CatalogRelationship.md)| json representing the relationship |
190
+
191
+ ### Return type
192
+
193
+ nil (empty response body)
194
+
195
+ ### Authorization
196
+
197
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
198
+
199
+ ### HTTP request headers
200
+
201
+ - **Content-Type**: Not defined
202
+ - **Accept**: application/json
203
+
204
+
205
+
206
+ # **add_plan**
207
+ > PlanJson add_plan(body)
208
+
209
+ Create a plan
210
+
211
+ Creates a plan. On success the id of the new plan is returned.
212
+
213
+ ### Example
214
+ ```ruby
215
+ # load the gem
216
+ require 'subskribe_dev'
217
+ # setup authorization
218
+ SubskribeDevClient.configure do |config|
219
+ # Configure API key authorization: ApiKeyAuth
220
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
221
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
222
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
223
+ end
224
+
225
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
226
+
227
+ body = SubskribeDevClient::PlanJson.new # PlanJson | json of the plan details
228
+
229
+
230
+ begin
231
+ #Create a plan
232
+ result = api_instance.add_plan(body)
233
+ p result
234
+ rescue SubskribeDevClient::ApiError => e
235
+ puts "Exception when calling ProductCatalogApi->add_plan: #{e}"
236
+ end
237
+ ```
238
+
239
+ ### Parameters
240
+
241
+ Name | Type | Description | Notes
242
+ ------------- | ------------- | ------------- | -------------
243
+ **body** | [**PlanJson**](PlanJson.md)| json of the plan details |
244
+
245
+ ### Return type
246
+
247
+ [**PlanJson**](PlanJson.md)
248
+
249
+ ### Authorization
250
+
251
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
252
+
253
+ ### HTTP request headers
254
+
255
+ - **Content-Type**: application/json
256
+ - **Accept**: application/json
257
+
258
+
259
+
260
+ # **add_product**
261
+ > ProductJson add_product(body)
262
+
263
+ Create a product
264
+
265
+ Creates a product for your tenant. On success the id of the product is returned.
266
+
267
+ ### Example
268
+ ```ruby
269
+ # load the gem
270
+ require 'subskribe_dev'
271
+ # setup authorization
272
+ SubskribeDevClient.configure do |config|
273
+ # Configure API key authorization: ApiKeyAuth
274
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
275
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
276
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
277
+ end
278
+
279
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
280
+
281
+ body = SubskribeDevClient::ProductInputJson.new # ProductInputJson | product details json
282
+
283
+
284
+ begin
285
+ #Create a product
286
+ result = api_instance.add_product(body)
287
+ p result
288
+ rescue SubskribeDevClient::ApiError => e
289
+ puts "Exception when calling ProductCatalogApi->add_product: #{e}"
290
+ end
291
+ ```
292
+
293
+ ### Parameters
294
+
295
+ Name | Type | Description | Notes
296
+ ------------- | ------------- | ------------- | -------------
297
+ **body** | [**ProductInputJson**](ProductInputJson.md)| product details json |
298
+
299
+ ### Return type
300
+
301
+ [**ProductJson**](ProductJson.md)
302
+
303
+ ### Authorization
304
+
305
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
306
+
307
+ ### HTTP request headers
308
+
309
+ - **Content-Type**: application/json
310
+ - **Accept**: application/json
311
+
312
+
313
+
314
+ # **add_product_category**
315
+ > ProductCategory add_product_category(body)
316
+
317
+ Create a product category
318
+
319
+ Creates a product category. On success the id of the category is returned.
320
+
321
+ ### Example
322
+ ```ruby
323
+ # load the gem
324
+ require 'subskribe_dev'
325
+ # setup authorization
326
+ SubskribeDevClient.configure do |config|
327
+ # Configure API key authorization: ApiKeyAuth
328
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
329
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
330
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
331
+ end
332
+
333
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
334
+
335
+ body = SubskribeDevClient::ProductCategory.new # ProductCategory | product category details json
336
+
337
+
338
+ begin
339
+ #Create a product category
340
+ result = api_instance.add_product_category(body)
341
+ p result
342
+ rescue SubskribeDevClient::ApiError => e
343
+ puts "Exception when calling ProductCatalogApi->add_product_category: #{e}"
344
+ end
345
+ ```
346
+
347
+ ### Parameters
348
+
349
+ Name | Type | Description | Notes
350
+ ------------- | ------------- | ------------- | -------------
351
+ **body** | [**ProductCategory**](ProductCategory.md)| product category details json |
352
+
353
+ ### Return type
354
+
355
+ [**ProductCategory**](ProductCategory.md)
356
+
357
+ ### Authorization
358
+
359
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
360
+
361
+ ### HTTP request headers
362
+
363
+ - **Content-Type**: application/json
364
+ - **Accept**: application/json
365
+
366
+
367
+
368
+ # **deactivate_plan**
369
+ > PlanJson deactivate_plan(plan_id)
370
+
371
+ Revert a plan to draft
372
+
373
+ Marks a plan as draft
374
+
375
+ ### Example
376
+ ```ruby
377
+ # load the gem
378
+ require 'subskribe_dev'
379
+ # setup authorization
380
+ SubskribeDevClient.configure do |config|
381
+ # Configure API key authorization: ApiKeyAuth
382
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
383
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
384
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
385
+ end
386
+
387
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
388
+
389
+ plan_id = 'plan_id_example' # String | id of the plan
390
+
391
+
392
+ begin
393
+ #Revert a plan to draft
394
+ result = api_instance.deactivate_plan(plan_id)
395
+ p result
396
+ rescue SubskribeDevClient::ApiError => e
397
+ puts "Exception when calling ProductCatalogApi->deactivate_plan: #{e}"
398
+ end
399
+ ```
400
+
401
+ ### Parameters
402
+
403
+ Name | Type | Description | Notes
404
+ ------------- | ------------- | ------------- | -------------
405
+ **plan_id** | **String**| id of the plan |
406
+
407
+ ### Return type
408
+
409
+ [**PlanJson**](PlanJson.md)
410
+
411
+ ### Authorization
412
+
413
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
414
+
415
+ ### HTTP request headers
416
+
417
+ - **Content-Type**: Not defined
418
+ - **Accept**: application/json
419
+
420
+
421
+
422
+ # **delete_catalog_relationship_by_id**
423
+ > CatalogRelationship delete_catalog_relationship_by_id(relationship_id)
424
+
425
+ Delete a catalog relationship
426
+
427
+ Deletes the specified catalog relationship
428
+
429
+ ### Example
430
+ ```ruby
431
+ # load the gem
432
+ require 'subskribe_dev'
433
+ # setup authorization
434
+ SubskribeDevClient.configure do |config|
435
+ # Configure API key authorization: ApiKeyAuth
436
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
437
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
438
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
439
+ end
440
+
441
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
442
+
443
+ relationship_id = 'relationship_id_example' # String | id of the relationship
444
+
445
+
446
+ begin
447
+ #Delete a catalog relationship
448
+ result = api_instance.delete_catalog_relationship_by_id(relationship_id)
449
+ p result
450
+ rescue SubskribeDevClient::ApiError => e
451
+ puts "Exception when calling ProductCatalogApi->delete_catalog_relationship_by_id: #{e}"
452
+ end
453
+ ```
454
+
455
+ ### Parameters
456
+
457
+ Name | Type | Description | Notes
458
+ ------------- | ------------- | ------------- | -------------
459
+ **relationship_id** | **String**| id of the relationship |
460
+
461
+ ### Return type
462
+
463
+ [**CatalogRelationship**](CatalogRelationship.md)
464
+
465
+ ### Authorization
466
+
467
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
468
+
469
+ ### HTTP request headers
470
+
471
+ - **Content-Type**: Not defined
472
+ - **Accept**: application/json
473
+
474
+
475
+
476
+ # **delete_charge**
477
+ > ChargeJson delete_charge(plan_id, charge_id)
478
+
479
+ Delete a charge
480
+
481
+ Removes a charge from a plan.
482
+
483
+ ### Example
484
+ ```ruby
485
+ # load the gem
486
+ require 'subskribe_dev'
487
+ # setup authorization
488
+ SubskribeDevClient.configure do |config|
489
+ # Configure API key authorization: ApiKeyAuth
490
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
491
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
492
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
493
+ end
494
+
495
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
496
+
497
+ plan_id = 'plan_id_example' # String | id of the plan
498
+
499
+ charge_id = 'charge_id_example' # String | id of the charge
500
+
501
+
502
+ begin
503
+ #Delete a charge
504
+ result = api_instance.delete_charge(plan_id, charge_id)
505
+ p result
506
+ rescue SubskribeDevClient::ApiError => e
507
+ puts "Exception when calling ProductCatalogApi->delete_charge: #{e}"
508
+ end
509
+ ```
510
+
511
+ ### Parameters
512
+
513
+ Name | Type | Description | Notes
514
+ ------------- | ------------- | ------------- | -------------
515
+ **plan_id** | **String**| id of the plan |
516
+ **charge_id** | **String**| id of the charge |
517
+
518
+ ### Return type
519
+
520
+ [**ChargeJson**](ChargeJson.md)
521
+
522
+ ### Authorization
523
+
524
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
525
+
526
+ ### HTTP request headers
527
+
528
+ - **Content-Type**: application/json
529
+ - **Accept**: application/json
530
+
531
+
532
+
533
+ # **delete_plan**
534
+ > PlanJson delete_plan(plan_id)
535
+
536
+ Delete a plan
537
+
538
+ Deletes a plan. Note you can't delete a plan that's in use.
539
+
540
+ ### Example
541
+ ```ruby
542
+ # load the gem
543
+ require 'subskribe_dev'
544
+ # setup authorization
545
+ SubskribeDevClient.configure do |config|
546
+ # Configure API key authorization: ApiKeyAuth
547
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
548
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
549
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
550
+ end
551
+
552
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
553
+
554
+ plan_id = 'plan_id_example' # String | id of the plan
555
+
556
+
557
+ begin
558
+ #Delete a plan
559
+ result = api_instance.delete_plan(plan_id)
560
+ p result
561
+ rescue SubskribeDevClient::ApiError => e
562
+ puts "Exception when calling ProductCatalogApi->delete_plan: #{e}"
563
+ end
564
+ ```
565
+
566
+ ### Parameters
567
+
568
+ Name | Type | Description | Notes
569
+ ------------- | ------------- | ------------- | -------------
570
+ **plan_id** | **String**| id of the plan |
571
+
572
+ ### Return type
573
+
574
+ [**PlanJson**](PlanJson.md)
575
+
576
+ ### Authorization
577
+
578
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
579
+
580
+ ### HTTP request headers
581
+
582
+ - **Content-Type**: Not defined
583
+ - **Accept**: application/json
584
+
585
+
586
+
587
+ # **delete_product**
588
+ > ProductJson delete_product(id)
589
+
590
+ Delete a product
591
+
592
+ Delete the specified product.
593
+
594
+ ### Example
595
+ ```ruby
596
+ # load the gem
597
+ require 'subskribe_dev'
598
+ # setup authorization
599
+ SubskribeDevClient.configure do |config|
600
+ # Configure API key authorization: ApiKeyAuth
601
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
602
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
603
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
604
+ end
605
+
606
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
607
+
608
+ id = 'id_example' # String | id of the product
609
+
610
+
611
+ begin
612
+ #Delete a product
613
+ result = api_instance.delete_product(id)
614
+ p result
615
+ rescue SubskribeDevClient::ApiError => e
616
+ puts "Exception when calling ProductCatalogApi->delete_product: #{e}"
617
+ end
618
+ ```
619
+
620
+ ### Parameters
621
+
622
+ Name | Type | Description | Notes
623
+ ------------- | ------------- | ------------- | -------------
624
+ **id** | **String**| id of the product |
625
+
626
+ ### Return type
627
+
628
+ [**ProductJson**](ProductJson.md)
629
+
630
+ ### Authorization
631
+
632
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
633
+
634
+ ### HTTP request headers
635
+
636
+ - **Content-Type**: Not defined
637
+ - **Accept**: application/json
638
+
639
+
640
+
641
+ # **delete_product_category**
642
+ > ProductCategory delete_product_category(id)
643
+
644
+ Delete a product category
645
+
646
+ Deletes the specified product category. Note that a product category can't be delete once it's in use.
647
+
648
+ ### Example
649
+ ```ruby
650
+ # load the gem
651
+ require 'subskribe_dev'
652
+ # setup authorization
653
+ SubskribeDevClient.configure do |config|
654
+ # Configure API key authorization: ApiKeyAuth
655
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
656
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
657
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
658
+ end
659
+
660
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
661
+
662
+ id = 'id_example' # String | id of the category
663
+
664
+
665
+ begin
666
+ #Delete a product category
667
+ result = api_instance.delete_product_category(id)
668
+ p result
669
+ rescue SubskribeDevClient::ApiError => e
670
+ puts "Exception when calling ProductCatalogApi->delete_product_category: #{e}"
671
+ end
672
+ ```
673
+
674
+ ### Parameters
675
+
676
+ Name | Type | Description | Notes
677
+ ------------- | ------------- | ------------- | -------------
678
+ **id** | **String**| id of the category |
679
+
680
+ ### Return type
681
+
682
+ [**ProductCategory**](ProductCategory.md)
683
+
684
+ ### Authorization
685
+
686
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
687
+
688
+ ### HTTP request headers
689
+
690
+ - **Content-Type**: Not defined
691
+ - **Accept**: application/json
692
+
693
+
694
+
695
+ # **deprecate_plan**
696
+ > PlanJson deprecate_plan(plan_id)
697
+
698
+ Deprecate a plan
699
+
700
+ Marks a plan as deprecated. Once deprecated a plan may not be attached to new orders.
701
+
702
+ ### Example
703
+ ```ruby
704
+ # load the gem
705
+ require 'subskribe_dev'
706
+ # setup authorization
707
+ SubskribeDevClient.configure do |config|
708
+ # Configure API key authorization: ApiKeyAuth
709
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
710
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
711
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
712
+ end
713
+
714
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
715
+
716
+ plan_id = 'plan_id_example' # String | id of the plan
717
+
718
+
719
+ begin
720
+ #Deprecate a plan
721
+ result = api_instance.deprecate_plan(plan_id)
722
+ p result
723
+ rescue SubskribeDevClient::ApiError => e
724
+ puts "Exception when calling ProductCatalogApi->deprecate_plan: #{e}"
725
+ end
726
+ ```
727
+
728
+ ### Parameters
729
+
730
+ Name | Type | Description | Notes
731
+ ------------- | ------------- | ------------- | -------------
732
+ **plan_id** | **String**| id of the plan |
733
+
734
+ ### Return type
735
+
736
+ [**PlanJson**](PlanJson.md)
737
+
738
+ ### Authorization
739
+
740
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
741
+
742
+ ### HTTP request headers
743
+
744
+ - **Content-Type**: Not defined
745
+ - **Accept**: application/json
746
+
747
+
748
+
749
+ # **duplicate_plan**
750
+ > PlanJson duplicate_plan(plan_id)
751
+
752
+ Duplicate a plan
753
+
754
+ Duplicates the specified plan. On success the new plan id is returned.
755
+
756
+ ### Example
757
+ ```ruby
758
+ # load the gem
759
+ require 'subskribe_dev'
760
+ # setup authorization
761
+ SubskribeDevClient.configure do |config|
762
+ # Configure API key authorization: ApiKeyAuth
763
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
764
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
765
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
766
+ end
767
+
768
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
769
+
770
+ plan_id = 'plan_id_example' # String | id of the plan to duplicate
771
+
772
+
773
+ begin
774
+ #Duplicate a plan
775
+ result = api_instance.duplicate_plan(plan_id)
776
+ p result
777
+ rescue SubskribeDevClient::ApiError => e
778
+ puts "Exception when calling ProductCatalogApi->duplicate_plan: #{e}"
779
+ end
780
+ ```
781
+
782
+ ### Parameters
783
+
784
+ Name | Type | Description | Notes
785
+ ------------- | ------------- | ------------- | -------------
786
+ **plan_id** | **String**| id of the plan to duplicate |
787
+
788
+ ### Return type
789
+
790
+ [**PlanJson**](PlanJson.md)
791
+
792
+ ### Authorization
793
+
794
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
795
+
796
+ ### HTTP request headers
797
+
798
+ - **Content-Type**: Not defined
799
+ - **Accept**: application/json
800
+
801
+
802
+
803
+ # **export_product_catalog**
804
+ > export_product_catalog
805
+
806
+ Export product catalog
807
+
808
+ Export the product catalog in CSV format.
809
+
810
+ ### Example
811
+ ```ruby
812
+ # load the gem
813
+ require 'subskribe_dev'
814
+ # setup authorization
815
+ SubskribeDevClient.configure do |config|
816
+ # Configure API key authorization: ApiKeyAuth
817
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
818
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
819
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
820
+ end
821
+
822
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
823
+
824
+ begin
825
+ #Export product catalog
826
+ api_instance.export_product_catalog
827
+ rescue SubskribeDevClient::ApiError => e
828
+ puts "Exception when calling ProductCatalogApi->export_product_catalog: #{e}"
829
+ end
830
+ ```
831
+
832
+ ### Parameters
833
+ This endpoint does not need any parameter.
834
+
835
+ ### Return type
836
+
837
+ nil (empty response body)
838
+
839
+ ### Authorization
840
+
841
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
842
+
843
+ ### HTTP request headers
844
+
845
+ - **Content-Type**: Not defined
846
+ - **Accept**: application/json
847
+
848
+
849
+
850
+ # **get_catalog_relationship_by_id**
851
+ > CatalogRelationship get_catalog_relationship_by_id(relationship_id)
852
+
853
+ Get relationship details
854
+
855
+ Gets the details of the specified catalog relationship.
856
+
857
+ ### Example
858
+ ```ruby
859
+ # load the gem
860
+ require 'subskribe_dev'
861
+ # setup authorization
862
+ SubskribeDevClient.configure do |config|
863
+ # Configure API key authorization: ApiKeyAuth
864
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
865
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
866
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
867
+ end
868
+
869
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
870
+
871
+ relationship_id = 'relationship_id_example' # String | id of the relationship
872
+
873
+
874
+ begin
875
+ #Get relationship details
876
+ result = api_instance.get_catalog_relationship_by_id(relationship_id)
877
+ p result
878
+ rescue SubskribeDevClient::ApiError => e
879
+ puts "Exception when calling ProductCatalogApi->get_catalog_relationship_by_id: #{e}"
880
+ end
881
+ ```
882
+
883
+ ### Parameters
884
+
885
+ Name | Type | Description | Notes
886
+ ------------- | ------------- | ------------- | -------------
887
+ **relationship_id** | **String**| id of the relationship |
888
+
889
+ ### Return type
890
+
891
+ [**CatalogRelationship**](CatalogRelationship.md)
892
+
893
+ ### Authorization
894
+
895
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
896
+
897
+ ### HTTP request headers
898
+
899
+ - **Content-Type**: Not defined
900
+ - **Accept**: application/json
901
+
902
+
903
+
904
+ # **get_charge**
905
+ > ChargeJson get_charge(plan_id, charge_id)
906
+
907
+ Get charge details
908
+
909
+ Gets the details of the specified charge on the specified plan.
910
+
911
+ ### Example
912
+ ```ruby
913
+ # load the gem
914
+ require 'subskribe_dev'
915
+ # setup authorization
916
+ SubskribeDevClient.configure do |config|
917
+ # Configure API key authorization: ApiKeyAuth
918
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
919
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
920
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
921
+ end
922
+
923
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
924
+
925
+ plan_id = 'plan_id_example' # String | id of the plan
926
+
927
+ charge_id = 'charge_id_example' # String | id of the charge
928
+
929
+
930
+ begin
931
+ #Get charge details
932
+ result = api_instance.get_charge(plan_id, charge_id)
933
+ p result
934
+ rescue SubskribeDevClient::ApiError => e
935
+ puts "Exception when calling ProductCatalogApi->get_charge: #{e}"
936
+ end
937
+ ```
938
+
939
+ ### Parameters
940
+
941
+ Name | Type | Description | Notes
942
+ ------------- | ------------- | ------------- | -------------
943
+ **plan_id** | **String**| id of the plan |
944
+ **charge_id** | **String**| id of the charge |
945
+
946
+ ### Return type
947
+
948
+ [**ChargeJson**](ChargeJson.md)
949
+
950
+ ### Authorization
951
+
952
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
953
+
954
+ ### HTTP request headers
955
+
956
+ - **Content-Type**: Not defined
957
+ - **Accept**: application/json
958
+
959
+
960
+
961
+ # **get_charge_ledger_accounts**
962
+ > Array<LedgerAccount> get_charge_ledger_accounts(plan_id, charge_id)
963
+
964
+ Get ledger accounts
965
+
966
+ Gets the ledger accounts mapped to the specified charge
967
+
968
+ ### Example
969
+ ```ruby
970
+ # load the gem
971
+ require 'subskribe_dev'
972
+ # setup authorization
973
+ SubskribeDevClient.configure do |config|
974
+ # Configure API key authorization: ApiKeyAuth
975
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
976
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
977
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
978
+ end
979
+
980
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
981
+
982
+ plan_id = 'plan_id_example' # String | id of the plan
983
+
984
+ charge_id = 'charge_id_example' # String | id of the charge
985
+
986
+
987
+ begin
988
+ #Get ledger accounts
989
+ result = api_instance.get_charge_ledger_accounts(plan_id, charge_id)
990
+ p result
991
+ rescue SubskribeDevClient::ApiError => e
992
+ puts "Exception when calling ProductCatalogApi->get_charge_ledger_accounts: #{e}"
993
+ end
994
+ ```
995
+
996
+ ### Parameters
997
+
998
+ Name | Type | Description | Notes
999
+ ------------- | ------------- | ------------- | -------------
1000
+ **plan_id** | **String**| id of the plan |
1001
+ **charge_id** | **String**| id of the charge |
1002
+
1003
+ ### Return type
1004
+
1005
+ [**Array<LedgerAccount>**](LedgerAccount.md)
1006
+
1007
+ ### Authorization
1008
+
1009
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1010
+
1011
+ ### HTTP request headers
1012
+
1013
+ - **Content-Type**: Not defined
1014
+ - **Accept**: application/json
1015
+
1016
+
1017
+
1018
+ # **get_percent_of_relationships**
1019
+ > Array<CatalogRelationship> get_percent_of_relationships(from_plan_id)
1020
+
1021
+ Get percent of relationships for a plan
1022
+
1023
+ Gets the percent of relationships for the specified plan.
1024
+
1025
+ ### Example
1026
+ ```ruby
1027
+ # load the gem
1028
+ require 'subskribe_dev'
1029
+ # setup authorization
1030
+ SubskribeDevClient.configure do |config|
1031
+ # Configure API key authorization: ApiKeyAuth
1032
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1033
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1034
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1035
+ end
1036
+
1037
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1038
+
1039
+ from_plan_id = 'from_plan_id_example' # String | id of the plan
1040
+
1041
+
1042
+ begin
1043
+ #Get percent of relationships for a plan
1044
+ result = api_instance.get_percent_of_relationships(from_plan_id)
1045
+ p result
1046
+ rescue SubskribeDevClient::ApiError => e
1047
+ puts "Exception when calling ProductCatalogApi->get_percent_of_relationships: #{e}"
1048
+ end
1049
+ ```
1050
+
1051
+ ### Parameters
1052
+
1053
+ Name | Type | Description | Notes
1054
+ ------------- | ------------- | ------------- | -------------
1055
+ **from_plan_id** | **String**| id of the plan |
1056
+
1057
+ ### Return type
1058
+
1059
+ [**Array<CatalogRelationship>**](CatalogRelationship.md)
1060
+
1061
+ ### Authorization
1062
+
1063
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1064
+
1065
+ ### HTTP request headers
1066
+
1067
+ - **Content-Type**: Not defined
1068
+ - **Accept**: application/json
1069
+
1070
+
1071
+
1072
+ # **get_plan**
1073
+ > PlanJson get_plan(plan_id)
1074
+
1075
+ Get plan details
1076
+
1077
+ Returns the details of the specified plan.
1078
+
1079
+ ### Example
1080
+ ```ruby
1081
+ # load the gem
1082
+ require 'subskribe_dev'
1083
+ # setup authorization
1084
+ SubskribeDevClient.configure do |config|
1085
+ # Configure API key authorization: ApiKeyAuth
1086
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1087
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1088
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1089
+ end
1090
+
1091
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1092
+
1093
+ plan_id = 'plan_id_example' # String | id of the plan
1094
+
1095
+
1096
+ begin
1097
+ #Get plan details
1098
+ result = api_instance.get_plan(plan_id)
1099
+ p result
1100
+ rescue SubskribeDevClient::ApiError => e
1101
+ puts "Exception when calling ProductCatalogApi->get_plan: #{e}"
1102
+ end
1103
+ ```
1104
+
1105
+ ### Parameters
1106
+
1107
+ Name | Type | Description | Notes
1108
+ ------------- | ------------- | ------------- | -------------
1109
+ **plan_id** | **String**| id of the plan |
1110
+
1111
+ ### Return type
1112
+
1113
+ [**PlanJson**](PlanJson.md)
1114
+
1115
+ ### Authorization
1116
+
1117
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1118
+
1119
+ ### HTTP request headers
1120
+
1121
+ - **Content-Type**: Not defined
1122
+ - **Accept**: application/json
1123
+
1124
+
1125
+
1126
+ # **get_plans**
1127
+ > PlanJsonPaginationResponse get_plans(opts)
1128
+
1129
+ Get plans
1130
+
1131
+ Returns all plans for a product. The result is paginated. To retrieve all results pass the cursor returned from a call to the next call until all results are returned.
1132
+
1133
+ ### Example
1134
+ ```ruby
1135
+ # load the gem
1136
+ require 'subskribe_dev'
1137
+ # setup authorization
1138
+ SubskribeDevClient.configure do |config|
1139
+ # Configure API key authorization: ApiKeyAuth
1140
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1141
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1142
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1143
+ end
1144
+
1145
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1146
+
1147
+ opts = {
1148
+ product_id: 'product_id_example', # String | id of the product
1149
+ status: 'status_example', # String | filter by plan status
1150
+ cursor: 'cursor_example', # String | cursor from the last call
1151
+ limit: 56 # Integer | number of results per page
1152
+ }
1153
+
1154
+ begin
1155
+ #Get plans
1156
+ result = api_instance.get_plans(opts)
1157
+ p result
1158
+ rescue SubskribeDevClient::ApiError => e
1159
+ puts "Exception when calling ProductCatalogApi->get_plans: #{e}"
1160
+ end
1161
+ ```
1162
+
1163
+ ### Parameters
1164
+
1165
+ Name | Type | Description | Notes
1166
+ ------------- | ------------- | ------------- | -------------
1167
+ **product_id** | **String**| id of the product | [optional]
1168
+ **status** | **String**| filter by plan status | [optional]
1169
+ **cursor** | [**String**](.md)| cursor from the last call | [optional]
1170
+ **limit** | **Integer**| number of results per page | [optional]
1171
+
1172
+ ### Return type
1173
+
1174
+ [**PlanJsonPaginationResponse**](PlanJsonPaginationResponse.md)
1175
+
1176
+ ### Authorization
1177
+
1178
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1179
+
1180
+ ### HTTP request headers
1181
+
1182
+ - **Content-Type**: Not defined
1183
+ - **Accept**: application/json
1184
+
1185
+
1186
+
1187
+ # **get_product**
1188
+ > ProductJson get_product(id)
1189
+
1190
+ Get product details.
1191
+
1192
+ Gets the details of the specified product.
1193
+
1194
+ ### Example
1195
+ ```ruby
1196
+ # load the gem
1197
+ require 'subskribe_dev'
1198
+ # setup authorization
1199
+ SubskribeDevClient.configure do |config|
1200
+ # Configure API key authorization: ApiKeyAuth
1201
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1202
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1203
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1204
+ end
1205
+
1206
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1207
+
1208
+ id = 'id_example' # String | id of the product
1209
+
1210
+
1211
+ begin
1212
+ #Get product details.
1213
+ result = api_instance.get_product(id)
1214
+ p result
1215
+ rescue SubskribeDevClient::ApiError => e
1216
+ puts "Exception when calling ProductCatalogApi->get_product: #{e}"
1217
+ end
1218
+ ```
1219
+
1220
+ ### Parameters
1221
+
1222
+ Name | Type | Description | Notes
1223
+ ------------- | ------------- | ------------- | -------------
1224
+ **id** | **String**| id of the product |
1225
+
1226
+ ### Return type
1227
+
1228
+ [**ProductJson**](ProductJson.md)
1229
+
1230
+ ### Authorization
1231
+
1232
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1233
+
1234
+ ### HTTP request headers
1235
+
1236
+ - **Content-Type**: Not defined
1237
+ - **Accept**: application/json
1238
+
1239
+
1240
+
1241
+ # **get_product_categories**
1242
+ > ProductCategoryPaginationResponse get_product_categories(opts)
1243
+
1244
+ Get product Categories
1245
+
1246
+ Gets all product categories for your tenant. The results are paginated. To fetch all results pass the cursor returned from a call to the subsequent calls until all results are returned. Initially the cursor should not be specified.
1247
+
1248
+ ### Example
1249
+ ```ruby
1250
+ # load the gem
1251
+ require 'subskribe_dev'
1252
+ # setup authorization
1253
+ SubskribeDevClient.configure do |config|
1254
+ # Configure API key authorization: ApiKeyAuth
1255
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1256
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1257
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1258
+ end
1259
+
1260
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1261
+
1262
+ opts = {
1263
+ cursor: 'cursor_example', # String | cursor from prior call
1264
+ limit: 56 # Integer | number of results per page
1265
+ }
1266
+
1267
+ begin
1268
+ #Get product Categories
1269
+ result = api_instance.get_product_categories(opts)
1270
+ p result
1271
+ rescue SubskribeDevClient::ApiError => e
1272
+ puts "Exception when calling ProductCatalogApi->get_product_categories: #{e}"
1273
+ end
1274
+ ```
1275
+
1276
+ ### Parameters
1277
+
1278
+ Name | Type | Description | Notes
1279
+ ------------- | ------------- | ------------- | -------------
1280
+ **cursor** | [**String**](.md)| cursor from prior call | [optional]
1281
+ **limit** | **Integer**| number of results per page | [optional]
1282
+
1283
+ ### Return type
1284
+
1285
+ [**ProductCategoryPaginationResponse**](ProductCategoryPaginationResponse.md)
1286
+
1287
+ ### Authorization
1288
+
1289
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1290
+
1291
+ ### HTTP request headers
1292
+
1293
+ - **Content-Type**: Not defined
1294
+ - **Accept**: application/json
1295
+
1296
+
1297
+
1298
+ # **get_product_category**
1299
+ > ProductCategory get_product_category(id)
1300
+
1301
+ Get product category details
1302
+
1303
+ Gets the details of the specified product category
1304
+
1305
+ ### Example
1306
+ ```ruby
1307
+ # load the gem
1308
+ require 'subskribe_dev'
1309
+ # setup authorization
1310
+ SubskribeDevClient.configure do |config|
1311
+ # Configure API key authorization: ApiKeyAuth
1312
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1313
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1314
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1315
+ end
1316
+
1317
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1318
+
1319
+ id = 'id_example' # String | id of the category
1320
+
1321
+
1322
+ begin
1323
+ #Get product category details
1324
+ result = api_instance.get_product_category(id)
1325
+ p result
1326
+ rescue SubskribeDevClient::ApiError => e
1327
+ puts "Exception when calling ProductCatalogApi->get_product_category: #{e}"
1328
+ end
1329
+ ```
1330
+
1331
+ ### Parameters
1332
+
1333
+ Name | Type | Description | Notes
1334
+ ------------- | ------------- | ------------- | -------------
1335
+ **id** | **String**| id of the category |
1336
+
1337
+ ### Return type
1338
+
1339
+ [**ProductCategory**](ProductCategory.md)
1340
+
1341
+ ### Authorization
1342
+
1343
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1344
+
1345
+ ### HTTP request headers
1346
+
1347
+ - **Content-Type**: Not defined
1348
+ - **Accept**: application/json
1349
+
1350
+
1351
+
1352
+ # **get_products**
1353
+ > ProductJsonPaginationResponse get_products(opts)
1354
+
1355
+ Get products
1356
+
1357
+ Returns all products for your tenant. The results on paginated. To fetch them all pass the cursor returned from a call to the subsequent call until all results are fetched. Initially the cursor should not be specified.
1358
+
1359
+ ### Example
1360
+ ```ruby
1361
+ # load the gem
1362
+ require 'subskribe_dev'
1363
+ # setup authorization
1364
+ SubskribeDevClient.configure do |config|
1365
+ # Configure API key authorization: ApiKeyAuth
1366
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1367
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1368
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1369
+ end
1370
+
1371
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1372
+
1373
+ opts = {
1374
+ cursor: 'cursor_example', # String | cursor received from prior call
1375
+ limit: 56 # Integer | number of results per page
1376
+ }
1377
+
1378
+ begin
1379
+ #Get products
1380
+ result = api_instance.get_products(opts)
1381
+ p result
1382
+ rescue SubskribeDevClient::ApiError => e
1383
+ puts "Exception when calling ProductCatalogApi->get_products: #{e}"
1384
+ end
1385
+ ```
1386
+
1387
+ ### Parameters
1388
+
1389
+ Name | Type | Description | Notes
1390
+ ------------- | ------------- | ------------- | -------------
1391
+ **cursor** | [**String**](.md)| cursor received from prior call | [optional]
1392
+ **limit** | **Integer**| number of results per page | [optional]
1393
+
1394
+ ### Return type
1395
+
1396
+ [**ProductJsonPaginationResponse**](ProductJsonPaginationResponse.md)
1397
+
1398
+ ### Authorization
1399
+
1400
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1401
+
1402
+ ### HTTP request headers
1403
+
1404
+ - **Content-Type**: Not defined
1405
+ - **Accept**: application/json
1406
+
1407
+
1408
+
1409
+ # **get_target_plans_for_percent_of_plan_id**
1410
+ > CatalogRelationship get_target_plans_for_percent_of_plan_id(plan_id)
1411
+
1412
+ Get percent of target plans
1413
+
1414
+ Gets the list of percent of charge target plans.
1415
+
1416
+ ### Example
1417
+ ```ruby
1418
+ # load the gem
1419
+ require 'subskribe_dev'
1420
+ # setup authorization
1421
+ SubskribeDevClient.configure do |config|
1422
+ # Configure API key authorization: ApiKeyAuth
1423
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1424
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1425
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1426
+ end
1427
+
1428
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1429
+
1430
+ plan_id = 'plan_id_example' # String |
1431
+
1432
+
1433
+ begin
1434
+ #Get percent of target plans
1435
+ result = api_instance.get_target_plans_for_percent_of_plan_id(plan_id)
1436
+ p result
1437
+ rescue SubskribeDevClient::ApiError => e
1438
+ puts "Exception when calling ProductCatalogApi->get_target_plans_for_percent_of_plan_id: #{e}"
1439
+ end
1440
+ ```
1441
+
1442
+ ### Parameters
1443
+
1444
+ Name | Type | Description | Notes
1445
+ ------------- | ------------- | ------------- | -------------
1446
+ **plan_id** | **String**| |
1447
+
1448
+ ### Return type
1449
+
1450
+ [**CatalogRelationship**](CatalogRelationship.md)
1451
+
1452
+ ### Authorization
1453
+
1454
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1455
+
1456
+ ### HTTP request headers
1457
+
1458
+ - **Content-Type**: Not defined
1459
+ - **Accept**: application/json
1460
+
1461
+
1462
+
1463
+ # **map_ledger_accounts_to_charge**
1464
+ > Array<LedgerAccount> map_ledger_accounts_to_charge(plan_id, charge_id, body)
1465
+
1466
+ Map ledger accounts
1467
+
1468
+ Map ledger accounts to the specified charge for the specified plan.
1469
+
1470
+ ### Example
1471
+ ```ruby
1472
+ # load the gem
1473
+ require 'subskribe_dev'
1474
+ # setup authorization
1475
+ SubskribeDevClient.configure do |config|
1476
+ # Configure API key authorization: ApiKeyAuth
1477
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1478
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1479
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1480
+ end
1481
+
1482
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1483
+
1484
+ plan_id = 'plan_id_example' # String | id of the plan
1485
+
1486
+ charge_id = 'charge_id_example' # String | id of the charge
1487
+
1488
+ body = [SubskribeDevClient::Array<String>.new] # Array<String> | list of the ledger account ids
1489
+
1490
+
1491
+ begin
1492
+ #Map ledger accounts
1493
+ result = api_instance.map_ledger_accounts_to_charge(plan_id, charge_id, body)
1494
+ p result
1495
+ rescue SubskribeDevClient::ApiError => e
1496
+ puts "Exception when calling ProductCatalogApi->map_ledger_accounts_to_charge: #{e}"
1497
+ end
1498
+ ```
1499
+
1500
+ ### Parameters
1501
+
1502
+ Name | Type | Description | Notes
1503
+ ------------- | ------------- | ------------- | -------------
1504
+ **plan_id** | **String**| id of the plan |
1505
+ **charge_id** | **String**| id of the charge |
1506
+ **body** | **Array&lt;String&gt;**| list of the ledger account ids |
1507
+
1508
+ ### Return type
1509
+
1510
+ [**Array&lt;LedgerAccount&gt;**](LedgerAccount.md)
1511
+
1512
+ ### Authorization
1513
+
1514
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1515
+
1516
+ ### HTTP request headers
1517
+
1518
+ - **Content-Type**: application/json
1519
+ - **Accept**: application/json
1520
+
1521
+
1522
+
1523
+ # **patch_charge**
1524
+ > ChargeJson patch_charge(plan_id, charge_id, opts)
1525
+
1526
+ Update non-financial charge details
1527
+
1528
+ Updates certain details of the specified charge which won't impact its financial treatment
1529
+
1530
+ ### Example
1531
+ ```ruby
1532
+ # load the gem
1533
+ require 'subskribe_dev'
1534
+ # setup authorization
1535
+ SubskribeDevClient.configure do |config|
1536
+ # Configure API key authorization: ApiKeyAuth
1537
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1538
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1539
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1540
+ end
1541
+
1542
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1543
+
1544
+ plan_id = 'plan_id_example' # String | id of the plan
1545
+
1546
+ charge_id = 'charge_id_example' # String | id of the charge
1547
+
1548
+ opts = {
1549
+ body: SubskribeDevClient::ChargePartialJson.new # ChargePartialJson |
1550
+ }
1551
+
1552
+ begin
1553
+ #Update non-financial charge details
1554
+ result = api_instance.patch_charge(plan_id, charge_id, opts)
1555
+ p result
1556
+ rescue SubskribeDevClient::ApiError => e
1557
+ puts "Exception when calling ProductCatalogApi->patch_charge: #{e}"
1558
+ end
1559
+ ```
1560
+
1561
+ ### Parameters
1562
+
1563
+ Name | Type | Description | Notes
1564
+ ------------- | ------------- | ------------- | -------------
1565
+ **plan_id** | **String**| id of the plan |
1566
+ **charge_id** | **String**| id of the charge |
1567
+ **body** | [**ChargePartialJson**](ChargePartialJson.md)| | [optional]
1568
+
1569
+ ### Return type
1570
+
1571
+ [**ChargeJson**](ChargeJson.md)
1572
+
1573
+ ### Authorization
1574
+
1575
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1576
+
1577
+ ### HTTP request headers
1578
+
1579
+ - **Content-Type**: application/json
1580
+ - **Accept**: application/json
1581
+
1582
+
1583
+
1584
+ # **reactivate_plan**
1585
+ > PlanJson reactivate_plan(plan_id)
1586
+
1587
+ Reactivate a plan
1588
+
1589
+ Reactivates a deprecated plan.
1590
+
1591
+ ### Example
1592
+ ```ruby
1593
+ # load the gem
1594
+ require 'subskribe_dev'
1595
+ # setup authorization
1596
+ SubskribeDevClient.configure do |config|
1597
+ # Configure API key authorization: ApiKeyAuth
1598
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1599
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1600
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1601
+ end
1602
+
1603
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1604
+
1605
+ plan_id = 'plan_id_example' # String | id of the plan
1606
+
1607
+
1608
+ begin
1609
+ #Reactivate a plan
1610
+ result = api_instance.reactivate_plan(plan_id)
1611
+ p result
1612
+ rescue SubskribeDevClient::ApiError => e
1613
+ puts "Exception when calling ProductCatalogApi->reactivate_plan: #{e}"
1614
+ end
1615
+ ```
1616
+
1617
+ ### Parameters
1618
+
1619
+ Name | Type | Description | Notes
1620
+ ------------- | ------------- | ------------- | -------------
1621
+ **plan_id** | **String**| id of the plan |
1622
+
1623
+ ### Return type
1624
+
1625
+ [**PlanJson**](PlanJson.md)
1626
+
1627
+ ### Authorization
1628
+
1629
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1630
+
1631
+ ### HTTP request headers
1632
+
1633
+ - **Content-Type**: Not defined
1634
+ - **Accept**: application/json
1635
+
1636
+
1637
+
1638
+ # **update_charge**
1639
+ > update_charge(plan_id, charge_id, opts)
1640
+
1641
+ Update charge details
1642
+
1643
+ Updates the details of the specified charge on the specified plan.
1644
+
1645
+ ### Example
1646
+ ```ruby
1647
+ # load the gem
1648
+ require 'subskribe_dev'
1649
+ # setup authorization
1650
+ SubskribeDevClient.configure do |config|
1651
+ # Configure API key authorization: ApiKeyAuth
1652
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1653
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1654
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1655
+ end
1656
+
1657
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1658
+
1659
+ plan_id = 'plan_id_example' # String | id of the plan associated with the charge
1660
+
1661
+ charge_id = 'charge_id_example' # String | id of the charge
1662
+
1663
+ opts = {
1664
+ body: SubskribeDevClient::ChargeJson.new # ChargeJson |
1665
+ }
1666
+
1667
+ begin
1668
+ #Update charge details
1669
+ api_instance.update_charge(plan_id, charge_id, opts)
1670
+ rescue SubskribeDevClient::ApiError => e
1671
+ puts "Exception when calling ProductCatalogApi->update_charge: #{e}"
1672
+ end
1673
+ ```
1674
+
1675
+ ### Parameters
1676
+
1677
+ Name | Type | Description | Notes
1678
+ ------------- | ------------- | ------------- | -------------
1679
+ **plan_id** | **String**| id of the plan associated with the charge |
1680
+ **charge_id** | **String**| id of the charge |
1681
+ **body** | [**ChargeJson**](ChargeJson.md)| | [optional]
1682
+
1683
+ ### Return type
1684
+
1685
+ nil (empty response body)
1686
+
1687
+ ### Authorization
1688
+
1689
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1690
+
1691
+ ### HTTP request headers
1692
+
1693
+ - **Content-Type**: application/json
1694
+ - **Accept**: application/json
1695
+
1696
+
1697
+
1698
+ # **update_plan**
1699
+ > PlanJson update_plan(plan_id, body)
1700
+
1701
+ Update plan
1702
+
1703
+ Updates the details of the specified plan. Note you can't update the details of a plan once it's in use.
1704
+
1705
+ ### Example
1706
+ ```ruby
1707
+ # load the gem
1708
+ require 'subskribe_dev'
1709
+ # setup authorization
1710
+ SubskribeDevClient.configure do |config|
1711
+ # Configure API key authorization: ApiKeyAuth
1712
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1713
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1714
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1715
+ end
1716
+
1717
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1718
+
1719
+ plan_id = 'plan_id_example' # String | id of the plan
1720
+
1721
+ body = SubskribeDevClient::PlanJson.new # PlanJson | json of the plan details
1722
+
1723
+
1724
+ begin
1725
+ #Update plan
1726
+ result = api_instance.update_plan(plan_id, body)
1727
+ p result
1728
+ rescue SubskribeDevClient::ApiError => e
1729
+ puts "Exception when calling ProductCatalogApi->update_plan: #{e}"
1730
+ end
1731
+ ```
1732
+
1733
+ ### Parameters
1734
+
1735
+ Name | Type | Description | Notes
1736
+ ------------- | ------------- | ------------- | -------------
1737
+ **plan_id** | **String**| id of the plan |
1738
+ **body** | [**PlanJson**](PlanJson.md)| json of the plan details |
1739
+
1740
+ ### Return type
1741
+
1742
+ [**PlanJson**](PlanJson.md)
1743
+
1744
+ ### Authorization
1745
+
1746
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1747
+
1748
+ ### HTTP request headers
1749
+
1750
+ - **Content-Type**: Not defined
1751
+ - **Accept**: application/json
1752
+
1753
+
1754
+
1755
+ # **update_product**
1756
+ > update_product(id, body)
1757
+
1758
+ Update product details
1759
+
1760
+ Updates the details of the specified product
1761
+
1762
+ ### Example
1763
+ ```ruby
1764
+ # load the gem
1765
+ require 'subskribe_dev'
1766
+ # setup authorization
1767
+ SubskribeDevClient.configure do |config|
1768
+ # Configure API key authorization: ApiKeyAuth
1769
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1770
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1771
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1772
+ end
1773
+
1774
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1775
+
1776
+ id = 'id_example' # String | id of the product
1777
+
1778
+ body = SubskribeDevClient::ProductInputJson.new # ProductInputJson | product details json
1779
+
1780
+
1781
+ begin
1782
+ #Update product details
1783
+ api_instance.update_product(id, body)
1784
+ rescue SubskribeDevClient::ApiError => e
1785
+ puts "Exception when calling ProductCatalogApi->update_product: #{e}"
1786
+ end
1787
+ ```
1788
+
1789
+ ### Parameters
1790
+
1791
+ Name | Type | Description | Notes
1792
+ ------------- | ------------- | ------------- | -------------
1793
+ **id** | **String**| id of the product |
1794
+ **body** | [**ProductInputJson**](ProductInputJson.md)| product details json |
1795
+
1796
+ ### Return type
1797
+
1798
+ nil (empty response body)
1799
+
1800
+ ### Authorization
1801
+
1802
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1803
+
1804
+ ### HTTP request headers
1805
+
1806
+ - **Content-Type**: application/json
1807
+ - **Accept**: application/json
1808
+
1809
+
1810
+
1811
+ # **update_product_category**
1812
+ > update_product_category(id, body)
1813
+
1814
+ Update product category details
1815
+
1816
+ Updates the details of a product category
1817
+
1818
+ ### Example
1819
+ ```ruby
1820
+ # load the gem
1821
+ require 'subskribe_dev'
1822
+ # setup authorization
1823
+ SubskribeDevClient.configure do |config|
1824
+ # Configure API key authorization: ApiKeyAuth
1825
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1826
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1827
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1828
+ end
1829
+
1830
+ api_instance = SubskribeDevClient::ProductCatalogApi.new
1831
+
1832
+ id = 'id_example' # String | id of the category
1833
+
1834
+ body = SubskribeDevClient::ProductCategory.new # ProductCategory | product category details json
1835
+
1836
+
1837
+ begin
1838
+ #Update product category details
1839
+ api_instance.update_product_category(id, body)
1840
+ rescue SubskribeDevClient::ApiError => e
1841
+ puts "Exception when calling ProductCatalogApi->update_product_category: #{e}"
1842
+ end
1843
+ ```
1844
+
1845
+ ### Parameters
1846
+
1847
+ Name | Type | Description | Notes
1848
+ ------------- | ------------- | ------------- | -------------
1849
+ **id** | **String**| id of the category |
1850
+ **body** | [**ProductCategory**](ProductCategory.md)| product category details json |
1851
+
1852
+ ### Return type
1853
+
1854
+ nil (empty response body)
1855
+
1856
+ ### Authorization
1857
+
1858
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1859
+
1860
+ ### HTTP request headers
1861
+
1862
+ - **Content-Type**: application/json
1863
+ - **Accept**: application/json
1864
+
1865
+
1866
+