moolabs 0.3.0__py3-none-any.whl

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 (1417) hide show
  1. moolabs/__init__.py +1487 -0
  2. moolabs/_dx_attribution_context.py +213 -0
  3. moolabs/_dx_attribution_db_time.py +2126 -0
  4. moolabs/_dx_attribution_db_time_transport.py +173 -0
  5. moolabs/_dx_attribution_delta.py +142 -0
  6. moolabs/_dx_attribution_deposits.py +552 -0
  7. moolabs/_dx_attribution_instrument.py +416 -0
  8. moolabs/_dx_attribution_middleware.py +541 -0
  9. moolabs/_dx_attribution_propagate.py +509 -0
  10. moolabs/_dx_attribution_signal_transport.py +232 -0
  11. moolabs/_dx_attribution_signals.py +927 -0
  12. moolabs/_dx_buffer.py +429 -0
  13. moolabs/_dx_client.py +726 -0
  14. moolabs/_dx_exceptions.py +84 -0
  15. moolabs/_dx_namespaces.py +1780 -0
  16. moolabs/_dx_pagination.py +131 -0
  17. moolabs/_dx_routing.py +276 -0
  18. moolabs/_dx_urls.py +629 -0
  19. moolabs/_dx_webhooks.py +82 -0
  20. moolabs/api/__init__.py +121 -0
  21. moolabs/api/account_team_api.py +1444 -0
  22. moolabs/api/accounts_api.py +4950 -0
  23. moolabs/api/acute_analytics_api.py +5750 -0
  24. moolabs/api/acute_integrations_api.py +3449 -0
  25. moolabs/api/admin_api.py +3347 -0
  26. moolabs/api/alerts_api.py +1626 -0
  27. moolabs/api/allocation_rules_api.py +1720 -0
  28. moolabs/api/analytics_api.py +3204 -0
  29. moolabs/api/app_custom_invoicing_api.py +952 -0
  30. moolabs/api/app_stripe_api.py +958 -0
  31. moolabs/api/apps_api.py +3064 -0
  32. moolabs/api/arc_admin_api.py +8773 -0
  33. moolabs/api/arc_communications_api.py +1991 -0
  34. moolabs/api/arc_portal_api.py +1737 -0
  35. moolabs/api/arc_webhooks_api.py +2087 -0
  36. moolabs/api/attribution_allocation_api.py +2345 -0
  37. moolabs/api/attribution_api.py +1717 -0
  38. moolabs/api/attribution_customer_keys_api.py +600 -0
  39. moolabs/api/attribution_db_time_api.py +918 -0
  40. moolabs/api/attribution_opencost_api.py +1372 -0
  41. moolabs/api/attribution_readouts_api.py +393 -0
  42. moolabs/api/attribution_signals_api.py +315 -0
  43. moolabs/api/auto_topup_api.py +3095 -0
  44. moolabs/api/batch_api.py +6714 -0
  45. moolabs/api/billing_api.py +300 -0
  46. moolabs/api/bom_api.py +2769 -0
  47. moolabs/api/budgets_api.py +2112 -0
  48. moolabs/api/buyer_quotes_api.py +2007 -0
  49. moolabs/api/cases_api.py +5075 -0
  50. moolabs/api/cash_credits_api.py +1548 -0
  51. moolabs/api/chat_api.py +3101 -0
  52. moolabs/api/clause_packs_api.py +2785 -0
  53. moolabs/api/cloud_billing_api.py +1747 -0
  54. moolabs/api/contract_editor_api.py +3384 -0
  55. moolabs/api/cost_events_api.py +1732 -0
  56. moolabs/api/credit_memos_api.py +3478 -0
  57. moolabs/api/customers_api.py +3931 -0
  58. moolabs/api/dashboard_api.py +771 -0
  59. moolabs/api/debug_api.py +300 -0
  60. moolabs/api/default_api.py +526 -0
  61. moolabs/api/disputes_api.py +3586 -0
  62. moolabs/api/dunning_templates_api.py +8737 -0
  63. moolabs/api/email_provider_api.py +526 -0
  64. moolabs/api/entitlements_api.py +9846 -0
  65. moolabs/api/escalations_api.py +2541 -0
  66. moolabs/api/events_api.py +1125 -0
  67. moolabs/api/fx_rates_api.py +1452 -0
  68. moolabs/api/governance_api.py +4402 -0
  69. moolabs/api/grants_api.py +1370 -0
  70. moolabs/api/handoffs_api.py +2138 -0
  71. moolabs/api/health_api.py +281 -0
  72. moolabs/api/homepage_api.py +305 -0
  73. moolabs/api/integrations_api.py +3374 -0
  74. moolabs/api/internal_api.py +7145 -0
  75. moolabs/api/internal_credit_memos_api.py +914 -0
  76. moolabs/api/internal_grants_api.py +1000 -0
  77. moolabs/api/internal_period_settlements_api.py +657 -0
  78. moolabs/api/internal_plan_pricing_api.py +326 -0
  79. moolabs/api/internal_subscriptions_api.py +326 -0
  80. moolabs/api/ledger_api.py +1483 -0
  81. moolabs/api/lookup_information_api.py +587 -0
  82. moolabs/api/mapping_rules_api.py +1782 -0
  83. moolabs/api/mappings_api.py +632 -0
  84. moolabs/api/margin_simulation_api.py +595 -0
  85. moolabs/api/margins_api.py +2301 -0
  86. moolabs/api/meter_billing_api.py +7419 -0
  87. moolabs/api/meter_portal_api.py +1368 -0
  88. moolabs/api/meter_subscriptions_api.py +4358 -0
  89. moolabs/api/meters_api.py +3707 -0
  90. moolabs/api/monitoring_api.py +561 -0
  91. moolabs/api/moolabs_api.py +1182 -0
  92. moolabs/api/moometer_proxy_api.py +1357 -0
  93. moolabs/api/netsuite_sync_api.py +2180 -0
  94. moolabs/api/notes_api.py +1425 -0
  95. moolabs/api/notifications_api.py +4490 -0
  96. moolabs/api/ops_api.py +315 -0
  97. moolabs/api/outbox_api.py +653 -0
  98. moolabs/api/payments_api.py +2889 -0
  99. moolabs/api/performance_api.py +2471 -0
  100. moolabs/api/plan_pricing_api.py +3409 -0
  101. moolabs/api/plans_api.py +2197 -0
  102. moolabs/api/pools_api.py +2358 -0
  103. moolabs/api/portal_api.py +1103 -0
  104. moolabs/api/product_catalog_api.py +7644 -0
  105. moolabs/api/promises_api.py +2814 -0
  106. moolabs/api/quote_agents_api.py +2036 -0
  107. moolabs/api/quote_contract_webhooks_api.py +327 -0
  108. moolabs/api/quote_contracts_api.py +2551 -0
  109. moolabs/api/quote_sessions_api.py +881 -0
  110. moolabs/api/quotes_api.py +12880 -0
  111. moolabs/api/rate_cards_api.py +578 -0
  112. moolabs/api/rate_catalog_api.py +2120 -0
  113. moolabs/api/rate_schedules_api.py +1224 -0
  114. moolabs/api/rating_api.py +617 -0
  115. moolabs/api/reconstruction_api.py +1281 -0
  116. moolabs/api/remittances_api.py +1521 -0
  117. moolabs/api/reports_api.py +722 -0
  118. moolabs/api/rollover_api.py +313 -0
  119. moolabs/api/sdk_ingest_api.py +312 -0
  120. moolabs/api/snapshots_api.py +1218 -0
  121. moolabs/api/state_projection_api.py +961 -0
  122. moolabs/api/steering_api.py +1862 -0
  123. moolabs/api/subjects_api.py +1160 -0
  124. moolabs/api/subscription_overrides_api.py +579 -0
  125. moolabs/api/subscriptions_api.py +1200 -0
  126. moolabs/api/tasks_api.py +1509 -0
  127. moolabs/api/tenant_api.py +22395 -0
  128. moolabs/api/tenant_config_api.py +282 -0
  129. moolabs/api/topup_api.py +632 -0
  130. moolabs/api/unpriced_api.py +933 -0
  131. moolabs/api/usage_api.py +999 -0
  132. moolabs/api/variance_api.py +1327 -0
  133. moolabs/api/wallets_api.py +3787 -0
  134. moolabs/api/webhooks_api.py +281 -0
  135. moolabs/api/well_known_api.py +278 -0
  136. moolabs/api/word_addin_api.py +623 -0
  137. moolabs/api_client.py +797 -0
  138. moolabs/api_response.py +21 -0
  139. moolabs/configuration.py +620 -0
  140. moolabs/exceptions.py +199 -0
  141. moolabs/models/__init__.py +1286 -0
  142. moolabs/models/account_create.py +114 -0
  143. moolabs/models/account_filter_options_response.py +97 -0
  144. moolabs/models/account_invoice_list_response.py +95 -0
  145. moolabs/models/account_list_item_response.py +152 -0
  146. moolabs/models/account_list_item_response_subsidiaries_inner.py +152 -0
  147. moolabs/models/account_list_response.py +101 -0
  148. moolabs/models/account_overview_bucket_response.py +91 -0
  149. moolabs/models/account_overview_response.py +106 -0
  150. moolabs/models/account_response.py +132 -0
  151. moolabs/models/account_segment_row.py +91 -0
  152. moolabs/models/account_subsidiary_option.py +89 -0
  153. moolabs/models/account_summary.py +97 -0
  154. moolabs/models/account_team_member_in.py +97 -0
  155. moolabs/models/account_team_member_out.py +101 -0
  156. moolabs/models/account_team_member_patch.py +97 -0
  157. moolabs/models/account_team_role.py +39 -0
  158. moolabs/models/account_update.py +106 -0
  159. moolabs/models/action_kind.py +45 -0
  160. moolabs/models/acute_approve_request.py +87 -0
  161. moolabs/models/acute_demo_seed_lifecycle_request.py +103 -0
  162. moolabs/models/acute_http_validation_error.py +95 -0
  163. moolabs/models/acute_validation_error.py +99 -0
  164. moolabs/models/add_contract_participant_request.py +107 -0
  165. moolabs/models/addon.py +178 -0
  166. moolabs/models/addon1.py +115 -0
  167. moolabs/models/addon2.py +95 -0
  168. moolabs/models/addon_create.py +123 -0
  169. moolabs/models/addon_instance_type.py +37 -0
  170. moolabs/models/addon_order_by.py +40 -0
  171. moolabs/models/addon_paginated_response.py +101 -0
  172. moolabs/models/addon_replace_update.py +105 -0
  173. moolabs/models/addon_status.py +38 -0
  174. moolabs/models/address.py +110 -0
  175. moolabs/models/adjusted_total.py +152 -0
  176. moolabs/models/adjustment_amount.py +152 -0
  177. moolabs/models/aging_bucket_detail.py +93 -0
  178. moolabs/models/aging_report_response.py +106 -0
  179. moolabs/models/alb_bootstrap_response.py +89 -0
  180. moolabs/models/alb_connector_config.py +128 -0
  181. moolabs/models/alb_connector_health_response.py +112 -0
  182. moolabs/models/alb_connector_list_response.py +138 -0
  183. moolabs/models/alb_load_balancer_config.py +111 -0
  184. moolabs/models/alb_route_rule.py +107 -0
  185. moolabs/models/alb_source_config.py +123 -0
  186. moolabs/models/alb_source_health_response.py +93 -0
  187. moolabs/models/alb_status_patch_request.py +94 -0
  188. moolabs/models/alb_status_patch_response.py +94 -0
  189. moolabs/models/alb_target_group_config.py +103 -0
  190. moolabs/models/algorithm_breakdown_item.py +89 -0
  191. moolabs/models/algorithm_info.py +93 -0
  192. moolabs/models/alignment.py +87 -0
  193. moolabs/models/allocate_credits_request.py +95 -0
  194. moolabs/models/allocation_coverage_response.py +157 -0
  195. moolabs/models/allocation_fact_page_response.py +97 -0
  196. moolabs/models/allocation_fact_response.py +146 -0
  197. moolabs/models/allocation_key.py +91 -0
  198. moolabs/models/allocation_rule_create.py +114 -0
  199. moolabs/models/allocation_rule_response.py +113 -0
  200. moolabs/models/allocation_rule_update.py +111 -0
  201. moolabs/models/allocation_run_create_request.py +100 -0
  202. moolabs/models/allocation_run_create_response.py +142 -0
  203. moolabs/models/allocation_run_open_cost_snapshot_response.py +120 -0
  204. moolabs/models/allocation_run_readout_response.py +110 -0
  205. moolabs/models/allocation_run_response.py +133 -0
  206. moolabs/models/allocations_list_response.py +97 -0
  207. moolabs/models/amount.py +152 -0
  208. moolabs/models/amount1.py +152 -0
  209. moolabs/models/api_key_item.py +103 -0
  210. moolabs/models/app.py +164 -0
  211. moolabs/models/app_api_v1_auto_topup_router_trigger_response.py +108 -0
  212. moolabs/models/app_api_v1_fx_rates_router_fx_rate_response.py +104 -0
  213. moolabs/models/app_api_v1_integrations_netsuite_sync_router_trigger_response.py +89 -0
  214. moolabs/models/app_api_v1_internal_subscription_sync_schemas_subscription_sync_request.py +123 -0
  215. moolabs/models/app_api_v1_portal_router_create_portal_token_request.py +92 -0
  216. moolabs/models/app_api_v1_quotes_schemas_quote_settings_response.py +91 -0
  217. moolabs/models/app_api_v1_quotes_schemas_update_quote_settings_request.py +89 -0
  218. moolabs/models/app_api_v1_subscriptions_router_subscription_sync_request.py +125 -0
  219. moolabs/models/app_api_v1_tenant_access_router_create_portal_token_request.py +101 -0
  220. moolabs/models/app_api_v1_tenant_fx_rates_router_fx_rate_response.py +93 -0
  221. moolabs/models/app_api_v1_tenant_quote_settings_router_quote_settings_response.py +89 -0
  222. moolabs/models/app_api_v1_tenant_quote_settings_router_update_quote_settings_request.py +87 -0
  223. moolabs/models/app_capability.py +102 -0
  224. moolabs/models/app_capability_type.py +40 -0
  225. moolabs/models/app_paginated_response.py +101 -0
  226. moolabs/models/app_reference.py +95 -0
  227. moolabs/models/app_replace_update.py +164 -0
  228. moolabs/models/app_status.py +37 -0
  229. moolabs/models/app_type.py +38 -0
  230. moolabs/models/apply_credit_request.py +92 -0
  231. moolabs/models/approval_action_request.py +88 -0
  232. moolabs/models/approval_action_response.py +95 -0
  233. moolabs/models/approval_policy_response.py +91 -0
  234. moolabs/models/approve_request.py +88 -0
  235. moolabs/models/approve_response.py +91 -0
  236. moolabs/models/approver_in.py +95 -0
  237. moolabs/models/arc_demo_seed_lifecycle_request.py +103 -0
  238. moolabs/models/arc_dunning_permission_grant_request.py +96 -0
  239. moolabs/models/arc_dunning_permission_revoke_request.py +90 -0
  240. moolabs/models/arc_dunning_template_admin_grant_request.py +90 -0
  241. moolabs/models/arc_dunning_template_admin_grant_response.py +115 -0
  242. moolabs/models/arc_dunning_template_admin_revoke_request.py +88 -0
  243. moolabs/models/arc_dunning_template_admin_user_dto.py +107 -0
  244. moolabs/models/arc_dunning_template_admin_user_grant_dto.py +105 -0
  245. moolabs/models/arc_dunning_template_admin_users_response.py +110 -0
  246. moolabs/models/arc_http_validation_error.py +95 -0
  247. moolabs/models/arc_transaction_request.py +110 -0
  248. moolabs/models/arc_validation_error.py +99 -0
  249. moolabs/models/ask_customer_request.py +97 -0
  250. moolabs/models/ask_customer_response.py +91 -0
  251. moolabs/models/ask_moo_redline_request.py +98 -0
  252. moolabs/models/attribution_allocation_error_detail.py +94 -0
  253. moolabs/models/attribution_allocation_error_response.py +91 -0
  254. moolabs/models/attribution_completeness_response.py +97 -0
  255. moolabs/models/attribution_signal_conflict_detail.py +94 -0
  256. moolabs/models/attribution_signal_conflict_response.py +91 -0
  257. moolabs/models/attribution_signal_delta.py +98 -0
  258. moolabs/models/attribution_signal_request.py +123 -0
  259. moolabs/models/attribution_signal_response.py +96 -0
  260. moolabs/models/audit_request.py +91 -0
  261. moolabs/models/auto_topup_activity_item.py +104 -0
  262. moolabs/models/auto_topup_activity_response.py +97 -0
  263. moolabs/models/auto_topup_rule_response.py +114 -0
  264. moolabs/models/availability.py +43 -0
  265. moolabs/models/backfill_candidate.py +97 -0
  266. moolabs/models/backfill_malformed_disputes_request.py +87 -0
  267. moolabs/models/backfill_malformed_disputes_response.py +101 -0
  268. moolabs/models/balance_history_window.py +99 -0
  269. moolabs/models/basis.py +37 -0
  270. moolabs/models/batch_ingest_request.py +96 -0
  271. moolabs/models/batch_wallet_state_request.py +105 -0
  272. moolabs/models/batch_wallet_state_request_item.py +91 -0
  273. moolabs/models/batch_wallet_state_response.py +97 -0
  274. moolabs/models/batch_wallets_by_subjects_request.py +88 -0
  275. moolabs/models/billing_customer_profile.py +109 -0
  276. moolabs/models/billing_discount_percentage.py +100 -0
  277. moolabs/models/billing_discount_reason.py +164 -0
  278. moolabs/models/billing_discount_usage.py +107 -0
  279. moolabs/models/billing_discounts.py +97 -0
  280. moolabs/models/billing_import_request.py +105 -0
  281. moolabs/models/billing_import_response.py +104 -0
  282. moolabs/models/billing_invoice_customer_extended_details.py +116 -0
  283. moolabs/models/billing_party.py +110 -0
  284. moolabs/models/billing_party_replace_update.py +106 -0
  285. moolabs/models/billing_party_tax_identity.py +88 -0
  286. moolabs/models/billing_profile.py +140 -0
  287. moolabs/models/billing_profile_app_references.py +107 -0
  288. moolabs/models/billing_profile_apps.py +107 -0
  289. moolabs/models/billing_profile_apps_create.py +113 -0
  290. moolabs/models/billing_profile_apps_or_reference.py +148 -0
  291. moolabs/models/billing_profile_create.py +112 -0
  292. moolabs/models/billing_profile_customer_override.py +116 -0
  293. moolabs/models/billing_profile_customer_override_create.py +98 -0
  294. moolabs/models/billing_profile_customer_override_expand.py +37 -0
  295. moolabs/models/billing_profile_customer_override_order_by.py +40 -0
  296. moolabs/models/billing_profile_customer_override_with_details.py +113 -0
  297. moolabs/models/billing_profile_customer_override_with_details_paginated_response.py +101 -0
  298. moolabs/models/billing_profile_expand.py +36 -0
  299. moolabs/models/billing_profile_order_by.py +39 -0
  300. moolabs/models/billing_profile_paginated_response.py +101 -0
  301. moolabs/models/billing_profile_replace_update_with_workflow.py +106 -0
  302. moolabs/models/billing_tenant_settings_out.py +89 -0
  303. moolabs/models/billing_tenant_settings_update.py +88 -0
  304. moolabs/models/billing_workflow.py +109 -0
  305. moolabs/models/billing_workflow_collection_alignment.py +150 -0
  306. moolabs/models/billing_workflow_collection_alignment_anchored.py +100 -0
  307. moolabs/models/billing_workflow_collection_alignment_subscription.py +94 -0
  308. moolabs/models/billing_workflow_collection_settings.py +93 -0
  309. moolabs/models/billing_workflow_create.py +109 -0
  310. moolabs/models/billing_workflow_invoicing_settings.py +99 -0
  311. moolabs/models/billing_workflow_payment_settings.py +88 -0
  312. moolabs/models/billing_workflow_tax_settings.py +89 -0
  313. moolabs/models/bom_component_in.py +105 -0
  314. moolabs/models/bom_component_out.py +109 -0
  315. moolabs/models/bom_create_request.py +107 -0
  316. moolabs/models/bom_out.py +127 -0
  317. moolabs/models/bom_update_request.py +103 -0
  318. moolabs/models/bom_variance_out.py +115 -0
  319. moolabs/models/breakdown_response.py +124 -0
  320. moolabs/models/breakdown_row.py +121 -0
  321. moolabs/models/breakdown_row_kind.py +39 -0
  322. moolabs/models/budget_alert_response.py +107 -0
  323. moolabs/models/budget_amount.py +152 -0
  324. moolabs/models/budget_amount1.py +152 -0
  325. moolabs/models/budget_create.py +110 -0
  326. moolabs/models/budget_pace_status.py +38 -0
  327. moolabs/models/budget_response.py +113 -0
  328. moolabs/models/budget_status_item.py +105 -0
  329. moolabs/models/budget_update.py +107 -0
  330. moolabs/models/budget_with_utilization.py +119 -0
  331. moolabs/models/bulk_action_request.py +92 -0
  332. moolabs/models/bulk_replay_request.py +92 -0
  333. moolabs/models/buyer_accept_request.py +95 -0
  334. moolabs/models/buyer_otp_request_response.py +91 -0
  335. moolabs/models/buyer_otp_verify_request.py +95 -0
  336. moolabs/models/buyer_otp_verify_response.py +89 -0
  337. moolabs/models/buyer_quote_line_item.py +103 -0
  338. moolabs/models/buyer_quote_pricing.py +93 -0
  339. moolabs/models/buyer_quote_projection.py +133 -0
  340. moolabs/models/buyer_reject_request.py +88 -0
  341. moolabs/models/buyer_request_changes_request.py +94 -0
  342. moolabs/models/buyer_request_changes_response.py +93 -0
  343. moolabs/models/buyer_requested_changes.py +90 -0
  344. moolabs/models/cancel_subscription_request.py +91 -0
  345. moolabs/models/card_type.py +37 -0
  346. moolabs/models/case_create.py +112 -0
  347. moolabs/models/case_escalate_request.py +90 -0
  348. moolabs/models/case_invoice_create.py +127 -0
  349. moolabs/models/case_invoice_response.py +150 -0
  350. moolabs/models/case_list_item_response.py +171 -0
  351. moolabs/models/case_list_response.py +101 -0
  352. moolabs/models/case_pause_request.py +91 -0
  353. moolabs/models/case_response.py +169 -0
  354. moolabs/models/case_update.py +102 -0
  355. moolabs/models/case_write_off_request.py +90 -0
  356. moolabs/models/cash_app_config_update_request.py +96 -0
  357. moolabs/models/cei_response.py +102 -0
  358. moolabs/models/change_item.py +101 -0
  359. moolabs/models/channel_policy_schema.py +112 -0
  360. moolabs/models/channel_preference_create.py +99 -0
  361. moolabs/models/channel_preference_response.py +106 -0
  362. moolabs/models/channel_preference_update.py +95 -0
  363. moolabs/models/channel_preferences_response.py +95 -0
  364. moolabs/models/chat_feedback_in.py +91 -0
  365. moolabs/models/chat_message_in.py +89 -0
  366. moolabs/models/chat_request.py +101 -0
  367. moolabs/models/check_trigger_request.py +88 -0
  368. moolabs/models/checkout_session_custom_text_after_submit_params.py +109 -0
  369. moolabs/models/checkout_session_custom_text_after_submit_params_after_submit.py +88 -0
  370. moolabs/models/checkout_session_custom_text_after_submit_params_shipping_address.py +88 -0
  371. moolabs/models/checkout_session_custom_text_after_submit_params_submit.py +88 -0
  372. moolabs/models/checkout_session_custom_text_after_submit_params_terms_of_service_acceptance.py +88 -0
  373. moolabs/models/checkout_session_ui_mode.py +37 -0
  374. moolabs/models/clause_citations.py +91 -0
  375. moolabs/models/clause_family.py +129 -0
  376. moolabs/models/clause_finding.py +110 -0
  377. moolabs/models/clause_pack.py +118 -0
  378. moolabs/models/clause_position.py +91 -0
  379. moolabs/models/client_app_start_response.py +87 -0
  380. moolabs/models/cloud_cost_row_input.py +105 -0
  381. moolabs/models/cloud_provider.py +38 -0
  382. moolabs/models/cloud_provider_data_through.py +116 -0
  383. moolabs/models/cloud_provider_quality_axis.py +107 -0
  384. moolabs/models/cloud_temporal_coverage_summary.py +114 -0
  385. moolabs/models/collection_method.py +37 -0
  386. moolabs/models/commercial_basis.py +39 -0
  387. moolabs/models/commercial_overrides.py +113 -0
  388. moolabs/models/commercial_overrides_input.py +115 -0
  389. moolabs/models/commercial_overrides_payload.py +113 -0
  390. moolabs/models/communication_create.py +110 -0
  391. moolabs/models/communication_list_response.py +101 -0
  392. moolabs/models/communication_response.py +138 -0
  393. moolabs/models/comparison_mode.py +37 -0
  394. moolabs/models/completeness_response.py +105 -0
  395. moolabs/models/component_coverage_response.py +123 -0
  396. moolabs/models/compute_variance_request.py +96 -0
  397. moolabs/models/compute_variance_response.py +105 -0
  398. moolabs/models/config_upload_gap_out.py +89 -0
  399. moolabs/models/config_upload_response.py +109 -0
  400. moolabs/models/config_upload_summary_out.py +95 -0
  401. moolabs/models/connector_config_response.py +93 -0
  402. moolabs/models/connector_health_response.py +102 -0
  403. moolabs/models/connector_item.py +105 -0
  404. moolabs/models/contact_create.py +100 -0
  405. moolabs/models/contact_list_response.py +101 -0
  406. moolabs/models/contact_response.py +134 -0
  407. moolabs/models/contact_update.py +102 -0
  408. moolabs/models/contract_document_response.py +104 -0
  409. moolabs/models/contract_event_response.py +108 -0
  410. moolabs/models/contract_inbound_message_response.py +106 -0
  411. moolabs/models/contract_participant_response.py +131 -0
  412. moolabs/models/contract_segment_response.py +95 -0
  413. moolabs/models/contract_thread_response.py +115 -0
  414. moolabs/models/contract_thread_snapshot_response.py +121 -0
  415. moolabs/models/contract_upload_detail_response.py +103 -0
  416. moolabs/models/contract_version_response.py +128 -0
  417. moolabs/models/contributor_item.py +123 -0
  418. moolabs/models/contributor_kind.py +38 -0
  419. moolabs/models/contributor_query_request.py +146 -0
  420. moolabs/models/contributor_response.py +174 -0
  421. moolabs/models/cost.py +152 -0
  422. moolabs/models/cost_adjustment_create.py +131 -0
  423. moolabs/models/cost_adjustment_response.py +102 -0
  424. moolabs/models/cost_driver_rule_create_request.py +158 -0
  425. moolabs/models/cost_driver_rule_response.py +126 -0
  426. moolabs/models/cost_driver_rule_update_request.py +100 -0
  427. moolabs/models/cost_event_detail_response.py +132 -0
  428. moolabs/models/cost_event_ingest.py +177 -0
  429. moolabs/models/cost_event_response.py +122 -0
  430. moolabs/models/cost_event_summary_item.py +103 -0
  431. moolabs/models/cost_event_summary_request.py +88 -0
  432. moolabs/models/cost_event_summary_response.py +95 -0
  433. moolabs/models/cost_explorer_response.py +155 -0
  434. moolabs/models/cost_scope.py +37 -0
  435. moolabs/models/coverage_snapshot_response.py +114 -0
  436. moolabs/models/cpu_core_hours.py +152 -0
  437. moolabs/models/cpu_cost_weight.py +152 -0
  438. moolabs/models/create_allocation_run_api422_response.py +147 -0
  439. moolabs/models/create_api_key_request.py +89 -0
  440. moolabs/models/create_api_key_response.py +105 -0
  441. moolabs/models/create_auto_topup_rule_request.py +106 -0
  442. moolabs/models/create_checkout_session_tax_id_collection.py +90 -0
  443. moolabs/models/create_checkout_session_tax_id_collection_required.py +37 -0
  444. moolabs/models/create_contract_thread_request.py +87 -0
  445. moolabs/models/create_credit_request.py +97 -0
  446. moolabs/models/create_fx_rate_request.py +103 -0
  447. moolabs/models/create_grant_request.py +136 -0
  448. moolabs/models/create_mapping_request.py +91 -0
  449. moolabs/models/create_matrix_price_row_request.py +91 -0
  450. moolabs/models/create_matrix_price_row_response.py +89 -0
  451. moolabs/models/create_portal_token_response.py +91 -0
  452. moolabs/models/create_quote_redline_request.py +103 -0
  453. moolabs/models/create_quote_request.py +119 -0
  454. moolabs/models/create_quote_template_request.py +102 -0
  455. moolabs/models/create_rate_card_request.py +105 -0
  456. moolabs/models/create_reconstruction_run_request.py +101 -0
  457. moolabs/models/create_session_response.py +97 -0
  458. moolabs/models/create_snapshot_request.py +98 -0
  459. moolabs/models/create_stripe_checkout_session_billing_address_collection.py +37 -0
  460. moolabs/models/create_stripe_checkout_session_consent_collection.py +97 -0
  461. moolabs/models/create_stripe_checkout_session_consent_collection_payment_method_reuse_agreement.py +88 -0
  462. moolabs/models/create_stripe_checkout_session_consent_collection_payment_method_reuse_agreement_position.py +37 -0
  463. moolabs/models/create_stripe_checkout_session_consent_collection_promotions.py +37 -0
  464. moolabs/models/create_stripe_checkout_session_consent_collection_terms_of_service.py +37 -0
  465. moolabs/models/create_stripe_checkout_session_customer_update.py +92 -0
  466. moolabs/models/create_stripe_checkout_session_customer_update_behavior.py +37 -0
  467. moolabs/models/create_stripe_checkout_session_redirect_on_completion.py +38 -0
  468. moolabs/models/create_stripe_checkout_session_request.py +112 -0
  469. moolabs/models/create_stripe_checkout_session_request_customer.py +163 -0
  470. moolabs/models/create_stripe_checkout_session_request_options.py +147 -0
  471. moolabs/models/create_stripe_checkout_session_result.py +139 -0
  472. moolabs/models/create_stripe_customer_portal_session_params.py +91 -0
  473. moolabs/models/create_threshold_request.py +99 -0
  474. moolabs/models/create_value_recognition_request.py +100 -0
  475. moolabs/models/create_wallet_request.py +106 -0
  476. moolabs/models/credit_config.py +119 -0
  477. moolabs/models/credit_config_payload.py +135 -0
  478. moolabs/models/credit_cost_ratio_item.py +93 -0
  479. moolabs/models/credit_cost_ratio_response.py +101 -0
  480. moolabs/models/credit_memo_apply_request.py +90 -0
  481. moolabs/models/credit_memo_create.py +104 -0
  482. moolabs/models/credit_memo_create_internal.py +114 -0
  483. moolabs/models/credit_memo_create_public.py +108 -0
  484. moolabs/models/credit_memo_item.py +102 -0
  485. moolabs/models/credit_memo_line_in.py +90 -0
  486. moolabs/models/credit_memo_list_response.py +101 -0
  487. moolabs/models/credit_memo_out.py +138 -0
  488. moolabs/models/credit_memo_response.py +124 -0
  489. moolabs/models/credit_memo_update.py +94 -0
  490. moolabs/models/credit_note_original_invoice_ref.py +114 -0
  491. moolabs/models/credit_override.py +87 -0
  492. moolabs/models/credit_override_input.py +101 -0
  493. moolabs/models/credit_override_payload.py +100 -0
  494. moolabs/models/crm_quote_context_request.py +94 -0
  495. moolabs/models/crm_quote_context_response.py +101 -0
  496. moolabs/models/crm_quote_draft_request.py +98 -0
  497. moolabs/models/crm_quote_draft_response.py +107 -0
  498. moolabs/models/crm_quote_record_card_response.py +97 -0
  499. moolabs/models/crm_surface_response.py +97 -0
  500. moolabs/models/currency.py +101 -0
  501. moolabs/models/current.py +152 -0
  502. moolabs/models/custom_invoicing_app.py +142 -0
  503. moolabs/models/custom_invoicing_app_replace_update.py +105 -0
  504. moolabs/models/custom_invoicing_customer_app_data.py +117 -0
  505. moolabs/models/custom_invoicing_draft_synchronized_request.py +91 -0
  506. moolabs/models/custom_invoicing_finalized_invoicing_request.py +91 -0
  507. moolabs/models/custom_invoicing_finalized_payment_request.py +87 -0
  508. moolabs/models/custom_invoicing_finalized_request.py +97 -0
  509. moolabs/models/custom_invoicing_line_discount_external_id_mapping.py +97 -0
  510. moolabs/models/custom_invoicing_line_external_id_mapping.py +97 -0
  511. moolabs/models/custom_invoicing_payment_trigger.py +41 -0
  512. moolabs/models/custom_invoicing_sync_result.py +110 -0
  513. moolabs/models/custom_invoicing_tax_config.py +87 -0
  514. moolabs/models/custom_invoicing_update_payment_status_request.py +92 -0
  515. moolabs/models/custom_plan_input.py +136 -0
  516. moolabs/models/custom_subscription_change.py +119 -0
  517. moolabs/models/custom_subscription_create.py +153 -0
  518. moolabs/models/customer.py +172 -0
  519. moolabs/models/customer_access.py +102 -0
  520. moolabs/models/customer_app_data.py +164 -0
  521. moolabs/models/customer_app_data_create_or_update_item.py +164 -0
  522. moolabs/models/customer_app_data_paginated_response.py +101 -0
  523. moolabs/models/customer_cost_item.py +95 -0
  524. moolabs/models/customer_create.py +120 -0
  525. moolabs/models/customer_expand.py +36 -0
  526. moolabs/models/customer_id.py +95 -0
  527. moolabs/models/customer_item.py +114 -0
  528. moolabs/models/customer_key.py +87 -0
  529. moolabs/models/customer_key_page_response.py +101 -0
  530. moolabs/models/customer_key_put_request.py +103 -0
  531. moolabs/models/customer_key_response.py +94 -0
  532. moolabs/models/customer_margin_item.py +99 -0
  533. moolabs/models/customer_margin_response.py +101 -0
  534. moolabs/models/customer_order_by.py +38 -0
  535. moolabs/models/customer_paginated_response.py +101 -0
  536. moolabs/models/customer_replace_update.py +120 -0
  537. moolabs/models/customer_subscription_order_by.py +37 -0
  538. moolabs/models/customer_upsert_request.py +102 -0
  539. moolabs/models/customer_usage_attribution.py +88 -0
  540. moolabs/models/danger_request.py +89 -0
  541. moolabs/models/dashboard_meta.py +172 -0
  542. moolabs/models/dashboard_overview_response.py +115 -0
  543. moolabs/models/data_through.py +115 -0
  544. moolabs/models/db_time_coverage_response.py +154 -0
  545. moolabs/models/db_time_evidence_batch_readback_response.py +135 -0
  546. moolabs/models/db_time_evidence_batch_request.py +147 -0
  547. moolabs/models/db_time_evidence_batch_response.py +100 -0
  548. moolabs/models/db_time_evidence_conflict_detail.py +94 -0
  549. moolabs/models/db_time_evidence_conflict_response.py +91 -0
  550. moolabs/models/db_time_evidence_not_found_detail.py +94 -0
  551. moolabs/models/db_time_evidence_not_found_response.py +91 -0
  552. moolabs/models/db_time_observation_request.py +131 -0
  553. moolabs/models/db_time_readout_quality_response.py +103 -0
  554. moolabs/models/deal_context.py +97 -0
  555. moolabs/models/deal_context_rule.py +105 -0
  556. moolabs/models/decision_item.py +131 -0
  557. moolabs/models/decision_kind.py +46 -0
  558. moolabs/models/decision_overview_response.py +172 -0
  559. moolabs/models/decision_queue_response.py +115 -0
  560. moolabs/models/decision_reason_code.py +53 -0
  561. moolabs/models/delta.py +152 -0
  562. moolabs/models/delta_pct.py +152 -0
  563. moolabs/models/demo_seed_acute_history_baseline_request.py +106 -0
  564. moolabs/models/demo_seed_acute_tenant_registration_request.py +114 -0
  565. moolabs/models/demo_seed_agent_report_baseline_request.py +106 -0
  566. moolabs/models/demo_seed_arc_invoice_ref.py +107 -0
  567. moolabs/models/demo_seed_arc_portfolio_baseline_request.py +121 -0
  568. moolabs/models/demo_seed_catalog_baseline_request.py +108 -0
  569. moolabs/models/demo_seed_customer_portfolio_baseline_request.py +103 -0
  570. moolabs/models/demo_seed_integration_crm_baseline_request.py +106 -0
  571. moolabs/models/demo_seed_integration_finance_baseline_request.py +106 -0
  572. moolabs/models/demo_seed_integration_netsuite_baseline_request.py +106 -0
  573. moolabs/models/demo_seed_integration_webhook_baseline_request.py +106 -0
  574. moolabs/models/demo_seed_invoice_payment_baseline_request.py +106 -0
  575. moolabs/models/demo_seed_isolation_canary_baseline_request.py +106 -0
  576. moolabs/models/demo_seed_lifecycle_request.py +103 -0
  577. moolabs/models/demo_seed_quote_contract_baseline_request.py +106 -0
  578. moolabs/models/demo_seed_security_credentials_baseline_request.py +106 -0
  579. moolabs/models/demo_seed_settings_baseline_request.py +106 -0
  580. moolabs/models/demo_seed_subscription_baseline_request.py +106 -0
  581. moolabs/models/demo_seed_tenant_config_baseline_request.py +119 -0
  582. moolabs/models/demo_seed_usage_baseline_request.py +106 -0
  583. moolabs/models/derive_request.py +94 -0
  584. moolabs/models/dimension.py +39 -0
  585. moolabs/models/dimension_coverage_response.py +102 -0
  586. moolabs/models/disclosure_policy_response.py +93 -0
  587. moolabs/models/disclosure_policy_update_request.py +102 -0
  588. moolabs/models/discount_percentage.py +87 -0
  589. moolabs/models/discount_reason_maximum_spend.py +94 -0
  590. moolabs/models/discount_reason_ratecard_percentage.py +109 -0
  591. moolabs/models/discount_reason_ratecard_usage.py +116 -0
  592. moolabs/models/discount_usage.py +95 -0
  593. moolabs/models/discounts.py +97 -0
  594. moolabs/models/dismiss_refinement_request.py +87 -0
  595. moolabs/models/dispute_approval_request.py +88 -0
  596. moolabs/models/dispute_list_response.py +101 -0
  597. moolabs/models/dispute_resolve_request.py +92 -0
  598. moolabs/models/dispute_response.py +134 -0
  599. moolabs/models/dispute_summary_response.py +104 -0
  600. moolabs/models/dispute_update_request.py +102 -0
  601. moolabs/models/dns_record.py +119 -0
  602. moolabs/models/domain_response.py +95 -0
  603. moolabs/models/domain_update.py +87 -0
  604. moolabs/models/draft_lock_request.py +88 -0
  605. moolabs/models/draft_lock_response.py +97 -0
  606. moolabs/models/draft_save_request.py +114 -0
  607. moolabs/models/draft_unlock_request.py +90 -0
  608. moolabs/models/driver_item.py +122 -0
  609. moolabs/models/dry_run_request.py +89 -0
  610. moolabs/models/dry_run_response.py +97 -0
  611. moolabs/models/dso_response.py +100 -0
  612. moolabs/models/dynamic_price_with_commitments.py +131 -0
  613. moolabs/models/economics_summary.py +114 -0
  614. moolabs/models/edit_subscription_add_item.py +102 -0
  615. moolabs/models/edit_subscription_add_phase.py +100 -0
  616. moolabs/models/edit_subscription_remove_item.py +98 -0
  617. moolabs/models/edit_subscription_remove_phase.py +99 -0
  618. moolabs/models/edit_subscription_stretch_phase.py +98 -0
  619. moolabs/models/edit_subscription_unschedule_edit.py +94 -0
  620. moolabs/models/effective_permission_grant_dto.py +105 -0
  621. moolabs/models/effective_permissions_response.py +129 -0
  622. moolabs/models/email_config_out.py +188 -0
  623. moolabs/models/email_config_upsert.py +111 -0
  624. moolabs/models/email_context.py +44 -0
  625. moolabs/models/email_message_status.py +42 -0
  626. moolabs/models/email_provider.py +37 -0
  627. moolabs/models/email_provider_identity.py +157 -0
  628. moolabs/models/email_provider_identity_list.py +108 -0
  629. moolabs/models/email_provider_operator_upsert.py +131 -0
  630. moolabs/models/email_provider_route.py +128 -0
  631. moolabs/models/email_provider_route_list.py +108 -0
  632. moolabs/models/enable_tier3_response.py +93 -0
  633. moolabs/models/endpoints_response.py +89 -0
  634. moolabs/models/entitlement.py +164 -0
  635. moolabs/models/entitlement_boolean.py +168 -0
  636. moolabs/models/entitlement_boolean_create_inputs.py +127 -0
  637. moolabs/models/entitlement_boolean_v2.py +170 -0
  638. moolabs/models/entitlement_create_inputs.py +164 -0
  639. moolabs/models/entitlement_grant.py +148 -0
  640. moolabs/models/entitlement_grant_create_input.py +111 -0
  641. moolabs/models/entitlement_grant_create_input_v2.py +113 -0
  642. moolabs/models/entitlement_grant_v2.py +148 -0
  643. moolabs/models/entitlement_metered.py +190 -0
  644. moolabs/models/entitlement_metered_create_inputs.py +143 -0
  645. moolabs/models/entitlement_metered_v2.py +196 -0
  646. moolabs/models/entitlement_metered_v2_create_inputs.py +157 -0
  647. moolabs/models/entitlement_order_by.py +37 -0
  648. moolabs/models/entitlement_override.py +89 -0
  649. moolabs/models/entitlement_override_input.py +95 -0
  650. moolabs/models/entitlement_override_payload.py +93 -0
  651. moolabs/models/entitlement_paginated_response.py +101 -0
  652. moolabs/models/entitlement_payload.py +103 -0
  653. moolabs/models/entitlement_static.py +170 -0
  654. moolabs/models/entitlement_static_create_inputs.py +129 -0
  655. moolabs/models/entitlement_static_v2.py +172 -0
  656. moolabs/models/entitlement_type.py +38 -0
  657. moolabs/models/entitlement_v2.py +164 -0
  658. moolabs/models/entitlement_v2_create_inputs.py +164 -0
  659. moolabs/models/entitlement_v2_paginated_response.py +101 -0
  660. moolabs/models/entitlement_value.py +109 -0
  661. moolabs/models/error_extension.py +110 -0
  662. moolabs/models/escalate_request.py +90 -0
  663. moolabs/models/escalate_response.py +91 -0
  664. moolabs/models/escalation_action_request.py +90 -0
  665. moolabs/models/escalation_action_response.py +91 -0
  666. moolabs/models/escalation_create.py +97 -0
  667. moolabs/models/escalation_dismiss_request.py +90 -0
  668. moolabs/models/escalation_list_response.py +101 -0
  669. moolabs/models/escalation_resolve_request.py +87 -0
  670. moolabs/models/escalation_response.py +112 -0
  671. moolabs/models/escalation_update.py +93 -0
  672. moolabs/models/event.py +115 -0
  673. moolabs/models/event_delivery_attempt_response.py +101 -0
  674. moolabs/models/evidence_create_request.py +96 -0
  675. moolabs/models/evidence_kind.py +39 -0
  676. moolabs/models/evidence_list_response.py +97 -0
  677. moolabs/models/evidence_response.py +106 -0
  678. moolabs/models/evidence_review_request.py +90 -0
  679. moolabs/models/evidence_window.py +37 -0
  680. moolabs/models/exchange_rate.py +152 -0
  681. moolabs/models/expiration_duration.py +40 -0
  682. moolabs/models/expiration_period.py +91 -0
  683. moolabs/models/explorer_alias_hint.py +104 -0
  684. moolabs/models/explorer_alias_hint1.py +110 -0
  685. moolabs/models/explorer_alias_kind.py +39 -0
  686. moolabs/models/explorer_breakdown_page.py +166 -0
  687. moolabs/models/explorer_breakdown_row.py +200 -0
  688. moolabs/models/explorer_cloud_provider_quality_axis.py +107 -0
  689. moolabs/models/explorer_cloud_temporal_coverage_summary.py +115 -0
  690. moolabs/models/explorer_contributor_kind.py +40 -0
  691. moolabs/models/explorer_contributor_query_request.py +190 -0
  692. moolabs/models/explorer_contributor_response.py +201 -0
  693. moolabs/models/explorer_contributor_row.py +177 -0
  694. moolabs/models/explorer_cost_event_status.py +39 -0
  695. moolabs/models/explorer_dimension.py +40 -0
  696. moolabs/models/explorer_effective_sort.py +107 -0
  697. moolabs/models/explorer_effective_sort_field.py +41 -0
  698. moolabs/models/explorer_evidence_kind.py +41 -0
  699. moolabs/models/explorer_evidence_role.py +37 -0
  700. moolabs/models/explorer_excluded_event_count.py +104 -0
  701. moolabs/models/explorer_excluded_event_reason.py +38 -0
  702. moolabs/models/explorer_exposure_summary.py +124 -0
  703. moolabs/models/explorer_measure_source.py +40 -0
  704. moolabs/models/explorer_meta.py +196 -0
  705. moolabs/models/explorer_quality_axis.py +117 -0
  706. moolabs/models/explorer_quality_caveat_code.py +45 -0
  707. moolabs/models/explorer_quality_summary.py +151 -0
  708. moolabs/models/explorer_query_request.py +184 -0
  709. moolabs/models/explorer_request_detail_event.py +134 -0
  710. moolabs/models/explorer_request_detail_line.py +133 -0
  711. moolabs/models/explorer_request_detail_query_request.py +201 -0
  712. moolabs/models/explorer_request_detail_response.py +205 -0
  713. moolabs/models/explorer_request_detail_result_cap.py +125 -0
  714. moolabs/models/explorer_request_distribution.py +109 -0
  715. moolabs/models/explorer_request_query_request.py +190 -0
  716. moolabs/models/explorer_search.py +111 -0
  717. moolabs/models/explorer_selection_result.py +107 -0
  718. moolabs/models/explorer_selection_row.py +185 -0
  719. moolabs/models/explorer_selection_status.py +39 -0
  720. moolabs/models/explorer_sort.py +104 -0
  721. moolabs/models/explorer_sort1.py +116 -0
  722. moolabs/models/explorer_sort_fallback_reason.py +39 -0
  723. moolabs/models/explorer_sort_field.py +40 -0
  724. moolabs/models/explorer_source_scope.py +38 -0
  725. moolabs/models/explorer_summary.py +134 -0
  726. moolabs/models/explorer_trend_point.py +124 -0
  727. moolabs/models/explorer_usage_history_evidence.py +110 -0
  728. moolabs/models/explorer_usage_history_source.py +38 -0
  729. moolabs/models/feature.py +156 -0
  730. moolabs/models/feature_contributor_customer.py +91 -0
  731. moolabs/models/feature_contributor_model.py +93 -0
  732. moolabs/models/feature_contributor_request.py +91 -0
  733. moolabs/models/feature_contributors_response.py +121 -0
  734. moolabs/models/feature_cost_item.py +97 -0
  735. moolabs/models/feature_create_inputs.py +128 -0
  736. moolabs/models/feature_flag_item.py +97 -0
  737. moolabs/models/feature_flag_update.py +87 -0
  738. moolabs/models/feature_margin_item.py +101 -0
  739. moolabs/models/feature_margin_response.py +101 -0
  740. moolabs/models/feature_meta.py +97 -0
  741. moolabs/models/feature_order_by.py +40 -0
  742. moolabs/models/feature_override_request.py +93 -0
  743. moolabs/models/feature_paginated_response.py +101 -0
  744. moolabs/models/feature_pool.py +99 -0
  745. moolabs/models/feature_pool_payload.py +107 -0
  746. moolabs/models/feature_price_request.py +93 -0
  747. moolabs/models/feature_pricing_input.py +120 -0
  748. moolabs/models/filter_id_exact.py +88 -0
  749. moolabs/models/filter_string.py +129 -0
  750. moolabs/models/filter_time.py +114 -0
  751. moolabs/models/finance_summary.py +143 -0
  752. moolabs/models/first_pass_redline_request.py +88 -0
  753. moolabs/models/first_pass_redline_response.py +89 -0
  754. moolabs/models/flag_disputed_request.py +92 -0
  755. moolabs/models/flag_disputed_response.py +97 -0
  756. moolabs/models/flat_price.py +104 -0
  757. moolabs/models/flat_price_with_payment_term.py +107 -0
  758. moolabs/models/flatamount.py +152 -0
  759. moolabs/models/freshness_axis.py +121 -0
  760. moolabs/models/freshness_source.py +40 -0
  761. moolabs/models/fx_rate_to_reporting.py +153 -0
  762. moolabs/models/fx_rates_list_response.py +97 -0
  763. moolabs/models/gate_status_response.py +105 -0
  764. moolabs/models/get_fx_rate_request.py +92 -0
  765. moolabs/models/get_matrix_price_rows_response.py +107 -0
  766. moolabs/models/google_chat_quote_response.py +89 -0
  767. moolabs/models/grant_activation_request.py +122 -0
  768. moolabs/models/grant_burn_down_history_segment.py +125 -0
  769. moolabs/models/grant_order_by.py +38 -0
  770. moolabs/models/grant_paginated_response.py +101 -0
  771. moolabs/models/grant_plan_change_request.py +126 -0
  772. moolabs/models/grant_renewal_request.py +122 -0
  773. moolabs/models/grant_response.py +128 -0
  774. moolabs/models/grant_source_type.py +40 -0
  775. moolabs/models/grant_usage_record.py +97 -0
  776. moolabs/models/grant_v2_paginated_response.py +101 -0
  777. moolabs/models/grants_list_response.py +99 -0
  778. moolabs/models/handoff_create_request.py +92 -0
  779. moolabs/models/helicone_config_request.py +92 -0
  780. moolabs/models/homepage_response.py +107 -0
  781. moolabs/models/hosted_checkout_settlement_ptp_response.py +100 -0
  782. moolabs/models/hosted_checkout_settlement_request.py +109 -0
  783. moolabs/models/hosted_checkout_settlement_response.py +97 -0
  784. moolabs/models/http_validation_error.py +95 -0
  785. moolabs/models/hub_spot_connect_request.py +91 -0
  786. moolabs/models/id_resource.py +97 -0
  787. moolabs/models/identity_scope.py +39 -0
  788. moolabs/models/identity_scope_coverage_response.py +96 -0
  789. moolabs/models/import_batch_detail_response.py +105 -0
  790. moolabs/models/import_batch_detail_row.py +111 -0
  791. moolabs/models/import_batch_request.py +112 -0
  792. moolabs/models/import_batch_response.py +101 -0
  793. moolabs/models/import_batch_summary.py +111 -0
  794. moolabs/models/import_dispute_item.py +122 -0
  795. moolabs/models/import_disputes_request.py +96 -0
  796. moolabs/models/import_invoice_item.py +133 -0
  797. moolabs/models/import_invoices_request.py +96 -0
  798. moolabs/models/import_promise_item.py +155 -0
  799. moolabs/models/import_promises_request.py +96 -0
  800. moolabs/models/inbound_email_attachment.py +91 -0
  801. moolabs/models/inbound_email_payload.py +103 -0
  802. moolabs/models/inbound_email_process_response.py +97 -0
  803. moolabs/models/ingest_events_body.py +150 -0
  804. moolabs/models/ingest_health.py +97 -0
  805. moolabs/models/ingested_event.py +111 -0
  806. moolabs/models/ingested_event_cursor_paginated_response.py +98 -0
  807. moolabs/models/initialamount.py +152 -0
  808. moolabs/models/insight_card.py +111 -0
  809. moolabs/models/install_method.py +38 -0
  810. moolabs/models/integration_update.py +89 -0
  811. moolabs/models/invalidate_portal_token_request.py +89 -0
  812. moolabs/models/invalidate_portal_tokens_request.py +89 -0
  813. moolabs/models/invoice.py +249 -0
  814. moolabs/models/invoice_allocation_out.py +103 -0
  815. moolabs/models/invoice_app_external_ids.py +97 -0
  816. moolabs/models/invoice_available_action_details.py +89 -0
  817. moolabs/models/invoice_available_actions.py +132 -0
  818. moolabs/models/invoice_detailed_line.py +244 -0
  819. moolabs/models/invoice_detailed_line_cost_category.py +37 -0
  820. moolabs/models/invoice_detailed_line_rate_card.py +116 -0
  821. moolabs/models/invoice_document_ref_type.py +36 -0
  822. moolabs/models/invoice_expand.py +38 -0
  823. moolabs/models/invoice_generic_document_ref.py +98 -0
  824. moolabs/models/invoice_item.py +112 -0
  825. moolabs/models/invoice_line.py +296 -0
  826. moolabs/models/invoice_line_amount_discount.py +141 -0
  827. moolabs/models/invoice_line_app_external_ids.py +93 -0
  828. moolabs/models/invoice_line_discounts.py +105 -0
  829. moolabs/models/invoice_line_managed_by.py +38 -0
  830. moolabs/models/invoice_line_out.py +99 -0
  831. moolabs/models/invoice_line_replace_update.py +143 -0
  832. moolabs/models/invoice_line_status.py +38 -0
  833. moolabs/models/invoice_line_subscription_reference.py +115 -0
  834. moolabs/models/invoice_line_tax_behavior.py +37 -0
  835. moolabs/models/invoice_line_tax_item.py +117 -0
  836. moolabs/models/invoice_line_usage_discount.py +155 -0
  837. moolabs/models/invoice_order_by.py +41 -0
  838. moolabs/models/invoice_paginated_response.py +101 -0
  839. moolabs/models/invoice_payment_terms.py +91 -0
  840. moolabs/models/invoice_pending_line_create.py +131 -0
  841. moolabs/models/invoice_pending_line_create_input.py +105 -0
  842. moolabs/models/invoice_pending_line_create_response.py +107 -0
  843. moolabs/models/invoice_pending_lines_action_filters_input.py +88 -0
  844. moolabs/models/invoice_pending_lines_action_input.py +106 -0
  845. moolabs/models/invoice_reference.py +101 -0
  846. moolabs/models/invoice_replace_update.py +117 -0
  847. moolabs/models/invoice_simulation_input.py +107 -0
  848. moolabs/models/invoice_simulation_line.py +164 -0
  849. moolabs/models/invoice_status.py +44 -0
  850. moolabs/models/invoice_status_details.py +103 -0
  851. moolabs/models/invoice_totals.py +163 -0
  852. moolabs/models/invoice_type.py +37 -0
  853. moolabs/models/invoice_upsert_request.py +112 -0
  854. moolabs/models/invoice_usage_based_rate_card.py +116 -0
  855. moolabs/models/invoice_workflow_invoicing_settings_replace_update.py +97 -0
  856. moolabs/models/invoice_workflow_replace_update.py +91 -0
  857. moolabs/models/invoice_workflow_settings.py +111 -0
  858. moolabs/models/invoice_workflow_settings_replace_update.py +97 -0
  859. moolabs/models/issue_after_reset.py +90 -0
  860. moolabs/models/jurisdiction_profile_response.py +102 -0
  861. moolabs/models/jurisdiction_resolution_request.py +92 -0
  862. moolabs/models/kill_switch_request.py +87 -0
  863. moolabs/models/langfuse_config_request.py +92 -0
  864. moolabs/models/lesson_action_request.py +89 -0
  865. moolabs/models/level_in.py +91 -0
  866. moolabs/models/lifecycle_event_request.py +97 -0
  867. moolabs/models/line_item_create.py +118 -0
  868. moolabs/models/line_total.py +153 -0
  869. moolabs/models/link_net_suite_account_request.py +89 -0
  870. moolabs/models/list_auto_topup_rules_response.py +97 -0
  871. moolabs/models/list_connectors200_response_inner.py +148 -0
  872. moolabs/models/list_entitlements_result.py +151 -0
  873. moolabs/models/list_events_v2_filter_param.py +123 -0
  874. moolabs/models/list_features_result.py +151 -0
  875. moolabs/models/list_grants_get200_response.py +151 -0
  876. moolabs/models/mapping_response.py +97 -0
  877. moolabs/models/mapping_rule_create.py +105 -0
  878. moolabs/models/mapping_rule_response.py +118 -0
  879. moolabs/models/mapping_rule_update.py +103 -0
  880. moolabs/models/margin_snapshot_response.py +131 -0
  881. moolabs/models/marketplace_app_api_key_install_request.py +91 -0
  882. moolabs/models/marketplace_install_request_payload.py +89 -0
  883. moolabs/models/marketplace_install_response.py +94 -0
  884. moolabs/models/marketplace_listing.py +105 -0
  885. moolabs/models/marketplace_listing_paginated_response.py +101 -0
  886. moolabs/models/matrix_price_row.py +91 -0
  887. moolabs/models/measure.py +146 -0
  888. moolabs/models/measure_kind.py +41 -0
  889. moolabs/models/measure_usage_from.py +151 -0
  890. moolabs/models/measure_usage_from_preset.py +37 -0
  891. moolabs/models/merge_remittances_request.py +89 -0
  892. moolabs/models/meter.py +176 -0
  893. moolabs/models/meter_aggregation.py +42 -0
  894. moolabs/models/meter_create.py +113 -0
  895. moolabs/models/meter_mapping_item.py +95 -0
  896. moolabs/models/meter_order_by.py +40 -0
  897. moolabs/models/meter_query_request.py +121 -0
  898. moolabs/models/meter_query_result.py +103 -0
  899. moolabs/models/meter_query_row.py +98 -0
  900. moolabs/models/meter_test_event_request.py +87 -0
  901. moolabs/models/meter_test_event_response.py +93 -0
  902. moolabs/models/meter_update.py +94 -0
  903. moolabs/models/meter_usage_summary_item.py +103 -0
  904. moolabs/models/meter_usage_summary_response.py +95 -0
  905. moolabs/models/meter_validation_error.py +101 -0
  906. moolabs/models/migrate_subscription_request.py +105 -0
  907. moolabs/models/model_cost_item.py +95 -0
  908. moolabs/models/net_suite_connect_request.py +103 -0
  909. moolabs/models/net_suite_cutover_guard_request.py +87 -0
  910. moolabs/models/net_suite_m2_m_finalize_request.py +87 -0
  911. moolabs/models/net_suite_m2_m_setup_request.py +101 -0
  912. moolabs/models/net_suite_managed_portal_backfill_cancel_request.py +87 -0
  913. moolabs/models/net_suite_managed_portal_backfill_request.py +89 -0
  914. moolabs/models/net_suite_managed_portal_backfill_run_request.py +90 -0
  915. moolabs/models/net_suite_managed_portal_mapping_delete_request.py +91 -0
  916. moolabs/models/net_suite_managed_portal_mapping_request.py +97 -0
  917. moolabs/models/net_suite_managed_portal_protection_ack_request.py +89 -0
  918. moolabs/models/next_action_type.py +41 -0
  919. moolabs/models/note_create.py +94 -0
  920. moolabs/models/note_list_response.py +101 -0
  921. moolabs/models/note_response.py +104 -0
  922. moolabs/models/notification_channel_meta.py +100 -0
  923. moolabs/models/notification_channel_order_by.py +39 -0
  924. moolabs/models/notification_channel_paginated_response.py +101 -0
  925. moolabs/models/notification_channel_type.py +36 -0
  926. moolabs/models/notification_channel_webhook.py +145 -0
  927. moolabs/models/notification_channel_webhook_create_request.py +117 -0
  928. moolabs/models/notification_event.py +137 -0
  929. moolabs/models/notification_event_balance_threshold_payload.py +121 -0
  930. moolabs/models/notification_event_balance_threshold_payload_data.py +133 -0
  931. moolabs/models/notification_event_delivery_attempt.py +103 -0
  932. moolabs/models/notification_event_delivery_status.py +125 -0
  933. moolabs/models/notification_event_delivery_status_state.py +40 -0
  934. moolabs/models/notification_event_entitlement_value_payload_base.py +125 -0
  935. moolabs/models/notification_event_invoice_created_payload.py +121 -0
  936. moolabs/models/notification_event_invoice_updated_payload.py +121 -0
  937. moolabs/models/notification_event_order_by.py +37 -0
  938. moolabs/models/notification_event_paginated_response.py +101 -0
  939. moolabs/models/notification_event_payload.py +178 -0
  940. moolabs/models/notification_event_resend_request.py +88 -0
  941. moolabs/models/notification_event_reset_payload.py +121 -0
  942. moolabs/models/notification_event_type.py +39 -0
  943. moolabs/models/notification_rule.py +178 -0
  944. moolabs/models/notification_rule_balance_threshold.py +159 -0
  945. moolabs/models/notification_rule_balance_threshold_create_request.py +115 -0
  946. moolabs/models/notification_rule_balance_threshold_value.py +90 -0
  947. moolabs/models/notification_rule_balance_threshold_value_type.py +40 -0
  948. moolabs/models/notification_rule_create_request.py +178 -0
  949. moolabs/models/notification_rule_entitlement_reset.py +149 -0
  950. moolabs/models/notification_rule_entitlement_reset_create_request.py +105 -0
  951. moolabs/models/notification_rule_invoice_created.py +139 -0
  952. moolabs/models/notification_rule_invoice_created_create_request.py +103 -0
  953. moolabs/models/notification_rule_invoice_updated.py +139 -0
  954. moolabs/models/notification_rule_invoice_updated_create_request.py +103 -0
  955. moolabs/models/notification_rule_order_by.py +39 -0
  956. moolabs/models/notification_rule_paginated_response.py +101 -0
  957. moolabs/models/notify_channel.py +89 -0
  958. moolabs/models/o_auth2_authorization_code_grant_error_type.py +42 -0
  959. moolabs/models/observation_out.py +103 -0
  960. moolabs/models/observed_total_cost.py +153 -0
  961. moolabs/models/open_cost_cluster_binding.py +115 -0
  962. moolabs/models/open_cost_dedicated_namespace.py +104 -0
  963. moolabs/models/open_cost_installation_create_request.py +122 -0
  964. moolabs/models/open_cost_installation_create_response.py +116 -0
  965. moolabs/models/open_cost_installation_response.py +114 -0
  966. moolabs/models/open_cost_snapshot_request.py +139 -0
  967. moolabs/models/open_cost_snapshot_response.py +125 -0
  968. moolabs/models/open_cost_trust_policy.py +145 -0
  969. moolabs/models/open_cost_wire_row.py +140 -0
  970. moolabs/models/open_from_scope_request.py +98 -0
  971. moolabs/models/operations_summary.py +120 -0
  972. moolabs/models/opt_out_request.py +90 -0
  973. moolabs/models/opt_out_response.py +93 -0
  974. moolabs/models/org_role.py +152 -0
  975. moolabs/models/original_total.py +152 -0
  976. moolabs/models/otlp_ingest_response.py +91 -0
  977. moolabs/models/overall_freshness.py +116 -0
  978. moolabs/models/overdraft_settings.py +93 -0
  979. moolabs/models/overdraft_settings_payload.py +93 -0
  980. moolabs/models/override_first_ingress_request.py +94 -0
  981. moolabs/models/override_request.py +90 -0
  982. moolabs/models/override_response.py +91 -0
  983. moolabs/models/overview_response.py +109 -0
  984. moolabs/models/pack_provenance.py +101 -0
  985. moolabs/models/package_price_with_commitments.py +137 -0
  986. moolabs/models/paginated_credit_memos.py +97 -0
  987. moolabs/models/paginated_customers.py +99 -0
  988. moolabs/models/paginated_invoices.py +97 -0
  989. moolabs/models/paginated_payments.py +97 -0
  990. moolabs/models/paginated_sync_runs.py +97 -0
  991. moolabs/models/patch_quote_agent_policy_request.py +98 -0
  992. moolabs/models/patch_rows_request.py +95 -0
  993. moolabs/models/patch_session_request.py +107 -0
  994. moolabs/models/payment_allocation_response.py +104 -0
  995. moolabs/models/payment_create.py +109 -0
  996. moolabs/models/payment_due_date.py +124 -0
  997. moolabs/models/payment_failed_request.py +101 -0
  998. moolabs/models/payment_failed_response.py +93 -0
  999. moolabs/models/payment_instructions_response.py +95 -0
  1000. moolabs/models/payment_instructions_update_request.py +90 -0
  1001. moolabs/models/payment_item.py +104 -0
  1002. moolabs/models/payment_link_request.py +105 -0
  1003. moolabs/models/payment_link_response.py +89 -0
  1004. moolabs/models/payment_list_response.py +101 -0
  1005. moolabs/models/payment_match_request.py +90 -0
  1006. moolabs/models/payment_response.py +136 -0
  1007. moolabs/models/payment_reversal_request.py +90 -0
  1008. moolabs/models/payment_succeeded_request.py +103 -0
  1009. moolabs/models/payment_succeeded_response.py +97 -0
  1010. moolabs/models/payment_term_due_date.py +113 -0
  1011. moolabs/models/payment_term_instant.py +102 -0
  1012. moolabs/models/payment_terms.py +148 -0
  1013. moolabs/models/pending_provider_confirmation_reconcile_request.py +88 -0
  1014. moolabs/models/pending_sns_confirmation_out.py +102 -0
  1015. moolabs/models/period.py +90 -0
  1016. moolabs/models/period_settlement_out.py +143 -0
  1017. moolabs/models/period_window.py +103 -0
  1018. moolabs/models/persona.py +39 -0
  1019. moolabs/models/plan.py +191 -0
  1020. moolabs/models/plan_addon.py +126 -0
  1021. moolabs/models/plan_addon_create.py +101 -0
  1022. moolabs/models/plan_addon_order_by.py +40 -0
  1023. moolabs/models/plan_addon_paginated_response.py +101 -0
  1024. moolabs/models/plan_addon_replace_update.py +91 -0
  1025. moolabs/models/plan_amend_request.py +103 -0
  1026. moolabs/models/plan_cost_item.py +97 -0
  1027. moolabs/models/plan_create.py +140 -0
  1028. moolabs/models/plan_create_request.py +103 -0
  1029. moolabs/models/plan_order_by.py +40 -0
  1030. moolabs/models/plan_paginated_response.py +101 -0
  1031. moolabs/models/plan_phase.py +113 -0
  1032. moolabs/models/plan_pricing_input.py +103 -0
  1033. moolabs/models/plan_pricing_sync_request.py +105 -0
  1034. moolabs/models/plan_pricing_view.py +107 -0
  1035. moolabs/models/plan_ref_payload.py +91 -0
  1036. moolabs/models/plan_reference.py +106 -0
  1037. moolabs/models/plan_reference_input.py +97 -0
  1038. moolabs/models/plan_replace_update.py +122 -0
  1039. moolabs/models/plan_status.py +39 -0
  1040. moolabs/models/plan_subscription_change.py +153 -0
  1041. moolabs/models/plan_subscription_create.py +167 -0
  1042. moolabs/models/policy_update_request.py +94 -0
  1043. moolabs/models/pool_notification_config_request.py +87 -0
  1044. moolabs/models/pooloverrides_value.py +152 -0
  1045. moolabs/models/portal_case_response.py +108 -0
  1046. moolabs/models/portal_channel_preference_request.py +100 -0
  1047. moolabs/models/portal_dispute_request.py +94 -0
  1048. moolabs/models/portal_dispute_response.py +102 -0
  1049. moolabs/models/portal_invoice_response.py +124 -0
  1050. moolabs/models/portal_payment_intent_response.py +91 -0
  1051. moolabs/models/portal_payment_request.py +102 -0
  1052. moolabs/models/portal_preferences_request.py +113 -0
  1053. moolabs/models/portal_preferences_response.py +87 -0
  1054. moolabs/models/portal_promise_to_pay_response.py +106 -0
  1055. moolabs/models/portal_ptp_request.py +95 -0
  1056. moolabs/models/portal_token.py +121 -0
  1057. moolabs/models/portal_token_item.py +97 -0
  1058. moolabs/models/preview_resolution_request.py +89 -0
  1059. moolabs/models/preview_resolution_response.py +101 -0
  1060. moolabs/models/preview_template_request.py +102 -0
  1061. moolabs/models/preview_template_response.py +95 -0
  1062. moolabs/models/preview_trace_entry.py +97 -0
  1063. moolabs/models/previous.py +152 -0
  1064. moolabs/models/price_payment_term.py +37 -0
  1065. moolabs/models/price_session_response.py +109 -0
  1066. moolabs/models/price_tier.py +110 -0
  1067. moolabs/models/price_tier_payload.py +103 -0
  1068. moolabs/models/pricing_override_input.py +100 -0
  1069. moolabs/models/pricing_result.py +100 -0
  1070. moolabs/models/pricing_snapshot_response.py +109 -0
  1071. moolabs/models/pricing_tier_input.py +90 -0
  1072. moolabs/models/priority.py +38 -0
  1073. moolabs/models/pro_rating_config.py +90 -0
  1074. moolabs/models/pro_rating_mode.py +36 -0
  1075. moolabs/models/process_value_recognition_request.py +94 -0
  1076. moolabs/models/progress.py +94 -0
  1077. moolabs/models/projection_link_in.py +91 -0
  1078. moolabs/models/projection_links_request.py +98 -0
  1079. moolabs/models/projection_links_response.py +89 -0
  1080. moolabs/models/promise_response.py +112 -0
  1081. moolabs/models/promote_response.py +89 -0
  1082. moolabs/models/provider_billing_reference.py +146 -0
  1083. moolabs/models/provider_billing_reference_kind.py +37 -0
  1084. moolabs/models/provider_blocking_reason.py +115 -0
  1085. moolabs/models/provider_confirmation_repair_request.py +99 -0
  1086. moolabs/models/provider_connection_status.py +42 -0
  1087. moolabs/models/provider_identity_details.py +110 -0
  1088. moolabs/models/provider_identity_purpose.py +38 -0
  1089. moolabs/models/provider_kind.py +37 -0
  1090. moolabs/models/provider_readiness_response.py +97 -0
  1091. moolabs/models/provider_readiness_summary.py +123 -0
  1092. moolabs/models/provider_route_status.py +39 -0
  1093. moolabs/models/provider_safe_test_send_request.py +107 -0
  1094. moolabs/models/provider_safe_test_send_response.py +109 -0
  1095. moolabs/models/provider_summary.py +89 -0
  1096. moolabs/models/provider_warning.py +115 -0
  1097. moolabs/models/ptp_approval_request.py +88 -0
  1098. moolabs/models/ptp_create_request.py +103 -0
  1099. moolabs/models/ptp_fulfill_request.py +90 -0
  1100. moolabs/models/ptp_payment_link_response.py +89 -0
  1101. moolabs/models/ptp_summary_response.py +104 -0
  1102. moolabs/models/publish_plan_request.py +93 -0
  1103. moolabs/models/publish_plan_result.py +93 -0
  1104. moolabs/models/publish_template_request.py +96 -0
  1105. moolabs/models/put_account_segment_request.py +89 -0
  1106. moolabs/models/put_sku_eligibility_request.py +89 -0
  1107. moolabs/models/put_tenant_segments_request.py +89 -0
  1108. moolabs/models/quality_axis.py +116 -0
  1109. moolabs/models/quality_caveat_code.py +40 -0
  1110. moolabs/models/quality_status.py +40 -0
  1111. moolabs/models/quality_summary.py +135 -0
  1112. moolabs/models/quantity.py +153 -0
  1113. moolabs/models/quick_action.py +99 -0
  1114. moolabs/models/quick_books_connect_request.py +93 -0
  1115. moolabs/models/quick_redline_response.py +123 -0
  1116. moolabs/models/quote_agent_evaluation_response.py +106 -0
  1117. moolabs/models/quote_agent_policy_response.py +112 -0
  1118. moolabs/models/quote_agent_provenance_run_response.py +114 -0
  1119. moolabs/models/quote_agent_run_response.py +122 -0
  1120. moolabs/models/quote_approval_decision_request.py +88 -0
  1121. moolabs/models/quote_approval_response.py +107 -0
  1122. moolabs/models/quote_line_item_input.py +144 -0
  1123. moolabs/models/quote_list_response.py +101 -0
  1124. moolabs/models/quote_metrics_response.py +105 -0
  1125. moolabs/models/quote_redline_decision_request.py +88 -0
  1126. moolabs/models/quote_redline_response.py +125 -0
  1127. moolabs/models/quote_response.py +125 -0
  1128. moolabs/models/quote_template_list_response.py +95 -0
  1129. moolabs/models/quote_template_response.py +109 -0
  1130. moolabs/models/quote_version_response.py +129 -0
  1131. moolabs/models/ram_cost_weight.py +152 -0
  1132. moolabs/models/ram_gib_hours.py +152 -0
  1133. moolabs/models/rate_bulk_import_request.py +97 -0
  1134. moolabs/models/rate_bulk_import_response.py +91 -0
  1135. moolabs/models/rate_card.py +150 -0
  1136. moolabs/models/rate_card_boolean_entitlement.py +96 -0
  1137. moolabs/models/rate_card_cost_list_response.py +95 -0
  1138. moolabs/models/rate_card_cost_row.py +103 -0
  1139. moolabs/models/rate_card_discount.py +87 -0
  1140. moolabs/models/rate_card_discount_input.py +103 -0
  1141. moolabs/models/rate_card_discount_payload.py +87 -0
  1142. moolabs/models/rate_card_entitlement.py +164 -0
  1143. moolabs/models/rate_card_flat_fee.py +148 -0
  1144. moolabs/models/rate_card_metered_entitlement.py +107 -0
  1145. moolabs/models/rate_card_payload.py +103 -0
  1146. moolabs/models/rate_card_response.py +106 -0
  1147. moolabs/models/rate_card_static_entitlement.py +98 -0
  1148. moolabs/models/rate_card_usage_based.py +148 -0
  1149. moolabs/models/rate_card_usage_based_price.py +192 -0
  1150. moolabs/models/rate_catalog_create.py +117 -0
  1151. moolabs/models/rate_catalog_response.py +118 -0
  1152. moolabs/models/rate_catalog_update.py +107 -0
  1153. moolabs/models/rate_generation_list_view.py +97 -0
  1154. moolabs/models/rate_generation_view.py +98 -0
  1155. moolabs/models/rate_per_unit.py +153 -0
  1156. moolabs/models/rate_per_unit1.py +153 -0
  1157. moolabs/models/rate_schedule_list_response.py +95 -0
  1158. moolabs/models/rate_schedule_preview_response.py +105 -0
  1159. moolabs/models/rate_schedule_version_out.py +101 -0
  1160. moolabs/models/ratify_family_request.py +91 -0
  1161. moolabs/models/ratify_refinement_request.py +93 -0
  1162. moolabs/models/re_scope_request.py +89 -0
  1163. moolabs/models/readiness_summary.py +89 -0
  1164. moolabs/models/readout_page_response.py +119 -0
  1165. moolabs/models/readout_row_response.py +104 -0
  1166. moolabs/models/readout_snapshot_response.py +116 -0
  1167. moolabs/models/reallocate_request.py +90 -0
  1168. moolabs/models/reallocate_response.py +97 -0
  1169. moolabs/models/reattempt_request.py +88 -0
  1170. moolabs/models/reattempt_response.py +89 -0
  1171. moolabs/models/recall_request.py +87 -0
  1172. moolabs/models/reconcile_request.py +89 -0
  1173. moolabs/models/reconcile_response.py +95 -0
  1174. moolabs/models/reconciliation_basis.py +99 -0
  1175. moolabs/models/reconciliation_basis_out.py +95 -0
  1176. moolabs/models/reconstruction_run_response.py +95 -0
  1177. moolabs/models/record_usage_request.py +115 -0
  1178. moolabs/models/recurring_period.py +96 -0
  1179. moolabs/models/recurring_period_create_input.py +94 -0
  1180. moolabs/models/recurring_period_interval.py +151 -0
  1181. moolabs/models/recurring_period_interval_enum.py +39 -0
  1182. moolabs/models/recurring_period_v2.py +94 -0
  1183. moolabs/models/recurringamount.py +152 -0
  1184. moolabs/models/redline_summary.py +89 -0
  1185. moolabs/models/refund_credit_request.py +90 -0
  1186. moolabs/models/reject_rate_generation_request.py +87 -0
  1187. moolabs/models/remittance_create_request.py +103 -0
  1188. moolabs/models/remittance_list_response.py +101 -0
  1189. moolabs/models/remittance_response.py +120 -0
  1190. moolabs/models/remove_contract_participant_response.py +131 -0
  1191. moolabs/models/remove_phase_shifting.py +37 -0
  1192. moolabs/models/replace_levels_request.py +95 -0
  1193. moolabs/models/replay_dead_letter_request.py +89 -0
  1194. moolabs/models/report_create_request.py +105 -0
  1195. moolabs/models/report_create_response.py +139 -0
  1196. moolabs/models/reporting_line_total.py +153 -0
  1197. moolabs/models/reporting_total_cost.py +153 -0
  1198. moolabs/models/request_cost_distribution.py +127 -0
  1199. moolabs/models/request_evidence_response.py +197 -0
  1200. moolabs/models/request_evidence_row.py +154 -0
  1201. moolabs/models/request_pricing_state.py +40 -0
  1202. moolabs/models/reschedule_request.py +88 -0
  1203. moolabs/models/resend_identity_details.py +104 -0
  1204. moolabs/models/reset_entitlement_usage_input.py +92 -0
  1205. moolabs/models/resolve_unapplied_request.py +87 -0
  1206. moolabs/models/resource_map_create_request.py +103 -0
  1207. moolabs/models/resource_map_response.py +113 -0
  1208. moolabs/models/retry_unpriced_request.py +91 -0
  1209. moolabs/models/retry_unpriced_response.py +91 -0
  1210. moolabs/models/revenue_recognition_request.py +89 -0
  1211. moolabs/models/reversed_settlement_ref.py +93 -0
  1212. moolabs/models/review_quarantined_request.py +95 -0
  1213. moolabs/models/review_quarantined_response.py +95 -0
  1214. moolabs/models/revoke_api_key_request.py +87 -0
  1215. moolabs/models/revoke_portal_token_request.py +87 -0
  1216. moolabs/models/rollover_mode.py +38 -0
  1217. moolabs/models/rollover_request.py +95 -0
  1218. moolabs/models/rollover_response.py +98 -0
  1219. moolabs/models/rollovercapamount.py +152 -0
  1220. moolabs/models/rolloverpercent.py +152 -0
  1221. moolabs/models/rotate_key_request.py +88 -0
  1222. moolabs/models/rotate_key_response.py +92 -0
  1223. moolabs/models/route_update_request.py +110 -0
  1224. moolabs/models/salesforce_connect_request.py +93 -0
  1225. moolabs/models/sample_rate.py +153 -0
  1226. moolabs/models/sandbox_app.py +138 -0
  1227. moolabs/models/sandbox_app_replace_update.py +101 -0
  1228. moolabs/models/sandbox_customer_app_data.py +115 -0
  1229. moolabs/models/save_redline_edit_request.py +95 -0
  1230. moolabs/models/scenario_compare_response.py +97 -0
  1231. moolabs/models/scenario_item.py +117 -0
  1232. moolabs/models/scenario_request.py +96 -0
  1233. moolabs/models/scope_type.py +38 -0
  1234. moolabs/models/sdk_batch_ingest_request.py +96 -0
  1235. moolabs/models/sdk_batch_ingest_response.py +91 -0
  1236. moolabs/models/sdk_event.py +111 -0
  1237. moolabs/models/sdk_span.py +106 -0
  1238. moolabs/models/segment_out.py +95 -0
  1239. moolabs/models/sender_response.py +93 -0
  1240. moolabs/models/sender_update.py +93 -0
  1241. moolabs/models/ses_identity_details.py +127 -0
  1242. moolabs/models/ses_provider_scope_status.py +89 -0
  1243. moolabs/models/set_rate_card_cost_request.py +89 -0
  1244. moolabs/models/severity.py +38 -0
  1245. moolabs/models/shadow_mode_request.py +87 -0
  1246. moolabs/models/shadow_run_list_item.py +101 -0
  1247. moolabs/models/shadow_run_metrics.py +114 -0
  1248. moolabs/models/shadow_run_request.py +92 -0
  1249. moolabs/models/shadow_run_summary.py +95 -0
  1250. moolabs/models/simulate_margin_request.py +100 -0
  1251. moolabs/models/simulate_margin_response.py +115 -0
  1252. moolabs/models/simulate_out.py +103 -0
  1253. moolabs/models/sku_eligibility_list_response.py +95 -0
  1254. moolabs/models/sku_eligibility_row.py +91 -0
  1255. moolabs/models/slack_quote_command_response.py +93 -0
  1256. moolabs/models/snapshot_compute_request.py +104 -0
  1257. moolabs/models/snapshot_compute_response.py +99 -0
  1258. moolabs/models/snapshot_response.py +104 -0
  1259. moolabs/models/sns_confirmation_command_out.py +98 -0
  1260. moolabs/models/sns_confirmation_confirmed_out.py +94 -0
  1261. moolabs/models/sns_confirmation_confirmed_request.py +101 -0
  1262. moolabs/models/sns_confirmation_list_out.py +95 -0
  1263. moolabs/models/sort_direction.py +37 -0
  1264. moolabs/models/sort_order.py +37 -0
  1265. moolabs/models/spend_summary.py +114 -0
  1266. moolabs/models/stage_schema.py +117 -0
  1267. moolabs/models/strategy_create_request.py +130 -0
  1268. moolabs/models/strategy_preview_request.py +87 -0
  1269. moolabs/models/strategy_update_request.py +133 -0
  1270. moolabs/models/stripe_api_key_input.py +87 -0
  1271. moolabs/models/stripe_app.py +150 -0
  1272. moolabs/models/stripe_app_replace_update.py +103 -0
  1273. moolabs/models/stripe_checkout_session_mode.py +36 -0
  1274. moolabs/models/stripe_customer_app_data.py +119 -0
  1275. moolabs/models/stripe_customer_app_data_base.py +89 -0
  1276. moolabs/models/stripe_customer_app_data_create_or_update_item.py +111 -0
  1277. moolabs/models/stripe_customer_portal_session.py +102 -0
  1278. moolabs/models/stripe_tax_config.py +95 -0
  1279. moolabs/models/stripe_webhook_event.py +99 -0
  1280. moolabs/models/stripe_webhook_event_data.py +92 -0
  1281. moolabs/models/stripe_webhook_response.py +118 -0
  1282. moolabs/models/subject.py +122 -0
  1283. moolabs/models/subject_upsert.py +98 -0
  1284. moolabs/models/subscription.py +201 -0
  1285. moolabs/models/subscription_activate_request.py +101 -0
  1286. moolabs/models/subscription_addon.py +167 -0
  1287. moolabs/models/subscription_addon_create.py +106 -0
  1288. moolabs/models/subscription_addon_rate_card.py +94 -0
  1289. moolabs/models/subscription_addon_timeline_segment.py +95 -0
  1290. moolabs/models/subscription_addon_update.py +100 -0
  1291. moolabs/models/subscription_alignment.py +93 -0
  1292. moolabs/models/subscription_bad_request_error_response.py +102 -0
  1293. moolabs/models/subscription_change.py +147 -0
  1294. moolabs/models/subscription_change_response_body.py +97 -0
  1295. moolabs/models/subscription_conflict_error_response.py +102 -0
  1296. moolabs/models/subscription_create.py +147 -0
  1297. moolabs/models/subscription_edit.py +102 -0
  1298. moolabs/models/subscription_edit_operation.py +206 -0
  1299. moolabs/models/subscription_error_extensions.py +95 -0
  1300. moolabs/models/subscription_expanded.py +211 -0
  1301. moolabs/models/subscription_item.py +167 -0
  1302. moolabs/models/subscription_item_included.py +97 -0
  1303. moolabs/models/subscription_item_price_override.py +111 -0
  1304. moolabs/models/subscription_item_price_override_type.py +37 -0
  1305. moolabs/models/subscription_paginated_response.py +101 -0
  1306. moolabs/models/subscription_phase_create.py +109 -0
  1307. moolabs/models/subscription_phase_expanded.py +163 -0
  1308. moolabs/models/subscription_ramp_phase.py +91 -0
  1309. moolabs/models/subscription_status.py +39 -0
  1310. moolabs/models/subscription_timing.py +151 -0
  1311. moolabs/models/subscription_timing_enum.py +37 -0
  1312. moolabs/models/sync_config_request.py +109 -0
  1313. moolabs/models/sync_config_response.py +111 -0
  1314. moolabs/models/sync_invoices_request.py +87 -0
  1315. moolabs/models/sync_run_item.py +102 -0
  1316. moolabs/models/synthetic_request_evidence_row.py +118 -0
  1317. moolabs/models/task_complete_request.py +92 -0
  1318. moolabs/models/task_list_response.py +101 -0
  1319. moolabs/models/task_response.py +130 -0
  1320. moolabs/models/task_update.py +93 -0
  1321. moolabs/models/tax_behavior.py +37 -0
  1322. moolabs/models/tax_config.py +100 -0
  1323. moolabs/models/template_archive_request.py +88 -0
  1324. moolabs/models/template_card_action_request.py +99 -0
  1325. moolabs/models/template_item.py +97 -0
  1326. moolabs/models/template_key_create_request.py +92 -0
  1327. moolabs/models/template_key_list_response.py +116 -0
  1328. moolabs/models/template_key_response.py +126 -0
  1329. moolabs/models/template_meta_response.py +93 -0
  1330. moolabs/models/template_preview_request.py +87 -0
  1331. moolabs/models/template_preview_response.py +101 -0
  1332. moolabs/models/template_test_send_request.py +87 -0
  1333. moolabs/models/template_test_send_response.py +93 -0
  1334. moolabs/models/template_update.py +91 -0
  1335. moolabs/models/template_version_list_response.py +95 -0
  1336. moolabs/models/template_version_response.py +143 -0
  1337. moolabs/models/tenant_config_response.py +95 -0
  1338. moolabs/models/tenant_escalation_config_out.py +97 -0
  1339. moolabs/models/tenant_escalation_config_patch.py +92 -0
  1340. moolabs/models/tenant_provision_request.py +89 -0
  1341. moolabs/models/tenant_segment_entry.py +89 -0
  1342. moolabs/models/tenant_segments_response.py +97 -0
  1343. moolabs/models/tenant_unit_economics.py +97 -0
  1344. moolabs/models/territory_in.py +89 -0
  1345. moolabs/models/test_send_request.py +104 -0
  1346. moolabs/models/test_send_response.py +93 -0
  1347. moolabs/models/tiered_price_mode.py +37 -0
  1348. moolabs/models/tiered_price_with_commitments.py +132 -0
  1349. moolabs/models/tiered_pricing_payload.py +97 -0
  1350. moolabs/models/timestamp_window.py +103 -0
  1351. moolabs/models/top_consumer.py +93 -0
  1352. moolabs/models/topup_defaults_request.py +93 -0
  1353. moolabs/models/total_cost.py +153 -0
  1354. moolabs/models/traces_response.py +95 -0
  1355. moolabs/models/trend_data_point.py +91 -0
  1356. moolabs/models/trend_point.py +116 -0
  1357. moolabs/models/trigger_request.py +87 -0
  1358. moolabs/models/ulidor_external_key.py +153 -0
  1359. moolabs/models/unapplied_cash_response.py +106 -0
  1360. moolabs/models/unavailable_reason.py +66 -0
  1361. moolabs/models/unexpected_problem_response.py +111 -0
  1362. moolabs/models/unified_price_row_input.py +99 -0
  1363. moolabs/models/unified_price_row_out.py +109 -0
  1364. moolabs/models/unit_cost.py +153 -0
  1365. moolabs/models/unit_economics.py +97 -0
  1366. moolabs/models/unit_price.py +104 -0
  1367. moolabs/models/unit_price_with_commitments.py +128 -0
  1368. moolabs/models/unitamount.py +152 -0
  1369. moolabs/models/update_approval_policy_request.py +87 -0
  1370. moolabs/models/update_auto_topup_rule_request.py +102 -0
  1371. moolabs/models/update_credit_pool_request.py +98 -0
  1372. moolabs/models/update_quote_template_request.py +102 -0
  1373. moolabs/models/update_threshold_request.py +97 -0
  1374. moolabs/models/update_wallet_settings_request.py +95 -0
  1375. moolabs/models/update_wallet_thresholds_request.py +92 -0
  1376. moolabs/models/upsert_fx_rate_request.py +92 -0
  1377. moolabs/models/upsert_provider_identity_request.py +115 -0
  1378. moolabs/models/upto.py +152 -0
  1379. moolabs/models/usage_summary_window_size.py +37 -0
  1380. moolabs/models/validate_template_request.py +116 -0
  1381. moolabs/models/validate_template_response.py +89 -0
  1382. moolabs/models/validation_error.py +99 -0
  1383. moolabs/models/validation_error_loc_inner.py +152 -0
  1384. moolabs/models/validation_issue.py +135 -0
  1385. moolabs/models/validation_issue_severity.py +37 -0
  1386. moolabs/models/validation_response.py +105 -0
  1387. moolabs/models/value_recognition_response.py +93 -0
  1388. moolabs/models/variance_decomposition_out.py +117 -0
  1389. moolabs/models/variance_summary_response.py +101 -0
  1390. moolabs/models/verification_status.py +39 -0
  1391. moolabs/models/void_grant_request.py +88 -0
  1392. moolabs/models/void_invoice_action_create.py +93 -0
  1393. moolabs/models/void_invoice_action_create_item.py +93 -0
  1394. moolabs/models/void_invoice_action_input.py +103 -0
  1395. moolabs/models/void_invoice_action_line_override.py +101 -0
  1396. moolabs/models/void_invoice_line_action_create.py +150 -0
  1397. moolabs/models/void_invoice_line_action_create_item.py +150 -0
  1398. moolabs/models/void_invoice_line_discard_action.py +94 -0
  1399. moolabs/models/void_invoice_line_pending_action_create.py +97 -0
  1400. moolabs/models/void_invoice_line_pending_action_create_item.py +97 -0
  1401. moolabs/models/volume_summary.py +114 -0
  1402. moolabs/models/wallet_owner_type.py +43 -0
  1403. moolabs/models/wallet_policy.py +38 -0
  1404. moolabs/models/wallet_response.py +112 -0
  1405. moolabs/models/wallet_state_response.py +105 -0
  1406. moolabs/models/warning_item.py +93 -0
  1407. moolabs/models/webhook_response.py +95 -0
  1408. moolabs/models/webhook_update.py +95 -0
  1409. moolabs/models/window_size.py +39 -0
  1410. moolabs/models/windowed_balance_history.py +105 -0
  1411. moolabs/models/xero_connect_request.py +91 -0
  1412. moolabs/py.typed +0 -0
  1413. moolabs/rest.py +257 -0
  1414. moolabs-0.3.0.dist-info/METADATA +31 -0
  1415. moolabs-0.3.0.dist-info/RECORD +1417 -0
  1416. moolabs-0.3.0.dist-info/WHEEL +5 -0
  1417. moolabs-0.3.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,3478 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Moolabs API
5
+
6
+ Unified Moolabs SDK. Capability-based public surface stitched from internal service specs: bff, meter, arc, acute. Customers see capability namespaces (usage, billing, collections, etc.); the SDK routes per-operation internally.
7
+
8
+ The version of the OpenAPI document: 0.3.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictStr
20
+ from typing import Optional
21
+ from typing_extensions import Annotated
22
+ from moolabs.models.billing_tenant_settings_out import BillingTenantSettingsOut
23
+ from moolabs.models.billing_tenant_settings_update import BillingTenantSettingsUpdate
24
+ from moolabs.models.credit_memo_apply_request import CreditMemoApplyRequest
25
+ from moolabs.models.credit_memo_create import CreditMemoCreate
26
+ from moolabs.models.credit_memo_create_public import CreditMemoCreatePublic
27
+ from moolabs.models.credit_memo_list_response import CreditMemoListResponse
28
+ from moolabs.models.credit_memo_out import CreditMemoOut
29
+ from moolabs.models.credit_memo_response import CreditMemoResponse
30
+ from moolabs.models.credit_memo_update import CreditMemoUpdate
31
+
32
+ from moolabs.api_client import ApiClient, RequestSerialized
33
+ from moolabs.api_response import ApiResponse
34
+ from moolabs.rest import RESTResponseType
35
+
36
+
37
+ class CreditMemosApi:
38
+ """NOTE: This class is auto generated by OpenAPI Generator
39
+ Ref: https://openapi-generator.tech
40
+
41
+ Do not edit the class manually.
42
+ """
43
+
44
+ def __init__(self, api_client=None) -> None:
45
+ if api_client is None:
46
+ api_client = ApiClient.get_default()
47
+ self.api_client = api_client
48
+
49
+
50
+ @validate_call
51
+ def apply_credit_memo_v1(
52
+ self,
53
+ memo_id: StrictStr,
54
+ credit_memo_apply_request: CreditMemoApplyRequest,
55
+ x_api_key: Optional[StrictStr] = None,
56
+ x_tenant_id: Optional[StrictStr] = None,
57
+ x_org_id: Optional[StrictStr] = None,
58
+ authorization: Optional[StrictStr] = None,
59
+ _request_timeout: Union[
60
+ None,
61
+ Annotated[StrictFloat, Field(gt=0)],
62
+ Tuple[
63
+ Annotated[StrictFloat, Field(gt=0)],
64
+ Annotated[StrictFloat, Field(gt=0)]
65
+ ]
66
+ ] = None,
67
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
68
+ _content_type: Optional[StrictStr] = None,
69
+ _headers: Optional[Dict[StrictStr, Any]] = None,
70
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
71
+ ) -> CreditMemoResponse:
72
+ """Apply Credit Memo
73
+
74
+ Apply a credit memo to an invoice.
75
+
76
+ :param memo_id: (required)
77
+ :type memo_id: str
78
+ :param credit_memo_apply_request: (required)
79
+ :type credit_memo_apply_request: CreditMemoApplyRequest
80
+ :param x_api_key:
81
+ :type x_api_key: str
82
+ :param x_tenant_id:
83
+ :type x_tenant_id: str
84
+ :param x_org_id:
85
+ :type x_org_id: str
86
+ :param authorization:
87
+ :type authorization: str
88
+ :param _request_timeout: timeout setting for this request. If one
89
+ number provided, it will be total request
90
+ timeout. It can also be a pair (tuple) of
91
+ (connection, read) timeouts.
92
+ :type _request_timeout: int, tuple(int, int), optional
93
+ :param _request_auth: set to override the auth_settings for an a single
94
+ request; this effectively ignores the
95
+ authentication in the spec for a single request.
96
+ :type _request_auth: dict, optional
97
+ :param _content_type: force content-type for the request.
98
+ :type _content_type: str, Optional
99
+ :param _headers: set to override the headers for a single
100
+ request; this effectively ignores the headers
101
+ in the spec for a single request.
102
+ :type _headers: dict, optional
103
+ :param _host_index: set to override the host_index for a single
104
+ request; this effectively ignores the host_index
105
+ in the spec for a single request.
106
+ :type _host_index: int, optional
107
+ :return: Returns the result object.
108
+ """ # noqa: E501
109
+
110
+ _param = self._apply_credit_memo_v1_serialize(
111
+ memo_id=memo_id,
112
+ credit_memo_apply_request=credit_memo_apply_request,
113
+ x_api_key=x_api_key,
114
+ x_tenant_id=x_tenant_id,
115
+ x_org_id=x_org_id,
116
+ authorization=authorization,
117
+ _request_auth=_request_auth,
118
+ _content_type=_content_type,
119
+ _headers=_headers,
120
+ _host_index=_host_index
121
+ )
122
+
123
+ _response_types_map: Dict[str, Optional[str]] = {
124
+ '200': "CreditMemoResponse",
125
+ '422': "ArcHTTPValidationError",
126
+ }
127
+ response_data = self.api_client.call_api(
128
+ *_param,
129
+ _request_timeout=_request_timeout
130
+ )
131
+ response_data.read()
132
+ return self.api_client.response_deserialize(
133
+ response_data=response_data,
134
+ response_types_map=_response_types_map,
135
+ ).data
136
+
137
+
138
+ @validate_call
139
+ def apply_credit_memo_v1_with_http_info(
140
+ self,
141
+ memo_id: StrictStr,
142
+ credit_memo_apply_request: CreditMemoApplyRequest,
143
+ x_api_key: Optional[StrictStr] = None,
144
+ x_tenant_id: Optional[StrictStr] = None,
145
+ x_org_id: Optional[StrictStr] = None,
146
+ authorization: Optional[StrictStr] = None,
147
+ _request_timeout: Union[
148
+ None,
149
+ Annotated[StrictFloat, Field(gt=0)],
150
+ Tuple[
151
+ Annotated[StrictFloat, Field(gt=0)],
152
+ Annotated[StrictFloat, Field(gt=0)]
153
+ ]
154
+ ] = None,
155
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
156
+ _content_type: Optional[StrictStr] = None,
157
+ _headers: Optional[Dict[StrictStr, Any]] = None,
158
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
159
+ ) -> ApiResponse[CreditMemoResponse]:
160
+ """Apply Credit Memo
161
+
162
+ Apply a credit memo to an invoice.
163
+
164
+ :param memo_id: (required)
165
+ :type memo_id: str
166
+ :param credit_memo_apply_request: (required)
167
+ :type credit_memo_apply_request: CreditMemoApplyRequest
168
+ :param x_api_key:
169
+ :type x_api_key: str
170
+ :param x_tenant_id:
171
+ :type x_tenant_id: str
172
+ :param x_org_id:
173
+ :type x_org_id: str
174
+ :param authorization:
175
+ :type authorization: str
176
+ :param _request_timeout: timeout setting for this request. If one
177
+ number provided, it will be total request
178
+ timeout. It can also be a pair (tuple) of
179
+ (connection, read) timeouts.
180
+ :type _request_timeout: int, tuple(int, int), optional
181
+ :param _request_auth: set to override the auth_settings for an a single
182
+ request; this effectively ignores the
183
+ authentication in the spec for a single request.
184
+ :type _request_auth: dict, optional
185
+ :param _content_type: force content-type for the request.
186
+ :type _content_type: str, Optional
187
+ :param _headers: set to override the headers for a single
188
+ request; this effectively ignores the headers
189
+ in the spec for a single request.
190
+ :type _headers: dict, optional
191
+ :param _host_index: set to override the host_index for a single
192
+ request; this effectively ignores the host_index
193
+ in the spec for a single request.
194
+ :type _host_index: int, optional
195
+ :return: Returns the result object.
196
+ """ # noqa: E501
197
+
198
+ _param = self._apply_credit_memo_v1_serialize(
199
+ memo_id=memo_id,
200
+ credit_memo_apply_request=credit_memo_apply_request,
201
+ x_api_key=x_api_key,
202
+ x_tenant_id=x_tenant_id,
203
+ x_org_id=x_org_id,
204
+ authorization=authorization,
205
+ _request_auth=_request_auth,
206
+ _content_type=_content_type,
207
+ _headers=_headers,
208
+ _host_index=_host_index
209
+ )
210
+
211
+ _response_types_map: Dict[str, Optional[str]] = {
212
+ '200': "CreditMemoResponse",
213
+ '422': "ArcHTTPValidationError",
214
+ }
215
+ response_data = self.api_client.call_api(
216
+ *_param,
217
+ _request_timeout=_request_timeout
218
+ )
219
+ response_data.read()
220
+ return self.api_client.response_deserialize(
221
+ response_data=response_data,
222
+ response_types_map=_response_types_map,
223
+ )
224
+
225
+
226
+ @validate_call
227
+ def apply_credit_memo_v1_without_preload_content(
228
+ self,
229
+ memo_id: StrictStr,
230
+ credit_memo_apply_request: CreditMemoApplyRequest,
231
+ x_api_key: Optional[StrictStr] = None,
232
+ x_tenant_id: Optional[StrictStr] = None,
233
+ x_org_id: Optional[StrictStr] = None,
234
+ authorization: Optional[StrictStr] = None,
235
+ _request_timeout: Union[
236
+ None,
237
+ Annotated[StrictFloat, Field(gt=0)],
238
+ Tuple[
239
+ Annotated[StrictFloat, Field(gt=0)],
240
+ Annotated[StrictFloat, Field(gt=0)]
241
+ ]
242
+ ] = None,
243
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
244
+ _content_type: Optional[StrictStr] = None,
245
+ _headers: Optional[Dict[StrictStr, Any]] = None,
246
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
247
+ ) -> RESTResponseType:
248
+ """Apply Credit Memo
249
+
250
+ Apply a credit memo to an invoice.
251
+
252
+ :param memo_id: (required)
253
+ :type memo_id: str
254
+ :param credit_memo_apply_request: (required)
255
+ :type credit_memo_apply_request: CreditMemoApplyRequest
256
+ :param x_api_key:
257
+ :type x_api_key: str
258
+ :param x_tenant_id:
259
+ :type x_tenant_id: str
260
+ :param x_org_id:
261
+ :type x_org_id: str
262
+ :param authorization:
263
+ :type authorization: str
264
+ :param _request_timeout: timeout setting for this request. If one
265
+ number provided, it will be total request
266
+ timeout. It can also be a pair (tuple) of
267
+ (connection, read) timeouts.
268
+ :type _request_timeout: int, tuple(int, int), optional
269
+ :param _request_auth: set to override the auth_settings for an a single
270
+ request; this effectively ignores the
271
+ authentication in the spec for a single request.
272
+ :type _request_auth: dict, optional
273
+ :param _content_type: force content-type for the request.
274
+ :type _content_type: str, Optional
275
+ :param _headers: set to override the headers for a single
276
+ request; this effectively ignores the headers
277
+ in the spec for a single request.
278
+ :type _headers: dict, optional
279
+ :param _host_index: set to override the host_index for a single
280
+ request; this effectively ignores the host_index
281
+ in the spec for a single request.
282
+ :type _host_index: int, optional
283
+ :return: Returns the result object.
284
+ """ # noqa: E501
285
+
286
+ _param = self._apply_credit_memo_v1_serialize(
287
+ memo_id=memo_id,
288
+ credit_memo_apply_request=credit_memo_apply_request,
289
+ x_api_key=x_api_key,
290
+ x_tenant_id=x_tenant_id,
291
+ x_org_id=x_org_id,
292
+ authorization=authorization,
293
+ _request_auth=_request_auth,
294
+ _content_type=_content_type,
295
+ _headers=_headers,
296
+ _host_index=_host_index
297
+ )
298
+
299
+ _response_types_map: Dict[str, Optional[str]] = {
300
+ '200': "CreditMemoResponse",
301
+ '422': "ArcHTTPValidationError",
302
+ }
303
+ response_data = self.api_client.call_api(
304
+ *_param,
305
+ _request_timeout=_request_timeout
306
+ )
307
+ return response_data.response
308
+
309
+
310
+ def _apply_credit_memo_v1_serialize(
311
+ self,
312
+ memo_id,
313
+ credit_memo_apply_request,
314
+ x_api_key,
315
+ x_tenant_id,
316
+ x_org_id,
317
+ authorization,
318
+ _request_auth,
319
+ _content_type,
320
+ _headers,
321
+ _host_index,
322
+ ) -> RequestSerialized:
323
+
324
+ _host = None
325
+
326
+ _collection_formats: Dict[str, str] = {
327
+ }
328
+
329
+ _path_params: Dict[str, str] = {}
330
+ _query_params: List[Tuple[str, str]] = []
331
+ _header_params: Dict[str, Optional[str]] = _headers or {}
332
+ _form_params: List[Tuple[str, str]] = []
333
+ _files: Dict[
334
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
335
+ ] = {}
336
+ _body_params: Optional[bytes] = None
337
+
338
+ # process the path parameters
339
+ if memo_id is not None:
340
+ _path_params['memo_id'] = memo_id
341
+ # process the query parameters
342
+ # process the header parameters
343
+ if x_api_key is not None:
344
+ _header_params['X-API-Key'] = x_api_key
345
+ if x_tenant_id is not None:
346
+ _header_params['X-Tenant-Id'] = x_tenant_id
347
+ if x_org_id is not None:
348
+ _header_params['X-Org-Id'] = x_org_id
349
+ if authorization is not None:
350
+ _header_params['Authorization'] = authorization
351
+ # process the form parameters
352
+ # process the body parameter
353
+ if credit_memo_apply_request is not None:
354
+ _body_params = credit_memo_apply_request
355
+
356
+
357
+ # set the HTTP header `Accept`
358
+ if 'Accept' not in _header_params:
359
+ _header_params['Accept'] = self.api_client.select_header_accept(
360
+ [
361
+ 'application/json'
362
+ ]
363
+ )
364
+
365
+ # set the HTTP header `Content-Type`
366
+ if _content_type:
367
+ _header_params['Content-Type'] = _content_type
368
+ else:
369
+ _default_content_type = (
370
+ self.api_client.select_header_content_type(
371
+ [
372
+ 'application/json'
373
+ ]
374
+ )
375
+ )
376
+ if _default_content_type is not None:
377
+ _header_params['Content-Type'] = _default_content_type
378
+
379
+ # authentication setting
380
+ _auth_settings: List[str] = [
381
+ ]
382
+
383
+ return self.api_client.param_serialize(
384
+ method='POST',
385
+ resource_path='/v1/arc/credit-memos/{memo_id}/apply',
386
+ path_params=_path_params,
387
+ query_params=_query_params,
388
+ header_params=_header_params,
389
+ body=_body_params,
390
+ post_params=_form_params,
391
+ files=_files,
392
+ auth_settings=_auth_settings,
393
+ collection_formats=_collection_formats,
394
+ _host=_host,
395
+ _request_auth=_request_auth
396
+ )
397
+
398
+
399
+
400
+
401
+ @validate_call
402
+ def approve_credit_memo_v1(
403
+ self,
404
+ memo_id: StrictStr,
405
+ x_api_key: Optional[StrictStr] = None,
406
+ x_tenant_id: Optional[StrictStr] = None,
407
+ x_org_id: Optional[StrictStr] = None,
408
+ authorization: Optional[StrictStr] = None,
409
+ _request_timeout: Union[
410
+ None,
411
+ Annotated[StrictFloat, Field(gt=0)],
412
+ Tuple[
413
+ Annotated[StrictFloat, Field(gt=0)],
414
+ Annotated[StrictFloat, Field(gt=0)]
415
+ ]
416
+ ] = None,
417
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
418
+ _content_type: Optional[StrictStr] = None,
419
+ _headers: Optional[Dict[StrictStr, Any]] = None,
420
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
421
+ ) -> CreditMemoResponse:
422
+ """Approve Credit Memo
423
+
424
+ Approve a credit memo.
425
+
426
+ :param memo_id: (required)
427
+ :type memo_id: str
428
+ :param x_api_key:
429
+ :type x_api_key: str
430
+ :param x_tenant_id:
431
+ :type x_tenant_id: str
432
+ :param x_org_id:
433
+ :type x_org_id: str
434
+ :param authorization:
435
+ :type authorization: str
436
+ :param _request_timeout: timeout setting for this request. If one
437
+ number provided, it will be total request
438
+ timeout. It can also be a pair (tuple) of
439
+ (connection, read) timeouts.
440
+ :type _request_timeout: int, tuple(int, int), optional
441
+ :param _request_auth: set to override the auth_settings for an a single
442
+ request; this effectively ignores the
443
+ authentication in the spec for a single request.
444
+ :type _request_auth: dict, optional
445
+ :param _content_type: force content-type for the request.
446
+ :type _content_type: str, Optional
447
+ :param _headers: set to override the headers for a single
448
+ request; this effectively ignores the headers
449
+ in the spec for a single request.
450
+ :type _headers: dict, optional
451
+ :param _host_index: set to override the host_index for a single
452
+ request; this effectively ignores the host_index
453
+ in the spec for a single request.
454
+ :type _host_index: int, optional
455
+ :return: Returns the result object.
456
+ """ # noqa: E501
457
+
458
+ _param = self._approve_credit_memo_v1_serialize(
459
+ memo_id=memo_id,
460
+ x_api_key=x_api_key,
461
+ x_tenant_id=x_tenant_id,
462
+ x_org_id=x_org_id,
463
+ authorization=authorization,
464
+ _request_auth=_request_auth,
465
+ _content_type=_content_type,
466
+ _headers=_headers,
467
+ _host_index=_host_index
468
+ )
469
+
470
+ _response_types_map: Dict[str, Optional[str]] = {
471
+ '200': "CreditMemoResponse",
472
+ '422': "ArcHTTPValidationError",
473
+ }
474
+ response_data = self.api_client.call_api(
475
+ *_param,
476
+ _request_timeout=_request_timeout
477
+ )
478
+ response_data.read()
479
+ return self.api_client.response_deserialize(
480
+ response_data=response_data,
481
+ response_types_map=_response_types_map,
482
+ ).data
483
+
484
+
485
+ @validate_call
486
+ def approve_credit_memo_v1_with_http_info(
487
+ self,
488
+ memo_id: StrictStr,
489
+ x_api_key: Optional[StrictStr] = None,
490
+ x_tenant_id: Optional[StrictStr] = None,
491
+ x_org_id: Optional[StrictStr] = None,
492
+ authorization: Optional[StrictStr] = None,
493
+ _request_timeout: Union[
494
+ None,
495
+ Annotated[StrictFloat, Field(gt=0)],
496
+ Tuple[
497
+ Annotated[StrictFloat, Field(gt=0)],
498
+ Annotated[StrictFloat, Field(gt=0)]
499
+ ]
500
+ ] = None,
501
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
502
+ _content_type: Optional[StrictStr] = None,
503
+ _headers: Optional[Dict[StrictStr, Any]] = None,
504
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
505
+ ) -> ApiResponse[CreditMemoResponse]:
506
+ """Approve Credit Memo
507
+
508
+ Approve a credit memo.
509
+
510
+ :param memo_id: (required)
511
+ :type memo_id: str
512
+ :param x_api_key:
513
+ :type x_api_key: str
514
+ :param x_tenant_id:
515
+ :type x_tenant_id: str
516
+ :param x_org_id:
517
+ :type x_org_id: str
518
+ :param authorization:
519
+ :type authorization: str
520
+ :param _request_timeout: timeout setting for this request. If one
521
+ number provided, it will be total request
522
+ timeout. It can also be a pair (tuple) of
523
+ (connection, read) timeouts.
524
+ :type _request_timeout: int, tuple(int, int), optional
525
+ :param _request_auth: set to override the auth_settings for an a single
526
+ request; this effectively ignores the
527
+ authentication in the spec for a single request.
528
+ :type _request_auth: dict, optional
529
+ :param _content_type: force content-type for the request.
530
+ :type _content_type: str, Optional
531
+ :param _headers: set to override the headers for a single
532
+ request; this effectively ignores the headers
533
+ in the spec for a single request.
534
+ :type _headers: dict, optional
535
+ :param _host_index: set to override the host_index for a single
536
+ request; this effectively ignores the host_index
537
+ in the spec for a single request.
538
+ :type _host_index: int, optional
539
+ :return: Returns the result object.
540
+ """ # noqa: E501
541
+
542
+ _param = self._approve_credit_memo_v1_serialize(
543
+ memo_id=memo_id,
544
+ x_api_key=x_api_key,
545
+ x_tenant_id=x_tenant_id,
546
+ x_org_id=x_org_id,
547
+ authorization=authorization,
548
+ _request_auth=_request_auth,
549
+ _content_type=_content_type,
550
+ _headers=_headers,
551
+ _host_index=_host_index
552
+ )
553
+
554
+ _response_types_map: Dict[str, Optional[str]] = {
555
+ '200': "CreditMemoResponse",
556
+ '422': "ArcHTTPValidationError",
557
+ }
558
+ response_data = self.api_client.call_api(
559
+ *_param,
560
+ _request_timeout=_request_timeout
561
+ )
562
+ response_data.read()
563
+ return self.api_client.response_deserialize(
564
+ response_data=response_data,
565
+ response_types_map=_response_types_map,
566
+ )
567
+
568
+
569
+ @validate_call
570
+ def approve_credit_memo_v1_without_preload_content(
571
+ self,
572
+ memo_id: StrictStr,
573
+ x_api_key: Optional[StrictStr] = None,
574
+ x_tenant_id: Optional[StrictStr] = None,
575
+ x_org_id: Optional[StrictStr] = None,
576
+ authorization: Optional[StrictStr] = None,
577
+ _request_timeout: Union[
578
+ None,
579
+ Annotated[StrictFloat, Field(gt=0)],
580
+ Tuple[
581
+ Annotated[StrictFloat, Field(gt=0)],
582
+ Annotated[StrictFloat, Field(gt=0)]
583
+ ]
584
+ ] = None,
585
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
586
+ _content_type: Optional[StrictStr] = None,
587
+ _headers: Optional[Dict[StrictStr, Any]] = None,
588
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
589
+ ) -> RESTResponseType:
590
+ """Approve Credit Memo
591
+
592
+ Approve a credit memo.
593
+
594
+ :param memo_id: (required)
595
+ :type memo_id: str
596
+ :param x_api_key:
597
+ :type x_api_key: str
598
+ :param x_tenant_id:
599
+ :type x_tenant_id: str
600
+ :param x_org_id:
601
+ :type x_org_id: str
602
+ :param authorization:
603
+ :type authorization: str
604
+ :param _request_timeout: timeout setting for this request. If one
605
+ number provided, it will be total request
606
+ timeout. It can also be a pair (tuple) of
607
+ (connection, read) timeouts.
608
+ :type _request_timeout: int, tuple(int, int), optional
609
+ :param _request_auth: set to override the auth_settings for an a single
610
+ request; this effectively ignores the
611
+ authentication in the spec for a single request.
612
+ :type _request_auth: dict, optional
613
+ :param _content_type: force content-type for the request.
614
+ :type _content_type: str, Optional
615
+ :param _headers: set to override the headers for a single
616
+ request; this effectively ignores the headers
617
+ in the spec for a single request.
618
+ :type _headers: dict, optional
619
+ :param _host_index: set to override the host_index for a single
620
+ request; this effectively ignores the host_index
621
+ in the spec for a single request.
622
+ :type _host_index: int, optional
623
+ :return: Returns the result object.
624
+ """ # noqa: E501
625
+
626
+ _param = self._approve_credit_memo_v1_serialize(
627
+ memo_id=memo_id,
628
+ x_api_key=x_api_key,
629
+ x_tenant_id=x_tenant_id,
630
+ x_org_id=x_org_id,
631
+ authorization=authorization,
632
+ _request_auth=_request_auth,
633
+ _content_type=_content_type,
634
+ _headers=_headers,
635
+ _host_index=_host_index
636
+ )
637
+
638
+ _response_types_map: Dict[str, Optional[str]] = {
639
+ '200': "CreditMemoResponse",
640
+ '422': "ArcHTTPValidationError",
641
+ }
642
+ response_data = self.api_client.call_api(
643
+ *_param,
644
+ _request_timeout=_request_timeout
645
+ )
646
+ return response_data.response
647
+
648
+
649
+ def _approve_credit_memo_v1_serialize(
650
+ self,
651
+ memo_id,
652
+ x_api_key,
653
+ x_tenant_id,
654
+ x_org_id,
655
+ authorization,
656
+ _request_auth,
657
+ _content_type,
658
+ _headers,
659
+ _host_index,
660
+ ) -> RequestSerialized:
661
+
662
+ _host = None
663
+
664
+ _collection_formats: Dict[str, str] = {
665
+ }
666
+
667
+ _path_params: Dict[str, str] = {}
668
+ _query_params: List[Tuple[str, str]] = []
669
+ _header_params: Dict[str, Optional[str]] = _headers or {}
670
+ _form_params: List[Tuple[str, str]] = []
671
+ _files: Dict[
672
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
673
+ ] = {}
674
+ _body_params: Optional[bytes] = None
675
+
676
+ # process the path parameters
677
+ if memo_id is not None:
678
+ _path_params['memo_id'] = memo_id
679
+ # process the query parameters
680
+ # process the header parameters
681
+ if x_api_key is not None:
682
+ _header_params['X-API-Key'] = x_api_key
683
+ if x_tenant_id is not None:
684
+ _header_params['X-Tenant-Id'] = x_tenant_id
685
+ if x_org_id is not None:
686
+ _header_params['X-Org-Id'] = x_org_id
687
+ if authorization is not None:
688
+ _header_params['Authorization'] = authorization
689
+ # process the form parameters
690
+ # process the body parameter
691
+
692
+
693
+ # set the HTTP header `Accept`
694
+ if 'Accept' not in _header_params:
695
+ _header_params['Accept'] = self.api_client.select_header_accept(
696
+ [
697
+ 'application/json'
698
+ ]
699
+ )
700
+
701
+
702
+ # authentication setting
703
+ _auth_settings: List[str] = [
704
+ ]
705
+
706
+ return self.api_client.param_serialize(
707
+ method='POST',
708
+ resource_path='/v1/arc/credit-memos/{memo_id}/approve',
709
+ path_params=_path_params,
710
+ query_params=_query_params,
711
+ header_params=_header_params,
712
+ body=_body_params,
713
+ post_params=_form_params,
714
+ files=_files,
715
+ auth_settings=_auth_settings,
716
+ collection_formats=_collection_formats,
717
+ _host=_host,
718
+ _request_auth=_request_auth
719
+ )
720
+
721
+
722
+
723
+
724
+ @validate_call
725
+ def create_credit_memo_v1(
726
+ self,
727
+ credit_memo_create: CreditMemoCreate,
728
+ x_api_key: Optional[StrictStr] = None,
729
+ x_tenant_id: Optional[StrictStr] = None,
730
+ x_org_id: Optional[StrictStr] = None,
731
+ authorization: Optional[StrictStr] = None,
732
+ _request_timeout: Union[
733
+ None,
734
+ Annotated[StrictFloat, Field(gt=0)],
735
+ Tuple[
736
+ Annotated[StrictFloat, Field(gt=0)],
737
+ Annotated[StrictFloat, Field(gt=0)]
738
+ ]
739
+ ] = None,
740
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
741
+ _content_type: Optional[StrictStr] = None,
742
+ _headers: Optional[Dict[StrictStr, Any]] = None,
743
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
744
+ ) -> CreditMemoResponse:
745
+ """Create Credit Memo
746
+
747
+ Create a credit memo in draft status.
748
+
749
+ :param credit_memo_create: (required)
750
+ :type credit_memo_create: CreditMemoCreate
751
+ :param x_api_key:
752
+ :type x_api_key: str
753
+ :param x_tenant_id:
754
+ :type x_tenant_id: str
755
+ :param x_org_id:
756
+ :type x_org_id: str
757
+ :param authorization:
758
+ :type authorization: str
759
+ :param _request_timeout: timeout setting for this request. If one
760
+ number provided, it will be total request
761
+ timeout. It can also be a pair (tuple) of
762
+ (connection, read) timeouts.
763
+ :type _request_timeout: int, tuple(int, int), optional
764
+ :param _request_auth: set to override the auth_settings for an a single
765
+ request; this effectively ignores the
766
+ authentication in the spec for a single request.
767
+ :type _request_auth: dict, optional
768
+ :param _content_type: force content-type for the request.
769
+ :type _content_type: str, Optional
770
+ :param _headers: set to override the headers for a single
771
+ request; this effectively ignores the headers
772
+ in the spec for a single request.
773
+ :type _headers: dict, optional
774
+ :param _host_index: set to override the host_index for a single
775
+ request; this effectively ignores the host_index
776
+ in the spec for a single request.
777
+ :type _host_index: int, optional
778
+ :return: Returns the result object.
779
+ """ # noqa: E501
780
+
781
+ _param = self._create_credit_memo_v1_serialize(
782
+ credit_memo_create=credit_memo_create,
783
+ x_api_key=x_api_key,
784
+ x_tenant_id=x_tenant_id,
785
+ x_org_id=x_org_id,
786
+ authorization=authorization,
787
+ _request_auth=_request_auth,
788
+ _content_type=_content_type,
789
+ _headers=_headers,
790
+ _host_index=_host_index
791
+ )
792
+
793
+ _response_types_map: Dict[str, Optional[str]] = {
794
+ '201': "CreditMemoResponse",
795
+ '422': "ArcHTTPValidationError",
796
+ }
797
+ response_data = self.api_client.call_api(
798
+ *_param,
799
+ _request_timeout=_request_timeout
800
+ )
801
+ response_data.read()
802
+ return self.api_client.response_deserialize(
803
+ response_data=response_data,
804
+ response_types_map=_response_types_map,
805
+ ).data
806
+
807
+
808
+ @validate_call
809
+ def create_credit_memo_v1_with_http_info(
810
+ self,
811
+ credit_memo_create: CreditMemoCreate,
812
+ x_api_key: Optional[StrictStr] = None,
813
+ x_tenant_id: Optional[StrictStr] = None,
814
+ x_org_id: Optional[StrictStr] = None,
815
+ authorization: Optional[StrictStr] = None,
816
+ _request_timeout: Union[
817
+ None,
818
+ Annotated[StrictFloat, Field(gt=0)],
819
+ Tuple[
820
+ Annotated[StrictFloat, Field(gt=0)],
821
+ Annotated[StrictFloat, Field(gt=0)]
822
+ ]
823
+ ] = None,
824
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
825
+ _content_type: Optional[StrictStr] = None,
826
+ _headers: Optional[Dict[StrictStr, Any]] = None,
827
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
828
+ ) -> ApiResponse[CreditMemoResponse]:
829
+ """Create Credit Memo
830
+
831
+ Create a credit memo in draft status.
832
+
833
+ :param credit_memo_create: (required)
834
+ :type credit_memo_create: CreditMemoCreate
835
+ :param x_api_key:
836
+ :type x_api_key: str
837
+ :param x_tenant_id:
838
+ :type x_tenant_id: str
839
+ :param x_org_id:
840
+ :type x_org_id: str
841
+ :param authorization:
842
+ :type authorization: str
843
+ :param _request_timeout: timeout setting for this request. If one
844
+ number provided, it will be total request
845
+ timeout. It can also be a pair (tuple) of
846
+ (connection, read) timeouts.
847
+ :type _request_timeout: int, tuple(int, int), optional
848
+ :param _request_auth: set to override the auth_settings for an a single
849
+ request; this effectively ignores the
850
+ authentication in the spec for a single request.
851
+ :type _request_auth: dict, optional
852
+ :param _content_type: force content-type for the request.
853
+ :type _content_type: str, Optional
854
+ :param _headers: set to override the headers for a single
855
+ request; this effectively ignores the headers
856
+ in the spec for a single request.
857
+ :type _headers: dict, optional
858
+ :param _host_index: set to override the host_index for a single
859
+ request; this effectively ignores the host_index
860
+ in the spec for a single request.
861
+ :type _host_index: int, optional
862
+ :return: Returns the result object.
863
+ """ # noqa: E501
864
+
865
+ _param = self._create_credit_memo_v1_serialize(
866
+ credit_memo_create=credit_memo_create,
867
+ x_api_key=x_api_key,
868
+ x_tenant_id=x_tenant_id,
869
+ x_org_id=x_org_id,
870
+ authorization=authorization,
871
+ _request_auth=_request_auth,
872
+ _content_type=_content_type,
873
+ _headers=_headers,
874
+ _host_index=_host_index
875
+ )
876
+
877
+ _response_types_map: Dict[str, Optional[str]] = {
878
+ '201': "CreditMemoResponse",
879
+ '422': "ArcHTTPValidationError",
880
+ }
881
+ response_data = self.api_client.call_api(
882
+ *_param,
883
+ _request_timeout=_request_timeout
884
+ )
885
+ response_data.read()
886
+ return self.api_client.response_deserialize(
887
+ response_data=response_data,
888
+ response_types_map=_response_types_map,
889
+ )
890
+
891
+
892
+ @validate_call
893
+ def create_credit_memo_v1_without_preload_content(
894
+ self,
895
+ credit_memo_create: CreditMemoCreate,
896
+ x_api_key: Optional[StrictStr] = None,
897
+ x_tenant_id: Optional[StrictStr] = None,
898
+ x_org_id: Optional[StrictStr] = None,
899
+ authorization: Optional[StrictStr] = None,
900
+ _request_timeout: Union[
901
+ None,
902
+ Annotated[StrictFloat, Field(gt=0)],
903
+ Tuple[
904
+ Annotated[StrictFloat, Field(gt=0)],
905
+ Annotated[StrictFloat, Field(gt=0)]
906
+ ]
907
+ ] = None,
908
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
909
+ _content_type: Optional[StrictStr] = None,
910
+ _headers: Optional[Dict[StrictStr, Any]] = None,
911
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
912
+ ) -> RESTResponseType:
913
+ """Create Credit Memo
914
+
915
+ Create a credit memo in draft status.
916
+
917
+ :param credit_memo_create: (required)
918
+ :type credit_memo_create: CreditMemoCreate
919
+ :param x_api_key:
920
+ :type x_api_key: str
921
+ :param x_tenant_id:
922
+ :type x_tenant_id: str
923
+ :param x_org_id:
924
+ :type x_org_id: str
925
+ :param authorization:
926
+ :type authorization: str
927
+ :param _request_timeout: timeout setting for this request. If one
928
+ number provided, it will be total request
929
+ timeout. It can also be a pair (tuple) of
930
+ (connection, read) timeouts.
931
+ :type _request_timeout: int, tuple(int, int), optional
932
+ :param _request_auth: set to override the auth_settings for an a single
933
+ request; this effectively ignores the
934
+ authentication in the spec for a single request.
935
+ :type _request_auth: dict, optional
936
+ :param _content_type: force content-type for the request.
937
+ :type _content_type: str, Optional
938
+ :param _headers: set to override the headers for a single
939
+ request; this effectively ignores the headers
940
+ in the spec for a single request.
941
+ :type _headers: dict, optional
942
+ :param _host_index: set to override the host_index for a single
943
+ request; this effectively ignores the host_index
944
+ in the spec for a single request.
945
+ :type _host_index: int, optional
946
+ :return: Returns the result object.
947
+ """ # noqa: E501
948
+
949
+ _param = self._create_credit_memo_v1_serialize(
950
+ credit_memo_create=credit_memo_create,
951
+ x_api_key=x_api_key,
952
+ x_tenant_id=x_tenant_id,
953
+ x_org_id=x_org_id,
954
+ authorization=authorization,
955
+ _request_auth=_request_auth,
956
+ _content_type=_content_type,
957
+ _headers=_headers,
958
+ _host_index=_host_index
959
+ )
960
+
961
+ _response_types_map: Dict[str, Optional[str]] = {
962
+ '201': "CreditMemoResponse",
963
+ '422': "ArcHTTPValidationError",
964
+ }
965
+ response_data = self.api_client.call_api(
966
+ *_param,
967
+ _request_timeout=_request_timeout
968
+ )
969
+ return response_data.response
970
+
971
+
972
+ def _create_credit_memo_v1_serialize(
973
+ self,
974
+ credit_memo_create,
975
+ x_api_key,
976
+ x_tenant_id,
977
+ x_org_id,
978
+ authorization,
979
+ _request_auth,
980
+ _content_type,
981
+ _headers,
982
+ _host_index,
983
+ ) -> RequestSerialized:
984
+
985
+ _host = None
986
+
987
+ _collection_formats: Dict[str, str] = {
988
+ }
989
+
990
+ _path_params: Dict[str, str] = {}
991
+ _query_params: List[Tuple[str, str]] = []
992
+ _header_params: Dict[str, Optional[str]] = _headers or {}
993
+ _form_params: List[Tuple[str, str]] = []
994
+ _files: Dict[
995
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
996
+ ] = {}
997
+ _body_params: Optional[bytes] = None
998
+
999
+ # process the path parameters
1000
+ # process the query parameters
1001
+ # process the header parameters
1002
+ if x_api_key is not None:
1003
+ _header_params['X-API-Key'] = x_api_key
1004
+ if x_tenant_id is not None:
1005
+ _header_params['X-Tenant-Id'] = x_tenant_id
1006
+ if x_org_id is not None:
1007
+ _header_params['X-Org-Id'] = x_org_id
1008
+ if authorization is not None:
1009
+ _header_params['Authorization'] = authorization
1010
+ # process the form parameters
1011
+ # process the body parameter
1012
+ if credit_memo_create is not None:
1013
+ _body_params = credit_memo_create
1014
+
1015
+
1016
+ # set the HTTP header `Accept`
1017
+ if 'Accept' not in _header_params:
1018
+ _header_params['Accept'] = self.api_client.select_header_accept(
1019
+ [
1020
+ 'application/json'
1021
+ ]
1022
+ )
1023
+
1024
+ # set the HTTP header `Content-Type`
1025
+ if _content_type:
1026
+ _header_params['Content-Type'] = _content_type
1027
+ else:
1028
+ _default_content_type = (
1029
+ self.api_client.select_header_content_type(
1030
+ [
1031
+ 'application/json'
1032
+ ]
1033
+ )
1034
+ )
1035
+ if _default_content_type is not None:
1036
+ _header_params['Content-Type'] = _default_content_type
1037
+
1038
+ # authentication setting
1039
+ _auth_settings: List[str] = [
1040
+ ]
1041
+
1042
+ return self.api_client.param_serialize(
1043
+ method='POST',
1044
+ resource_path='/v1/arc/credit-memos',
1045
+ path_params=_path_params,
1046
+ query_params=_query_params,
1047
+ header_params=_header_params,
1048
+ body=_body_params,
1049
+ post_params=_form_params,
1050
+ files=_files,
1051
+ auth_settings=_auth_settings,
1052
+ collection_formats=_collection_formats,
1053
+ _host=_host,
1054
+ _request_auth=_request_auth
1055
+ )
1056
+
1057
+
1058
+
1059
+
1060
+ @validate_call
1061
+ def create_tenant_credit_memo_v1(
1062
+ self,
1063
+ credit_memo_create_public: CreditMemoCreatePublic,
1064
+ _request_timeout: Union[
1065
+ None,
1066
+ Annotated[StrictFloat, Field(gt=0)],
1067
+ Tuple[
1068
+ Annotated[StrictFloat, Field(gt=0)],
1069
+ Annotated[StrictFloat, Field(gt=0)]
1070
+ ]
1071
+ ] = None,
1072
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1073
+ _content_type: Optional[StrictStr] = None,
1074
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1075
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1076
+ ) -> CreditMemoOut:
1077
+ """Create Tenant Credit Memo
1078
+
1079
+
1080
+ :param credit_memo_create_public: (required)
1081
+ :type credit_memo_create_public: CreditMemoCreatePublic
1082
+ :param _request_timeout: timeout setting for this request. If one
1083
+ number provided, it will be total request
1084
+ timeout. It can also be a pair (tuple) of
1085
+ (connection, read) timeouts.
1086
+ :type _request_timeout: int, tuple(int, int), optional
1087
+ :param _request_auth: set to override the auth_settings for an a single
1088
+ request; this effectively ignores the
1089
+ authentication in the spec for a single request.
1090
+ :type _request_auth: dict, optional
1091
+ :param _content_type: force content-type for the request.
1092
+ :type _content_type: str, Optional
1093
+ :param _headers: set to override the headers for a single
1094
+ request; this effectively ignores the headers
1095
+ in the spec for a single request.
1096
+ :type _headers: dict, optional
1097
+ :param _host_index: set to override the host_index for a single
1098
+ request; this effectively ignores the host_index
1099
+ in the spec for a single request.
1100
+ :type _host_index: int, optional
1101
+ :return: Returns the result object.
1102
+ """ # noqa: E501
1103
+
1104
+ _param = self._create_tenant_credit_memo_v1_serialize(
1105
+ credit_memo_create_public=credit_memo_create_public,
1106
+ _request_auth=_request_auth,
1107
+ _content_type=_content_type,
1108
+ _headers=_headers,
1109
+ _host_index=_host_index
1110
+ )
1111
+
1112
+ _response_types_map: Dict[str, Optional[str]] = {
1113
+ '201': "CreditMemoOut",
1114
+ '422': "HTTPValidationError",
1115
+ }
1116
+ response_data = self.api_client.call_api(
1117
+ *_param,
1118
+ _request_timeout=_request_timeout
1119
+ )
1120
+ response_data.read()
1121
+ return self.api_client.response_deserialize(
1122
+ response_data=response_data,
1123
+ response_types_map=_response_types_map,
1124
+ ).data
1125
+
1126
+
1127
+ @validate_call
1128
+ def create_tenant_credit_memo_v1_with_http_info(
1129
+ self,
1130
+ credit_memo_create_public: CreditMemoCreatePublic,
1131
+ _request_timeout: Union[
1132
+ None,
1133
+ Annotated[StrictFloat, Field(gt=0)],
1134
+ Tuple[
1135
+ Annotated[StrictFloat, Field(gt=0)],
1136
+ Annotated[StrictFloat, Field(gt=0)]
1137
+ ]
1138
+ ] = None,
1139
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1140
+ _content_type: Optional[StrictStr] = None,
1141
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1142
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1143
+ ) -> ApiResponse[CreditMemoOut]:
1144
+ """Create Tenant Credit Memo
1145
+
1146
+
1147
+ :param credit_memo_create_public: (required)
1148
+ :type credit_memo_create_public: CreditMemoCreatePublic
1149
+ :param _request_timeout: timeout setting for this request. If one
1150
+ number provided, it will be total request
1151
+ timeout. It can also be a pair (tuple) of
1152
+ (connection, read) timeouts.
1153
+ :type _request_timeout: int, tuple(int, int), optional
1154
+ :param _request_auth: set to override the auth_settings for an a single
1155
+ request; this effectively ignores the
1156
+ authentication in the spec for a single request.
1157
+ :type _request_auth: dict, optional
1158
+ :param _content_type: force content-type for the request.
1159
+ :type _content_type: str, Optional
1160
+ :param _headers: set to override the headers for a single
1161
+ request; this effectively ignores the headers
1162
+ in the spec for a single request.
1163
+ :type _headers: dict, optional
1164
+ :param _host_index: set to override the host_index for a single
1165
+ request; this effectively ignores the host_index
1166
+ in the spec for a single request.
1167
+ :type _host_index: int, optional
1168
+ :return: Returns the result object.
1169
+ """ # noqa: E501
1170
+
1171
+ _param = self._create_tenant_credit_memo_v1_serialize(
1172
+ credit_memo_create_public=credit_memo_create_public,
1173
+ _request_auth=_request_auth,
1174
+ _content_type=_content_type,
1175
+ _headers=_headers,
1176
+ _host_index=_host_index
1177
+ )
1178
+
1179
+ _response_types_map: Dict[str, Optional[str]] = {
1180
+ '201': "CreditMemoOut",
1181
+ '422': "HTTPValidationError",
1182
+ }
1183
+ response_data = self.api_client.call_api(
1184
+ *_param,
1185
+ _request_timeout=_request_timeout
1186
+ )
1187
+ response_data.read()
1188
+ return self.api_client.response_deserialize(
1189
+ response_data=response_data,
1190
+ response_types_map=_response_types_map,
1191
+ )
1192
+
1193
+
1194
+ @validate_call
1195
+ def create_tenant_credit_memo_v1_without_preload_content(
1196
+ self,
1197
+ credit_memo_create_public: CreditMemoCreatePublic,
1198
+ _request_timeout: Union[
1199
+ None,
1200
+ Annotated[StrictFloat, Field(gt=0)],
1201
+ Tuple[
1202
+ Annotated[StrictFloat, Field(gt=0)],
1203
+ Annotated[StrictFloat, Field(gt=0)]
1204
+ ]
1205
+ ] = None,
1206
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1207
+ _content_type: Optional[StrictStr] = None,
1208
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1209
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1210
+ ) -> RESTResponseType:
1211
+ """Create Tenant Credit Memo
1212
+
1213
+
1214
+ :param credit_memo_create_public: (required)
1215
+ :type credit_memo_create_public: CreditMemoCreatePublic
1216
+ :param _request_timeout: timeout setting for this request. If one
1217
+ number provided, it will be total request
1218
+ timeout. It can also be a pair (tuple) of
1219
+ (connection, read) timeouts.
1220
+ :type _request_timeout: int, tuple(int, int), optional
1221
+ :param _request_auth: set to override the auth_settings for an a single
1222
+ request; this effectively ignores the
1223
+ authentication in the spec for a single request.
1224
+ :type _request_auth: dict, optional
1225
+ :param _content_type: force content-type for the request.
1226
+ :type _content_type: str, Optional
1227
+ :param _headers: set to override the headers for a single
1228
+ request; this effectively ignores the headers
1229
+ in the spec for a single request.
1230
+ :type _headers: dict, optional
1231
+ :param _host_index: set to override the host_index for a single
1232
+ request; this effectively ignores the host_index
1233
+ in the spec for a single request.
1234
+ :type _host_index: int, optional
1235
+ :return: Returns the result object.
1236
+ """ # noqa: E501
1237
+
1238
+ _param = self._create_tenant_credit_memo_v1_serialize(
1239
+ credit_memo_create_public=credit_memo_create_public,
1240
+ _request_auth=_request_auth,
1241
+ _content_type=_content_type,
1242
+ _headers=_headers,
1243
+ _host_index=_host_index
1244
+ )
1245
+
1246
+ _response_types_map: Dict[str, Optional[str]] = {
1247
+ '201': "CreditMemoOut",
1248
+ '422': "HTTPValidationError",
1249
+ }
1250
+ response_data = self.api_client.call_api(
1251
+ *_param,
1252
+ _request_timeout=_request_timeout
1253
+ )
1254
+ return response_data.response
1255
+
1256
+
1257
+ def _create_tenant_credit_memo_v1_serialize(
1258
+ self,
1259
+ credit_memo_create_public,
1260
+ _request_auth,
1261
+ _content_type,
1262
+ _headers,
1263
+ _host_index,
1264
+ ) -> RequestSerialized:
1265
+
1266
+ _host = None
1267
+
1268
+ _collection_formats: Dict[str, str] = {
1269
+ }
1270
+
1271
+ _path_params: Dict[str, str] = {}
1272
+ _query_params: List[Tuple[str, str]] = []
1273
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1274
+ _form_params: List[Tuple[str, str]] = []
1275
+ _files: Dict[
1276
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1277
+ ] = {}
1278
+ _body_params: Optional[bytes] = None
1279
+
1280
+ # process the path parameters
1281
+ # process the query parameters
1282
+ # process the header parameters
1283
+ # process the form parameters
1284
+ # process the body parameter
1285
+ if credit_memo_create_public is not None:
1286
+ _body_params = credit_memo_create_public
1287
+
1288
+
1289
+ # set the HTTP header `Accept`
1290
+ if 'Accept' not in _header_params:
1291
+ _header_params['Accept'] = self.api_client.select_header_accept(
1292
+ [
1293
+ 'application/json'
1294
+ ]
1295
+ )
1296
+
1297
+ # set the HTTP header `Content-Type`
1298
+ if _content_type:
1299
+ _header_params['Content-Type'] = _content_type
1300
+ else:
1301
+ _default_content_type = (
1302
+ self.api_client.select_header_content_type(
1303
+ [
1304
+ 'application/json'
1305
+ ]
1306
+ )
1307
+ )
1308
+ if _default_content_type is not None:
1309
+ _header_params['Content-Type'] = _default_content_type
1310
+
1311
+ # authentication setting
1312
+ _auth_settings: List[str] = [
1313
+ ]
1314
+
1315
+ return self.api_client.param_serialize(
1316
+ method='POST',
1317
+ resource_path='/v1/rating/credit-memos',
1318
+ path_params=_path_params,
1319
+ query_params=_query_params,
1320
+ header_params=_header_params,
1321
+ body=_body_params,
1322
+ post_params=_form_params,
1323
+ files=_files,
1324
+ auth_settings=_auth_settings,
1325
+ collection_formats=_collection_formats,
1326
+ _host=_host,
1327
+ _request_auth=_request_auth
1328
+ )
1329
+
1330
+
1331
+
1332
+
1333
+ @validate_call
1334
+ def get_credit_memo_v1(
1335
+ self,
1336
+ memo_id: StrictStr,
1337
+ x_api_key: Optional[StrictStr] = None,
1338
+ x_tenant_id: Optional[StrictStr] = None,
1339
+ x_org_id: Optional[StrictStr] = None,
1340
+ authorization: Optional[StrictStr] = None,
1341
+ _request_timeout: Union[
1342
+ None,
1343
+ Annotated[StrictFloat, Field(gt=0)],
1344
+ Tuple[
1345
+ Annotated[StrictFloat, Field(gt=0)],
1346
+ Annotated[StrictFloat, Field(gt=0)]
1347
+ ]
1348
+ ] = None,
1349
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1350
+ _content_type: Optional[StrictStr] = None,
1351
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1352
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1353
+ ) -> CreditMemoResponse:
1354
+ """Get Credit Memo
1355
+
1356
+ Get a single credit memo.
1357
+
1358
+ :param memo_id: (required)
1359
+ :type memo_id: str
1360
+ :param x_api_key:
1361
+ :type x_api_key: str
1362
+ :param x_tenant_id:
1363
+ :type x_tenant_id: str
1364
+ :param x_org_id:
1365
+ :type x_org_id: str
1366
+ :param authorization:
1367
+ :type authorization: str
1368
+ :param _request_timeout: timeout setting for this request. If one
1369
+ number provided, it will be total request
1370
+ timeout. It can also be a pair (tuple) of
1371
+ (connection, read) timeouts.
1372
+ :type _request_timeout: int, tuple(int, int), optional
1373
+ :param _request_auth: set to override the auth_settings for an a single
1374
+ request; this effectively ignores the
1375
+ authentication in the spec for a single request.
1376
+ :type _request_auth: dict, optional
1377
+ :param _content_type: force content-type for the request.
1378
+ :type _content_type: str, Optional
1379
+ :param _headers: set to override the headers for a single
1380
+ request; this effectively ignores the headers
1381
+ in the spec for a single request.
1382
+ :type _headers: dict, optional
1383
+ :param _host_index: set to override the host_index for a single
1384
+ request; this effectively ignores the host_index
1385
+ in the spec for a single request.
1386
+ :type _host_index: int, optional
1387
+ :return: Returns the result object.
1388
+ """ # noqa: E501
1389
+
1390
+ _param = self._get_credit_memo_v1_serialize(
1391
+ memo_id=memo_id,
1392
+ x_api_key=x_api_key,
1393
+ x_tenant_id=x_tenant_id,
1394
+ x_org_id=x_org_id,
1395
+ authorization=authorization,
1396
+ _request_auth=_request_auth,
1397
+ _content_type=_content_type,
1398
+ _headers=_headers,
1399
+ _host_index=_host_index
1400
+ )
1401
+
1402
+ _response_types_map: Dict[str, Optional[str]] = {
1403
+ '200': "CreditMemoResponse",
1404
+ '422': "ArcHTTPValidationError",
1405
+ }
1406
+ response_data = self.api_client.call_api(
1407
+ *_param,
1408
+ _request_timeout=_request_timeout
1409
+ )
1410
+ response_data.read()
1411
+ return self.api_client.response_deserialize(
1412
+ response_data=response_data,
1413
+ response_types_map=_response_types_map,
1414
+ ).data
1415
+
1416
+
1417
+ @validate_call
1418
+ def get_credit_memo_v1_with_http_info(
1419
+ self,
1420
+ memo_id: StrictStr,
1421
+ x_api_key: Optional[StrictStr] = None,
1422
+ x_tenant_id: Optional[StrictStr] = None,
1423
+ x_org_id: Optional[StrictStr] = None,
1424
+ authorization: Optional[StrictStr] = None,
1425
+ _request_timeout: Union[
1426
+ None,
1427
+ Annotated[StrictFloat, Field(gt=0)],
1428
+ Tuple[
1429
+ Annotated[StrictFloat, Field(gt=0)],
1430
+ Annotated[StrictFloat, Field(gt=0)]
1431
+ ]
1432
+ ] = None,
1433
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1434
+ _content_type: Optional[StrictStr] = None,
1435
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1436
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1437
+ ) -> ApiResponse[CreditMemoResponse]:
1438
+ """Get Credit Memo
1439
+
1440
+ Get a single credit memo.
1441
+
1442
+ :param memo_id: (required)
1443
+ :type memo_id: str
1444
+ :param x_api_key:
1445
+ :type x_api_key: str
1446
+ :param x_tenant_id:
1447
+ :type x_tenant_id: str
1448
+ :param x_org_id:
1449
+ :type x_org_id: str
1450
+ :param authorization:
1451
+ :type authorization: str
1452
+ :param _request_timeout: timeout setting for this request. If one
1453
+ number provided, it will be total request
1454
+ timeout. It can also be a pair (tuple) of
1455
+ (connection, read) timeouts.
1456
+ :type _request_timeout: int, tuple(int, int), optional
1457
+ :param _request_auth: set to override the auth_settings for an a single
1458
+ request; this effectively ignores the
1459
+ authentication in the spec for a single request.
1460
+ :type _request_auth: dict, optional
1461
+ :param _content_type: force content-type for the request.
1462
+ :type _content_type: str, Optional
1463
+ :param _headers: set to override the headers for a single
1464
+ request; this effectively ignores the headers
1465
+ in the spec for a single request.
1466
+ :type _headers: dict, optional
1467
+ :param _host_index: set to override the host_index for a single
1468
+ request; this effectively ignores the host_index
1469
+ in the spec for a single request.
1470
+ :type _host_index: int, optional
1471
+ :return: Returns the result object.
1472
+ """ # noqa: E501
1473
+
1474
+ _param = self._get_credit_memo_v1_serialize(
1475
+ memo_id=memo_id,
1476
+ x_api_key=x_api_key,
1477
+ x_tenant_id=x_tenant_id,
1478
+ x_org_id=x_org_id,
1479
+ authorization=authorization,
1480
+ _request_auth=_request_auth,
1481
+ _content_type=_content_type,
1482
+ _headers=_headers,
1483
+ _host_index=_host_index
1484
+ )
1485
+
1486
+ _response_types_map: Dict[str, Optional[str]] = {
1487
+ '200': "CreditMemoResponse",
1488
+ '422': "ArcHTTPValidationError",
1489
+ }
1490
+ response_data = self.api_client.call_api(
1491
+ *_param,
1492
+ _request_timeout=_request_timeout
1493
+ )
1494
+ response_data.read()
1495
+ return self.api_client.response_deserialize(
1496
+ response_data=response_data,
1497
+ response_types_map=_response_types_map,
1498
+ )
1499
+
1500
+
1501
+ @validate_call
1502
+ def get_credit_memo_v1_without_preload_content(
1503
+ self,
1504
+ memo_id: StrictStr,
1505
+ x_api_key: Optional[StrictStr] = None,
1506
+ x_tenant_id: Optional[StrictStr] = None,
1507
+ x_org_id: Optional[StrictStr] = None,
1508
+ authorization: Optional[StrictStr] = None,
1509
+ _request_timeout: Union[
1510
+ None,
1511
+ Annotated[StrictFloat, Field(gt=0)],
1512
+ Tuple[
1513
+ Annotated[StrictFloat, Field(gt=0)],
1514
+ Annotated[StrictFloat, Field(gt=0)]
1515
+ ]
1516
+ ] = None,
1517
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1518
+ _content_type: Optional[StrictStr] = None,
1519
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1520
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1521
+ ) -> RESTResponseType:
1522
+ """Get Credit Memo
1523
+
1524
+ Get a single credit memo.
1525
+
1526
+ :param memo_id: (required)
1527
+ :type memo_id: str
1528
+ :param x_api_key:
1529
+ :type x_api_key: str
1530
+ :param x_tenant_id:
1531
+ :type x_tenant_id: str
1532
+ :param x_org_id:
1533
+ :type x_org_id: str
1534
+ :param authorization:
1535
+ :type authorization: str
1536
+ :param _request_timeout: timeout setting for this request. If one
1537
+ number provided, it will be total request
1538
+ timeout. It can also be a pair (tuple) of
1539
+ (connection, read) timeouts.
1540
+ :type _request_timeout: int, tuple(int, int), optional
1541
+ :param _request_auth: set to override the auth_settings for an a single
1542
+ request; this effectively ignores the
1543
+ authentication in the spec for a single request.
1544
+ :type _request_auth: dict, optional
1545
+ :param _content_type: force content-type for the request.
1546
+ :type _content_type: str, Optional
1547
+ :param _headers: set to override the headers for a single
1548
+ request; this effectively ignores the headers
1549
+ in the spec for a single request.
1550
+ :type _headers: dict, optional
1551
+ :param _host_index: set to override the host_index for a single
1552
+ request; this effectively ignores the host_index
1553
+ in the spec for a single request.
1554
+ :type _host_index: int, optional
1555
+ :return: Returns the result object.
1556
+ """ # noqa: E501
1557
+
1558
+ _param = self._get_credit_memo_v1_serialize(
1559
+ memo_id=memo_id,
1560
+ x_api_key=x_api_key,
1561
+ x_tenant_id=x_tenant_id,
1562
+ x_org_id=x_org_id,
1563
+ authorization=authorization,
1564
+ _request_auth=_request_auth,
1565
+ _content_type=_content_type,
1566
+ _headers=_headers,
1567
+ _host_index=_host_index
1568
+ )
1569
+
1570
+ _response_types_map: Dict[str, Optional[str]] = {
1571
+ '200': "CreditMemoResponse",
1572
+ '422': "ArcHTTPValidationError",
1573
+ }
1574
+ response_data = self.api_client.call_api(
1575
+ *_param,
1576
+ _request_timeout=_request_timeout
1577
+ )
1578
+ return response_data.response
1579
+
1580
+
1581
+ def _get_credit_memo_v1_serialize(
1582
+ self,
1583
+ memo_id,
1584
+ x_api_key,
1585
+ x_tenant_id,
1586
+ x_org_id,
1587
+ authorization,
1588
+ _request_auth,
1589
+ _content_type,
1590
+ _headers,
1591
+ _host_index,
1592
+ ) -> RequestSerialized:
1593
+
1594
+ _host = None
1595
+
1596
+ _collection_formats: Dict[str, str] = {
1597
+ }
1598
+
1599
+ _path_params: Dict[str, str] = {}
1600
+ _query_params: List[Tuple[str, str]] = []
1601
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1602
+ _form_params: List[Tuple[str, str]] = []
1603
+ _files: Dict[
1604
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1605
+ ] = {}
1606
+ _body_params: Optional[bytes] = None
1607
+
1608
+ # process the path parameters
1609
+ if memo_id is not None:
1610
+ _path_params['memo_id'] = memo_id
1611
+ # process the query parameters
1612
+ # process the header parameters
1613
+ if x_api_key is not None:
1614
+ _header_params['X-API-Key'] = x_api_key
1615
+ if x_tenant_id is not None:
1616
+ _header_params['X-Tenant-Id'] = x_tenant_id
1617
+ if x_org_id is not None:
1618
+ _header_params['X-Org-Id'] = x_org_id
1619
+ if authorization is not None:
1620
+ _header_params['Authorization'] = authorization
1621
+ # process the form parameters
1622
+ # process the body parameter
1623
+
1624
+
1625
+ # set the HTTP header `Accept`
1626
+ if 'Accept' not in _header_params:
1627
+ _header_params['Accept'] = self.api_client.select_header_accept(
1628
+ [
1629
+ 'application/json'
1630
+ ]
1631
+ )
1632
+
1633
+
1634
+ # authentication setting
1635
+ _auth_settings: List[str] = [
1636
+ ]
1637
+
1638
+ return self.api_client.param_serialize(
1639
+ method='GET',
1640
+ resource_path='/v1/arc/credit-memos/{memo_id}',
1641
+ path_params=_path_params,
1642
+ query_params=_query_params,
1643
+ header_params=_header_params,
1644
+ body=_body_params,
1645
+ post_params=_form_params,
1646
+ files=_files,
1647
+ auth_settings=_auth_settings,
1648
+ collection_formats=_collection_formats,
1649
+ _host=_host,
1650
+ _request_auth=_request_auth
1651
+ )
1652
+
1653
+
1654
+
1655
+
1656
+ @validate_call
1657
+ def list_credit_memos_v1_get(
1658
+ self,
1659
+ account_id: Optional[StrictStr] = None,
1660
+ status: Optional[StrictStr] = None,
1661
+ page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
1662
+ page_size: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
1663
+ x_api_key: Optional[StrictStr] = None,
1664
+ x_tenant_id: Optional[StrictStr] = None,
1665
+ x_org_id: Optional[StrictStr] = None,
1666
+ authorization: Optional[StrictStr] = None,
1667
+ _request_timeout: Union[
1668
+ None,
1669
+ Annotated[StrictFloat, Field(gt=0)],
1670
+ Tuple[
1671
+ Annotated[StrictFloat, Field(gt=0)],
1672
+ Annotated[StrictFloat, Field(gt=0)]
1673
+ ]
1674
+ ] = None,
1675
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1676
+ _content_type: Optional[StrictStr] = None,
1677
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1678
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1679
+ ) -> CreditMemoListResponse:
1680
+ """List Credit Memos
1681
+
1682
+ List credit memos with pagination and optional filters.
1683
+
1684
+ :param account_id:
1685
+ :type account_id: str
1686
+ :param status:
1687
+ :type status: str
1688
+ :param page:
1689
+ :type page: int
1690
+ :param page_size:
1691
+ :type page_size: int
1692
+ :param x_api_key:
1693
+ :type x_api_key: str
1694
+ :param x_tenant_id:
1695
+ :type x_tenant_id: str
1696
+ :param x_org_id:
1697
+ :type x_org_id: str
1698
+ :param authorization:
1699
+ :type authorization: str
1700
+ :param _request_timeout: timeout setting for this request. If one
1701
+ number provided, it will be total request
1702
+ timeout. It can also be a pair (tuple) of
1703
+ (connection, read) timeouts.
1704
+ :type _request_timeout: int, tuple(int, int), optional
1705
+ :param _request_auth: set to override the auth_settings for an a single
1706
+ request; this effectively ignores the
1707
+ authentication in the spec for a single request.
1708
+ :type _request_auth: dict, optional
1709
+ :param _content_type: force content-type for the request.
1710
+ :type _content_type: str, Optional
1711
+ :param _headers: set to override the headers for a single
1712
+ request; this effectively ignores the headers
1713
+ in the spec for a single request.
1714
+ :type _headers: dict, optional
1715
+ :param _host_index: set to override the host_index for a single
1716
+ request; this effectively ignores the host_index
1717
+ in the spec for a single request.
1718
+ :type _host_index: int, optional
1719
+ :return: Returns the result object.
1720
+ """ # noqa: E501
1721
+
1722
+ _param = self._list_credit_memos_v1_get_serialize(
1723
+ account_id=account_id,
1724
+ status=status,
1725
+ page=page,
1726
+ page_size=page_size,
1727
+ x_api_key=x_api_key,
1728
+ x_tenant_id=x_tenant_id,
1729
+ x_org_id=x_org_id,
1730
+ authorization=authorization,
1731
+ _request_auth=_request_auth,
1732
+ _content_type=_content_type,
1733
+ _headers=_headers,
1734
+ _host_index=_host_index
1735
+ )
1736
+
1737
+ _response_types_map: Dict[str, Optional[str]] = {
1738
+ '200': "CreditMemoListResponse",
1739
+ '422': "ArcHTTPValidationError",
1740
+ }
1741
+ response_data = self.api_client.call_api(
1742
+ *_param,
1743
+ _request_timeout=_request_timeout
1744
+ )
1745
+ response_data.read()
1746
+ return self.api_client.response_deserialize(
1747
+ response_data=response_data,
1748
+ response_types_map=_response_types_map,
1749
+ ).data
1750
+
1751
+
1752
+ @validate_call
1753
+ def list_credit_memos_v1_get_with_http_info(
1754
+ self,
1755
+ account_id: Optional[StrictStr] = None,
1756
+ status: Optional[StrictStr] = None,
1757
+ page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
1758
+ page_size: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
1759
+ x_api_key: Optional[StrictStr] = None,
1760
+ x_tenant_id: Optional[StrictStr] = None,
1761
+ x_org_id: Optional[StrictStr] = None,
1762
+ authorization: Optional[StrictStr] = None,
1763
+ _request_timeout: Union[
1764
+ None,
1765
+ Annotated[StrictFloat, Field(gt=0)],
1766
+ Tuple[
1767
+ Annotated[StrictFloat, Field(gt=0)],
1768
+ Annotated[StrictFloat, Field(gt=0)]
1769
+ ]
1770
+ ] = None,
1771
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1772
+ _content_type: Optional[StrictStr] = None,
1773
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1774
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1775
+ ) -> ApiResponse[CreditMemoListResponse]:
1776
+ """List Credit Memos
1777
+
1778
+ List credit memos with pagination and optional filters.
1779
+
1780
+ :param account_id:
1781
+ :type account_id: str
1782
+ :param status:
1783
+ :type status: str
1784
+ :param page:
1785
+ :type page: int
1786
+ :param page_size:
1787
+ :type page_size: int
1788
+ :param x_api_key:
1789
+ :type x_api_key: str
1790
+ :param x_tenant_id:
1791
+ :type x_tenant_id: str
1792
+ :param x_org_id:
1793
+ :type x_org_id: str
1794
+ :param authorization:
1795
+ :type authorization: str
1796
+ :param _request_timeout: timeout setting for this request. If one
1797
+ number provided, it will be total request
1798
+ timeout. It can also be a pair (tuple) of
1799
+ (connection, read) timeouts.
1800
+ :type _request_timeout: int, tuple(int, int), optional
1801
+ :param _request_auth: set to override the auth_settings for an a single
1802
+ request; this effectively ignores the
1803
+ authentication in the spec for a single request.
1804
+ :type _request_auth: dict, optional
1805
+ :param _content_type: force content-type for the request.
1806
+ :type _content_type: str, Optional
1807
+ :param _headers: set to override the headers for a single
1808
+ request; this effectively ignores the headers
1809
+ in the spec for a single request.
1810
+ :type _headers: dict, optional
1811
+ :param _host_index: set to override the host_index for a single
1812
+ request; this effectively ignores the host_index
1813
+ in the spec for a single request.
1814
+ :type _host_index: int, optional
1815
+ :return: Returns the result object.
1816
+ """ # noqa: E501
1817
+
1818
+ _param = self._list_credit_memos_v1_get_serialize(
1819
+ account_id=account_id,
1820
+ status=status,
1821
+ page=page,
1822
+ page_size=page_size,
1823
+ x_api_key=x_api_key,
1824
+ x_tenant_id=x_tenant_id,
1825
+ x_org_id=x_org_id,
1826
+ authorization=authorization,
1827
+ _request_auth=_request_auth,
1828
+ _content_type=_content_type,
1829
+ _headers=_headers,
1830
+ _host_index=_host_index
1831
+ )
1832
+
1833
+ _response_types_map: Dict[str, Optional[str]] = {
1834
+ '200': "CreditMemoListResponse",
1835
+ '422': "ArcHTTPValidationError",
1836
+ }
1837
+ response_data = self.api_client.call_api(
1838
+ *_param,
1839
+ _request_timeout=_request_timeout
1840
+ )
1841
+ response_data.read()
1842
+ return self.api_client.response_deserialize(
1843
+ response_data=response_data,
1844
+ response_types_map=_response_types_map,
1845
+ )
1846
+
1847
+
1848
+ @validate_call
1849
+ def list_credit_memos_v1_get_without_preload_content(
1850
+ self,
1851
+ account_id: Optional[StrictStr] = None,
1852
+ status: Optional[StrictStr] = None,
1853
+ page: Optional[Annotated[int, Field(strict=True, ge=1)]] = None,
1854
+ page_size: Optional[Annotated[int, Field(le=200, strict=True, ge=1)]] = None,
1855
+ x_api_key: Optional[StrictStr] = None,
1856
+ x_tenant_id: Optional[StrictStr] = None,
1857
+ x_org_id: Optional[StrictStr] = None,
1858
+ authorization: Optional[StrictStr] = None,
1859
+ _request_timeout: Union[
1860
+ None,
1861
+ Annotated[StrictFloat, Field(gt=0)],
1862
+ Tuple[
1863
+ Annotated[StrictFloat, Field(gt=0)],
1864
+ Annotated[StrictFloat, Field(gt=0)]
1865
+ ]
1866
+ ] = None,
1867
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1868
+ _content_type: Optional[StrictStr] = None,
1869
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1870
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1871
+ ) -> RESTResponseType:
1872
+ """List Credit Memos
1873
+
1874
+ List credit memos with pagination and optional filters.
1875
+
1876
+ :param account_id:
1877
+ :type account_id: str
1878
+ :param status:
1879
+ :type status: str
1880
+ :param page:
1881
+ :type page: int
1882
+ :param page_size:
1883
+ :type page_size: int
1884
+ :param x_api_key:
1885
+ :type x_api_key: str
1886
+ :param x_tenant_id:
1887
+ :type x_tenant_id: str
1888
+ :param x_org_id:
1889
+ :type x_org_id: str
1890
+ :param authorization:
1891
+ :type authorization: str
1892
+ :param _request_timeout: timeout setting for this request. If one
1893
+ number provided, it will be total request
1894
+ timeout. It can also be a pair (tuple) of
1895
+ (connection, read) timeouts.
1896
+ :type _request_timeout: int, tuple(int, int), optional
1897
+ :param _request_auth: set to override the auth_settings for an a single
1898
+ request; this effectively ignores the
1899
+ authentication in the spec for a single request.
1900
+ :type _request_auth: dict, optional
1901
+ :param _content_type: force content-type for the request.
1902
+ :type _content_type: str, Optional
1903
+ :param _headers: set to override the headers for a single
1904
+ request; this effectively ignores the headers
1905
+ in the spec for a single request.
1906
+ :type _headers: dict, optional
1907
+ :param _host_index: set to override the host_index for a single
1908
+ request; this effectively ignores the host_index
1909
+ in the spec for a single request.
1910
+ :type _host_index: int, optional
1911
+ :return: Returns the result object.
1912
+ """ # noqa: E501
1913
+
1914
+ _param = self._list_credit_memos_v1_get_serialize(
1915
+ account_id=account_id,
1916
+ status=status,
1917
+ page=page,
1918
+ page_size=page_size,
1919
+ x_api_key=x_api_key,
1920
+ x_tenant_id=x_tenant_id,
1921
+ x_org_id=x_org_id,
1922
+ authorization=authorization,
1923
+ _request_auth=_request_auth,
1924
+ _content_type=_content_type,
1925
+ _headers=_headers,
1926
+ _host_index=_host_index
1927
+ )
1928
+
1929
+ _response_types_map: Dict[str, Optional[str]] = {
1930
+ '200': "CreditMemoListResponse",
1931
+ '422': "ArcHTTPValidationError",
1932
+ }
1933
+ response_data = self.api_client.call_api(
1934
+ *_param,
1935
+ _request_timeout=_request_timeout
1936
+ )
1937
+ return response_data.response
1938
+
1939
+
1940
+ def _list_credit_memos_v1_get_serialize(
1941
+ self,
1942
+ account_id,
1943
+ status,
1944
+ page,
1945
+ page_size,
1946
+ x_api_key,
1947
+ x_tenant_id,
1948
+ x_org_id,
1949
+ authorization,
1950
+ _request_auth,
1951
+ _content_type,
1952
+ _headers,
1953
+ _host_index,
1954
+ ) -> RequestSerialized:
1955
+
1956
+ _host = None
1957
+
1958
+ _collection_formats: Dict[str, str] = {
1959
+ }
1960
+
1961
+ _path_params: Dict[str, str] = {}
1962
+ _query_params: List[Tuple[str, str]] = []
1963
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1964
+ _form_params: List[Tuple[str, str]] = []
1965
+ _files: Dict[
1966
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1967
+ ] = {}
1968
+ _body_params: Optional[bytes] = None
1969
+
1970
+ # process the path parameters
1971
+ # process the query parameters
1972
+ if account_id is not None:
1973
+
1974
+ _query_params.append(('account_id', account_id))
1975
+
1976
+ if status is not None:
1977
+
1978
+ _query_params.append(('status', status))
1979
+
1980
+ if page is not None:
1981
+
1982
+ _query_params.append(('page', page))
1983
+
1984
+ if page_size is not None:
1985
+
1986
+ _query_params.append(('page_size', page_size))
1987
+
1988
+ # process the header parameters
1989
+ if x_api_key is not None:
1990
+ _header_params['X-API-Key'] = x_api_key
1991
+ if x_tenant_id is not None:
1992
+ _header_params['X-Tenant-Id'] = x_tenant_id
1993
+ if x_org_id is not None:
1994
+ _header_params['X-Org-Id'] = x_org_id
1995
+ if authorization is not None:
1996
+ _header_params['Authorization'] = authorization
1997
+ # process the form parameters
1998
+ # process the body parameter
1999
+
2000
+
2001
+ # set the HTTP header `Accept`
2002
+ if 'Accept' not in _header_params:
2003
+ _header_params['Accept'] = self.api_client.select_header_accept(
2004
+ [
2005
+ 'application/json'
2006
+ ]
2007
+ )
2008
+
2009
+
2010
+ # authentication setting
2011
+ _auth_settings: List[str] = [
2012
+ ]
2013
+
2014
+ return self.api_client.param_serialize(
2015
+ method='GET',
2016
+ resource_path='/v1/arc/credit-memos',
2017
+ path_params=_path_params,
2018
+ query_params=_query_params,
2019
+ header_params=_header_params,
2020
+ body=_body_params,
2021
+ post_params=_form_params,
2022
+ files=_files,
2023
+ auth_settings=_auth_settings,
2024
+ collection_formats=_collection_formats,
2025
+ _host=_host,
2026
+ _request_auth=_request_auth
2027
+ )
2028
+
2029
+
2030
+
2031
+
2032
+ @validate_call
2033
+ def read_credit_memo_settings_v1(
2034
+ self,
2035
+ _request_timeout: Union[
2036
+ None,
2037
+ Annotated[StrictFloat, Field(gt=0)],
2038
+ Tuple[
2039
+ Annotated[StrictFloat, Field(gt=0)],
2040
+ Annotated[StrictFloat, Field(gt=0)]
2041
+ ]
2042
+ ] = None,
2043
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2044
+ _content_type: Optional[StrictStr] = None,
2045
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2046
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2047
+ ) -> BillingTenantSettingsOut:
2048
+ """Read Credit Memo Settings
2049
+
2050
+
2051
+ :param _request_timeout: timeout setting for this request. If one
2052
+ number provided, it will be total request
2053
+ timeout. It can also be a pair (tuple) of
2054
+ (connection, read) timeouts.
2055
+ :type _request_timeout: int, tuple(int, int), optional
2056
+ :param _request_auth: set to override the auth_settings for an a single
2057
+ request; this effectively ignores the
2058
+ authentication in the spec for a single request.
2059
+ :type _request_auth: dict, optional
2060
+ :param _content_type: force content-type for the request.
2061
+ :type _content_type: str, Optional
2062
+ :param _headers: set to override the headers for a single
2063
+ request; this effectively ignores the headers
2064
+ in the spec for a single request.
2065
+ :type _headers: dict, optional
2066
+ :param _host_index: set to override the host_index for a single
2067
+ request; this effectively ignores the host_index
2068
+ in the spec for a single request.
2069
+ :type _host_index: int, optional
2070
+ :return: Returns the result object.
2071
+ """ # noqa: E501
2072
+
2073
+ _param = self._read_credit_memo_settings_v1_serialize(
2074
+ _request_auth=_request_auth,
2075
+ _content_type=_content_type,
2076
+ _headers=_headers,
2077
+ _host_index=_host_index
2078
+ )
2079
+
2080
+ _response_types_map: Dict[str, Optional[str]] = {
2081
+ '200': "BillingTenantSettingsOut",
2082
+ }
2083
+ response_data = self.api_client.call_api(
2084
+ *_param,
2085
+ _request_timeout=_request_timeout
2086
+ )
2087
+ response_data.read()
2088
+ return self.api_client.response_deserialize(
2089
+ response_data=response_data,
2090
+ response_types_map=_response_types_map,
2091
+ ).data
2092
+
2093
+
2094
+ @validate_call
2095
+ def read_credit_memo_settings_v1_with_http_info(
2096
+ self,
2097
+ _request_timeout: Union[
2098
+ None,
2099
+ Annotated[StrictFloat, Field(gt=0)],
2100
+ Tuple[
2101
+ Annotated[StrictFloat, Field(gt=0)],
2102
+ Annotated[StrictFloat, Field(gt=0)]
2103
+ ]
2104
+ ] = None,
2105
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2106
+ _content_type: Optional[StrictStr] = None,
2107
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2108
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2109
+ ) -> ApiResponse[BillingTenantSettingsOut]:
2110
+ """Read Credit Memo Settings
2111
+
2112
+
2113
+ :param _request_timeout: timeout setting for this request. If one
2114
+ number provided, it will be total request
2115
+ timeout. It can also be a pair (tuple) of
2116
+ (connection, read) timeouts.
2117
+ :type _request_timeout: int, tuple(int, int), optional
2118
+ :param _request_auth: set to override the auth_settings for an a single
2119
+ request; this effectively ignores the
2120
+ authentication in the spec for a single request.
2121
+ :type _request_auth: dict, optional
2122
+ :param _content_type: force content-type for the request.
2123
+ :type _content_type: str, Optional
2124
+ :param _headers: set to override the headers for a single
2125
+ request; this effectively ignores the headers
2126
+ in the spec for a single request.
2127
+ :type _headers: dict, optional
2128
+ :param _host_index: set to override the host_index for a single
2129
+ request; this effectively ignores the host_index
2130
+ in the spec for a single request.
2131
+ :type _host_index: int, optional
2132
+ :return: Returns the result object.
2133
+ """ # noqa: E501
2134
+
2135
+ _param = self._read_credit_memo_settings_v1_serialize(
2136
+ _request_auth=_request_auth,
2137
+ _content_type=_content_type,
2138
+ _headers=_headers,
2139
+ _host_index=_host_index
2140
+ )
2141
+
2142
+ _response_types_map: Dict[str, Optional[str]] = {
2143
+ '200': "BillingTenantSettingsOut",
2144
+ }
2145
+ response_data = self.api_client.call_api(
2146
+ *_param,
2147
+ _request_timeout=_request_timeout
2148
+ )
2149
+ response_data.read()
2150
+ return self.api_client.response_deserialize(
2151
+ response_data=response_data,
2152
+ response_types_map=_response_types_map,
2153
+ )
2154
+
2155
+
2156
+ @validate_call
2157
+ def read_credit_memo_settings_v1_without_preload_content(
2158
+ self,
2159
+ _request_timeout: Union[
2160
+ None,
2161
+ Annotated[StrictFloat, Field(gt=0)],
2162
+ Tuple[
2163
+ Annotated[StrictFloat, Field(gt=0)],
2164
+ Annotated[StrictFloat, Field(gt=0)]
2165
+ ]
2166
+ ] = None,
2167
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2168
+ _content_type: Optional[StrictStr] = None,
2169
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2170
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2171
+ ) -> RESTResponseType:
2172
+ """Read Credit Memo Settings
2173
+
2174
+
2175
+ :param _request_timeout: timeout setting for this request. If one
2176
+ number provided, it will be total request
2177
+ timeout. It can also be a pair (tuple) of
2178
+ (connection, read) timeouts.
2179
+ :type _request_timeout: int, tuple(int, int), optional
2180
+ :param _request_auth: set to override the auth_settings for an a single
2181
+ request; this effectively ignores the
2182
+ authentication in the spec for a single request.
2183
+ :type _request_auth: dict, optional
2184
+ :param _content_type: force content-type for the request.
2185
+ :type _content_type: str, Optional
2186
+ :param _headers: set to override the headers for a single
2187
+ request; this effectively ignores the headers
2188
+ in the spec for a single request.
2189
+ :type _headers: dict, optional
2190
+ :param _host_index: set to override the host_index for a single
2191
+ request; this effectively ignores the host_index
2192
+ in the spec for a single request.
2193
+ :type _host_index: int, optional
2194
+ :return: Returns the result object.
2195
+ """ # noqa: E501
2196
+
2197
+ _param = self._read_credit_memo_settings_v1_serialize(
2198
+ _request_auth=_request_auth,
2199
+ _content_type=_content_type,
2200
+ _headers=_headers,
2201
+ _host_index=_host_index
2202
+ )
2203
+
2204
+ _response_types_map: Dict[str, Optional[str]] = {
2205
+ '200': "BillingTenantSettingsOut",
2206
+ }
2207
+ response_data = self.api_client.call_api(
2208
+ *_param,
2209
+ _request_timeout=_request_timeout
2210
+ )
2211
+ return response_data.response
2212
+
2213
+
2214
+ def _read_credit_memo_settings_v1_serialize(
2215
+ self,
2216
+ _request_auth,
2217
+ _content_type,
2218
+ _headers,
2219
+ _host_index,
2220
+ ) -> RequestSerialized:
2221
+
2222
+ _host = None
2223
+
2224
+ _collection_formats: Dict[str, str] = {
2225
+ }
2226
+
2227
+ _path_params: Dict[str, str] = {}
2228
+ _query_params: List[Tuple[str, str]] = []
2229
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2230
+ _form_params: List[Tuple[str, str]] = []
2231
+ _files: Dict[
2232
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2233
+ ] = {}
2234
+ _body_params: Optional[bytes] = None
2235
+
2236
+ # process the path parameters
2237
+ # process the query parameters
2238
+ # process the header parameters
2239
+ # process the form parameters
2240
+ # process the body parameter
2241
+
2242
+
2243
+ # set the HTTP header `Accept`
2244
+ if 'Accept' not in _header_params:
2245
+ _header_params['Accept'] = self.api_client.select_header_accept(
2246
+ [
2247
+ 'application/json'
2248
+ ]
2249
+ )
2250
+
2251
+
2252
+ # authentication setting
2253
+ _auth_settings: List[str] = [
2254
+ ]
2255
+
2256
+ return self.api_client.param_serialize(
2257
+ method='GET',
2258
+ resource_path='/v1/rating/credit-memos/settings',
2259
+ path_params=_path_params,
2260
+ query_params=_query_params,
2261
+ header_params=_header_params,
2262
+ body=_body_params,
2263
+ post_params=_form_params,
2264
+ files=_files,
2265
+ auth_settings=_auth_settings,
2266
+ collection_formats=_collection_formats,
2267
+ _host=_host,
2268
+ _request_auth=_request_auth
2269
+ )
2270
+
2271
+
2272
+
2273
+
2274
+ @validate_call
2275
+ def read_tenant_credit_memo_v1(
2276
+ self,
2277
+ memo_id: StrictStr,
2278
+ _request_timeout: Union[
2279
+ None,
2280
+ Annotated[StrictFloat, Field(gt=0)],
2281
+ Tuple[
2282
+ Annotated[StrictFloat, Field(gt=0)],
2283
+ Annotated[StrictFloat, Field(gt=0)]
2284
+ ]
2285
+ ] = None,
2286
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2287
+ _content_type: Optional[StrictStr] = None,
2288
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2289
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2290
+ ) -> CreditMemoOut:
2291
+ """Read Tenant Credit Memo
2292
+
2293
+
2294
+ :param memo_id: (required)
2295
+ :type memo_id: str
2296
+ :param _request_timeout: timeout setting for this request. If one
2297
+ number provided, it will be total request
2298
+ timeout. It can also be a pair (tuple) of
2299
+ (connection, read) timeouts.
2300
+ :type _request_timeout: int, tuple(int, int), optional
2301
+ :param _request_auth: set to override the auth_settings for an a single
2302
+ request; this effectively ignores the
2303
+ authentication in the spec for a single request.
2304
+ :type _request_auth: dict, optional
2305
+ :param _content_type: force content-type for the request.
2306
+ :type _content_type: str, Optional
2307
+ :param _headers: set to override the headers for a single
2308
+ request; this effectively ignores the headers
2309
+ in the spec for a single request.
2310
+ :type _headers: dict, optional
2311
+ :param _host_index: set to override the host_index for a single
2312
+ request; this effectively ignores the host_index
2313
+ in the spec for a single request.
2314
+ :type _host_index: int, optional
2315
+ :return: Returns the result object.
2316
+ """ # noqa: E501
2317
+
2318
+ _param = self._read_tenant_credit_memo_v1_serialize(
2319
+ memo_id=memo_id,
2320
+ _request_auth=_request_auth,
2321
+ _content_type=_content_type,
2322
+ _headers=_headers,
2323
+ _host_index=_host_index
2324
+ )
2325
+
2326
+ _response_types_map: Dict[str, Optional[str]] = {
2327
+ '200': "CreditMemoOut",
2328
+ '422': "HTTPValidationError",
2329
+ }
2330
+ response_data = self.api_client.call_api(
2331
+ *_param,
2332
+ _request_timeout=_request_timeout
2333
+ )
2334
+ response_data.read()
2335
+ return self.api_client.response_deserialize(
2336
+ response_data=response_data,
2337
+ response_types_map=_response_types_map,
2338
+ ).data
2339
+
2340
+
2341
+ @validate_call
2342
+ def read_tenant_credit_memo_v1_with_http_info(
2343
+ self,
2344
+ memo_id: StrictStr,
2345
+ _request_timeout: Union[
2346
+ None,
2347
+ Annotated[StrictFloat, Field(gt=0)],
2348
+ Tuple[
2349
+ Annotated[StrictFloat, Field(gt=0)],
2350
+ Annotated[StrictFloat, Field(gt=0)]
2351
+ ]
2352
+ ] = None,
2353
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2354
+ _content_type: Optional[StrictStr] = None,
2355
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2356
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2357
+ ) -> ApiResponse[CreditMemoOut]:
2358
+ """Read Tenant Credit Memo
2359
+
2360
+
2361
+ :param memo_id: (required)
2362
+ :type memo_id: str
2363
+ :param _request_timeout: timeout setting for this request. If one
2364
+ number provided, it will be total request
2365
+ timeout. It can also be a pair (tuple) of
2366
+ (connection, read) timeouts.
2367
+ :type _request_timeout: int, tuple(int, int), optional
2368
+ :param _request_auth: set to override the auth_settings for an a single
2369
+ request; this effectively ignores the
2370
+ authentication in the spec for a single request.
2371
+ :type _request_auth: dict, optional
2372
+ :param _content_type: force content-type for the request.
2373
+ :type _content_type: str, Optional
2374
+ :param _headers: set to override the headers for a single
2375
+ request; this effectively ignores the headers
2376
+ in the spec for a single request.
2377
+ :type _headers: dict, optional
2378
+ :param _host_index: set to override the host_index for a single
2379
+ request; this effectively ignores the host_index
2380
+ in the spec for a single request.
2381
+ :type _host_index: int, optional
2382
+ :return: Returns the result object.
2383
+ """ # noqa: E501
2384
+
2385
+ _param = self._read_tenant_credit_memo_v1_serialize(
2386
+ memo_id=memo_id,
2387
+ _request_auth=_request_auth,
2388
+ _content_type=_content_type,
2389
+ _headers=_headers,
2390
+ _host_index=_host_index
2391
+ )
2392
+
2393
+ _response_types_map: Dict[str, Optional[str]] = {
2394
+ '200': "CreditMemoOut",
2395
+ '422': "HTTPValidationError",
2396
+ }
2397
+ response_data = self.api_client.call_api(
2398
+ *_param,
2399
+ _request_timeout=_request_timeout
2400
+ )
2401
+ response_data.read()
2402
+ return self.api_client.response_deserialize(
2403
+ response_data=response_data,
2404
+ response_types_map=_response_types_map,
2405
+ )
2406
+
2407
+
2408
+ @validate_call
2409
+ def read_tenant_credit_memo_v1_without_preload_content(
2410
+ self,
2411
+ memo_id: StrictStr,
2412
+ _request_timeout: Union[
2413
+ None,
2414
+ Annotated[StrictFloat, Field(gt=0)],
2415
+ Tuple[
2416
+ Annotated[StrictFloat, Field(gt=0)],
2417
+ Annotated[StrictFloat, Field(gt=0)]
2418
+ ]
2419
+ ] = None,
2420
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2421
+ _content_type: Optional[StrictStr] = None,
2422
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2423
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2424
+ ) -> RESTResponseType:
2425
+ """Read Tenant Credit Memo
2426
+
2427
+
2428
+ :param memo_id: (required)
2429
+ :type memo_id: str
2430
+ :param _request_timeout: timeout setting for this request. If one
2431
+ number provided, it will be total request
2432
+ timeout. It can also be a pair (tuple) of
2433
+ (connection, read) timeouts.
2434
+ :type _request_timeout: int, tuple(int, int), optional
2435
+ :param _request_auth: set to override the auth_settings for an a single
2436
+ request; this effectively ignores the
2437
+ authentication in the spec for a single request.
2438
+ :type _request_auth: dict, optional
2439
+ :param _content_type: force content-type for the request.
2440
+ :type _content_type: str, Optional
2441
+ :param _headers: set to override the headers for a single
2442
+ request; this effectively ignores the headers
2443
+ in the spec for a single request.
2444
+ :type _headers: dict, optional
2445
+ :param _host_index: set to override the host_index for a single
2446
+ request; this effectively ignores the host_index
2447
+ in the spec for a single request.
2448
+ :type _host_index: int, optional
2449
+ :return: Returns the result object.
2450
+ """ # noqa: E501
2451
+
2452
+ _param = self._read_tenant_credit_memo_v1_serialize(
2453
+ memo_id=memo_id,
2454
+ _request_auth=_request_auth,
2455
+ _content_type=_content_type,
2456
+ _headers=_headers,
2457
+ _host_index=_host_index
2458
+ )
2459
+
2460
+ _response_types_map: Dict[str, Optional[str]] = {
2461
+ '200': "CreditMemoOut",
2462
+ '422': "HTTPValidationError",
2463
+ }
2464
+ response_data = self.api_client.call_api(
2465
+ *_param,
2466
+ _request_timeout=_request_timeout
2467
+ )
2468
+ return response_data.response
2469
+
2470
+
2471
+ def _read_tenant_credit_memo_v1_serialize(
2472
+ self,
2473
+ memo_id,
2474
+ _request_auth,
2475
+ _content_type,
2476
+ _headers,
2477
+ _host_index,
2478
+ ) -> RequestSerialized:
2479
+
2480
+ _host = None
2481
+
2482
+ _collection_formats: Dict[str, str] = {
2483
+ }
2484
+
2485
+ _path_params: Dict[str, str] = {}
2486
+ _query_params: List[Tuple[str, str]] = []
2487
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2488
+ _form_params: List[Tuple[str, str]] = []
2489
+ _files: Dict[
2490
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2491
+ ] = {}
2492
+ _body_params: Optional[bytes] = None
2493
+
2494
+ # process the path parameters
2495
+ if memo_id is not None:
2496
+ _path_params['memo_id'] = memo_id
2497
+ # process the query parameters
2498
+ # process the header parameters
2499
+ # process the form parameters
2500
+ # process the body parameter
2501
+
2502
+
2503
+ # set the HTTP header `Accept`
2504
+ if 'Accept' not in _header_params:
2505
+ _header_params['Accept'] = self.api_client.select_header_accept(
2506
+ [
2507
+ 'application/json'
2508
+ ]
2509
+ )
2510
+
2511
+
2512
+ # authentication setting
2513
+ _auth_settings: List[str] = [
2514
+ ]
2515
+
2516
+ return self.api_client.param_serialize(
2517
+ method='GET',
2518
+ resource_path='/v1/rating/credit-memos/{memo_id}',
2519
+ path_params=_path_params,
2520
+ query_params=_query_params,
2521
+ header_params=_header_params,
2522
+ body=_body_params,
2523
+ post_params=_form_params,
2524
+ files=_files,
2525
+ auth_settings=_auth_settings,
2526
+ collection_formats=_collection_formats,
2527
+ _host=_host,
2528
+ _request_auth=_request_auth
2529
+ )
2530
+
2531
+
2532
+
2533
+
2534
+ @validate_call
2535
+ def update_credit_memo_settings_v1(
2536
+ self,
2537
+ billing_tenant_settings_update: BillingTenantSettingsUpdate,
2538
+ _request_timeout: Union[
2539
+ None,
2540
+ Annotated[StrictFloat, Field(gt=0)],
2541
+ Tuple[
2542
+ Annotated[StrictFloat, Field(gt=0)],
2543
+ Annotated[StrictFloat, Field(gt=0)]
2544
+ ]
2545
+ ] = None,
2546
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2547
+ _content_type: Optional[StrictStr] = None,
2548
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2549
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2550
+ ) -> BillingTenantSettingsOut:
2551
+ """Update Credit Memo Settings
2552
+
2553
+
2554
+ :param billing_tenant_settings_update: (required)
2555
+ :type billing_tenant_settings_update: BillingTenantSettingsUpdate
2556
+ :param _request_timeout: timeout setting for this request. If one
2557
+ number provided, it will be total request
2558
+ timeout. It can also be a pair (tuple) of
2559
+ (connection, read) timeouts.
2560
+ :type _request_timeout: int, tuple(int, int), optional
2561
+ :param _request_auth: set to override the auth_settings for an a single
2562
+ request; this effectively ignores the
2563
+ authentication in the spec for a single request.
2564
+ :type _request_auth: dict, optional
2565
+ :param _content_type: force content-type for the request.
2566
+ :type _content_type: str, Optional
2567
+ :param _headers: set to override the headers for a single
2568
+ request; this effectively ignores the headers
2569
+ in the spec for a single request.
2570
+ :type _headers: dict, optional
2571
+ :param _host_index: set to override the host_index for a single
2572
+ request; this effectively ignores the host_index
2573
+ in the spec for a single request.
2574
+ :type _host_index: int, optional
2575
+ :return: Returns the result object.
2576
+ """ # noqa: E501
2577
+
2578
+ _param = self._update_credit_memo_settings_v1_serialize(
2579
+ billing_tenant_settings_update=billing_tenant_settings_update,
2580
+ _request_auth=_request_auth,
2581
+ _content_type=_content_type,
2582
+ _headers=_headers,
2583
+ _host_index=_host_index
2584
+ )
2585
+
2586
+ _response_types_map: Dict[str, Optional[str]] = {
2587
+ '200': "BillingTenantSettingsOut",
2588
+ '422': "HTTPValidationError",
2589
+ }
2590
+ response_data = self.api_client.call_api(
2591
+ *_param,
2592
+ _request_timeout=_request_timeout
2593
+ )
2594
+ response_data.read()
2595
+ return self.api_client.response_deserialize(
2596
+ response_data=response_data,
2597
+ response_types_map=_response_types_map,
2598
+ ).data
2599
+
2600
+
2601
+ @validate_call
2602
+ def update_credit_memo_settings_v1_with_http_info(
2603
+ self,
2604
+ billing_tenant_settings_update: BillingTenantSettingsUpdate,
2605
+ _request_timeout: Union[
2606
+ None,
2607
+ Annotated[StrictFloat, Field(gt=0)],
2608
+ Tuple[
2609
+ Annotated[StrictFloat, Field(gt=0)],
2610
+ Annotated[StrictFloat, Field(gt=0)]
2611
+ ]
2612
+ ] = None,
2613
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2614
+ _content_type: Optional[StrictStr] = None,
2615
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2616
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2617
+ ) -> ApiResponse[BillingTenantSettingsOut]:
2618
+ """Update Credit Memo Settings
2619
+
2620
+
2621
+ :param billing_tenant_settings_update: (required)
2622
+ :type billing_tenant_settings_update: BillingTenantSettingsUpdate
2623
+ :param _request_timeout: timeout setting for this request. If one
2624
+ number provided, it will be total request
2625
+ timeout. It can also be a pair (tuple) of
2626
+ (connection, read) timeouts.
2627
+ :type _request_timeout: int, tuple(int, int), optional
2628
+ :param _request_auth: set to override the auth_settings for an a single
2629
+ request; this effectively ignores the
2630
+ authentication in the spec for a single request.
2631
+ :type _request_auth: dict, optional
2632
+ :param _content_type: force content-type for the request.
2633
+ :type _content_type: str, Optional
2634
+ :param _headers: set to override the headers for a single
2635
+ request; this effectively ignores the headers
2636
+ in the spec for a single request.
2637
+ :type _headers: dict, optional
2638
+ :param _host_index: set to override the host_index for a single
2639
+ request; this effectively ignores the host_index
2640
+ in the spec for a single request.
2641
+ :type _host_index: int, optional
2642
+ :return: Returns the result object.
2643
+ """ # noqa: E501
2644
+
2645
+ _param = self._update_credit_memo_settings_v1_serialize(
2646
+ billing_tenant_settings_update=billing_tenant_settings_update,
2647
+ _request_auth=_request_auth,
2648
+ _content_type=_content_type,
2649
+ _headers=_headers,
2650
+ _host_index=_host_index
2651
+ )
2652
+
2653
+ _response_types_map: Dict[str, Optional[str]] = {
2654
+ '200': "BillingTenantSettingsOut",
2655
+ '422': "HTTPValidationError",
2656
+ }
2657
+ response_data = self.api_client.call_api(
2658
+ *_param,
2659
+ _request_timeout=_request_timeout
2660
+ )
2661
+ response_data.read()
2662
+ return self.api_client.response_deserialize(
2663
+ response_data=response_data,
2664
+ response_types_map=_response_types_map,
2665
+ )
2666
+
2667
+
2668
+ @validate_call
2669
+ def update_credit_memo_settings_v1_without_preload_content(
2670
+ self,
2671
+ billing_tenant_settings_update: BillingTenantSettingsUpdate,
2672
+ _request_timeout: Union[
2673
+ None,
2674
+ Annotated[StrictFloat, Field(gt=0)],
2675
+ Tuple[
2676
+ Annotated[StrictFloat, Field(gt=0)],
2677
+ Annotated[StrictFloat, Field(gt=0)]
2678
+ ]
2679
+ ] = None,
2680
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2681
+ _content_type: Optional[StrictStr] = None,
2682
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2683
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2684
+ ) -> RESTResponseType:
2685
+ """Update Credit Memo Settings
2686
+
2687
+
2688
+ :param billing_tenant_settings_update: (required)
2689
+ :type billing_tenant_settings_update: BillingTenantSettingsUpdate
2690
+ :param _request_timeout: timeout setting for this request. If one
2691
+ number provided, it will be total request
2692
+ timeout. It can also be a pair (tuple) of
2693
+ (connection, read) timeouts.
2694
+ :type _request_timeout: int, tuple(int, int), optional
2695
+ :param _request_auth: set to override the auth_settings for an a single
2696
+ request; this effectively ignores the
2697
+ authentication in the spec for a single request.
2698
+ :type _request_auth: dict, optional
2699
+ :param _content_type: force content-type for the request.
2700
+ :type _content_type: str, Optional
2701
+ :param _headers: set to override the headers for a single
2702
+ request; this effectively ignores the headers
2703
+ in the spec for a single request.
2704
+ :type _headers: dict, optional
2705
+ :param _host_index: set to override the host_index for a single
2706
+ request; this effectively ignores the host_index
2707
+ in the spec for a single request.
2708
+ :type _host_index: int, optional
2709
+ :return: Returns the result object.
2710
+ """ # noqa: E501
2711
+
2712
+ _param = self._update_credit_memo_settings_v1_serialize(
2713
+ billing_tenant_settings_update=billing_tenant_settings_update,
2714
+ _request_auth=_request_auth,
2715
+ _content_type=_content_type,
2716
+ _headers=_headers,
2717
+ _host_index=_host_index
2718
+ )
2719
+
2720
+ _response_types_map: Dict[str, Optional[str]] = {
2721
+ '200': "BillingTenantSettingsOut",
2722
+ '422': "HTTPValidationError",
2723
+ }
2724
+ response_data = self.api_client.call_api(
2725
+ *_param,
2726
+ _request_timeout=_request_timeout
2727
+ )
2728
+ return response_data.response
2729
+
2730
+
2731
+ def _update_credit_memo_settings_v1_serialize(
2732
+ self,
2733
+ billing_tenant_settings_update,
2734
+ _request_auth,
2735
+ _content_type,
2736
+ _headers,
2737
+ _host_index,
2738
+ ) -> RequestSerialized:
2739
+
2740
+ _host = None
2741
+
2742
+ _collection_formats: Dict[str, str] = {
2743
+ }
2744
+
2745
+ _path_params: Dict[str, str] = {}
2746
+ _query_params: List[Tuple[str, str]] = []
2747
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2748
+ _form_params: List[Tuple[str, str]] = []
2749
+ _files: Dict[
2750
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2751
+ ] = {}
2752
+ _body_params: Optional[bytes] = None
2753
+
2754
+ # process the path parameters
2755
+ # process the query parameters
2756
+ # process the header parameters
2757
+ # process the form parameters
2758
+ # process the body parameter
2759
+ if billing_tenant_settings_update is not None:
2760
+ _body_params = billing_tenant_settings_update
2761
+
2762
+
2763
+ # set the HTTP header `Accept`
2764
+ if 'Accept' not in _header_params:
2765
+ _header_params['Accept'] = self.api_client.select_header_accept(
2766
+ [
2767
+ 'application/json'
2768
+ ]
2769
+ )
2770
+
2771
+ # set the HTTP header `Content-Type`
2772
+ if _content_type:
2773
+ _header_params['Content-Type'] = _content_type
2774
+ else:
2775
+ _default_content_type = (
2776
+ self.api_client.select_header_content_type(
2777
+ [
2778
+ 'application/json'
2779
+ ]
2780
+ )
2781
+ )
2782
+ if _default_content_type is not None:
2783
+ _header_params['Content-Type'] = _default_content_type
2784
+
2785
+ # authentication setting
2786
+ _auth_settings: List[str] = [
2787
+ ]
2788
+
2789
+ return self.api_client.param_serialize(
2790
+ method='PUT',
2791
+ resource_path='/v1/rating/credit-memos/settings',
2792
+ path_params=_path_params,
2793
+ query_params=_query_params,
2794
+ header_params=_header_params,
2795
+ body=_body_params,
2796
+ post_params=_form_params,
2797
+ files=_files,
2798
+ auth_settings=_auth_settings,
2799
+ collection_formats=_collection_formats,
2800
+ _host=_host,
2801
+ _request_auth=_request_auth
2802
+ )
2803
+
2804
+
2805
+
2806
+
2807
+ @validate_call
2808
+ def update_credit_memo_v1(
2809
+ self,
2810
+ memo_id: StrictStr,
2811
+ credit_memo_update: CreditMemoUpdate,
2812
+ x_api_key: Optional[StrictStr] = None,
2813
+ x_tenant_id: Optional[StrictStr] = None,
2814
+ x_org_id: Optional[StrictStr] = None,
2815
+ authorization: Optional[StrictStr] = None,
2816
+ _request_timeout: Union[
2817
+ None,
2818
+ Annotated[StrictFloat, Field(gt=0)],
2819
+ Tuple[
2820
+ Annotated[StrictFloat, Field(gt=0)],
2821
+ Annotated[StrictFloat, Field(gt=0)]
2822
+ ]
2823
+ ] = None,
2824
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2825
+ _content_type: Optional[StrictStr] = None,
2826
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2827
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2828
+ ) -> CreditMemoResponse:
2829
+ """Update Credit Memo
2830
+
2831
+ Update a credit memo (draft only).
2832
+
2833
+ :param memo_id: (required)
2834
+ :type memo_id: str
2835
+ :param credit_memo_update: (required)
2836
+ :type credit_memo_update: CreditMemoUpdate
2837
+ :param x_api_key:
2838
+ :type x_api_key: str
2839
+ :param x_tenant_id:
2840
+ :type x_tenant_id: str
2841
+ :param x_org_id:
2842
+ :type x_org_id: str
2843
+ :param authorization:
2844
+ :type authorization: str
2845
+ :param _request_timeout: timeout setting for this request. If one
2846
+ number provided, it will be total request
2847
+ timeout. It can also be a pair (tuple) of
2848
+ (connection, read) timeouts.
2849
+ :type _request_timeout: int, tuple(int, int), optional
2850
+ :param _request_auth: set to override the auth_settings for an a single
2851
+ request; this effectively ignores the
2852
+ authentication in the spec for a single request.
2853
+ :type _request_auth: dict, optional
2854
+ :param _content_type: force content-type for the request.
2855
+ :type _content_type: str, Optional
2856
+ :param _headers: set to override the headers for a single
2857
+ request; this effectively ignores the headers
2858
+ in the spec for a single request.
2859
+ :type _headers: dict, optional
2860
+ :param _host_index: set to override the host_index for a single
2861
+ request; this effectively ignores the host_index
2862
+ in the spec for a single request.
2863
+ :type _host_index: int, optional
2864
+ :return: Returns the result object.
2865
+ """ # noqa: E501
2866
+
2867
+ _param = self._update_credit_memo_v1_serialize(
2868
+ memo_id=memo_id,
2869
+ credit_memo_update=credit_memo_update,
2870
+ x_api_key=x_api_key,
2871
+ x_tenant_id=x_tenant_id,
2872
+ x_org_id=x_org_id,
2873
+ authorization=authorization,
2874
+ _request_auth=_request_auth,
2875
+ _content_type=_content_type,
2876
+ _headers=_headers,
2877
+ _host_index=_host_index
2878
+ )
2879
+
2880
+ _response_types_map: Dict[str, Optional[str]] = {
2881
+ '200': "CreditMemoResponse",
2882
+ '422': "ArcHTTPValidationError",
2883
+ }
2884
+ response_data = self.api_client.call_api(
2885
+ *_param,
2886
+ _request_timeout=_request_timeout
2887
+ )
2888
+ response_data.read()
2889
+ return self.api_client.response_deserialize(
2890
+ response_data=response_data,
2891
+ response_types_map=_response_types_map,
2892
+ ).data
2893
+
2894
+
2895
+ @validate_call
2896
+ def update_credit_memo_v1_with_http_info(
2897
+ self,
2898
+ memo_id: StrictStr,
2899
+ credit_memo_update: CreditMemoUpdate,
2900
+ x_api_key: Optional[StrictStr] = None,
2901
+ x_tenant_id: Optional[StrictStr] = None,
2902
+ x_org_id: Optional[StrictStr] = None,
2903
+ authorization: Optional[StrictStr] = None,
2904
+ _request_timeout: Union[
2905
+ None,
2906
+ Annotated[StrictFloat, Field(gt=0)],
2907
+ Tuple[
2908
+ Annotated[StrictFloat, Field(gt=0)],
2909
+ Annotated[StrictFloat, Field(gt=0)]
2910
+ ]
2911
+ ] = None,
2912
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2913
+ _content_type: Optional[StrictStr] = None,
2914
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2915
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2916
+ ) -> ApiResponse[CreditMemoResponse]:
2917
+ """Update Credit Memo
2918
+
2919
+ Update a credit memo (draft only).
2920
+
2921
+ :param memo_id: (required)
2922
+ :type memo_id: str
2923
+ :param credit_memo_update: (required)
2924
+ :type credit_memo_update: CreditMemoUpdate
2925
+ :param x_api_key:
2926
+ :type x_api_key: str
2927
+ :param x_tenant_id:
2928
+ :type x_tenant_id: str
2929
+ :param x_org_id:
2930
+ :type x_org_id: str
2931
+ :param authorization:
2932
+ :type authorization: str
2933
+ :param _request_timeout: timeout setting for this request. If one
2934
+ number provided, it will be total request
2935
+ timeout. It can also be a pair (tuple) of
2936
+ (connection, read) timeouts.
2937
+ :type _request_timeout: int, tuple(int, int), optional
2938
+ :param _request_auth: set to override the auth_settings for an a single
2939
+ request; this effectively ignores the
2940
+ authentication in the spec for a single request.
2941
+ :type _request_auth: dict, optional
2942
+ :param _content_type: force content-type for the request.
2943
+ :type _content_type: str, Optional
2944
+ :param _headers: set to override the headers for a single
2945
+ request; this effectively ignores the headers
2946
+ in the spec for a single request.
2947
+ :type _headers: dict, optional
2948
+ :param _host_index: set to override the host_index for a single
2949
+ request; this effectively ignores the host_index
2950
+ in the spec for a single request.
2951
+ :type _host_index: int, optional
2952
+ :return: Returns the result object.
2953
+ """ # noqa: E501
2954
+
2955
+ _param = self._update_credit_memo_v1_serialize(
2956
+ memo_id=memo_id,
2957
+ credit_memo_update=credit_memo_update,
2958
+ x_api_key=x_api_key,
2959
+ x_tenant_id=x_tenant_id,
2960
+ x_org_id=x_org_id,
2961
+ authorization=authorization,
2962
+ _request_auth=_request_auth,
2963
+ _content_type=_content_type,
2964
+ _headers=_headers,
2965
+ _host_index=_host_index
2966
+ )
2967
+
2968
+ _response_types_map: Dict[str, Optional[str]] = {
2969
+ '200': "CreditMemoResponse",
2970
+ '422': "ArcHTTPValidationError",
2971
+ }
2972
+ response_data = self.api_client.call_api(
2973
+ *_param,
2974
+ _request_timeout=_request_timeout
2975
+ )
2976
+ response_data.read()
2977
+ return self.api_client.response_deserialize(
2978
+ response_data=response_data,
2979
+ response_types_map=_response_types_map,
2980
+ )
2981
+
2982
+
2983
+ @validate_call
2984
+ def update_credit_memo_v1_without_preload_content(
2985
+ self,
2986
+ memo_id: StrictStr,
2987
+ credit_memo_update: CreditMemoUpdate,
2988
+ x_api_key: Optional[StrictStr] = None,
2989
+ x_tenant_id: Optional[StrictStr] = None,
2990
+ x_org_id: Optional[StrictStr] = None,
2991
+ authorization: Optional[StrictStr] = None,
2992
+ _request_timeout: Union[
2993
+ None,
2994
+ Annotated[StrictFloat, Field(gt=0)],
2995
+ Tuple[
2996
+ Annotated[StrictFloat, Field(gt=0)],
2997
+ Annotated[StrictFloat, Field(gt=0)]
2998
+ ]
2999
+ ] = None,
3000
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3001
+ _content_type: Optional[StrictStr] = None,
3002
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3003
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3004
+ ) -> RESTResponseType:
3005
+ """Update Credit Memo
3006
+
3007
+ Update a credit memo (draft only).
3008
+
3009
+ :param memo_id: (required)
3010
+ :type memo_id: str
3011
+ :param credit_memo_update: (required)
3012
+ :type credit_memo_update: CreditMemoUpdate
3013
+ :param x_api_key:
3014
+ :type x_api_key: str
3015
+ :param x_tenant_id:
3016
+ :type x_tenant_id: str
3017
+ :param x_org_id:
3018
+ :type x_org_id: str
3019
+ :param authorization:
3020
+ :type authorization: str
3021
+ :param _request_timeout: timeout setting for this request. If one
3022
+ number provided, it will be total request
3023
+ timeout. It can also be a pair (tuple) of
3024
+ (connection, read) timeouts.
3025
+ :type _request_timeout: int, tuple(int, int), optional
3026
+ :param _request_auth: set to override the auth_settings for an a single
3027
+ request; this effectively ignores the
3028
+ authentication in the spec for a single request.
3029
+ :type _request_auth: dict, optional
3030
+ :param _content_type: force content-type for the request.
3031
+ :type _content_type: str, Optional
3032
+ :param _headers: set to override the headers for a single
3033
+ request; this effectively ignores the headers
3034
+ in the spec for a single request.
3035
+ :type _headers: dict, optional
3036
+ :param _host_index: set to override the host_index for a single
3037
+ request; this effectively ignores the host_index
3038
+ in the spec for a single request.
3039
+ :type _host_index: int, optional
3040
+ :return: Returns the result object.
3041
+ """ # noqa: E501
3042
+
3043
+ _param = self._update_credit_memo_v1_serialize(
3044
+ memo_id=memo_id,
3045
+ credit_memo_update=credit_memo_update,
3046
+ x_api_key=x_api_key,
3047
+ x_tenant_id=x_tenant_id,
3048
+ x_org_id=x_org_id,
3049
+ authorization=authorization,
3050
+ _request_auth=_request_auth,
3051
+ _content_type=_content_type,
3052
+ _headers=_headers,
3053
+ _host_index=_host_index
3054
+ )
3055
+
3056
+ _response_types_map: Dict[str, Optional[str]] = {
3057
+ '200': "CreditMemoResponse",
3058
+ '422': "ArcHTTPValidationError",
3059
+ }
3060
+ response_data = self.api_client.call_api(
3061
+ *_param,
3062
+ _request_timeout=_request_timeout
3063
+ )
3064
+ return response_data.response
3065
+
3066
+
3067
+ def _update_credit_memo_v1_serialize(
3068
+ self,
3069
+ memo_id,
3070
+ credit_memo_update,
3071
+ x_api_key,
3072
+ x_tenant_id,
3073
+ x_org_id,
3074
+ authorization,
3075
+ _request_auth,
3076
+ _content_type,
3077
+ _headers,
3078
+ _host_index,
3079
+ ) -> RequestSerialized:
3080
+
3081
+ _host = None
3082
+
3083
+ _collection_formats: Dict[str, str] = {
3084
+ }
3085
+
3086
+ _path_params: Dict[str, str] = {}
3087
+ _query_params: List[Tuple[str, str]] = []
3088
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3089
+ _form_params: List[Tuple[str, str]] = []
3090
+ _files: Dict[
3091
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3092
+ ] = {}
3093
+ _body_params: Optional[bytes] = None
3094
+
3095
+ # process the path parameters
3096
+ if memo_id is not None:
3097
+ _path_params['memo_id'] = memo_id
3098
+ # process the query parameters
3099
+ # process the header parameters
3100
+ if x_api_key is not None:
3101
+ _header_params['X-API-Key'] = x_api_key
3102
+ if x_tenant_id is not None:
3103
+ _header_params['X-Tenant-Id'] = x_tenant_id
3104
+ if x_org_id is not None:
3105
+ _header_params['X-Org-Id'] = x_org_id
3106
+ if authorization is not None:
3107
+ _header_params['Authorization'] = authorization
3108
+ # process the form parameters
3109
+ # process the body parameter
3110
+ if credit_memo_update is not None:
3111
+ _body_params = credit_memo_update
3112
+
3113
+
3114
+ # set the HTTP header `Accept`
3115
+ if 'Accept' not in _header_params:
3116
+ _header_params['Accept'] = self.api_client.select_header_accept(
3117
+ [
3118
+ 'application/json'
3119
+ ]
3120
+ )
3121
+
3122
+ # set the HTTP header `Content-Type`
3123
+ if _content_type:
3124
+ _header_params['Content-Type'] = _content_type
3125
+ else:
3126
+ _default_content_type = (
3127
+ self.api_client.select_header_content_type(
3128
+ [
3129
+ 'application/json'
3130
+ ]
3131
+ )
3132
+ )
3133
+ if _default_content_type is not None:
3134
+ _header_params['Content-Type'] = _default_content_type
3135
+
3136
+ # authentication setting
3137
+ _auth_settings: List[str] = [
3138
+ ]
3139
+
3140
+ return self.api_client.param_serialize(
3141
+ method='PATCH',
3142
+ resource_path='/v1/arc/credit-memos/{memo_id}',
3143
+ path_params=_path_params,
3144
+ query_params=_query_params,
3145
+ header_params=_header_params,
3146
+ body=_body_params,
3147
+ post_params=_form_params,
3148
+ files=_files,
3149
+ auth_settings=_auth_settings,
3150
+ collection_formats=_collection_formats,
3151
+ _host=_host,
3152
+ _request_auth=_request_auth
3153
+ )
3154
+
3155
+
3156
+
3157
+
3158
+ @validate_call
3159
+ def void_credit_memo_v1(
3160
+ self,
3161
+ memo_id: StrictStr,
3162
+ x_api_key: Optional[StrictStr] = None,
3163
+ x_tenant_id: Optional[StrictStr] = None,
3164
+ x_org_id: Optional[StrictStr] = None,
3165
+ authorization: Optional[StrictStr] = None,
3166
+ _request_timeout: Union[
3167
+ None,
3168
+ Annotated[StrictFloat, Field(gt=0)],
3169
+ Tuple[
3170
+ Annotated[StrictFloat, Field(gt=0)],
3171
+ Annotated[StrictFloat, Field(gt=0)]
3172
+ ]
3173
+ ] = None,
3174
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3175
+ _content_type: Optional[StrictStr] = None,
3176
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3177
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3178
+ ) -> CreditMemoResponse:
3179
+ """Void Credit Memo
3180
+
3181
+ Void a credit memo.
3182
+
3183
+ :param memo_id: (required)
3184
+ :type memo_id: str
3185
+ :param x_api_key:
3186
+ :type x_api_key: str
3187
+ :param x_tenant_id:
3188
+ :type x_tenant_id: str
3189
+ :param x_org_id:
3190
+ :type x_org_id: str
3191
+ :param authorization:
3192
+ :type authorization: str
3193
+ :param _request_timeout: timeout setting for this request. If one
3194
+ number provided, it will be total request
3195
+ timeout. It can also be a pair (tuple) of
3196
+ (connection, read) timeouts.
3197
+ :type _request_timeout: int, tuple(int, int), optional
3198
+ :param _request_auth: set to override the auth_settings for an a single
3199
+ request; this effectively ignores the
3200
+ authentication in the spec for a single request.
3201
+ :type _request_auth: dict, optional
3202
+ :param _content_type: force content-type for the request.
3203
+ :type _content_type: str, Optional
3204
+ :param _headers: set to override the headers for a single
3205
+ request; this effectively ignores the headers
3206
+ in the spec for a single request.
3207
+ :type _headers: dict, optional
3208
+ :param _host_index: set to override the host_index for a single
3209
+ request; this effectively ignores the host_index
3210
+ in the spec for a single request.
3211
+ :type _host_index: int, optional
3212
+ :return: Returns the result object.
3213
+ """ # noqa: E501
3214
+
3215
+ _param = self._void_credit_memo_v1_serialize(
3216
+ memo_id=memo_id,
3217
+ x_api_key=x_api_key,
3218
+ x_tenant_id=x_tenant_id,
3219
+ x_org_id=x_org_id,
3220
+ authorization=authorization,
3221
+ _request_auth=_request_auth,
3222
+ _content_type=_content_type,
3223
+ _headers=_headers,
3224
+ _host_index=_host_index
3225
+ )
3226
+
3227
+ _response_types_map: Dict[str, Optional[str]] = {
3228
+ '200': "CreditMemoResponse",
3229
+ '422': "ArcHTTPValidationError",
3230
+ }
3231
+ response_data = self.api_client.call_api(
3232
+ *_param,
3233
+ _request_timeout=_request_timeout
3234
+ )
3235
+ response_data.read()
3236
+ return self.api_client.response_deserialize(
3237
+ response_data=response_data,
3238
+ response_types_map=_response_types_map,
3239
+ ).data
3240
+
3241
+
3242
+ @validate_call
3243
+ def void_credit_memo_v1_with_http_info(
3244
+ self,
3245
+ memo_id: StrictStr,
3246
+ x_api_key: Optional[StrictStr] = None,
3247
+ x_tenant_id: Optional[StrictStr] = None,
3248
+ x_org_id: Optional[StrictStr] = None,
3249
+ authorization: Optional[StrictStr] = None,
3250
+ _request_timeout: Union[
3251
+ None,
3252
+ Annotated[StrictFloat, Field(gt=0)],
3253
+ Tuple[
3254
+ Annotated[StrictFloat, Field(gt=0)],
3255
+ Annotated[StrictFloat, Field(gt=0)]
3256
+ ]
3257
+ ] = None,
3258
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3259
+ _content_type: Optional[StrictStr] = None,
3260
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3261
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3262
+ ) -> ApiResponse[CreditMemoResponse]:
3263
+ """Void Credit Memo
3264
+
3265
+ Void a credit memo.
3266
+
3267
+ :param memo_id: (required)
3268
+ :type memo_id: str
3269
+ :param x_api_key:
3270
+ :type x_api_key: str
3271
+ :param x_tenant_id:
3272
+ :type x_tenant_id: str
3273
+ :param x_org_id:
3274
+ :type x_org_id: str
3275
+ :param authorization:
3276
+ :type authorization: str
3277
+ :param _request_timeout: timeout setting for this request. If one
3278
+ number provided, it will be total request
3279
+ timeout. It can also be a pair (tuple) of
3280
+ (connection, read) timeouts.
3281
+ :type _request_timeout: int, tuple(int, int), optional
3282
+ :param _request_auth: set to override the auth_settings for an a single
3283
+ request; this effectively ignores the
3284
+ authentication in the spec for a single request.
3285
+ :type _request_auth: dict, optional
3286
+ :param _content_type: force content-type for the request.
3287
+ :type _content_type: str, Optional
3288
+ :param _headers: set to override the headers for a single
3289
+ request; this effectively ignores the headers
3290
+ in the spec for a single request.
3291
+ :type _headers: dict, optional
3292
+ :param _host_index: set to override the host_index for a single
3293
+ request; this effectively ignores the host_index
3294
+ in the spec for a single request.
3295
+ :type _host_index: int, optional
3296
+ :return: Returns the result object.
3297
+ """ # noqa: E501
3298
+
3299
+ _param = self._void_credit_memo_v1_serialize(
3300
+ memo_id=memo_id,
3301
+ x_api_key=x_api_key,
3302
+ x_tenant_id=x_tenant_id,
3303
+ x_org_id=x_org_id,
3304
+ authorization=authorization,
3305
+ _request_auth=_request_auth,
3306
+ _content_type=_content_type,
3307
+ _headers=_headers,
3308
+ _host_index=_host_index
3309
+ )
3310
+
3311
+ _response_types_map: Dict[str, Optional[str]] = {
3312
+ '200': "CreditMemoResponse",
3313
+ '422': "ArcHTTPValidationError",
3314
+ }
3315
+ response_data = self.api_client.call_api(
3316
+ *_param,
3317
+ _request_timeout=_request_timeout
3318
+ )
3319
+ response_data.read()
3320
+ return self.api_client.response_deserialize(
3321
+ response_data=response_data,
3322
+ response_types_map=_response_types_map,
3323
+ )
3324
+
3325
+
3326
+ @validate_call
3327
+ def void_credit_memo_v1_without_preload_content(
3328
+ self,
3329
+ memo_id: StrictStr,
3330
+ x_api_key: Optional[StrictStr] = None,
3331
+ x_tenant_id: Optional[StrictStr] = None,
3332
+ x_org_id: Optional[StrictStr] = None,
3333
+ authorization: Optional[StrictStr] = None,
3334
+ _request_timeout: Union[
3335
+ None,
3336
+ Annotated[StrictFloat, Field(gt=0)],
3337
+ Tuple[
3338
+ Annotated[StrictFloat, Field(gt=0)],
3339
+ Annotated[StrictFloat, Field(gt=0)]
3340
+ ]
3341
+ ] = None,
3342
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3343
+ _content_type: Optional[StrictStr] = None,
3344
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3345
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3346
+ ) -> RESTResponseType:
3347
+ """Void Credit Memo
3348
+
3349
+ Void a credit memo.
3350
+
3351
+ :param memo_id: (required)
3352
+ :type memo_id: str
3353
+ :param x_api_key:
3354
+ :type x_api_key: str
3355
+ :param x_tenant_id:
3356
+ :type x_tenant_id: str
3357
+ :param x_org_id:
3358
+ :type x_org_id: str
3359
+ :param authorization:
3360
+ :type authorization: str
3361
+ :param _request_timeout: timeout setting for this request. If one
3362
+ number provided, it will be total request
3363
+ timeout. It can also be a pair (tuple) of
3364
+ (connection, read) timeouts.
3365
+ :type _request_timeout: int, tuple(int, int), optional
3366
+ :param _request_auth: set to override the auth_settings for an a single
3367
+ request; this effectively ignores the
3368
+ authentication in the spec for a single request.
3369
+ :type _request_auth: dict, optional
3370
+ :param _content_type: force content-type for the request.
3371
+ :type _content_type: str, Optional
3372
+ :param _headers: set to override the headers for a single
3373
+ request; this effectively ignores the headers
3374
+ in the spec for a single request.
3375
+ :type _headers: dict, optional
3376
+ :param _host_index: set to override the host_index for a single
3377
+ request; this effectively ignores the host_index
3378
+ in the spec for a single request.
3379
+ :type _host_index: int, optional
3380
+ :return: Returns the result object.
3381
+ """ # noqa: E501
3382
+
3383
+ _param = self._void_credit_memo_v1_serialize(
3384
+ memo_id=memo_id,
3385
+ x_api_key=x_api_key,
3386
+ x_tenant_id=x_tenant_id,
3387
+ x_org_id=x_org_id,
3388
+ authorization=authorization,
3389
+ _request_auth=_request_auth,
3390
+ _content_type=_content_type,
3391
+ _headers=_headers,
3392
+ _host_index=_host_index
3393
+ )
3394
+
3395
+ _response_types_map: Dict[str, Optional[str]] = {
3396
+ '200': "CreditMemoResponse",
3397
+ '422': "ArcHTTPValidationError",
3398
+ }
3399
+ response_data = self.api_client.call_api(
3400
+ *_param,
3401
+ _request_timeout=_request_timeout
3402
+ )
3403
+ return response_data.response
3404
+
3405
+
3406
+ def _void_credit_memo_v1_serialize(
3407
+ self,
3408
+ memo_id,
3409
+ x_api_key,
3410
+ x_tenant_id,
3411
+ x_org_id,
3412
+ authorization,
3413
+ _request_auth,
3414
+ _content_type,
3415
+ _headers,
3416
+ _host_index,
3417
+ ) -> RequestSerialized:
3418
+
3419
+ _host = None
3420
+
3421
+ _collection_formats: Dict[str, str] = {
3422
+ }
3423
+
3424
+ _path_params: Dict[str, str] = {}
3425
+ _query_params: List[Tuple[str, str]] = []
3426
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3427
+ _form_params: List[Tuple[str, str]] = []
3428
+ _files: Dict[
3429
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3430
+ ] = {}
3431
+ _body_params: Optional[bytes] = None
3432
+
3433
+ # process the path parameters
3434
+ if memo_id is not None:
3435
+ _path_params['memo_id'] = memo_id
3436
+ # process the query parameters
3437
+ # process the header parameters
3438
+ if x_api_key is not None:
3439
+ _header_params['X-API-Key'] = x_api_key
3440
+ if x_tenant_id is not None:
3441
+ _header_params['X-Tenant-Id'] = x_tenant_id
3442
+ if x_org_id is not None:
3443
+ _header_params['X-Org-Id'] = x_org_id
3444
+ if authorization is not None:
3445
+ _header_params['Authorization'] = authorization
3446
+ # process the form parameters
3447
+ # process the body parameter
3448
+
3449
+
3450
+ # set the HTTP header `Accept`
3451
+ if 'Accept' not in _header_params:
3452
+ _header_params['Accept'] = self.api_client.select_header_accept(
3453
+ [
3454
+ 'application/json'
3455
+ ]
3456
+ )
3457
+
3458
+
3459
+ # authentication setting
3460
+ _auth_settings: List[str] = [
3461
+ ]
3462
+
3463
+ return self.api_client.param_serialize(
3464
+ method='POST',
3465
+ resource_path='/v1/arc/credit-memos/{memo_id}/void',
3466
+ path_params=_path_params,
3467
+ query_params=_query_params,
3468
+ header_params=_header_params,
3469
+ body=_body_params,
3470
+ post_params=_form_params,
3471
+ files=_files,
3472
+ auth_settings=_auth_settings,
3473
+ collection_formats=_collection_formats,
3474
+ _host=_host,
3475
+ _request_auth=_request_auth
3476
+ )
3477
+
3478
+