cbox_billing 0.1.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 (736) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +215 -0
  3. data/cbox_billing.gemspec +26 -0
  4. data/lib/cbox_billing/api/accounting_api.rb +1893 -0
  5. data/lib/cbox_billing/api/affiliates_api.rb +2009 -0
  6. data/lib/cbox_billing/api/agreements_api.rb +552 -0
  7. data/lib/cbox_billing/api/bank_reconciliation_api.rb +505 -0
  8. data/lib/cbox_billing/api/catalog_api.rb +361 -0
  9. data/lib/cbox_billing/api/checkout_portal_api.rb +696 -0
  10. data/lib/cbox_billing/api/coupons_api.rb +538 -0
  11. data/lib/cbox_billing/api/credit_notes_api.rb +403 -0
  12. data/lib/cbox_billing/api/disputes_api.rb +540 -0
  13. data/lib/cbox_billing/api/dunning_api.rb +902 -0
  14. data/lib/cbox_billing/api/enforcement_api.rb +746 -0
  15. data/lib/cbox_billing/api/environments_api.rb +343 -0
  16. data/lib/cbox_billing/api/invoices_api.rb +1662 -0
  17. data/lib/cbox_billing/api/licence_data_api.rb +619 -0
  18. data/lib/cbox_billing/api/licenses_api.rb +293 -0
  19. data/lib/cbox_billing/api/management_api.rb +253 -0
  20. data/lib/cbox_billing/api/meters_api.rb +538 -0
  21. data/lib/cbox_billing/api/orders_and_delivery_api.rb +1745 -0
  22. data/lib/cbox_billing/api/organizations_api.rb +1110 -0
  23. data/lib/cbox_billing/api/payment_gateways_api.rb +227 -0
  24. data/lib/cbox_billing/api/payment_intents_api.rb +376 -0
  25. data/lib/cbox_billing/api/payment_methods_api.rb +96 -0
  26. data/lib/cbox_billing/api/plans_api.rb +654 -0
  27. data/lib/cbox_billing/api/product_access_api.rb +2033 -0
  28. data/lib/cbox_billing/api/quotes_api.rb +1062 -0
  29. data/lib/cbox_billing/api/seats_api.rb +938 -0
  30. data/lib/cbox_billing/api/service_connections_api.rb +245 -0
  31. data/lib/cbox_billing/api/subscriptions_api.rb +4697 -0
  32. data/lib/cbox_billing/api/tax_returns_api.rb +453 -0
  33. data/lib/cbox_billing/api/test_mode_api.rb +96 -0
  34. data/lib/cbox_billing/api/usage_api.rb +1116 -0
  35. data/lib/cbox_billing/api/webhook_endpoints_api.rb +835 -0
  36. data/lib/cbox_billing/api_client.rb +441 -0
  37. data/lib/cbox_billing/api_error.rb +58 -0
  38. data/lib/cbox_billing/api_model_base.rb +88 -0
  39. data/lib/cbox_billing/client.rb +49 -0
  40. data/lib/cbox_billing/configuration.rb +408 -0
  41. data/lib/cbox_billing/enforcement/client.rb +665 -0
  42. data/lib/cbox_billing/enforcement/errors.rb +48 -0
  43. data/lib/cbox_billing/enforcement/stores.rb +129 -0
  44. data/lib/cbox_billing/enforcement/transport.rb +79 -0
  45. data/lib/cbox_billing/enforcement/types.rb +63 -0
  46. data/lib/cbox_billing/enforcement.rb +9 -0
  47. data/lib/cbox_billing/errors.rb +110 -0
  48. data/lib/cbox_billing/idempotency.rb +16 -0
  49. data/lib/cbox_billing/models/accept_agreement201_response.rb +177 -0
  50. data/lib/cbox_billing/models/accept_agreement_request.rb +294 -0
  51. data/lib/cbox_billing/models/accept_agreement_request_user.rb +202 -0
  52. data/lib/cbox_billing/models/access_balance.rb +276 -0
  53. data/lib/cbox_billing/models/access_balance_request.rb +309 -0
  54. data/lib/cbox_billing/models/access_batch.rb +321 -0
  55. data/lib/cbox_billing/models/access_batch_filters.rb +183 -0
  56. data/lib/cbox_billing/models/access_cancel_request.rb +207 -0
  57. data/lib/cbox_billing/models/access_commit_request.rb +207 -0
  58. data/lib/cbox_billing/models/access_entry.rb +383 -0
  59. data/lib/cbox_billing/models/access_grant.rb +287 -0
  60. data/lib/cbox_billing/models/access_grant_request.rb +310 -0
  61. data/lib/cbox_billing/models/access_invitation.rb +404 -0
  62. data/lib/cbox_billing/models/access_invite_request.rb +337 -0
  63. data/lib/cbox_billing/models/access_join_request.rb +369 -0
  64. data/lib/cbox_billing/models/access_program.rb +511 -0
  65. data/lib/cbox_billing/models/access_program_input.rb +433 -0
  66. data/lib/cbox_billing/models/access_redeem_request.rb +335 -0
  67. data/lib/cbox_billing/models/access_redemption.rb +394 -0
  68. data/lib/cbox_billing/models/access_report.rb +250 -0
  69. data/lib/cbox_billing/models/access_report_balances.rb +252 -0
  70. data/lib/cbox_billing/models/access_report_batches.rb +252 -0
  71. data/lib/cbox_billing/models/access_report_entries.rb +252 -0
  72. data/lib/cbox_billing/models/access_report_grants.rb +252 -0
  73. data/lib/cbox_billing/models/access_report_invitations.rb +252 -0
  74. data/lib/cbox_billing/models/access_report_redemptions.rb +252 -0
  75. data/lib/cbox_billing/models/access_restore_grant_request.rb +207 -0
  76. data/lib/cbox_billing/models/access_retry_delivery_request.rb +207 -0
  77. data/lib/cbox_billing/models/access_revoke_grant_request.rb +207 -0
  78. data/lib/cbox_billing/models/access_revoke_invitation200_response.rb +195 -0
  79. data/lib/cbox_billing/models/access_revoke_invitation_request.rb +207 -0
  80. data/lib/cbox_billing/models/access_select200_response.rb +356 -0
  81. data/lib/cbox_billing/models/access_select_request.rb +323 -0
  82. data/lib/cbox_billing/models/account_credit.rb +258 -0
  83. data/lib/cbox_billing/models/account_credit_movements_inner.rb +255 -0
  84. data/lib/cbox_billing/models/account_entitlement.rb +240 -0
  85. data/lib/cbox_billing/models/accounting_connection.rb +336 -0
  86. data/lib/cbox_billing/models/accounting_connection_company.rb +170 -0
  87. data/lib/cbox_billing/models/accounting_contact_conflict.rb +308 -0
  88. data/lib/cbox_billing/models/accounting_contact_import.rb +397 -0
  89. data/lib/cbox_billing/models/accounting_contact_import_counts.rb +308 -0
  90. data/lib/cbox_billing/models/accounting_contact_import_row.rb +363 -0
  91. data/lib/cbox_billing/models/accounting_contact_import_row_candidates_inner.rb +227 -0
  92. data/lib/cbox_billing/models/accounting_contact_sync.rb +351 -0
  93. data/lib/cbox_billing/models/accounting_contact_sync_failure.rb +266 -0
  94. data/lib/cbox_billing/models/accounting_customer_document.rb +318 -0
  95. data/lib/cbox_billing/models/accounting_customer_link.rb +354 -0
  96. data/lib/cbox_billing/models/accounting_customer_link_company.rb +180 -0
  97. data/lib/cbox_billing/models/accounting_customer_link_contact.rb +292 -0
  98. data/lib/cbox_billing/models/accounting_customer_link_contact_sync.rb +291 -0
  99. data/lib/cbox_billing/models/accounting_customer_link_contact_sync_conflicts_inner.rb +237 -0
  100. data/lib/cbox_billing/models/accounting_customer_link_several_contacts_inner.rb +227 -0
  101. data/lib/cbox_billing/models/accounting_customer_link_shared_with_inner.rb +203 -0
  102. data/lib/cbox_billing/models/accounting_invoice.rb +532 -0
  103. data/lib/cbox_billing/models/accounting_invoice_contact.rb +189 -0
  104. data/lib/cbox_billing/models/accounting_sync.rb +356 -0
  105. data/lib/cbox_billing/models/accounting_vendor_contact.rb +307 -0
  106. data/lib/cbox_billing/models/accounting_vendor_link.rb +216 -0
  107. data/lib/cbox_billing/models/activation_bundle.rb +293 -0
  108. data/lib/cbox_billing/models/add_dispute_evidence_file201_response.rb +177 -0
  109. data/lib/cbox_billing/models/add_dispute_evidence_file422_response.rb +104 -0
  110. data/lib/cbox_billing/models/add_dispute_evidence_file_request.rb +261 -0
  111. data/lib/cbox_billing/models/add_invoice_item201_response.rb +177 -0
  112. data/lib/cbox_billing/models/add_invoice_item202_response.rb +228 -0
  113. data/lib/cbox_billing/models/add_invoice_item_request.rb +248 -0
  114. data/lib/cbox_billing/models/add_on.rb +305 -0
  115. data/lib/cbox_billing/models/add_on_preview.rb +170 -0
  116. data/lib/cbox_billing/models/add_on_request.rb +434 -0
  117. data/lib/cbox_billing/models/add_on_result.rb +203 -0
  118. data/lib/cbox_billing/models/add_product_file_request1.rb +233 -0
  119. data/lib/cbox_billing/models/add_subscription_phase201_response.rb +177 -0
  120. data/lib/cbox_billing/models/adjust_affiliate_balance_request.rb +257 -0
  121. data/lib/cbox_billing/models/admit_service_organization200_response.rb +169 -0
  122. data/lib/cbox_billing/models/affiliate.rb +505 -0
  123. data/lib/cbox_billing/models/affiliate_commission.rb +520 -0
  124. data/lib/cbox_billing/models/affiliate_detail.rb +523 -0
  125. data/lib/cbox_billing/models/affiliate_payout.rb +443 -0
  126. data/lib/cbox_billing/models/affiliate_payout_run.rb +446 -0
  127. data/lib/cbox_billing/models/affiliate_payout_run_list.rb +229 -0
  128. data/lib/cbox_billing/models/affiliate_payout_settings.rb +356 -0
  129. data/lib/cbox_billing/models/affiliate_portal_link.rb +203 -0
  130. data/lib/cbox_billing/models/affiliate_program.rb +556 -0
  131. data/lib/cbox_billing/models/affiliate_program_commission.rb +269 -0
  132. data/lib/cbox_billing/models/affiliate_rate_plan.rb +273 -0
  133. data/lib/cbox_billing/models/affiliate_rate_plan_phases_inner.rb +316 -0
  134. data/lib/cbox_billing/models/affiliate_rate_rule.rb +233 -0
  135. data/lib/cbox_billing/models/affiliate_referral.rb +325 -0
  136. data/lib/cbox_billing/models/agreement_block.rb +337 -0
  137. data/lib/cbox_billing/models/agreement_error.rb +227 -0
  138. data/lib/cbox_billing/models/agreement_status.rb +453 -0
  139. data/lib/cbox_billing/models/agreement_status_requires_inner.rb +202 -0
  140. data/lib/cbox_billing/models/align_renewals_request.rb +264 -0
  141. data/lib/cbox_billing/models/allowance_window.rb +269 -0
  142. data/lib/cbox_billing/models/appendix.rb +293 -0
  143. data/lib/cbox_billing/models/appendix_column.rb +257 -0
  144. data/lib/cbox_billing/models/apply_catalog409_response.rb +369 -0
  145. data/lib/cbox_billing/models/apply_subscription_coupon200_response.rb +177 -0
  146. data/lib/cbox_billing/models/apply_subscription_coupon_request.rb +197 -0
  147. data/lib/cbox_billing/models/archive_affiliate_program_request.rb +162 -0
  148. data/lib/cbox_billing/models/auto_top_up.rb +462 -0
  149. data/lib/cbox_billing/models/auto_top_up_attempts_inner.rb +290 -0
  150. data/lib/cbox_billing/models/auto_top_up_limits.rb +230 -0
  151. data/lib/cbox_billing/models/bank_csv_mapping.rb +467 -0
  152. data/lib/cbox_billing/models/bank_import_result.rb +285 -0
  153. data/lib/cbox_billing/models/bank_line.rb +486 -0
  154. data/lib/cbox_billing/models/bank_line_detail.rb +233 -0
  155. data/lib/cbox_billing/models/bank_line_detail_payments_inner.rb +280 -0
  156. data/lib/cbox_billing/models/bank_line_detail_suggestions_inner.rb +267 -0
  157. data/lib/cbox_billing/models/bank_statement.rb +412 -0
  158. data/lib/cbox_billing/models/bank_statement_import.rb +258 -0
  159. data/lib/cbox_billing/models/billing_parent.rb +219 -0
  160. data/lib/cbox_billing/models/billing_policy.rb +299 -0
  161. data/lib/cbox_billing/models/billing_policy_policy.rb +228 -0
  162. data/lib/cbox_billing/models/billing_policy_request.rb +323 -0
  163. data/lib/cbox_billing/models/bundle_benefit.rb +597 -0
  164. data/lib/cbox_billing/models/bundle_benefit_tiers_inner.rb +230 -0
  165. data/lib/cbox_billing/models/bundle_consequence.rb +450 -0
  166. data/lib/cbox_billing/models/bundle_offer.rb +508 -0
  167. data/lib/cbox_billing/models/bundle_offer_plan.rb +398 -0
  168. data/lib/cbox_billing/models/bundle_offer_products_to_add_inner.rb +169 -0
  169. data/lib/cbox_billing/models/bundle_offer_saves.rb +226 -0
  170. data/lib/cbox_billing/models/cancel_preview.rb +264 -0
  171. data/lib/cbox_billing/models/cancel_request.rb +256 -0
  172. data/lib/cbox_billing/models/cancel_subscription200_response.rb +652 -0
  173. data/lib/cbox_billing/models/catalog_changes.rb +286 -0
  174. data/lib/cbox_billing/models/catalog_changes_changes_inner.rb +264 -0
  175. data/lib/cbox_billing/models/catalog_changes_diff_inner.rb +303 -0
  176. data/lib/cbox_billing/models/catalog_changes_diff_inner_fields_inner.rb +180 -0
  177. data/lib/cbox_billing/models/catalog_changes_diff_inner_fields_inner_from.rb +105 -0
  178. data/lib/cbox_billing/models/catalog_changes_impact.rb +215 -0
  179. data/lib/cbox_billing/models/catalog_changes_impact_bundle_repriced_inner.rb +224 -0
  180. data/lib/cbox_billing/models/catalog_changes_impact_sample_inner.rb +169 -0
  181. data/lib/cbox_billing/models/catalog_changes_summary.rb +178 -0
  182. data/lib/cbox_billing/models/catalog_manifest.rb +215 -0
  183. data/lib/cbox_billing/models/catalog_manifest_bundles_inner.rb +344 -0
  184. data/lib/cbox_billing/models/catalog_manifest_bundles_inner_applies_to.rb +199 -0
  185. data/lib/cbox_billing/models/catalog_manifest_bundles_inner_copy_value.rb +263 -0
  186. data/lib/cbox_billing/models/catalog_manifest_bundles_inner_discount.rb +286 -0
  187. data/lib/cbox_billing/models/catalog_manifest_bundles_inner_requires.rb +254 -0
  188. data/lib/cbox_billing/models/catalog_manifest_existing.rb +242 -0
  189. data/lib/cbox_billing/models/catalog_manifest_products_inner.rb +246 -0
  190. data/lib/cbox_billing/models/catalog_manifest_products_inner_features_inner.rb +269 -0
  191. data/lib/cbox_billing/models/catalog_manifest_products_inner_meters_inner.rb +410 -0
  192. data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner.rb +258 -0
  193. data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value.rb +356 -0
  194. data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value_price_value.rb +471 -0
  195. data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value_price_value_matrix_inner.rb +274 -0
  196. data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value_price_value_rates_inner.rb +216 -0
  197. data/lib/cbox_billing/models/change_subscription_dates200_response.rb +187 -0
  198. data/lib/cbox_billing/models/change_subscription_dates_request.rb +325 -0
  199. data/lib/cbox_billing/models/charged_invoice.rb +322 -0
  200. data/lib/cbox_billing/models/check_service_admission200_response.rb +178 -0
  201. data/lib/cbox_billing/models/checkout_session_request.rb +354 -0
  202. data/lib/cbox_billing/models/checkout_session_request_items_inner.rb +217 -0
  203. data/lib/cbox_billing/models/choose_accounting_contact_import_row200_response.rb +177 -0
  204. data/lib/cbox_billing/models/clear_subscription_end_date200_response.rb +162 -0
  205. data/lib/cbox_billing/models/commit_request.rb +214 -0
  206. data/lib/cbox_billing/models/commit_request_actuals_inner.rb +212 -0
  207. data/lib/cbox_billing/models/commitment.rb +499 -0
  208. data/lib/cbox_billing/models/commitment_ramp_step.rb +221 -0
  209. data/lib/cbox_billing/models/commitment_refusal.rb +239 -0
  210. data/lib/cbox_billing/models/commitment_request.rb +409 -0
  211. data/lib/cbox_billing/models/commitment_response.rb +203 -0
  212. data/lib/cbox_billing/models/commitment_term.rb +227 -0
  213. data/lib/cbox_billing/models/confirm_accounting_contact_import200_response.rb +177 -0
  214. data/lib/cbox_billing/models/confirm_accounting_contact_import_request.rb +190 -0
  215. data/lib/cbox_billing/models/connect_engage_service200_response.rb +212 -0
  216. data/lib/cbox_billing/models/connect_engage_service_request.rb +267 -0
  217. data/lib/cbox_billing/models/contract_cap_discount.rb +284 -0
  218. data/lib/cbox_billing/models/contract_price_cap.rb +332 -0
  219. data/lib/cbox_billing/models/contract_price_cap_basis.rb +216 -0
  220. data/lib/cbox_billing/models/coupon.rb +307 -0
  221. data/lib/cbox_billing/models/coupon_definition.rb +520 -0
  222. data/lib/cbox_billing/models/coupon_definition_detail.rb +555 -0
  223. data/lib/cbox_billing/models/coupon_definition_detail_all_of_redemptions.rb +216 -0
  224. data/lib/cbox_billing/models/coupon_definition_list.rb +226 -0
  225. data/lib/cbox_billing/models/coupon_deleted.rb +227 -0
  226. data/lib/cbox_billing/models/coupon_request.rb +537 -0
  227. data/lib/cbox_billing/models/create_affiliate_payout_request.rb +247 -0
  228. data/lib/cbox_billing/models/create_affiliate_program_request.rb +423 -0
  229. data/lib/cbox_billing/models/create_affiliate_program_request_commission.rb +348 -0
  230. data/lib/cbox_billing/models/create_affiliate_referral_request.rb +178 -0
  231. data/lib/cbox_billing/models/create_affiliate_request.rb +415 -0
  232. data/lib/cbox_billing/models/create_credit_purchase422_response.rb +104 -0
  233. data/lib/cbox_billing/models/create_customers_from_accounting_contact_import200_response.rb +207 -0
  234. data/lib/cbox_billing/models/create_customers_from_accounting_contact_import200_response_created_inner.rb +204 -0
  235. data/lib/cbox_billing/models/create_customers_from_accounting_contact_import200_response_refused_inner.rb +204 -0
  236. data/lib/cbox_billing/models/create_customers_from_accounting_contact_import_request.rb +197 -0
  237. data/lib/cbox_billing/models/create_download_grant_request.rb +248 -0
  238. data/lib/cbox_billing/models/create_download_links200_response.rb +205 -0
  239. data/lib/cbox_billing/models/create_download_links200_response_data_inner.rb +227 -0
  240. data/lib/cbox_billing/models/create_download_links_request.rb +190 -0
  241. data/lib/cbox_billing/models/create_environment_request.rb +270 -0
  242. data/lib/cbox_billing/models/create_license_key_request.rb +273 -0
  243. data/lib/cbox_billing/models/create_order_request.rb +420 -0
  244. data/lib/cbox_billing/models/create_order_request_lines_inner.rb +262 -0
  245. data/lib/cbox_billing/models/create_private_plan_request.rb +318 -0
  246. data/lib/cbox_billing/models/create_spend_alert_request.rb +295 -0
  247. data/lib/cbox_billing/models/created_access_invitation.rb +464 -0
  248. data/lib/cbox_billing/models/created_environment.rb +214 -0
  249. data/lib/cbox_billing/models/credit_adjustment_applied.rb +247 -0
  250. data/lib/cbox_billing/models/credit_adjustment_pending.rb +228 -0
  251. data/lib/cbox_billing/models/credit_adjustment_request.rb +375 -0
  252. data/lib/cbox_billing/models/credit_delta.rb +229 -0
  253. data/lib/cbox_billing/models/credit_movement.rb +364 -0
  254. data/lib/cbox_billing/models/credit_movement_list.rb +226 -0
  255. data/lib/cbox_billing/models/credit_note.rb +455 -0
  256. data/lib/cbox_billing/models/credit_note_detail.rb +517 -0
  257. data/lib/cbox_billing/models/credit_note_detail_all_of_lines.rb +294 -0
  258. data/lib/cbox_billing/models/credit_note_list.rb +226 -0
  259. data/lib/cbox_billing/models/credit_pool.rb +567 -0
  260. data/lib/cbox_billing/models/credit_pool_expiries_inner.rb +241 -0
  261. data/lib/cbox_billing/models/credit_pool_label.rb +204 -0
  262. data/lib/cbox_billing/models/credit_pool_list.rb +205 -0
  263. data/lib/cbox_billing/models/credit_pool_pay_as_you_go.rb +218 -0
  264. data/lib/cbox_billing/models/credit_pool_period.rb +175 -0
  265. data/lib/cbox_billing/models/credit_pool_scope.rb +207 -0
  266. data/lib/cbox_billing/models/credit_pool_scope_conditions_inner.rb +256 -0
  267. data/lib/cbox_billing/models/credit_purchase.rb +306 -0
  268. data/lib/cbox_billing/models/credit_purchase_credit.rb +203 -0
  269. data/lib/cbox_billing/models/customer_contract.rb +227 -0
  270. data/lib/cbox_billing/models/customer_overage_cap_row.rb +345 -0
  271. data/lib/cbox_billing/models/customer_overage_cap_row_customer.rb +202 -0
  272. data/lib/cbox_billing/models/date_change_preview.rb +370 -0
  273. data/lib/cbox_billing/models/date_change_request.rb +272 -0
  274. data/lib/cbox_billing/models/delete_entitlement_override200_response.rb +204 -0
  275. data/lib/cbox_billing/models/delete_overage_cap200_response.rb +203 -0
  276. data/lib/cbox_billing/models/delete_spend_alert200_response.rb +203 -0
  277. data/lib/cbox_billing/models/delete_webhook_endpoint200_response.rb +239 -0
  278. data/lib/cbox_billing/models/delivery.rb +339 -0
  279. data/lib/cbox_billing/models/destroy_environment200_response.rb +178 -0
  280. data/lib/cbox_billing/models/detach_payment_method422_response.rb +253 -0
  281. data/lib/cbox_billing/models/detach_payment_method422_response_errors.rb +162 -0
  282. data/lib/cbox_billing/models/directory_registration.rb +244 -0
  283. data/lib/cbox_billing/models/directory_service.rb +472 -0
  284. data/lib/cbox_billing/models/disable_license_key_request.rb +161 -0
  285. data/lib/cbox_billing/models/dispute.rb +471 -0
  286. data/lib/cbox_billing/models/dispute_detail.rb +229 -0
  287. data/lib/cbox_billing/models/dispute_detail_evidence.rb +205 -0
  288. data/lib/cbox_billing/models/dispute_detail_evidence_text.rb +200 -0
  289. data/lib/cbox_billing/models/dispute_detail_pack.rb +193 -0
  290. data/lib/cbox_billing/models/dispute_detail_pack_sections_inner.rb +269 -0
  291. data/lib/cbox_billing/models/dispute_evidence.rb +312 -0
  292. data/lib/cbox_billing/models/dispute_evidence_file.rb +357 -0
  293. data/lib/cbox_billing/models/dispute_evidence_slot.rb +43 -0
  294. data/lib/cbox_billing/models/dispute_refusal.rb +256 -0
  295. data/lib/cbox_billing/models/dispute_status.rb +46 -0
  296. data/lib/cbox_billing/models/download_grant.rb +401 -0
  297. data/lib/cbox_billing/models/dunning_hold.rb +344 -0
  298. data/lib/cbox_billing/models/dunning_state.rb +217 -0
  299. data/lib/cbox_billing/models/dunning_state_invoice.rb +281 -0
  300. data/lib/cbox_billing/models/dunning_state_retry.rb +232 -0
  301. data/lib/cbox_billing/models/e_invoice_refusal.rb +229 -0
  302. data/lib/cbox_billing/models/effective_billing_policy.rb +298 -0
  303. data/lib/cbox_billing/models/effective_entitlement.rb +271 -0
  304. data/lib/cbox_billing/models/effective_usage_threshold.rb +280 -0
  305. data/lib/cbox_billing/models/entitlement.rb +366 -0
  306. data/lib/cbox_billing/models/entitlement_override.rb +557 -0
  307. data/lib/cbox_billing/models/entitlement_override_input.rb +353 -0
  308. data/lib/cbox_billing/models/entitlement_override_result.rb +591 -0
  309. data/lib/cbox_billing/models/entitlement_terms.rb +293 -0
  310. data/lib/cbox_billing/models/entitlements_response.rb +200 -0
  311. data/lib/cbox_billing/models/environment.rb +379 -0
  312. data/lib/cbox_billing/models/error_body.rb +242 -0
  313. data/lib/cbox_billing/models/export_catalog200_response.rb +232 -0
  314. data/lib/cbox_billing/models/extend_invoice_due_date_request.rb +213 -0
  315. data/lib/cbox_billing/models/feature.rb +277 -0
  316. data/lib/cbox_billing/models/feature_check.rb +310 -0
  317. data/lib/cbox_billing/models/feature_set.rb +179 -0
  318. data/lib/cbox_billing/models/feature_value.rb +105 -0
  319. data/lib/cbox_billing/models/first_period.rb +461 -0
  320. data/lib/cbox_billing/models/gateway_intent.rb +254 -0
  321. data/lib/cbox_billing/models/get_accounting_connection200_response.rb +163 -0
  322. data/lib/cbox_billing/models/get_accounting_contact200_response.rb +227 -0
  323. data/lib/cbox_billing/models/get_accounting_contact_sync200_response.rb +229 -0
  324. data/lib/cbox_billing/models/get_accounting_invoice_sync200_response.rb +293 -0
  325. data/lib/cbox_billing/models/get_accounting_invoice_sync200_response_settings.rb +241 -0
  326. data/lib/cbox_billing/models/get_accounting_invoice_sync200_response_sync.rb +318 -0
  327. data/lib/cbox_billing/models/get_accounting_organization200_response.rb +231 -0
  328. data/lib/cbox_billing/models/get_bank_statement200_response.rb +205 -0
  329. data/lib/cbox_billing/models/get_customer_statement200_response.rb +339 -0
  330. data/lib/cbox_billing/models/get_customer_statement200_response_account_credit.rb +169 -0
  331. data/lib/cbox_billing/models/get_customer_statement200_response_activity_inner.rb +334 -0
  332. data/lib/cbox_billing/models/get_customer_statement200_response_balances_inner.rb +229 -0
  333. data/lib/cbox_billing/models/get_customer_statement200_response_subscriptions_inner.rb +281 -0
  334. data/lib/cbox_billing/models/get_customer_statement200_response_subscriptions_inner_next.rb +200 -0
  335. data/lib/cbox_billing/models/get_latest_accounting_contact_import200_response.rb +163 -0
  336. data/lib/cbox_billing/models/get_product_delivery200_response.rb +217 -0
  337. data/lib/cbox_billing/models/get_resource_limits200_response.rb +257 -0
  338. data/lib/cbox_billing/models/get_service_admission_policy200_response.rb +160 -0
  339. data/lib/cbox_billing/models/get_service_registrations200_response.rb +179 -0
  340. data/lib/cbox_billing/models/get_service_registrations200_response_data_inner.rb +190 -0
  341. data/lib/cbox_billing/models/get_service_registrations_request.rb +284 -0
  342. data/lib/cbox_billing/models/grandfathered_subscriber.rb +356 -0
  343. data/lib/cbox_billing/models/grandfathered_subscriber_contract_cap.rb +230 -0
  344. data/lib/cbox_billing/models/guest_waitlist_input.rb +271 -0
  345. data/lib/cbox_billing/models/hold_invoice_dunning_request.rb +249 -0
  346. data/lib/cbox_billing/models/hold_invoice_for_review200_response.rb +177 -0
  347. data/lib/cbox_billing/models/hosted_session.rb +204 -0
  348. data/lib/cbox_billing/models/import_bank_statement201_response.rb +203 -0
  349. data/lib/cbox_billing/models/inline_object.rb +227 -0
  350. data/lib/cbox_billing/models/inline_object1.rb +255 -0
  351. data/lib/cbox_billing/models/inline_object2.rb +255 -0
  352. data/lib/cbox_billing/models/invoice.rb +523 -0
  353. data/lib/cbox_billing/models/invoice_balance.rb +281 -0
  354. data/lib/cbox_billing/models/invoice_detail.rb +655 -0
  355. data/lib/cbox_billing/models/invoice_draft.rb +452 -0
  356. data/lib/cbox_billing/models/invoice_draft_lines_inner.rb +199 -0
  357. data/lib/cbox_billing/models/invoice_item.rb +354 -0
  358. data/lib/cbox_billing/models/invoice_line.rb +295 -0
  359. data/lib/cbox_billing/models/invoice_list.rb +226 -0
  360. data/lib/cbox_billing/models/invoice_payment.rb +292 -0
  361. data/lib/cbox_billing/models/invoice_payment_result.rb +203 -0
  362. data/lib/cbox_billing/models/join_service_waitlist200_response.rb +163 -0
  363. data/lib/cbox_billing/models/join_service_waitlist_as_guest200_response.rb +194 -0
  364. data/lib/cbox_billing/models/join_service_waitlist_request.rb +378 -0
  365. data/lib/cbox_billing/models/keep_accounting_contact200_response.rb +231 -0
  366. data/lib/cbox_billing/models/keep_accounting_contact_request.rb +186 -0
  367. data/lib/cbox_billing/models/lease.rb +266 -0
  368. data/lib/cbox_billing/models/lease_request.rb +341 -0
  369. data/lib/cbox_billing/models/leave_feature_waitlist200_response.rb +201 -0
  370. data/lib/cbox_billing/models/leave_feature_waitlist_request.rb +249 -0
  371. data/lib/cbox_billing/models/licence_period_document.rb +408 -0
  372. data/lib/cbox_billing/models/licence_period_document_usage_measures_inner.rb +170 -0
  373. data/lib/cbox_billing/models/licence_period_list.rb +230 -0
  374. data/lib/cbox_billing/models/licence_period_summary.rb +344 -0
  375. data/lib/cbox_billing/models/licence_reportable.rb +204 -0
  376. data/lib/cbox_billing/models/licence_row_list.rb +244 -0
  377. data/lib/cbox_billing/models/licence_seat_count.rb +355 -0
  378. data/lib/cbox_billing/models/licence_seat_ledger_entry.rb +578 -0
  379. data/lib/cbox_billing/models/licence_seat_ledger_list.rb +217 -0
  380. data/lib/cbox_billing/models/licence_seat_snapshot_list.rb +243 -0
  381. data/lib/cbox_billing/models/license.rb +407 -0
  382. data/lib/cbox_billing/models/license_issue_request.rb +232 -0
  383. data/lib/cbox_billing/models/license_key.rb +503 -0
  384. data/lib/cbox_billing/models/license_key_detail.rb +537 -0
  385. data/lib/cbox_billing/models/license_key_detail_all_of_instances.rb +277 -0
  386. data/lib/cbox_billing/models/license_renew_request.rb +160 -0
  387. data/lib/cbox_billing/models/license_revoke_request.rb +160 -0
  388. data/lib/cbox_billing/models/license_revoke_result.rb +227 -0
  389. data/lib/cbox_billing/models/limit_increase_decision.rb +368 -0
  390. data/lib/cbox_billing/models/limit_increase_input.rb +300 -0
  391. data/lib/cbox_billing/models/limit_increase_request.rb +516 -0
  392. data/lib/cbox_billing/models/link_accounting_contact200_response.rb +177 -0
  393. data/lib/cbox_billing/models/link_accounting_contact_request.rb +187 -0
  394. data/lib/cbox_billing/models/list_access_programs200_response.rb +252 -0
  395. data/lib/cbox_billing/models/list_accounting_contact_duplicates200_response.rb +205 -0
  396. data/lib/cbox_billing/models/list_accounting_contact_duplicates200_response_duplicates_inner.rb +205 -0
  397. data/lib/cbox_billing/models/list_accounting_contact_duplicates200_response_duplicates_inner_organizations_inner.rb +203 -0
  398. data/lib/cbox_billing/models/list_accounting_contact_import_rows200_response.rb +192 -0
  399. data/lib/cbox_billing/models/list_accounting_contact_sync_failures200_response.rb +217 -0
  400. data/lib/cbox_billing/models/list_accounting_contacts200_response.rb +282 -0
  401. data/lib/cbox_billing/models/list_accounting_organization_invoices200_response.rb +191 -0
  402. data/lib/cbox_billing/models/list_accounting_syncs200_response.rb +179 -0
  403. data/lib/cbox_billing/models/list_affiliate_commissions200_response.rb +226 -0
  404. data/lib/cbox_billing/models/list_affiliate_payout_runs200_response.rb +226 -0
  405. data/lib/cbox_billing/models/list_affiliate_payouts200_response.rb +226 -0
  406. data/lib/cbox_billing/models/list_affiliate_programs200_response.rb +226 -0
  407. data/lib/cbox_billing/models/list_affiliates200_response.rb +226 -0
  408. data/lib/cbox_billing/models/list_agreements200_response.rb +179 -0
  409. data/lib/cbox_billing/models/list_all_invoices400_response.rb +177 -0
  410. data/lib/cbox_billing/models/list_bank_lines200_response.rb +215 -0
  411. data/lib/cbox_billing/models/list_bank_statements200_response.rb +215 -0
  412. data/lib/cbox_billing/models/list_connected_financial_events200_response.rb +292 -0
  413. data/lib/cbox_billing/models/list_connected_production_environments200_response.rb +205 -0
  414. data/lib/cbox_billing/models/list_connected_production_environments200_response_data_inner.rb +203 -0
  415. data/lib/cbox_billing/models/list_customer_dunning_holds200_response.rb +179 -0
  416. data/lib/cbox_billing/models/list_disputes200_response.rb +217 -0
  417. data/lib/cbox_billing/models/list_download_grants200_response.rb +226 -0
  418. data/lib/cbox_billing/models/list_entitlement_overrides200_response.rb +207 -0
  419. data/lib/cbox_billing/models/list_environments200_response.rb +162 -0
  420. data/lib/cbox_billing/models/list_financial_events200_response.rb +240 -0
  421. data/lib/cbox_billing/models/list_financial_events200_response_data_inner.rb +342 -0
  422. data/lib/cbox_billing/models/list_financial_events200_response_data_inner_data.rb +408 -0
  423. data/lib/cbox_billing/models/list_grandfathered_subscribers200_response.rb +244 -0
  424. data/lib/cbox_billing/models/list_invoice_drafts200_response.rb +215 -0
  425. data/lib/cbox_billing/models/list_invoice_items200_response.rb +179 -0
  426. data/lib/cbox_billing/models/list_invoice_payments200_response.rb +205 -0
  427. data/lib/cbox_billing/models/list_license_keys200_response.rb +226 -0
  428. data/lib/cbox_billing/models/list_limit_increase_requests200_response.rb +231 -0
  429. data/lib/cbox_billing/models/list_one_off_products200_response.rb +179 -0
  430. data/lib/cbox_billing/models/list_orders200_response.rb +226 -0
  431. data/lib/cbox_billing/models/list_organization_purchases200_response.rb +205 -0
  432. data/lib/cbox_billing/models/list_organization_subscriptions200_response.rb +179 -0
  433. data/lib/cbox_billing/models/list_overage_caps200_response.rb +179 -0
  434. data/lib/cbox_billing/models/list_plan_moves200_response.rb +179 -0
  435. data/lib/cbox_billing/models/list_private_plans200_response.rb +179 -0
  436. data/lib/cbox_billing/models/list_product_files200_response.rb +179 -0
  437. data/lib/cbox_billing/models/list_scheduled_catalog_changes200_response.rb +179 -0
  438. data/lib/cbox_billing/models/list_service_directory200_response.rb +249 -0
  439. data/lib/cbox_billing/models/list_signed_agreements200_response.rb +226 -0
  440. data/lib/cbox_billing/models/list_spend_alerts200_response.rb +218 -0
  441. data/lib/cbox_billing/models/list_spend_alerts200_response_spend.rb +222 -0
  442. data/lib/cbox_billing/models/list_subscription_date_moves200_response.rb +179 -0
  443. data/lib/cbox_billing/models/list_subscription_schedule200_response.rb +179 -0
  444. data/lib/cbox_billing/models/list_tax_return_lines200_response.rb +215 -0
  445. data/lib/cbox_billing/models/list_tax_returns200_response.rb +215 -0
  446. data/lib/cbox_billing/models/list_unmatched_accounting_invoices200_response.rb +192 -0
  447. data/lib/cbox_billing/models/lock_subscription_price_request.rb +162 -0
  448. data/lib/cbox_billing/models/mark_affiliate_payout_paid_request.rb +176 -0
  449. data/lib/cbox_billing/models/mark_invoice_paid_request.rb +176 -0
  450. data/lib/cbox_billing/models/match_bank_line_request.rb +197 -0
  451. data/lib/cbox_billing/models/match_bank_line_request_allocations_inner.rb +221 -0
  452. data/lib/cbox_billing/models/meter.rb +524 -0
  453. data/lib/cbox_billing/models/meter_detail.rb +587 -0
  454. data/lib/cbox_billing/models/meter_detail_all_of_entitlements.rb +260 -0
  455. data/lib/cbox_billing/models/meter_list.rb +226 -0
  456. data/lib/cbox_billing/models/meter_request.rb +463 -0
  457. data/lib/cbox_billing/models/meter_request_resets.rb +237 -0
  458. data/lib/cbox_billing/models/meter_resets.rb +279 -0
  459. data/lib/cbox_billing/models/meter_staged.rb +309 -0
  460. data/lib/cbox_billing/models/meter_staged_changeset.rb +265 -0
  461. data/lib/cbox_billing/models/money.rb +222 -0
  462. data/lib/cbox_billing/models/money_amount.rb +203 -0
  463. data/lib/cbox_billing/models/move_affiliate_referral_request.rb +213 -0
  464. data/lib/cbox_billing/models/move_affiliate_request.rb +188 -0
  465. data/lib/cbox_billing/models/negotiated_price.rb +277 -0
  466. data/lib/cbox_billing/models/new_auto_top_up.rb +277 -0
  467. data/lib/cbox_billing/models/new_credit_purchase.rb +271 -0
  468. data/lib/cbox_billing/models/new_invoice.rb +264 -0
  469. data/lib/cbox_billing/models/new_invoice_line.rb +295 -0
  470. data/lib/cbox_billing/models/ok.rb +201 -0
  471. data/lib/cbox_billing/models/one_off_product.rb +359 -0
  472. data/lib/cbox_billing/models/one_off_purchase.rb +396 -0
  473. data/lib/cbox_billing/models/one_off_purchase_items_inner.rb +255 -0
  474. data/lib/cbox_billing/models/one_off_quote.rb +527 -0
  475. data/lib/cbox_billing/models/one_off_quote_organization.rb +177 -0
  476. data/lib/cbox_billing/models/one_off_quote_request.rb +324 -0
  477. data/lib/cbox_billing/models/order.rb +573 -0
  478. data/lib/cbox_billing/models/order_items_inner.rb +311 -0
  479. data/lib/cbox_billing/models/organization.rb +545 -0
  480. data/lib/cbox_billing/models/organization_accounting_contact.rb +255 -0
  481. data/lib/cbox_billing/models/organization_bundles.rb +310 -0
  482. data/lib/cbox_billing/models/organization_bundles_active_inner.rb +242 -0
  483. data/lib/cbox_billing/models/organization_response.rb +177 -0
  484. data/lib/cbox_billing/models/organization_upsert_request.rb +666 -0
  485. data/lib/cbox_billing/models/overage_cap.rb +105 -0
  486. data/lib/cbox_billing/models/overage_cap_binding.rb +263 -0
  487. data/lib/cbox_billing/models/overage_cap_one_of.rb +186 -0
  488. data/lib/cbox_billing/models/overage_cap_one_of1.rb +231 -0
  489. data/lib/cbox_billing/models/overage_cap_state.rb +380 -0
  490. data/lib/cbox_billing/models/page.rb +192 -0
  491. data/lib/cbox_billing/models/payment_gateway_failover.rb +233 -0
  492. data/lib/cbox_billing/models/payment_gateway_failover_failovers_inner.rb +348 -0
  493. data/lib/cbox_billing/models/payment_gateway_failover_failovers_inner_hops_inner.rb +190 -0
  494. data/lib/cbox_billing/models/payment_gateway_failover_gateways_inner.rb +230 -0
  495. data/lib/cbox_billing/models/payment_gateway_failover_gateways_inner_circuit.rb +288 -0
  496. data/lib/cbox_billing/models/payment_gateway_failover_routing.rb +235 -0
  497. data/lib/cbox_billing/models/payment_intent_request.rb +254 -0
  498. data/lib/cbox_billing/models/payment_mandate.rb +253 -0
  499. data/lib/cbox_billing/models/payment_method.rb +374 -0
  500. data/lib/cbox_billing/models/payment_method_id_request.rb +177 -0
  501. data/lib/cbox_billing/models/payment_method_list.rb +226 -0
  502. data/lib/cbox_billing/models/payment_method_set.rb +180 -0
  503. data/lib/cbox_billing/models/payment_terms.rb +281 -0
  504. data/lib/cbox_billing/models/payment_terms_request.rb +235 -0
  505. data/lib/cbox_billing/models/pending_approval.rb +229 -0
  506. data/lib/cbox_billing/models/pending_price_change.rb +257 -0
  507. data/lib/cbox_billing/models/per_value_entitlements.rb +206 -0
  508. data/lib/cbox_billing/models/per_value_entitlements_values_value.rb +263 -0
  509. data/lib/cbox_billing/models/plan.rb +425 -0
  510. data/lib/cbox_billing/models/plan_change_input.rb +224 -0
  511. data/lib/cbox_billing/models/plan_change_preview.rb +478 -0
  512. data/lib/cbox_billing/models/plan_change_preview_seat_types_inner.rb +356 -0
  513. data/lib/cbox_billing/models/plan_change_price_options.rb +280 -0
  514. data/lib/cbox_billing/models/plan_change_price_options_keep_negotiated.rb +230 -0
  515. data/lib/cbox_billing/models/plan_change_request.rb +256 -0
  516. data/lib/cbox_billing/models/plan_change_result.rb +543 -0
  517. data/lib/cbox_billing/models/plan_features_value.rb +105 -0
  518. data/lib/cbox_billing/models/plan_list.rb +253 -0
  519. data/lib/cbox_billing/models/plan_meter_entitlement.rb +250 -0
  520. data/lib/cbox_billing/models/plan_move.rb +386 -0
  521. data/lib/cbox_billing/models/plan_move_subscribers.rb +188 -0
  522. data/lib/cbox_billing/models/plan_price.rb +256 -0
  523. data/lib/cbox_billing/models/plan_prices_inner.rb +241 -0
  524. data/lib/cbox_billing/models/plane_invoice_list.rb +226 -0
  525. data/lib/cbox_billing/models/plane_invoice_list_all_of_data.rb +557 -0
  526. data/lib/cbox_billing/models/portal_session_request.rb +309 -0
  527. data/lib/cbox_billing/models/prepare_tax_return200_response.rb +177 -0
  528. data/lib/cbox_billing/models/prepare_tax_return_request.rb +237 -0
  529. data/lib/cbox_billing/models/preview_renewal_alignment_request.rb +201 -0
  530. data/lib/cbox_billing/models/preview_service_invitation200_response.rb +161 -0
  531. data/lib/cbox_billing/models/preview_service_invitation200_response_invitation.rb +189 -0
  532. data/lib/cbox_billing/models/preview_service_invitation_request.rb +186 -0
  533. data/lib/cbox_billing/models/preview_subscription_cancel_request.rb +216 -0
  534. data/lib/cbox_billing/models/preview_subscription_coupon200_response.rb +205 -0
  535. data/lib/cbox_billing/models/preview_subscription_coupon_request.rb +186 -0
  536. data/lib/cbox_billing/models/price_lock.rb +215 -0
  537. data/lib/cbox_billing/models/price_lock_state.rb +190 -0
  538. data/lib/cbox_billing/models/price_tax.rb +348 -0
  539. data/lib/cbox_billing/models/private_plan.rb +380 -0
  540. data/lib/cbox_billing/models/product_definition_manifest.rb +269 -0
  541. data/lib/cbox_billing/models/product_definition_manifest_features_inner.rb +333 -0
  542. data/lib/cbox_billing/models/product_definition_manifest_meters_inner.rb +434 -0
  543. data/lib/cbox_billing/models/product_file.rb +420 -0
  544. data/lib/cbox_billing/models/proration_line.rb +203 -0
  545. data/lib/cbox_billing/models/quantity_preview.rb +321 -0
  546. data/lib/cbox_billing/models/quantity_request.rb +196 -0
  547. data/lib/cbox_billing/models/quote.rb +700 -0
  548. data/lib/cbox_billing/models/quote_all_of_acceptance.rb +206 -0
  549. data/lib/cbox_billing/models/quote_all_of_approval.rb +201 -0
  550. data/lib/cbox_billing/models/quote_all_of_grants.rb +205 -0
  551. data/lib/cbox_billing/models/quote_all_of_lines.rb +284 -0
  552. data/lib/cbox_billing/models/quote_all_of_terms.rb +285 -0
  553. data/lib/cbox_billing/models/quote_all_of_terms_ramp.rb +169 -0
  554. data/lib/cbox_billing/models/quote_all_of_totals.rb +255 -0
  555. data/lib/cbox_billing/models/quote_all_of_totals_lines.rb +223 -0
  556. data/lib/cbox_billing/models/quote_line_grants.rb +212 -0
  557. data/lib/cbox_billing/models/quote_line_grants_features_inner.rb +204 -0
  558. data/lib/cbox_billing/models/quote_line_grants_meters_inner.rb +260 -0
  559. data/lib/cbox_billing/models/quote_line_request.rb +368 -0
  560. data/lib/cbox_billing/models/quote_list.rb +226 -0
  561. data/lib/cbox_billing/models/quote_request.rb +650 -0
  562. data/lib/cbox_billing/models/quote_request_ramp_inner.rb +221 -0
  563. data/lib/cbox_billing/models/quote_signer.rb +434 -0
  564. data/lib/cbox_billing/models/quote_signer_request.rb +247 -0
  565. data/lib/cbox_billing/models/quote_signer_signature.rb +296 -0
  566. data/lib/cbox_billing/models/quote_signing.rb +384 -0
  567. data/lib/cbox_billing/models/quote_signing_request.rb +278 -0
  568. data/lib/cbox_billing/models/quote_signing_signed_document.rb +240 -0
  569. data/lib/cbox_billing/models/quote_summary.rb +440 -0
  570. data/lib/cbox_billing/models/rate_limit_error_body.rb +177 -0
  571. data/lib/cbox_billing/models/reconcile_id_signals_inclusion200_response.rb +211 -0
  572. data/lib/cbox_billing/models/reconcile_id_signals_inclusion_request.rb +162 -0
  573. data/lib/cbox_billing/models/record_invoice_payment_request.rb +223 -0
  574. data/lib/cbox_billing/models/recurring_price.rb +230 -0
  575. data/lib/cbox_billing/models/refund.rb +493 -0
  576. data/lib/cbox_billing/models/refund_list.rb +179 -0
  577. data/lib/cbox_billing/models/refund_order_request.rb +223 -0
  578. data/lib/cbox_billing/models/refund_request.rb +227 -0
  579. data/lib/cbox_billing/models/refund_result.rb +239 -0
  580. data/lib/cbox_billing/models/refusal.rb +205 -0
  581. data/lib/cbox_billing/models/release_invoice_from_review200_response.rb +205 -0
  582. data/lib/cbox_billing/models/remove_billing_parent_request.rb +186 -0
  583. data/lib/cbox_billing/models/remove_subscription_coupon200_response.rb +177 -0
  584. data/lib/cbox_billing/models/remove_subscription_coupon_request.rb +177 -0
  585. data/lib/cbox_billing/models/reserve_outcome.rb +251 -0
  586. data/lib/cbox_billing/models/reserve_request.rb +225 -0
  587. data/lib/cbox_billing/models/reserve_request_meters_inner.rb +212 -0
  588. data/lib/cbox_billing/models/reset_environment200_response.rb +187 -0
  589. data/lib/cbox_billing/models/reset_environment_request.rb +162 -0
  590. data/lib/cbox_billing/models/reset_period.rb +247 -0
  591. data/lib/cbox_billing/models/resource_limit.rb +392 -0
  592. data/lib/cbox_billing/models/retry_accounting_sync202_response.rb +177 -0
  593. data/lib/cbox_billing/models/retry_invoice_dunning_request.rb +176 -0
  594. data/lib/cbox_billing/models/reverse_invoice_payment_request.rb +186 -0
  595. data/lib/cbox_billing/models/revoke_limit_increase_request.rb +195 -0
  596. data/lib/cbox_billing/models/schedule_phase.rb +486 -0
  597. data/lib/cbox_billing/models/schedule_phase_request.rb +396 -0
  598. data/lib/cbox_billing/models/schedule_plan_move_request.rb +231 -0
  599. data/lib/cbox_billing/models/scheduled_catalog_change.rb +331 -0
  600. data/lib/cbox_billing/models/scheduled_catalog_change_existing.rb +215 -0
  601. data/lib/cbox_billing/models/seat_breakdown.rb +404 -0
  602. data/lib/cbox_billing/models/seat_entitlement.rb +267 -0
  603. data/lib/cbox_billing/models/seat_ledger_entry.rb +440 -0
  604. data/lib/cbox_billing/models/seat_ledger_page.rb +205 -0
  605. data/lib/cbox_billing/models/seat_ledger_page_meta.rb +255 -0
  606. data/lib/cbox_billing/models/seat_reassign_request.rb +187 -0
  607. data/lib/cbox_billing/models/seat_subject_request.rb +178 -0
  608. data/lib/cbox_billing/models/seat_type_change.rb +384 -0
  609. data/lib/cbox_billing/models/seat_type_entitlement.rb +269 -0
  610. data/lib/cbox_billing/models/seat_type_quantity_request.rb +205 -0
  611. data/lib/cbox_billing/models/seat_type_response.rb +177 -0
  612. data/lib/cbox_billing/models/seat_type_state.rb +565 -0
  613. data/lib/cbox_billing/models/seat_type_state_holders_inner.rb +189 -0
  614. data/lib/cbox_billing/models/seats_set_request.rb +186 -0
  615. data/lib/cbox_billing/models/service_admission_identity.rb +237 -0
  616. data/lib/cbox_billing/models/service_admission_input.rb +388 -0
  617. data/lib/cbox_billing/models/set_backup_card_consent200_response.rb +189 -0
  618. data/lib/cbox_billing/models/set_backup_card_consent_request.rb +177 -0
  619. data/lib/cbox_billing/models/set_billing_parent409_response.rb +227 -0
  620. data/lib/cbox_billing/models/set_billing_parent_request.rb +212 -0
  621. data/lib/cbox_billing/models/set_customer_contract_request.rb +197 -0
  622. data/lib/cbox_billing/models/set_invoice_consolidation_request.rb +177 -0
  623. data/lib/cbox_billing/models/set_overage_cap422_response.rb +227 -0
  624. data/lib/cbox_billing/models/set_product_delivery_request.rb +342 -0
  625. data/lib/cbox_billing/models/set_subscription_purchase_order200_response.rb +189 -0
  626. data/lib/cbox_billing/models/set_subscription_purchase_order_request.rb +176 -0
  627. data/lib/cbox_billing/models/setup_intent.rb +302 -0
  628. data/lib/cbox_billing/models/setup_intent_request.rb +177 -0
  629. data/lib/cbox_billing/models/show_environment200_response.rb +160 -0
  630. data/lib/cbox_billing/models/signals_source200_response.rb +214 -0
  631. data/lib/cbox_billing/models/signals_source200_response_meta.rb +471 -0
  632. data/lib/cbox_billing/models/signals_source_erasures200_response.rb +214 -0
  633. data/lib/cbox_billing/models/signals_source_erasures200_response_meta.rb +329 -0
  634. data/lib/cbox_billing/models/signed_agreement.rb +498 -0
  635. data/lib/cbox_billing/models/signed_agreement_document.rb +252 -0
  636. data/lib/cbox_billing/models/skip_accounting_contact_import_rows200_response.rb +177 -0
  637. data/lib/cbox_billing/models/skip_accounting_contact_import_rows_request.rb +188 -0
  638. data/lib/cbox_billing/models/skip_invoice_dunning_step_request.rb +186 -0
  639. data/lib/cbox_billing/models/spend_alert.rb +395 -0
  640. data/lib/cbox_billing/models/start_accounting_contact_import202_response.rb +177 -0
  641. data/lib/cbox_billing/models/stop_invoice_dunning_request.rb +247 -0
  642. data/lib/cbox_billing/models/submit_dispute_evidence_request.rb +178 -0
  643. data/lib/cbox_billing/models/subscribe_request.rb +373 -0
  644. data/lib/cbox_billing/models/subscribe_result.rb +215 -0
  645. data/lib/cbox_billing/models/subscription.rb +617 -0
  646. data/lib/cbox_billing/models/subscription_bundle.rb +200 -0
  647. data/lib/cbox_billing/models/subscription_change.rb +505 -0
  648. data/lib/cbox_billing/models/subscription_change_list.rb +226 -0
  649. data/lib/cbox_billing/models/subscription_contract.rb +188 -0
  650. data/lib/cbox_billing/models/subscription_contract_term.rb +385 -0
  651. data/lib/cbox_billing/models/subscription_date_move.rb +295 -0
  652. data/lib/cbox_billing/models/subscription_discount.rb +315 -0
  653. data/lib/cbox_billing/models/subscription_pending_change.rb +171 -0
  654. data/lib/cbox_billing/models/subscription_standing.rb +230 -0
  655. data/lib/cbox_billing/models/subscription_terms.rb +459 -0
  656. data/lib/cbox_billing/models/subscription_terms_price.rb +178 -0
  657. data/lib/cbox_billing/models/sync_product_definitions200_response.rb +179 -0
  658. data/lib/cbox_billing/models/sync_product_definitions200_response_data_inner.rb +335 -0
  659. data/lib/cbox_billing/models/tax_return.rb +663 -0
  660. data/lib/cbox_billing/models/tax_return_boxes_inner.rb +307 -0
  661. data/lib/cbox_billing/models/tax_return_corrections_inner.rb +178 -0
  662. data/lib/cbox_billing/models/tax_return_issues_inner.rb +227 -0
  663. data/lib/cbox_billing/models/tax_return_line.rb +550 -0
  664. data/lib/cbox_billing/models/tax_return_line_document.rb +214 -0
  665. data/lib/cbox_billing/models/tax_return_line_fx.rb +212 -0
  666. data/lib/cbox_billing/models/tax_return_member_states_inner.rb +250 -0
  667. data/lib/cbox_billing/models/tax_return_not_from_billing_inner.rb +229 -0
  668. data/lib/cbox_billing/models/test_clock_advance_request.rb +178 -0
  669. data/lib/cbox_billing/models/test_clock_advance_result.rb +334 -0
  670. data/lib/cbox_billing/models/test_clock_advance_result_clock.rb +230 -0
  671. data/lib/cbox_billing/models/upcoming_invoice.rb +440 -0
  672. data/lib/cbox_billing/models/upcoming_invoice_first_period.rb +251 -0
  673. data/lib/cbox_billing/models/upcoming_invoice_interim.rb +245 -0
  674. data/lib/cbox_billing/models/upcoming_invoice_interim_invoices_inner.rb +286 -0
  675. data/lib/cbox_billing/models/upcoming_invoice_interim_reconciliation.rb +270 -0
  676. data/lib/cbox_billing/models/upcoming_invoice_interim_reconciliation_credit_notes_inner.rb +282 -0
  677. data/lib/cbox_billing/models/upcoming_invoice_lines_inner.rb +282 -0
  678. data/lib/cbox_billing/models/update_affiliate_program_request.rb +398 -0
  679. data/lib/cbox_billing/models/update_affiliate_request.rb +321 -0
  680. data/lib/cbox_billing/models/update_dispute_evidence_request.rb +177 -0
  681. data/lib/cbox_billing/models/update_dispute_evidence_request_evidence.rb +251 -0
  682. data/lib/cbox_billing/models/update_entitlement_override_request.rb +309 -0
  683. data/lib/cbox_billing/models/update_invoice_draft_request.rb +214 -0
  684. data/lib/cbox_billing/models/update_invoice_draft_request_lines_inner.rb +224 -0
  685. data/lib/cbox_billing/models/update_license_key_request.rb +186 -0
  686. data/lib/cbox_billing/models/update_payment_gateway_routing_request.rb +234 -0
  687. data/lib/cbox_billing/models/update_product_file_request.rb +208 -0
  688. data/lib/cbox_billing/models/update_spend_alert_request.rb +296 -0
  689. data/lib/cbox_billing/models/upgrade_offer.rb +189 -0
  690. data/lib/cbox_billing/models/usage_correction.rb +471 -0
  691. data/lib/cbox_billing/models/usage_correction_actor.rb +211 -0
  692. data/lib/cbox_billing/models/usage_correction_adjustment.rb +411 -0
  693. data/lib/cbox_billing/models/usage_correction_list.rb +226 -0
  694. data/lib/cbox_billing/models/usage_correction_list_all_of_data.rb +506 -0
  695. data/lib/cbox_billing/models/usage_corrections_request.rb +246 -0
  696. data/lib/cbox_billing/models/usage_corrections_request_corrections_inner.rb +413 -0
  697. data/lib/cbox_billing/models/usage_corrections_result.rb +395 -0
  698. data/lib/cbox_billing/models/usage_corrections_result_rejected_inner.rb +262 -0
  699. data/lib/cbox_billing/models/usage_event_values.rb +252 -0
  700. data/lib/cbox_billing/models/usage_events_request.rb +234 -0
  701. data/lib/cbox_billing/models/usage_events_request_events_inner.rb +385 -0
  702. data/lib/cbox_billing/models/usage_events_request_events_inner_dimensions_value.rb +104 -0
  703. data/lib/cbox_billing/models/usage_events_result.rb +301 -0
  704. data/lib/cbox_billing/models/usage_events_result_rejected_inner.rb +263 -0
  705. data/lib/cbox_billing/models/usage_ingest_request.rb +225 -0
  706. data/lib/cbox_billing/models/usage_ingest_request_entries_inner.rb +290 -0
  707. data/lib/cbox_billing/models/usage_ingest_result.rb +374 -0
  708. data/lib/cbox_billing/models/usage_ingest_result_unsupported_meters_inner.rb +203 -0
  709. data/lib/cbox_billing/models/usage_price.rb +258 -0
  710. data/lib/cbox_billing/models/usage_summary.rb +205 -0
  711. data/lib/cbox_billing/models/usage_summary_meters_value.rb +289 -0
  712. data/lib/cbox_billing/models/usage_summary_meters_value_breakdown_inner.rb +205 -0
  713. data/lib/cbox_billing/models/usage_summary_period.rb +247 -0
  714. data/lib/cbox_billing/models/usage_threshold.rb +275 -0
  715. data/lib/cbox_billing/models/usage_threshold_level.rb +217 -0
  716. data/lib/cbox_billing/models/usage_threshold_request.rb +248 -0
  717. data/lib/cbox_billing/models/usage_threshold_subscriptions_inner.rb +201 -0
  718. data/lib/cbox_billing/models/validation_error_body.rb +206 -0
  719. data/lib/cbox_billing/models/value_rule.rb +291 -0
  720. data/lib/cbox_billing/models/value_rules.rb +235 -0
  721. data/lib/cbox_billing/models/waitlist_answer.rb +105 -0
  722. data/lib/cbox_billing/models/waitlist_question.rb +411 -0
  723. data/lib/cbox_billing/models/webhook_delivery.rb +435 -0
  724. data/lib/cbox_billing/models/webhook_delivery_list.rb +226 -0
  725. data/lib/cbox_billing/models/webhook_endpoint.rb +347 -0
  726. data/lib/cbox_billing/models/webhook_endpoint_list.rb +226 -0
  727. data/lib/cbox_billing/models/webhook_endpoint_request.rb +270 -0
  728. data/lib/cbox_billing/models/webhook_endpoint_with_secret.rb +367 -0
  729. data/lib/cbox_billing/models/withdraw_agreement_request.rb +220 -0
  730. data/lib/cbox_billing/models/withdraw_agreement_request_user.rb +177 -0
  731. data/lib/cbox_billing/pagination.rb +28 -0
  732. data/lib/cbox_billing/retry.rb +96 -0
  733. data/lib/cbox_billing/version.rb +15 -0
  734. data/lib/cbox_billing/webhook.rb +77 -0
  735. data/lib/cbox_billing.rb +765 -0
  736. metadata +824 -0
@@ -0,0 +1,938 @@
1
+ =begin
2
+ #Cbox Billing API
3
+
4
+ #The HTTP API of Cbox Billing. Reference: https://github.com/cboxdk/cbox-billing/tree/main/docs/api
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.26.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module CboxBilling
16
+ class SeatsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Assign a free purchased seat to a member
23
+ # @param org [String] The organization id (the merchant platform's own tenant key).
24
+ # @param seat_subject_request [SeatSubjectRequest]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a `404`. An unbound token without it addresses the organization's newest serving subscription for the reference.
27
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject `org#reference`. Also accepted in the JSON body of a `POST`.
28
+ # @return [SeatBreakdown]
29
+ def assign_seat(org, seat_subject_request, opts = {})
30
+ data, _status_code, _headers = assign_seat_with_http_info(org, seat_subject_request, opts)
31
+ data
32
+ end
33
+
34
+ # Assign a free purchased seat to a member
35
+ # @param org [String] The organization id (the merchant platform's own tenant key).
36
+ # @param seat_subject_request [SeatSubjectRequest]
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a `404`. An unbound token without it addresses the organization's newest serving subscription for the reference.
39
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject `org#reference`. Also accepted in the JSON body of a `POST`.
40
+ # @return [Array<(SeatBreakdown, Integer, Hash)>] SeatBreakdown data, response status code and response headers
41
+ def assign_seat_with_http_info(org, seat_subject_request, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: SeatsApi.assign_seat ...'
44
+ end
45
+ # verify the required parameter 'org' is set
46
+ if @api_client.config.client_side_validation && org.nil?
47
+ fail ArgumentError, "Missing the required parameter 'org' when calling SeatsApi.assign_seat"
48
+ end
49
+ # verify the required parameter 'seat_subject_request' is set
50
+ if @api_client.config.client_side_validation && seat_subject_request.nil?
51
+ fail ArgumentError, "Missing the required parameter 'seat_subject_request' when calling SeatsApi.assign_seat"
52
+ end
53
+ pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
54
+ if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
55
+ fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling SeatsApi.assign_seat, must conform to the pattern #{pattern}."
56
+ end
57
+
58
+ # resource path
59
+ local_var_path = '/subscriptions/{org}/seats/assign'.sub('{org}', CGI.escape(org.to_s))
60
+
61
+ # query parameters
62
+ query_params = opts[:query_params] || {}
63
+ query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
64
+ query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
65
+
66
+ # header parameters
67
+ header_params = opts[:header_params] || {}
68
+ # HTTP header 'Accept' (if needed)
69
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
70
+ # HTTP header 'Content-Type'
71
+ content_type = @api_client.select_header_content_type(['application/json'])
72
+ if !content_type.nil?
73
+ header_params['Content-Type'] = content_type
74
+ end
75
+
76
+ # form parameters
77
+ form_params = opts[:form_params] || {}
78
+
79
+ # http body (model)
80
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(seat_subject_request)
81
+
82
+ # return_type
83
+ return_type = opts[:debug_return_type] || 'SeatBreakdown'
84
+
85
+ # auth_names
86
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
87
+
88
+ new_options = opts.merge(
89
+ :operation => :"SeatsApi.assign_seat",
90
+ :header_params => header_params,
91
+ :query_params => query_params,
92
+ :form_params => form_params,
93
+ :body => post_body,
94
+ :auth_names => auth_names,
95
+ :return_type => return_type
96
+ )
97
+
98
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug "API called: SeatsApi#assign_seat\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
101
+ end
102
+ return data, status_code, headers
103
+ end
104
+
105
+ # The user holds a seat of the type
106
+ # The app reports that a user holds a seat. A seat vacated this period is reused at no charge; otherwise the paid count goes up by one, prorated at once (seats within the included quantity cost nothing). Idempotent: a user who already holds a seat keeps it. For `default` the plan's own seat rules apply. Honours `Idempotency-Key`.
107
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
108
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
109
+ # @param user_ref [String] The app&#39;s own id for the user who holds the seat (an external id, such as an identity provider&#39;s user id).
110
+ # @param [Hash] opts the optional parameters
111
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
112
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
113
+ # @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is &#x60;409&#x60;.
114
+ # @return [SeatTypeResponse]
115
+ def assign_seat_type_holder(org, type, user_ref, opts = {})
116
+ data, _status_code, _headers = assign_seat_type_holder_with_http_info(org, type, user_ref, opts)
117
+ data
118
+ end
119
+
120
+ # The user holds a seat of the type
121
+ # The app reports that a user holds a seat. A seat vacated this period is reused at no charge; otherwise the paid count goes up by one, prorated at once (seats within the included quantity cost nothing). Idempotent: a user who already holds a seat keeps it. For &#x60;default&#x60; the plan&#39;s own seat rules apply. Honours &#x60;Idempotency-Key&#x60;.
122
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
123
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
124
+ # @param user_ref [String] The app&#39;s own id for the user who holds the seat (an external id, such as an identity provider&#39;s user id).
125
+ # @param [Hash] opts the optional parameters
126
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
127
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
128
+ # @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is &#x60;409&#x60;.
129
+ # @return [Array<(SeatTypeResponse, Integer, Hash)>] SeatTypeResponse data, response status code and response headers
130
+ def assign_seat_type_holder_with_http_info(org, type, user_ref, opts = {})
131
+ if @api_client.config.debugging
132
+ @api_client.config.logger.debug 'Calling API: SeatsApi.assign_seat_type_holder ...'
133
+ end
134
+ # verify the required parameter 'org' is set
135
+ if @api_client.config.client_side_validation && org.nil?
136
+ fail ArgumentError, "Missing the required parameter 'org' when calling SeatsApi.assign_seat_type_holder"
137
+ end
138
+ # verify the required parameter 'type' is set
139
+ if @api_client.config.client_side_validation && type.nil?
140
+ fail ArgumentError, "Missing the required parameter 'type' when calling SeatsApi.assign_seat_type_holder"
141
+ end
142
+ pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
143
+ if @api_client.config.client_side_validation && type !~ pattern
144
+ fail ArgumentError, "invalid value for 'type' when calling SeatsApi.assign_seat_type_holder, must conform to the pattern #{pattern}."
145
+ end
146
+
147
+ # verify the required parameter 'user_ref' is set
148
+ if @api_client.config.client_side_validation && user_ref.nil?
149
+ fail ArgumentError, "Missing the required parameter 'user_ref' when calling SeatsApi.assign_seat_type_holder"
150
+ end
151
+ if @api_client.config.client_side_validation && user_ref.to_s.length > 191
152
+ fail ArgumentError, 'invalid value for "user_ref" when calling SeatsApi.assign_seat_type_holder, the character length must be smaller than or equal to 191.'
153
+ end
154
+
155
+ pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
156
+ if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
157
+ fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling SeatsApi.assign_seat_type_holder, must conform to the pattern #{pattern}."
158
+ end
159
+
160
+ # resource path
161
+ local_var_path = '/subscriptions/{org}/seats/{type}/{userRef}'.sub('{org}', CGI.escape(org.to_s)).sub('{type}', CGI.escape(type.to_s)).sub('{userRef}', CGI.escape(user_ref.to_s))
162
+
163
+ # query parameters
164
+ query_params = opts[:query_params] || {}
165
+ query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
166
+ query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
167
+
168
+ # header parameters
169
+ header_params = opts[:header_params] || {}
170
+ # HTTP header 'Accept' (if needed)
171
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
172
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
173
+
174
+ # form parameters
175
+ form_params = opts[:form_params] || {}
176
+
177
+ # http body (model)
178
+ post_body = opts[:debug_body]
179
+
180
+ # return_type
181
+ return_type = opts[:debug_return_type] || 'SeatTypeResponse'
182
+
183
+ # auth_names
184
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
185
+
186
+ new_options = opts.merge(
187
+ :operation => :"SeatsApi.assign_seat_type_holder",
188
+ :header_params => header_params,
189
+ :query_params => query_params,
190
+ :form_params => form_params,
191
+ :body => post_body,
192
+ :auth_names => auth_names,
193
+ :return_type => return_type
194
+ )
195
+
196
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug "API called: SeatsApi#assign_seat_type_holder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
199
+ end
200
+ return data, status_code, headers
201
+ end
202
+
203
+ # The seat breakdown (purchased, Full, Light)
204
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
205
+ # @param [Hash] opts the optional parameters
206
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
207
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
208
+ # @return [SeatBreakdown]
209
+ def get_seat_breakdown(org, opts = {})
210
+ data, _status_code, _headers = get_seat_breakdown_with_http_info(org, opts)
211
+ data
212
+ end
213
+
214
+ # The seat breakdown (purchased, Full, Light)
215
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
216
+ # @param [Hash] opts the optional parameters
217
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
218
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
219
+ # @return [Array<(SeatBreakdown, Integer, Hash)>] SeatBreakdown data, response status code and response headers
220
+ def get_seat_breakdown_with_http_info(org, opts = {})
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug 'Calling API: SeatsApi.get_seat_breakdown ...'
223
+ end
224
+ # verify the required parameter 'org' is set
225
+ if @api_client.config.client_side_validation && org.nil?
226
+ fail ArgumentError, "Missing the required parameter 'org' when calling SeatsApi.get_seat_breakdown"
227
+ end
228
+ pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
229
+ if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
230
+ fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling SeatsApi.get_seat_breakdown, must conform to the pattern #{pattern}."
231
+ end
232
+
233
+ # resource path
234
+ local_var_path = '/subscriptions/{org}/seats'.sub('{org}', CGI.escape(org.to_s))
235
+
236
+ # query parameters
237
+ query_params = opts[:query_params] || {}
238
+ query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
239
+ query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
240
+
241
+ # header parameters
242
+ header_params = opts[:header_params] || {}
243
+ # HTTP header 'Accept' (if needed)
244
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
245
+
246
+ # form parameters
247
+ form_params = opts[:form_params] || {}
248
+
249
+ # http body (model)
250
+ post_body = opts[:debug_body]
251
+
252
+ # return_type
253
+ return_type = opts[:debug_return_type] || 'SeatBreakdown'
254
+
255
+ # auth_names
256
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
257
+
258
+ new_options = opts.merge(
259
+ :operation => :"SeatsApi.get_seat_breakdown",
260
+ :header_params => header_params,
261
+ :query_params => query_params,
262
+ :form_params => form_params,
263
+ :body => post_body,
264
+ :auth_names => auth_names,
265
+ :return_type => return_type
266
+ )
267
+
268
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
269
+ if @api_client.config.debugging
270
+ @api_client.config.logger.debug "API called: SeatsApi#get_seat_breakdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
+ end
272
+ return data, status_code, headers
273
+ end
274
+
275
+ # One seat type as it stands, with its holders
276
+ # A seat type on the serving subscription: what is paid this period (the water level), what is held, what was vacated but stays paid until the period ends, and what bills (paid beyond the included quantity). `default` is the plan's own seats.
277
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
278
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
279
+ # @param [Hash] opts the optional parameters
280
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
281
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
282
+ # @return [SeatTypeResponse]
283
+ def get_seat_type(org, type, opts = {})
284
+ data, _status_code, _headers = get_seat_type_with_http_info(org, type, opts)
285
+ data
286
+ end
287
+
288
+ # One seat type as it stands, with its holders
289
+ # A seat type on the serving subscription: what is paid this period (the water level), what is held, what was vacated but stays paid until the period ends, and what bills (paid beyond the included quantity). &#x60;default&#x60; is the plan&#39;s own seats.
290
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
291
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
292
+ # @param [Hash] opts the optional parameters
293
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
294
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
295
+ # @return [Array<(SeatTypeResponse, Integer, Hash)>] SeatTypeResponse data, response status code and response headers
296
+ def get_seat_type_with_http_info(org, type, opts = {})
297
+ if @api_client.config.debugging
298
+ @api_client.config.logger.debug 'Calling API: SeatsApi.get_seat_type ...'
299
+ end
300
+ # verify the required parameter 'org' is set
301
+ if @api_client.config.client_side_validation && org.nil?
302
+ fail ArgumentError, "Missing the required parameter 'org' when calling SeatsApi.get_seat_type"
303
+ end
304
+ # verify the required parameter 'type' is set
305
+ if @api_client.config.client_side_validation && type.nil?
306
+ fail ArgumentError, "Missing the required parameter 'type' when calling SeatsApi.get_seat_type"
307
+ end
308
+ pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
309
+ if @api_client.config.client_side_validation && type !~ pattern
310
+ fail ArgumentError, "invalid value for 'type' when calling SeatsApi.get_seat_type, must conform to the pattern #{pattern}."
311
+ end
312
+
313
+ pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
314
+ if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
315
+ fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling SeatsApi.get_seat_type, must conform to the pattern #{pattern}."
316
+ end
317
+
318
+ # resource path
319
+ local_var_path = '/subscriptions/{org}/seats/{type}'.sub('{org}', CGI.escape(org.to_s)).sub('{type}', CGI.escape(type.to_s))
320
+
321
+ # query parameters
322
+ query_params = opts[:query_params] || {}
323
+ query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
324
+ query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
325
+
326
+ # header parameters
327
+ header_params = opts[:header_params] || {}
328
+ # HTTP header 'Accept' (if needed)
329
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
330
+
331
+ # form parameters
332
+ form_params = opts[:form_params] || {}
333
+
334
+ # http body (model)
335
+ post_body = opts[:debug_body]
336
+
337
+ # return_type
338
+ return_type = opts[:debug_return_type] || 'SeatTypeResponse'
339
+
340
+ # auth_names
341
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
342
+
343
+ new_options = opts.merge(
344
+ :operation => :"SeatsApi.get_seat_type",
345
+ :header_params => header_params,
346
+ :query_params => query_params,
347
+ :form_params => form_params,
348
+ :body => post_body,
349
+ :auth_names => auth_names,
350
+ :return_type => return_type
351
+ )
352
+
353
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug "API called: SeatsApi#get_seat_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
356
+ end
357
+ return data, status_code, headers
358
+ end
359
+
360
+ # Every seat movement of a type, newest first
361
+ # The append-only seat ledger of the type: each seat added, removed, reassigned, lapsed at the renewal, purchased or released, with when, who and through which surface. Paged with `page` and `per_page` (at most 200).
362
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
363
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
364
+ # @param [Hash] opts the optional parameters
365
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
366
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
367
+ # @option opts [Integer] :page
368
+ # @option opts [Integer] :per_page (default to 50)
369
+ # @return [SeatLedgerPage]
370
+ def list_seat_ledger(org, type, opts = {})
371
+ data, _status_code, _headers = list_seat_ledger_with_http_info(org, type, opts)
372
+ data
373
+ end
374
+
375
+ # Every seat movement of a type, newest first
376
+ # The append-only seat ledger of the type: each seat added, removed, reassigned, lapsed at the renewal, purchased or released, with when, who and through which surface. Paged with &#x60;page&#x60; and &#x60;per_page&#x60; (at most 200).
377
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
378
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
379
+ # @param [Hash] opts the optional parameters
380
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
381
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
382
+ # @option opts [Integer] :page
383
+ # @option opts [Integer] :per_page (default to 50)
384
+ # @return [Array<(SeatLedgerPage, Integer, Hash)>] SeatLedgerPage data, response status code and response headers
385
+ def list_seat_ledger_with_http_info(org, type, opts = {})
386
+ if @api_client.config.debugging
387
+ @api_client.config.logger.debug 'Calling API: SeatsApi.list_seat_ledger ...'
388
+ end
389
+ # verify the required parameter 'org' is set
390
+ if @api_client.config.client_side_validation && org.nil?
391
+ fail ArgumentError, "Missing the required parameter 'org' when calling SeatsApi.list_seat_ledger"
392
+ end
393
+ # verify the required parameter 'type' is set
394
+ if @api_client.config.client_side_validation && type.nil?
395
+ fail ArgumentError, "Missing the required parameter 'type' when calling SeatsApi.list_seat_ledger"
396
+ end
397
+ pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
398
+ if @api_client.config.client_side_validation && type !~ pattern
399
+ fail ArgumentError, "invalid value for 'type' when calling SeatsApi.list_seat_ledger, must conform to the pattern #{pattern}."
400
+ end
401
+
402
+ pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
403
+ if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
404
+ fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling SeatsApi.list_seat_ledger, must conform to the pattern #{pattern}."
405
+ end
406
+
407
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
408
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling SeatsApi.list_seat_ledger, must be greater than or equal to 1.'
409
+ end
410
+
411
+ if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 200
412
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling SeatsApi.list_seat_ledger, must be smaller than or equal to 200.'
413
+ end
414
+
415
+ if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
416
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling SeatsApi.list_seat_ledger, must be greater than or equal to 1.'
417
+ end
418
+
419
+ # resource path
420
+ local_var_path = '/subscriptions/{org}/seats/{type}/ledger'.sub('{org}', CGI.escape(org.to_s)).sub('{type}', CGI.escape(type.to_s))
421
+
422
+ # query parameters
423
+ query_params = opts[:query_params] || {}
424
+ query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
425
+ query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
426
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
427
+ query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
428
+
429
+ # header parameters
430
+ header_params = opts[:header_params] || {}
431
+ # HTTP header 'Accept' (if needed)
432
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
433
+
434
+ # form parameters
435
+ form_params = opts[:form_params] || {}
436
+
437
+ # http body (model)
438
+ post_body = opts[:debug_body]
439
+
440
+ # return_type
441
+ return_type = opts[:debug_return_type] || 'SeatLedgerPage'
442
+
443
+ # auth_names
444
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
445
+
446
+ new_options = opts.merge(
447
+ :operation => :"SeatsApi.list_seat_ledger",
448
+ :header_params => header_params,
449
+ :query_params => query_params,
450
+ :form_params => form_params,
451
+ :body => post_body,
452
+ :auth_names => auth_names,
453
+ :return_type => return_type
454
+ )
455
+
456
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
457
+ if @api_client.config.debugging
458
+ @api_client.config.logger.debug "API called: SeatsApi#list_seat_ledger\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
459
+ end
460
+ return data, status_code, headers
461
+ end
462
+
463
+ # Move a seat to another user, at no charge
464
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
465
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
466
+ # @param user_ref [String] The app&#39;s own id for the user who holds the seat (an external id, such as an identity provider&#39;s user id).
467
+ # @param seat_reassign_request [SeatReassignRequest]
468
+ # @param [Hash] opts the optional parameters
469
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
470
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
471
+ # @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is &#x60;409&#x60;.
472
+ # @return [SeatTypeResponse]
473
+ def reassign_seat_type_holder(org, type, user_ref, seat_reassign_request, opts = {})
474
+ data, _status_code, _headers = reassign_seat_type_holder_with_http_info(org, type, user_ref, seat_reassign_request, opts)
475
+ data
476
+ end
477
+
478
+ # Move a seat to another user, at no charge
479
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
480
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
481
+ # @param user_ref [String] The app&#39;s own id for the user who holds the seat (an external id, such as an identity provider&#39;s user id).
482
+ # @param seat_reassign_request [SeatReassignRequest]
483
+ # @param [Hash] opts the optional parameters
484
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
485
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
486
+ # @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is &#x60;409&#x60;.
487
+ # @return [Array<(SeatTypeResponse, Integer, Hash)>] SeatTypeResponse data, response status code and response headers
488
+ def reassign_seat_type_holder_with_http_info(org, type, user_ref, seat_reassign_request, opts = {})
489
+ if @api_client.config.debugging
490
+ @api_client.config.logger.debug 'Calling API: SeatsApi.reassign_seat_type_holder ...'
491
+ end
492
+ # verify the required parameter 'org' is set
493
+ if @api_client.config.client_side_validation && org.nil?
494
+ fail ArgumentError, "Missing the required parameter 'org' when calling SeatsApi.reassign_seat_type_holder"
495
+ end
496
+ # verify the required parameter 'type' is set
497
+ if @api_client.config.client_side_validation && type.nil?
498
+ fail ArgumentError, "Missing the required parameter 'type' when calling SeatsApi.reassign_seat_type_holder"
499
+ end
500
+ pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
501
+ if @api_client.config.client_side_validation && type !~ pattern
502
+ fail ArgumentError, "invalid value for 'type' when calling SeatsApi.reassign_seat_type_holder, must conform to the pattern #{pattern}."
503
+ end
504
+
505
+ # verify the required parameter 'user_ref' is set
506
+ if @api_client.config.client_side_validation && user_ref.nil?
507
+ fail ArgumentError, "Missing the required parameter 'user_ref' when calling SeatsApi.reassign_seat_type_holder"
508
+ end
509
+ if @api_client.config.client_side_validation && user_ref.to_s.length > 191
510
+ fail ArgumentError, 'invalid value for "user_ref" when calling SeatsApi.reassign_seat_type_holder, the character length must be smaller than or equal to 191.'
511
+ end
512
+
513
+ # verify the required parameter 'seat_reassign_request' is set
514
+ if @api_client.config.client_side_validation && seat_reassign_request.nil?
515
+ fail ArgumentError, "Missing the required parameter 'seat_reassign_request' when calling SeatsApi.reassign_seat_type_holder"
516
+ end
517
+ pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
518
+ if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
519
+ fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling SeatsApi.reassign_seat_type_holder, must conform to the pattern #{pattern}."
520
+ end
521
+
522
+ # resource path
523
+ local_var_path = '/subscriptions/{org}/seats/{type}/{userRef}/reassign'.sub('{org}', CGI.escape(org.to_s)).sub('{type}', CGI.escape(type.to_s)).sub('{userRef}', CGI.escape(user_ref.to_s))
524
+
525
+ # query parameters
526
+ query_params = opts[:query_params] || {}
527
+ query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
528
+ query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
529
+
530
+ # header parameters
531
+ header_params = opts[:header_params] || {}
532
+ # HTTP header 'Accept' (if needed)
533
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
534
+ # HTTP header 'Content-Type'
535
+ content_type = @api_client.select_header_content_type(['application/json'])
536
+ if !content_type.nil?
537
+ header_params['Content-Type'] = content_type
538
+ end
539
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
540
+
541
+ # form parameters
542
+ form_params = opts[:form_params] || {}
543
+
544
+ # http body (model)
545
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(seat_reassign_request)
546
+
547
+ # return_type
548
+ return_type = opts[:debug_return_type] || 'SeatTypeResponse'
549
+
550
+ # auth_names
551
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
552
+
553
+ new_options = opts.merge(
554
+ :operation => :"SeatsApi.reassign_seat_type_holder",
555
+ :header_params => header_params,
556
+ :query_params => query_params,
557
+ :form_params => form_params,
558
+ :body => post_body,
559
+ :auth_names => auth_names,
560
+ :return_type => return_type
561
+ )
562
+
563
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
564
+ if @api_client.config.debugging
565
+ @api_client.config.logger.debug "API called: SeatsApi#reassign_seat_type_holder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
566
+ end
567
+ return data, status_code, headers
568
+ end
569
+
570
+ # The user gives the seat up
571
+ # The seat stays paid until the period ends (\"vacated but paid\") and can go to another user at no charge. At the renewal it lapses unless it was filled again. When the environment credits seat reductions at once, the paid count drops now and the unused part goes on the account credit. Honours `Idempotency-Key`.
572
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
573
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
574
+ # @param user_ref [String] The app&#39;s own id for the user who holds the seat (an external id, such as an identity provider&#39;s user id).
575
+ # @param [Hash] opts the optional parameters
576
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
577
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
578
+ # @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is &#x60;409&#x60;.
579
+ # @return [SeatTypeResponse]
580
+ def remove_seat_type_holder(org, type, user_ref, opts = {})
581
+ data, _status_code, _headers = remove_seat_type_holder_with_http_info(org, type, user_ref, opts)
582
+ data
583
+ end
584
+
585
+ # The user gives the seat up
586
+ # The seat stays paid until the period ends (\&quot;vacated but paid\&quot;) and can go to another user at no charge. At the renewal it lapses unless it was filled again. When the environment credits seat reductions at once, the paid count drops now and the unused part goes on the account credit. Honours &#x60;Idempotency-Key&#x60;.
587
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
588
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
589
+ # @param user_ref [String] The app&#39;s own id for the user who holds the seat (an external id, such as an identity provider&#39;s user id).
590
+ # @param [Hash] opts the optional parameters
591
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
592
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
593
+ # @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is &#x60;409&#x60;.
594
+ # @return [Array<(SeatTypeResponse, Integer, Hash)>] SeatTypeResponse data, response status code and response headers
595
+ def remove_seat_type_holder_with_http_info(org, type, user_ref, opts = {})
596
+ if @api_client.config.debugging
597
+ @api_client.config.logger.debug 'Calling API: SeatsApi.remove_seat_type_holder ...'
598
+ end
599
+ # verify the required parameter 'org' is set
600
+ if @api_client.config.client_side_validation && org.nil?
601
+ fail ArgumentError, "Missing the required parameter 'org' when calling SeatsApi.remove_seat_type_holder"
602
+ end
603
+ # verify the required parameter 'type' is set
604
+ if @api_client.config.client_side_validation && type.nil?
605
+ fail ArgumentError, "Missing the required parameter 'type' when calling SeatsApi.remove_seat_type_holder"
606
+ end
607
+ pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
608
+ if @api_client.config.client_side_validation && type !~ pattern
609
+ fail ArgumentError, "invalid value for 'type' when calling SeatsApi.remove_seat_type_holder, must conform to the pattern #{pattern}."
610
+ end
611
+
612
+ # verify the required parameter 'user_ref' is set
613
+ if @api_client.config.client_side_validation && user_ref.nil?
614
+ fail ArgumentError, "Missing the required parameter 'user_ref' when calling SeatsApi.remove_seat_type_holder"
615
+ end
616
+ if @api_client.config.client_side_validation && user_ref.to_s.length > 191
617
+ fail ArgumentError, 'invalid value for "user_ref" when calling SeatsApi.remove_seat_type_holder, the character length must be smaller than or equal to 191.'
618
+ end
619
+
620
+ pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
621
+ if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
622
+ fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling SeatsApi.remove_seat_type_holder, must conform to the pattern #{pattern}."
623
+ end
624
+
625
+ # resource path
626
+ local_var_path = '/subscriptions/{org}/seats/{type}/{userRef}'.sub('{org}', CGI.escape(org.to_s)).sub('{type}', CGI.escape(type.to_s)).sub('{userRef}', CGI.escape(user_ref.to_s))
627
+
628
+ # query parameters
629
+ query_params = opts[:query_params] || {}
630
+ query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
631
+ query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
632
+
633
+ # header parameters
634
+ header_params = opts[:header_params] || {}
635
+ # HTTP header 'Accept' (if needed)
636
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
637
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
638
+
639
+ # form parameters
640
+ form_params = opts[:form_params] || {}
641
+
642
+ # http body (model)
643
+ post_body = opts[:debug_body]
644
+
645
+ # return_type
646
+ return_type = opts[:debug_return_type] || 'SeatTypeResponse'
647
+
648
+ # auth_names
649
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
650
+
651
+ new_options = opts.merge(
652
+ :operation => :"SeatsApi.remove_seat_type_holder",
653
+ :header_params => header_params,
654
+ :query_params => query_params,
655
+ :form_params => form_params,
656
+ :body => post_body,
657
+ :auth_names => auth_names,
658
+ :return_type => return_type
659
+ )
660
+
661
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
662
+ if @api_client.config.debugging
663
+ @api_client.config.logger.debug "API called: SeatsApi#remove_seat_type_holder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
664
+ end
665
+ return data, status_code, headers
666
+ end
667
+
668
+ # Set the purchased Full-seat count (buy/release)
669
+ # Set the purchased Full-seat count. Seats bought are prorated and charged now. Seats released stay until the period end: `purchased` is unchanged and `pending_seats` holds the count the next period opens at. Posting the current count cancels a waiting reduction. Refuses dropping below the assigned count or below one (`409`). Honours `Idempotency-Key`.
670
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
671
+ # @param seats_set_request [SeatsSetRequest]
672
+ # @param [Hash] opts the optional parameters
673
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
674
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
675
+ # @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is &#x60;409&#x60;.
676
+ # @return [SeatBreakdown]
677
+ def set_purchased_seats(org, seats_set_request, opts = {})
678
+ data, _status_code, _headers = set_purchased_seats_with_http_info(org, seats_set_request, opts)
679
+ data
680
+ end
681
+
682
+ # Set the purchased Full-seat count (buy/release)
683
+ # Set the purchased Full-seat count. Seats bought are prorated and charged now. Seats released stay until the period end: &#x60;purchased&#x60; is unchanged and &#x60;pending_seats&#x60; holds the count the next period opens at. Posting the current count cancels a waiting reduction. Refuses dropping below the assigned count or below one (&#x60;409&#x60;). Honours &#x60;Idempotency-Key&#x60;.
684
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
685
+ # @param seats_set_request [SeatsSetRequest]
686
+ # @param [Hash] opts the optional parameters
687
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
688
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
689
+ # @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is &#x60;409&#x60;.
690
+ # @return [Array<(SeatBreakdown, Integer, Hash)>] SeatBreakdown data, response status code and response headers
691
+ def set_purchased_seats_with_http_info(org, seats_set_request, opts = {})
692
+ if @api_client.config.debugging
693
+ @api_client.config.logger.debug 'Calling API: SeatsApi.set_purchased_seats ...'
694
+ end
695
+ # verify the required parameter 'org' is set
696
+ if @api_client.config.client_side_validation && org.nil?
697
+ fail ArgumentError, "Missing the required parameter 'org' when calling SeatsApi.set_purchased_seats"
698
+ end
699
+ # verify the required parameter 'seats_set_request' is set
700
+ if @api_client.config.client_side_validation && seats_set_request.nil?
701
+ fail ArgumentError, "Missing the required parameter 'seats_set_request' when calling SeatsApi.set_purchased_seats"
702
+ end
703
+ pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
704
+ if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
705
+ fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling SeatsApi.set_purchased_seats, must conform to the pattern #{pattern}."
706
+ end
707
+
708
+ # resource path
709
+ local_var_path = '/subscriptions/{org}/seats'.sub('{org}', CGI.escape(org.to_s))
710
+
711
+ # query parameters
712
+ query_params = opts[:query_params] || {}
713
+ query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
714
+ query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
715
+
716
+ # header parameters
717
+ header_params = opts[:header_params] || {}
718
+ # HTTP header 'Accept' (if needed)
719
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
720
+ # HTTP header 'Content-Type'
721
+ content_type = @api_client.select_header_content_type(['application/json'])
722
+ if !content_type.nil?
723
+ header_params['Content-Type'] = content_type
724
+ end
725
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
726
+
727
+ # form parameters
728
+ form_params = opts[:form_params] || {}
729
+
730
+ # http body (model)
731
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(seats_set_request)
732
+
733
+ # return_type
734
+ return_type = opts[:debug_return_type] || 'SeatBreakdown'
735
+
736
+ # auth_names
737
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
738
+
739
+ new_options = opts.merge(
740
+ :operation => :"SeatsApi.set_purchased_seats",
741
+ :header_params => header_params,
742
+ :query_params => query_params,
743
+ :form_params => form_params,
744
+ :body => post_body,
745
+ :auth_names => auth_names,
746
+ :return_type => return_type
747
+ )
748
+
749
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
750
+ if @api_client.config.debugging
751
+ @api_client.config.logger.debug "API called: SeatsApi#set_purchased_seats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
752
+ end
753
+ return data, status_code, headers
754
+ end
755
+
756
+ # Set the paid seats of a type (buy or release)
757
+ # Set how many seats of the type are paid for. More is prorated and charged at once. Fewer waits for the period end (`effective_at`), unless the environment credits seat reductions at once, when the unused part goes on the account credit (`credit_minor`). A type whose seats are held by named users cannot go below the seats held (`409`). With `preview: true` nothing changes and the response says what it would cost. Honours `Idempotency-Key`.
758
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
759
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
760
+ # @param seat_type_quantity_request [SeatTypeQuantityRequest]
761
+ # @param [Hash] opts the optional parameters
762
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
763
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
764
+ # @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is &#x60;409&#x60;.
765
+ # @return [SeatTypeChange]
766
+ def set_seat_type_quantity(org, type, seat_type_quantity_request, opts = {})
767
+ data, _status_code, _headers = set_seat_type_quantity_with_http_info(org, type, seat_type_quantity_request, opts)
768
+ data
769
+ end
770
+
771
+ # Set the paid seats of a type (buy or release)
772
+ # Set how many seats of the type are paid for. More is prorated and charged at once. Fewer waits for the period end (&#x60;effective_at&#x60;), unless the environment credits seat reductions at once, when the unused part goes on the account credit (&#x60;credit_minor&#x60;). A type whose seats are held by named users cannot go below the seats held (&#x60;409&#x60;). With &#x60;preview: true&#x60; nothing changes and the response says what it would cost. Honours &#x60;Idempotency-Key&#x60;.
773
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
774
+ # @param type [String] A seat type key of the plan; &#x60;default&#x60; is the plan&#39;s own seats.
775
+ # @param seat_type_quantity_request [SeatTypeQuantityRequest]
776
+ # @param [Hash] opts the optional parameters
777
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
778
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
779
+ # @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is &#x60;409&#x60;.
780
+ # @return [Array<(SeatTypeChange, Integer, Hash)>] SeatTypeChange data, response status code and response headers
781
+ def set_seat_type_quantity_with_http_info(org, type, seat_type_quantity_request, opts = {})
782
+ if @api_client.config.debugging
783
+ @api_client.config.logger.debug 'Calling API: SeatsApi.set_seat_type_quantity ...'
784
+ end
785
+ # verify the required parameter 'org' is set
786
+ if @api_client.config.client_side_validation && org.nil?
787
+ fail ArgumentError, "Missing the required parameter 'org' when calling SeatsApi.set_seat_type_quantity"
788
+ end
789
+ # verify the required parameter 'type' is set
790
+ if @api_client.config.client_side_validation && type.nil?
791
+ fail ArgumentError, "Missing the required parameter 'type' when calling SeatsApi.set_seat_type_quantity"
792
+ end
793
+ pattern = Regexp.new(/^[a-z0-9][a-z0-9_-]{0,63}$/)
794
+ if @api_client.config.client_side_validation && type !~ pattern
795
+ fail ArgumentError, "invalid value for 'type' when calling SeatsApi.set_seat_type_quantity, must conform to the pattern #{pattern}."
796
+ end
797
+
798
+ # verify the required parameter 'seat_type_quantity_request' is set
799
+ if @api_client.config.client_side_validation && seat_type_quantity_request.nil?
800
+ fail ArgumentError, "Missing the required parameter 'seat_type_quantity_request' when calling SeatsApi.set_seat_type_quantity"
801
+ end
802
+ pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
803
+ if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
804
+ fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling SeatsApi.set_seat_type_quantity, must conform to the pattern #{pattern}."
805
+ end
806
+
807
+ # resource path
808
+ local_var_path = '/subscriptions/{org}/seats/{type}'.sub('{org}', CGI.escape(org.to_s)).sub('{type}', CGI.escape(type.to_s))
809
+
810
+ # query parameters
811
+ query_params = opts[:query_params] || {}
812
+ query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
813
+ query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
814
+
815
+ # header parameters
816
+ header_params = opts[:header_params] || {}
817
+ # HTTP header 'Accept' (if needed)
818
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
819
+ # HTTP header 'Content-Type'
820
+ content_type = @api_client.select_header_content_type(['application/json'])
821
+ if !content_type.nil?
822
+ header_params['Content-Type'] = content_type
823
+ end
824
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
825
+
826
+ # form parameters
827
+ form_params = opts[:form_params] || {}
828
+
829
+ # http body (model)
830
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(seat_type_quantity_request)
831
+
832
+ # return_type
833
+ return_type = opts[:debug_return_type] || 'SeatTypeChange'
834
+
835
+ # auth_names
836
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
837
+
838
+ new_options = opts.merge(
839
+ :operation => :"SeatsApi.set_seat_type_quantity",
840
+ :header_params => header_params,
841
+ :query_params => query_params,
842
+ :form_params => form_params,
843
+ :body => post_body,
844
+ :auth_names => auth_names,
845
+ :return_type => return_type
846
+ )
847
+
848
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
849
+ if @api_client.config.debugging
850
+ @api_client.config.logger.debug "API called: SeatsApi#set_seat_type_quantity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
851
+ end
852
+ return data, status_code, headers
853
+ end
854
+
855
+ # Free a member's seat (they become Light)
856
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
857
+ # @param seat_subject_request [SeatSubjectRequest]
858
+ # @param [Hash] opts the optional parameters
859
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
860
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
861
+ # @return [SeatBreakdown]
862
+ def unassign_seat(org, seat_subject_request, opts = {})
863
+ data, _status_code, _headers = unassign_seat_with_http_info(org, seat_subject_request, opts)
864
+ data
865
+ end
866
+
867
+ # Free a member&#39;s seat (they become Light)
868
+ # @param org [String] The organization id (the merchant platform&#39;s own tenant key).
869
+ # @param seat_subject_request [SeatSubjectRequest]
870
+ # @param [Hash] opts the optional parameters
871
+ # @option opts [String] :product The product key whose subscription to address (INT-2). A product-bound token is always confined to its own product; naming another is a &#x60;404&#x60;. An unbound token without it addresses the organization&#39;s newest serving subscription for the reference.
872
+ # @option opts [String] :reference What inside the organization the subscription is for — a Cbox Sites website id (decision D6). Exact: omitted means the organization-level subscription. Usage and allowances for a reference count under the subject &#x60;org#reference&#x60;. Also accepted in the JSON body of a &#x60;POST&#x60;.
873
+ # @return [Array<(SeatBreakdown, Integer, Hash)>] SeatBreakdown data, response status code and response headers
874
+ def unassign_seat_with_http_info(org, seat_subject_request, opts = {})
875
+ if @api_client.config.debugging
876
+ @api_client.config.logger.debug 'Calling API: SeatsApi.unassign_seat ...'
877
+ end
878
+ # verify the required parameter 'org' is set
879
+ if @api_client.config.client_side_validation && org.nil?
880
+ fail ArgumentError, "Missing the required parameter 'org' when calling SeatsApi.unassign_seat"
881
+ end
882
+ # verify the required parameter 'seat_subject_request' is set
883
+ if @api_client.config.client_side_validation && seat_subject_request.nil?
884
+ fail ArgumentError, "Missing the required parameter 'seat_subject_request' when calling SeatsApi.unassign_seat"
885
+ end
886
+ pattern = Regexp.new(/^[A-Za-z0-9._:-]{1,191}$/)
887
+ if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] !~ pattern
888
+ fail ArgumentError, "invalid value for 'opts[:\"reference\"]' when calling SeatsApi.unassign_seat, must conform to the pattern #{pattern}."
889
+ end
890
+
891
+ # resource path
892
+ local_var_path = '/subscriptions/{org}/seats/unassign'.sub('{org}', CGI.escape(org.to_s))
893
+
894
+ # query parameters
895
+ query_params = opts[:query_params] || {}
896
+ query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
897
+ query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
898
+
899
+ # header parameters
900
+ header_params = opts[:header_params] || {}
901
+ # HTTP header 'Accept' (if needed)
902
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
903
+ # HTTP header 'Content-Type'
904
+ content_type = @api_client.select_header_content_type(['application/json'])
905
+ if !content_type.nil?
906
+ header_params['Content-Type'] = content_type
907
+ end
908
+
909
+ # form parameters
910
+ form_params = opts[:form_params] || {}
911
+
912
+ # http body (model)
913
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(seat_subject_request)
914
+
915
+ # return_type
916
+ return_type = opts[:debug_return_type] || 'SeatBreakdown'
917
+
918
+ # auth_names
919
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
920
+
921
+ new_options = opts.merge(
922
+ :operation => :"SeatsApi.unassign_seat",
923
+ :header_params => header_params,
924
+ :query_params => query_params,
925
+ :form_params => form_params,
926
+ :body => post_body,
927
+ :auth_names => auth_names,
928
+ :return_type => return_type
929
+ )
930
+
931
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
932
+ if @api_client.config.debugging
933
+ @api_client.config.logger.debug "API called: SeatsApi#unassign_seat\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
934
+ end
935
+ return data, status_code, headers
936
+ end
937
+ end
938
+ end