schematichq 1.4.13 → 1.4.15

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 (885) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +7 -3
  3. data/.fern/replay.lock +15 -3
  4. data/.rubocop.yml +33 -0
  5. data/CONTRIBUTING.md +120 -0
  6. data/WASM_VERSION +1 -1
  7. data/lib/schematic/accesstokens/client.rb +8 -0
  8. data/lib/schematic/accesstokens/types/issue_temporary_access_token_request_body.rb +1 -0
  9. data/lib/schematic/accesstokens/types/issue_temporary_access_token_response.rb +1 -0
  10. data/lib/schematic/accounts/client.rb +176 -22
  11. data/lib/schematic/accounts/types/count_account_members_params.rb +4 -0
  12. data/lib/schematic/accounts/types/count_account_members_request.rb +4 -0
  13. data/lib/schematic/accounts/types/count_account_members_response.rb +1 -0
  14. data/lib/schematic/accounts/types/count_api_keys_params.rb +3 -0
  15. data/lib/schematic/accounts/types/count_api_keys_request.rb +3 -0
  16. data/lib/schematic/accounts/types/count_api_keys_response.rb +1 -0
  17. data/lib/schematic/accounts/types/count_audit_logs_params.rb +6 -0
  18. data/lib/schematic/accounts/types/count_audit_logs_request.rb +6 -0
  19. data/lib/schematic/accounts/types/count_audit_logs_response.rb +1 -0
  20. data/lib/schematic/accounts/types/create_api_key_request_body.rb +4 -0
  21. data/lib/schematic/accounts/types/create_api_key_response.rb +1 -0
  22. data/lib/schematic/accounts/types/create_environment_request_body.rb +1 -0
  23. data/lib/schematic/accounts/types/create_environment_response.rb +1 -0
  24. data/lib/schematic/accounts/types/delete_api_key_response.rb +1 -0
  25. data/lib/schematic/accounts/types/delete_environment_response.rb +1 -0
  26. data/lib/schematic/accounts/types/get_account_member_response.rb +1 -0
  27. data/lib/schematic/accounts/types/get_api_key_response.rb +1 -0
  28. data/lib/schematic/accounts/types/get_audit_log_response.rb +1 -0
  29. data/lib/schematic/accounts/types/get_environment_response.rb +1 -0
  30. data/lib/schematic/accounts/types/get_onboarding_state_response.rb +13 -0
  31. data/lib/schematic/accounts/types/get_who_am_i_response.rb +1 -0
  32. data/lib/schematic/accounts/types/list_account_members_params.rb +4 -0
  33. data/lib/schematic/accounts/types/list_account_members_request.rb +4 -0
  34. data/lib/schematic/accounts/types/list_account_members_response.rb +1 -0
  35. data/lib/schematic/accounts/types/list_api_keys_params.rb +3 -0
  36. data/lib/schematic/accounts/types/list_api_keys_request.rb +3 -0
  37. data/lib/schematic/accounts/types/list_api_keys_response.rb +1 -0
  38. data/lib/schematic/accounts/types/list_audit_logs_params.rb +6 -0
  39. data/lib/schematic/accounts/types/list_audit_logs_request.rb +6 -0
  40. data/lib/schematic/accounts/types/list_audit_logs_response.rb +1 -0
  41. data/lib/schematic/accounts/types/list_environments_params.rb +2 -0
  42. data/lib/schematic/accounts/types/list_environments_request.rb +2 -0
  43. data/lib/schematic/accounts/types/list_environments_response.rb +1 -0
  44. data/lib/schematic/accounts/types/quickstart_response.rb +1 -0
  45. data/lib/schematic/accounts/types/update_api_key_request_body.rb +3 -0
  46. data/lib/schematic/accounts/types/update_api_key_response.rb +1 -0
  47. data/lib/schematic/accounts/types/update_environment_request_body.rb +2 -0
  48. data/lib/schematic/accounts/types/update_environment_response.rb +1 -0
  49. data/lib/schematic/accounts/types/update_onboarding_state_request_body.rb +17 -0
  50. data/lib/schematic/accounts/types/update_onboarding_state_response.rb +13 -0
  51. data/lib/schematic/billing/client.rb +243 -20
  52. data/lib/schematic/billing/types/count_billing_products_params.rb +12 -0
  53. data/lib/schematic/billing/types/count_billing_products_request.rb +12 -0
  54. data/lib/schematic/billing/types/count_billing_products_response.rb +1 -0
  55. data/lib/schematic/billing/types/count_customers_params.rb +5 -0
  56. data/lib/schematic/billing/types/count_customers_request.rb +5 -0
  57. data/lib/schematic/billing/types/count_customers_response.rb +1 -0
  58. data/lib/schematic/billing/types/create_billing_customer_request_body.rb +6 -0
  59. data/lib/schematic/billing/types/create_billing_price_request_body.rb +16 -0
  60. data/lib/schematic/billing/types/create_billing_product_request_body.rb +4 -0
  61. data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +20 -0
  62. data/lib/schematic/billing/types/create_coupon_request_body.rb +8 -0
  63. data/lib/schematic/billing/types/create_invoice_request_body.rb +14 -0
  64. data/lib/schematic/billing/types/create_meter_request_body.rb +4 -0
  65. data/lib/schematic/billing/types/create_payment_method_request_body.rb +11 -0
  66. data/lib/schematic/billing/types/delete_billing_coupon_response.rb +1 -0
  67. data/lib/schematic/billing/types/delete_billing_customer_response.rb +1 -0
  68. data/lib/schematic/billing/types/delete_billing_invoice_response.rb +1 -0
  69. data/lib/schematic/billing/types/delete_billing_product_response.rb +1 -0
  70. data/lib/schematic/billing/types/delete_payment_method_by_external_id_response.rb +1 -0
  71. data/lib/schematic/billing/types/delete_product_price_response.rb +1 -0
  72. data/lib/schematic/billing/types/list_billing_prices_params.rb +17 -0
  73. data/lib/schematic/billing/types/list_billing_prices_request.rb +17 -0
  74. data/lib/schematic/billing/types/list_billing_prices_response.rb +1 -0
  75. data/lib/schematic/billing/types/list_billing_product_prices_params.rb +17 -0
  76. data/lib/schematic/billing/types/list_billing_product_prices_request.rb +17 -0
  77. data/lib/schematic/billing/types/list_billing_product_prices_response.rb +1 -0
  78. data/lib/schematic/billing/types/list_billing_products_params.rb +12 -0
  79. data/lib/schematic/billing/types/list_billing_products_request.rb +12 -0
  80. data/lib/schematic/billing/types/list_billing_products_response.rb +1 -0
  81. data/lib/schematic/billing/types/list_coupons_params.rb +3 -0
  82. data/lib/schematic/billing/types/list_coupons_request.rb +3 -0
  83. data/lib/schematic/billing/types/list_coupons_response.rb +1 -0
  84. data/lib/schematic/billing/types/list_customers_with_subscriptions_params.rb +5 -0
  85. data/lib/schematic/billing/types/list_customers_with_subscriptions_request.rb +5 -0
  86. data/lib/schematic/billing/types/list_customers_with_subscriptions_response.rb +1 -0
  87. data/lib/schematic/billing/types/list_invoices_params.rb +4 -0
  88. data/lib/schematic/billing/types/list_invoices_request.rb +4 -0
  89. data/lib/schematic/billing/types/list_invoices_response.rb +1 -0
  90. data/lib/schematic/billing/types/list_meters_params.rb +2 -0
  91. data/lib/schematic/billing/types/list_meters_request.rb +2 -0
  92. data/lib/schematic/billing/types/list_meters_response.rb +1 -0
  93. data/lib/schematic/billing/types/list_payment_methods_params.rb +3 -0
  94. data/lib/schematic/billing/types/list_payment_methods_request.rb +3 -0
  95. data/lib/schematic/billing/types/list_payment_methods_response.rb +1 -0
  96. data/lib/schematic/billing/types/upsert_billing_coupon_response.rb +1 -0
  97. data/lib/schematic/billing/types/upsert_billing_customer_response.rb +1 -0
  98. data/lib/schematic/billing/types/upsert_billing_meter_response.rb +1 -0
  99. data/lib/schematic/billing/types/upsert_billing_price_response.rb +1 -0
  100. data/lib/schematic/billing/types/upsert_billing_product_response.rb +1 -0
  101. data/lib/schematic/billing/types/upsert_billing_subscription_response.rb +1 -0
  102. data/lib/schematic/billing/types/upsert_invoice_response.rb +1 -0
  103. data/lib/schematic/billing/types/upsert_payment_method_response.rb +1 -0
  104. data/lib/schematic/catalogs/client.rb +61 -4
  105. data/lib/schematic/catalogs/types/create_catalog_request_body.rb +1 -0
  106. data/lib/schematic/catalogs/types/create_catalog_response.rb +1 -0
  107. data/lib/schematic/catalogs/types/delete_catalog_response.rb +1 -0
  108. data/lib/schematic/catalogs/types/get_catalog_response.rb +1 -0
  109. data/lib/schematic/catalogs/types/get_configuration_response.rb +1 -0
  110. data/lib/schematic/catalogs/types/get_credit_bundles_in_catalog_response.rb +1 -0
  111. data/lib/schematic/catalogs/types/get_derived_features_response.rb +1 -0
  112. data/lib/schematic/catalogs/types/get_plans_in_catalog_response.rb +1 -0
  113. data/lib/schematic/catalogs/types/list_catalogs_params.rb +3 -0
  114. data/lib/schematic/catalogs/types/list_catalogs_request.rb +3 -0
  115. data/lib/schematic/catalogs/types/list_catalogs_response.rb +1 -0
  116. data/lib/schematic/catalogs/types/update_catalog_configuration_request_body.rb +9 -0
  117. data/lib/schematic/catalogs/types/update_catalog_request_body.rb +3 -0
  118. data/lib/schematic/catalogs/types/update_catalog_response.rb +1 -0
  119. data/lib/schematic/catalogs/types/update_configuration_response.rb +1 -0
  120. data/lib/schematic/checkout/client.rb +117 -2
  121. data/lib/schematic/checkout/types/cancel_subscription_request.rb +2 -0
  122. data/lib/schematic/checkout/types/cancel_subscription_response.rb +1 -0
  123. data/lib/schematic/checkout/types/checkout_data_request_body.rb +2 -0
  124. data/lib/schematic/checkout/types/checkout_internal_response.rb +1 -0
  125. data/lib/schematic/checkout/types/get_checkout_data_response.rb +1 -0
  126. data/lib/schematic/checkout/types/get_company_billing_details_response.rb +1 -0
  127. data/lib/schematic/checkout/types/manage_plan_response.rb +1 -0
  128. data/lib/schematic/checkout/types/preview_checkout_internal_response.rb +1 -0
  129. data/lib/schematic/checkout/types/preview_manage_plan_response.rb +1 -0
  130. data/lib/schematic/checkout/types/update_company_billing_details_request_body.rb +5 -0
  131. data/lib/schematic/checkout/types/update_company_billing_details_response.rb +1 -0
  132. data/lib/schematic/checkout/types/update_customer_subscription_trial_end_response.rb +1 -0
  133. data/lib/schematic/checkout/types/update_trial_end_request_body.rb +1 -0
  134. data/lib/schematic/client.rb +37 -4
  135. data/lib/schematic/companies/client.rb +421 -45
  136. data/lib/schematic/companies/types/count_companies_params.rb +21 -0
  137. data/lib/schematic/companies/types/count_companies_request.rb +21 -0
  138. data/lib/schematic/companies/types/count_companies_response.rb +1 -0
  139. data/lib/schematic/companies/types/count_entity_key_definitions_params.rb +4 -0
  140. data/lib/schematic/companies/types/count_entity_key_definitions_request.rb +4 -0
  141. data/lib/schematic/companies/types/count_entity_key_definitions_response.rb +1 -0
  142. data/lib/schematic/companies/types/count_entity_keys_params.rb +3 -0
  143. data/lib/schematic/companies/types/count_entity_keys_request.rb +3 -0
  144. data/lib/schematic/companies/types/count_entity_keys_response.rb +1 -0
  145. data/lib/schematic/companies/types/count_entity_trait_definitions_params.rb +6 -0
  146. data/lib/schematic/companies/types/count_entity_trait_definitions_request.rb +6 -0
  147. data/lib/schematic/companies/types/count_entity_trait_definitions_response.rb +1 -0
  148. data/lib/schematic/companies/types/count_entity_traits_params.rb +18 -0
  149. data/lib/schematic/companies/types/count_entity_traits_request.rb +17 -0
  150. data/lib/schematic/companies/types/count_entity_traits_response.rb +13 -0
  151. data/lib/schematic/companies/types/count_plan_traits_params.rb +5 -0
  152. data/lib/schematic/companies/types/count_plan_traits_request.rb +5 -0
  153. data/lib/schematic/companies/types/count_plan_traits_response.rb +1 -0
  154. data/lib/schematic/companies/types/count_users_params.rb +5 -0
  155. data/lib/schematic/companies/types/count_users_request.rb +5 -0
  156. data/lib/schematic/companies/types/count_users_response.rb +1 -0
  157. data/lib/schematic/companies/types/create_company_response.rb +1 -0
  158. data/lib/schematic/companies/types/create_entity_trait_definition_request_body.rb +3 -0
  159. data/lib/schematic/companies/types/create_user_response.rb +1 -0
  160. data/lib/schematic/companies/types/delete_company_by_keys_response.rb +1 -0
  161. data/lib/schematic/companies/types/delete_company_membership_response.rb +1 -0
  162. data/lib/schematic/companies/types/delete_company_params.rb +1 -0
  163. data/lib/schematic/companies/types/delete_company_request.rb +2 -0
  164. data/lib/schematic/companies/types/delete_company_response.rb +1 -0
  165. data/lib/schematic/companies/types/delete_entity_key_definition_response.rb +1 -0
  166. data/lib/schematic/companies/types/delete_entity_trait_definition_response.rb +13 -0
  167. data/lib/schematic/companies/types/delete_user_by_keys_response.rb +1 -0
  168. data/lib/schematic/companies/types/delete_user_response.rb +1 -0
  169. data/lib/schematic/companies/types/get_active_company_subscription_params.rb +3 -0
  170. data/lib/schematic/companies/types/get_active_company_subscription_request.rb +3 -0
  171. data/lib/schematic/companies/types/get_active_company_subscription_response.rb +1 -0
  172. data/lib/schematic/companies/types/get_billing_entity_child_subscriptions_request.rb +1 -1
  173. data/lib/schematic/companies/types/get_billing_entity_child_subscriptions_response.rb +1 -0
  174. data/lib/schematic/companies/types/get_company_billing_entity_request.rb +1 -1
  175. data/lib/schematic/companies/types/get_company_billing_entity_response.rb +1 -0
  176. data/lib/schematic/companies/types/get_company_response.rb +1 -0
  177. data/lib/schematic/companies/types/get_entity_trait_definition_response.rb +1 -0
  178. data/lib/schematic/companies/types/get_entity_trait_definition_usage_response.rb +13 -0
  179. data/lib/schematic/companies/types/get_entity_trait_values_params.rb +3 -0
  180. data/lib/schematic/companies/types/get_entity_trait_values_request.rb +3 -0
  181. data/lib/schematic/companies/types/get_entity_trait_values_response.rb +1 -0
  182. data/lib/schematic/companies/types/get_or_create_company_membership_request_body.rb +1 -0
  183. data/lib/schematic/companies/types/get_or_create_company_membership_response.rb +1 -0
  184. data/lib/schematic/companies/types/get_or_create_entity_trait_definition_response.rb +1 -0
  185. data/lib/schematic/companies/types/get_plan_change_response.rb +1 -0
  186. data/lib/schematic/companies/types/get_plan_trait_response.rb +1 -0
  187. data/lib/schematic/companies/types/get_user_response.rb +1 -0
  188. data/lib/schematic/companies/types/list_companies_params.rb +21 -0
  189. data/lib/schematic/companies/types/list_companies_request.rb +21 -0
  190. data/lib/schematic/companies/types/list_companies_response.rb +1 -0
  191. data/lib/schematic/companies/types/list_company_memberships_params.rb +3 -0
  192. data/lib/schematic/companies/types/list_company_memberships_request.rb +3 -0
  193. data/lib/schematic/companies/types/list_company_memberships_response.rb +1 -0
  194. data/lib/schematic/companies/types/list_entity_key_definitions_params.rb +4 -0
  195. data/lib/schematic/companies/types/list_entity_key_definitions_request.rb +4 -0
  196. data/lib/schematic/companies/types/list_entity_key_definitions_response.rb +1 -0
  197. data/lib/schematic/companies/types/list_entity_trait_definitions_params.rb +6 -0
  198. data/lib/schematic/companies/types/list_entity_trait_definitions_request.rb +6 -0
  199. data/lib/schematic/companies/types/list_entity_trait_definitions_response.rb +1 -0
  200. data/lib/schematic/companies/types/list_plan_changes_params.rb +5 -1
  201. data/lib/schematic/companies/types/list_plan_changes_request.rb +5 -1
  202. data/lib/schematic/companies/types/list_plan_changes_response.rb +1 -0
  203. data/lib/schematic/companies/types/list_plan_traits_params.rb +5 -0
  204. data/lib/schematic/companies/types/list_plan_traits_request.rb +5 -0
  205. data/lib/schematic/companies/types/list_plan_traits_response.rb +1 -0
  206. data/lib/schematic/companies/types/list_users_params.rb +5 -0
  207. data/lib/schematic/companies/types/list_users_request.rb +5 -0
  208. data/lib/schematic/companies/types/list_users_response.rb +1 -0
  209. data/lib/schematic/companies/types/lookup_company_response.rb +1 -0
  210. data/lib/schematic/companies/types/lookup_user_response.rb +1 -0
  211. data/lib/schematic/companies/types/update_entity_trait_definition_request_body.rb +2 -0
  212. data/lib/schematic/companies/types/update_entity_trait_definition_response.rb +1 -0
  213. data/lib/schematic/companies/types/update_plan_trait_bulk_request_body.rb +2 -0
  214. data/lib/schematic/companies/types/update_plan_traits_bulk_response.rb +1 -0
  215. data/lib/schematic/companies/types/upsert_company_response.rb +1 -0
  216. data/lib/schematic/companies/types/upsert_company_trait_response.rb +1 -0
  217. data/lib/schematic/companies/types/upsert_user_response.rb +1 -0
  218. data/lib/schematic/companies/types/upsert_user_trait_response.rb +1 -0
  219. data/lib/schematic/components/client.rb +40 -8
  220. data/lib/schematic/components/types/bind_catalog_request_body.rb +1 -0
  221. data/lib/schematic/components/types/bind_catalog_response.rb +1 -0
  222. data/lib/schematic/components/types/count_components_params.rb +2 -0
  223. data/lib/schematic/components/types/count_components_request.rb +2 -0
  224. data/lib/schematic/components/types/count_components_response.rb +1 -0
  225. data/lib/schematic/components/types/create_component_request_body.rb +2 -0
  226. data/lib/schematic/components/types/create_component_response.rb +1 -0
  227. data/lib/schematic/components/types/delete_component_response.rb +1 -0
  228. data/lib/schematic/components/types/get_component_response.rb +1 -0
  229. data/lib/schematic/components/types/list_components_params.rb +2 -0
  230. data/lib/schematic/components/types/list_components_request.rb +2 -0
  231. data/lib/schematic/components/types/list_components_response.rb +1 -0
  232. data/lib/schematic/components/types/preview_component_data_params.rb +1 -0
  233. data/lib/schematic/components/types/preview_component_data_request.rb +1 -0
  234. data/lib/schematic/components/types/preview_component_data_response.rb +1 -0
  235. data/lib/schematic/components/types/update_component_request_body.rb +4 -0
  236. data/lib/schematic/components/types/update_component_response.rb +1 -0
  237. data/lib/schematic/componentspublic/client.rb +5 -3
  238. data/lib/schematic/componentspublic/types/get_public_plans_response.rb +1 -0
  239. data/lib/schematic/credits/client.rb +233 -36
  240. data/lib/schematic/credits/types/acquire_credit_lease_request_body.rb +3 -0
  241. data/lib/schematic/credits/types/acquire_credit_lease_response.rb +1 -0
  242. data/lib/schematic/credits/types/count_billing_credits_grants_params.rb +3 -0
  243. data/lib/schematic/credits/types/count_billing_credits_grants_request.rb +3 -0
  244. data/lib/schematic/credits/types/count_billing_credits_grants_response.rb +1 -0
  245. data/lib/schematic/credits/types/count_billing_credits_params.rb +3 -0
  246. data/lib/schematic/credits/types/count_billing_credits_request.rb +3 -0
  247. data/lib/schematic/credits/types/count_billing_credits_response.rb +1 -0
  248. data/lib/schematic/credits/types/count_billing_plan_credit_grants_params.rb +7 -0
  249. data/lib/schematic/credits/types/count_billing_plan_credit_grants_request.rb +7 -0
  250. data/lib/schematic/credits/types/count_billing_plan_credit_grants_response.rb +1 -0
  251. data/lib/schematic/credits/types/count_company_grants_params.rb +4 -0
  252. data/lib/schematic/credits/types/count_company_grants_request.rb +5 -1
  253. data/lib/schematic/credits/types/count_company_grants_response.rb +1 -0
  254. data/lib/schematic/credits/types/count_credit_bundles_params.rb +5 -0
  255. data/lib/schematic/credits/types/count_credit_bundles_request.rb +5 -0
  256. data/lib/schematic/credits/types/count_credit_bundles_response.rb +1 -0
  257. data/lib/schematic/credits/types/count_credit_event_ledger_params.rb +7 -0
  258. data/lib/schematic/credits/types/count_credit_event_ledger_request.rb +7 -0
  259. data/lib/schematic/credits/types/count_credit_event_ledger_response.rb +1 -0
  260. data/lib/schematic/credits/types/create_billing_credit_request_body.rb +12 -0
  261. data/lib/schematic/credits/types/create_billing_credit_response.rb +1 -0
  262. data/lib/schematic/credits/types/create_billing_plan_credit_grant_response.rb +1 -0
  263. data/lib/schematic/credits/types/create_company_credit_grant.rb +11 -0
  264. data/lib/schematic/credits/types/create_credit_bundle_request_body.rb +13 -0
  265. data/lib/schematic/credits/types/create_credit_bundle_response.rb +1 -0
  266. data/lib/schematic/credits/types/delete_billing_plan_credit_grant_request.rb +1 -0
  267. data/lib/schematic/credits/types/delete_billing_plan_credit_grant_response.rb +1 -0
  268. data/lib/schematic/credits/types/delete_credit_bundle_response.rb +1 -0
  269. data/lib/schematic/credits/types/extend_credit_lease_request_body.rb +2 -0
  270. data/lib/schematic/credits/types/extend_credit_lease_response.rb +1 -0
  271. data/lib/schematic/credits/types/get_credit_bundle_response.rb +1 -0
  272. data/lib/schematic/credits/types/get_single_billing_credit_response.rb +1 -0
  273. data/lib/schematic/credits/types/get_single_billing_plan_credit_grant_response.rb +1 -0
  274. data/lib/schematic/credits/types/grant_billing_credits_to_company_response.rb +1 -0
  275. data/lib/schematic/credits/types/list_billing_credits_params.rb +3 -0
  276. data/lib/schematic/credits/types/list_billing_credits_request.rb +3 -0
  277. data/lib/schematic/credits/types/list_billing_credits_response.rb +1 -0
  278. data/lib/schematic/credits/types/list_billing_plan_credit_grants_params.rb +7 -0
  279. data/lib/schematic/credits/types/list_billing_plan_credit_grants_request.rb +7 -0
  280. data/lib/schematic/credits/types/list_billing_plan_credit_grants_response.rb +1 -0
  281. data/lib/schematic/credits/types/list_company_credit_balances_response.rb +1 -0
  282. data/lib/schematic/credits/types/list_company_grants_params.rb +4 -0
  283. data/lib/schematic/credits/types/list_company_grants_request.rb +5 -1
  284. data/lib/schematic/credits/types/list_company_grants_response.rb +1 -0
  285. data/lib/schematic/credits/types/list_credit_bundles_params.rb +5 -0
  286. data/lib/schematic/credits/types/list_credit_bundles_request.rb +5 -0
  287. data/lib/schematic/credits/types/list_credit_bundles_response.rb +1 -0
  288. data/lib/schematic/credits/types/list_credit_event_ledger_params.rb +7 -0
  289. data/lib/schematic/credits/types/list_credit_event_ledger_request.rb +7 -0
  290. data/lib/schematic/credits/types/list_credit_event_ledger_response.rb +1 -0
  291. data/lib/schematic/credits/types/list_grants_for_credit_params.rb +3 -0
  292. data/lib/schematic/credits/types/list_grants_for_credit_request.rb +3 -0
  293. data/lib/schematic/credits/types/list_grants_for_credit_response.rb +1 -0
  294. data/lib/schematic/credits/types/release_credit_lease_response.rb +1 -0
  295. data/lib/schematic/credits/types/soft_delete_billing_credit_response.rb +1 -0
  296. data/lib/schematic/credits/types/update_billing_credit_request_body.rb +12 -0
  297. data/lib/schematic/credits/types/update_billing_credit_response.rb +1 -0
  298. data/lib/schematic/credits/types/update_billing_plan_credit_grant_response.rb +1 -0
  299. data/lib/schematic/credits/types/update_credit_bundle_details_request_body.rb +11 -0
  300. data/lib/schematic/credits/types/update_credit_bundle_details_response.rb +1 -0
  301. data/lib/schematic/credits/types/zero_out_grant_request_body.rb +1 -0
  302. data/lib/schematic/credits/types/zero_out_grant_response.rb +1 -0
  303. data/lib/schematic/dataexports/client.rb +20 -2
  304. data/lib/schematic/dataexports/types/create_data_export_request_body.rb +2 -0
  305. data/lib/schematic/dataexports/types/create_data_export_response.rb +1 -0
  306. data/lib/schematic/dataexports/types/get_data_export_response.rb +1 -0
  307. data/lib/schematic/dataexports/types/list_data_exports_params.rb +3 -0
  308. data/lib/schematic/dataexports/types/list_data_exports_request.rb +3 -0
  309. data/lib/schematic/dataexports/types/list_data_exports_response.rb +1 -0
  310. data/lib/schematic/datastream/client.rb +4 -4
  311. data/lib/schematic/entitlements/client.rb +256 -30
  312. data/lib/schematic/entitlements/types/count_company_overrides_params.rb +8 -0
  313. data/lib/schematic/entitlements/types/count_company_overrides_request.rb +8 -0
  314. data/lib/schematic/entitlements/types/count_company_overrides_response.rb +1 -0
  315. data/lib/schematic/entitlements/types/count_feature_companies_params.rb +3 -0
  316. data/lib/schematic/entitlements/types/count_feature_companies_request.rb +3 -0
  317. data/lib/schematic/entitlements/types/count_feature_companies_response.rb +1 -0
  318. data/lib/schematic/entitlements/types/count_feature_usage_params.rb +8 -0
  319. data/lib/schematic/entitlements/types/count_feature_usage_request.rb +8 -0
  320. data/lib/schematic/entitlements/types/count_feature_usage_response.rb +1 -0
  321. data/lib/schematic/entitlements/types/count_feature_users_params.rb +3 -0
  322. data/lib/schematic/entitlements/types/count_feature_users_request.rb +3 -0
  323. data/lib/schematic/entitlements/types/count_feature_users_response.rb +1 -0
  324. data/lib/schematic/entitlements/types/count_plan_entitlements_params.rb +10 -0
  325. data/lib/schematic/entitlements/types/count_plan_entitlements_request.rb +10 -0
  326. data/lib/schematic/entitlements/types/count_plan_entitlements_response.rb +1 -0
  327. data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +35 -0
  328. data/lib/schematic/entitlements/types/create_company_override_request_body.rb +11 -0
  329. data/lib/schematic/entitlements/types/create_company_override_response.rb +1 -0
  330. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +33 -0
  331. data/lib/schematic/entitlements/types/create_plan_entitlement_response.rb +1 -0
  332. data/lib/schematic/entitlements/types/delete_company_override_response.rb +1 -0
  333. data/lib/schematic/entitlements/types/delete_plan_entitlement_response.rb +1 -0
  334. data/lib/schematic/entitlements/types/duplicate_plan_entitlements_request_body.rb +1 -0
  335. data/lib/schematic/entitlements/types/duplicate_plan_entitlements_response.rb +1 -0
  336. data/lib/schematic/entitlements/types/get_company_override_response.rb +1 -0
  337. data/lib/schematic/entitlements/types/get_feature_usage_by_company_response.rb +1 -0
  338. data/lib/schematic/entitlements/types/get_feature_usage_time_series_params.rb +4 -0
  339. data/lib/schematic/entitlements/types/get_feature_usage_time_series_request.rb +4 -0
  340. data/lib/schematic/entitlements/types/get_feature_usage_time_series_response.rb +1 -0
  341. data/lib/schematic/entitlements/types/get_plan_entitlement_response.rb +1 -0
  342. data/lib/schematic/entitlements/types/get_user_usage_by_company_params.rb +3 -0
  343. data/lib/schematic/entitlements/types/get_user_usage_by_company_request.rb +3 -0
  344. data/lib/schematic/entitlements/types/get_user_usage_by_company_response.rb +1 -0
  345. data/lib/schematic/entitlements/types/get_user_usage_detail_params.rb +3 -0
  346. data/lib/schematic/entitlements/types/get_user_usage_detail_request.rb +3 -0
  347. data/lib/schematic/entitlements/types/get_user_usage_detail_response.rb +1 -0
  348. data/lib/schematic/entitlements/types/list_company_overrides_params.rb +8 -0
  349. data/lib/schematic/entitlements/types/list_company_overrides_request.rb +8 -0
  350. data/lib/schematic/entitlements/types/list_company_overrides_response.rb +1 -0
  351. data/lib/schematic/entitlements/types/list_feature_companies_params.rb +3 -0
  352. data/lib/schematic/entitlements/types/list_feature_companies_request.rb +3 -0
  353. data/lib/schematic/entitlements/types/list_feature_companies_response.rb +1 -0
  354. data/lib/schematic/entitlements/types/list_feature_usage_history_params.rb +24 -0
  355. data/lib/schematic/entitlements/types/list_feature_usage_history_request.rb +23 -0
  356. data/lib/schematic/entitlements/types/list_feature_usage_history_response.rb +13 -0
  357. data/lib/schematic/entitlements/types/list_feature_usage_params.rb +8 -0
  358. data/lib/schematic/entitlements/types/list_feature_usage_request.rb +8 -0
  359. data/lib/schematic/entitlements/types/list_feature_usage_response.rb +1 -0
  360. data/lib/schematic/entitlements/types/list_feature_users_params.rb +3 -0
  361. data/lib/schematic/entitlements/types/list_feature_users_request.rb +3 -0
  362. data/lib/schematic/entitlements/types/list_feature_users_response.rb +1 -0
  363. data/lib/schematic/entitlements/types/list_plan_entitlements_params.rb +10 -0
  364. data/lib/schematic/entitlements/types/list_plan_entitlements_request.rb +10 -0
  365. data/lib/schematic/entitlements/types/list_plan_entitlements_response.rb +1 -0
  366. data/lib/schematic/entitlements/types/update_company_override_request_body.rb +10 -0
  367. data/lib/schematic/entitlements/types/update_company_override_response.rb +1 -0
  368. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +31 -0
  369. data/lib/schematic/entitlements/types/update_plan_entitlement_response.rb +1 -0
  370. data/lib/schematic/entitlements/types/upsert_plan_entitlement_for_billing_product_response.rb +1 -0
  371. data/lib/schematic/event_buffer.rb +16 -2
  372. data/lib/schematic/events/client.rb +36 -7
  373. data/lib/schematic/events/types/create_event_batch_response.rb +1 -0
  374. data/lib/schematic/events/types/create_event_response.rb +1 -0
  375. data/lib/schematic/events/types/get_event_response.rb +1 -0
  376. data/lib/schematic/events/types/get_event_summaries_params.rb +3 -0
  377. data/lib/schematic/events/types/get_event_summaries_request.rb +3 -0
  378. data/lib/schematic/events/types/get_event_summaries_response.rb +1 -0
  379. data/lib/schematic/events/types/get_segment_integration_status_response.rb +1 -0
  380. data/lib/schematic/events/types/list_events_params.rb +7 -0
  381. data/lib/schematic/events/types/list_events_request.rb +7 -0
  382. data/lib/schematic/events/types/list_events_response.rb +1 -0
  383. data/lib/schematic/features/client.rb +137 -12
  384. data/lib/schematic/features/types/check_flag_response.rb +1 -0
  385. data/lib/schematic/features/types/check_flags_bulk_response.rb +1 -0
  386. data/lib/schematic/features/types/check_flags_response.rb +1 -0
  387. data/lib/schematic/features/types/count_features_params.rb +9 -0
  388. data/lib/schematic/features/types/count_features_request.rb +9 -0
  389. data/lib/schematic/features/types/count_features_response.rb +1 -0
  390. data/lib/schematic/features/types/count_flags_params.rb +4 -0
  391. data/lib/schematic/features/types/count_flags_request.rb +4 -0
  392. data/lib/schematic/features/types/count_flags_response.rb +1 -0
  393. data/lib/schematic/features/types/create_billing_linked_feature_request_body.rb +12 -0
  394. data/lib/schematic/features/types/create_feature_request_body.rb +10 -0
  395. data/lib/schematic/features/types/create_feature_response.rb +1 -0
  396. data/lib/schematic/features/types/create_flag_response.rb +1 -0
  397. data/lib/schematic/features/types/delete_feature_response.rb +1 -0
  398. data/lib/schematic/features/types/delete_flag_response.rb +1 -0
  399. data/lib/schematic/features/types/get_feature_response.rb +1 -0
  400. data/lib/schematic/features/types/get_flag_response.rb +1 -0
  401. data/lib/schematic/features/types/list_features_params.rb +9 -0
  402. data/lib/schematic/features/types/list_features_request.rb +9 -0
  403. data/lib/schematic/features/types/list_features_response.rb +1 -0
  404. data/lib/schematic/features/types/list_flags_params.rb +4 -0
  405. data/lib/schematic/features/types/list_flags_request.rb +4 -0
  406. data/lib/schematic/features/types/list_flags_response.rb +1 -0
  407. data/lib/schematic/features/types/update_feature_request_body.rb +11 -0
  408. data/lib/schematic/features/types/update_feature_response.rb +1 -0
  409. data/lib/schematic/features/types/update_flag_response.rb +1 -0
  410. data/lib/schematic/features/types/update_flag_rules_request_body.rb +1 -0
  411. data/lib/schematic/features/types/update_flag_rules_response.rb +1 -0
  412. data/lib/schematic/features/types/upsert_feature_for_billing_product_response.rb +1 -0
  413. data/lib/schematic/insights/client.rb +34 -13
  414. data/lib/schematic/insights/types/get_activity_response.rb +1 -0
  415. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_params.rb +3 -0
  416. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_request.rb +3 -0
  417. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_response.rb +1 -0
  418. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_params.rb +3 -0
  419. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_request.rb +3 -0
  420. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_response.rb +1 -0
  421. data/lib/schematic/insights/types/get_plan_growth_response.rb +1 -0
  422. data/lib/schematic/insights/types/get_summary_response.rb +1 -0
  423. data/lib/schematic/insights/types/get_top_features_by_usage_params.rb +2 -0
  424. data/lib/schematic/insights/types/get_top_features_by_usage_request.rb +2 -0
  425. data/lib/schematic/insights/types/get_top_features_by_usage_response.rb +1 -0
  426. data/lib/schematic/integrationsapi/client.rb +37 -5
  427. data/lib/schematic/integrationsapi/types/assume_stripe_installed_response.rb +1 -0
  428. data/lib/schematic/integrationsapi/types/get_integration_webhook_url_response.rb +1 -0
  429. data/lib/schematic/integrationsapi/types/install_integration_response.rb +1 -0
  430. data/lib/schematic/integrationsapi/types/install_stripe_response.rb +1 -0
  431. data/lib/schematic/integrationsapi/types/list_integrations_params.rb +6 -0
  432. data/lib/schematic/integrationsapi/types/list_integrations_request.rb +6 -0
  433. data/lib/schematic/integrationsapi/types/list_integrations_response.rb +1 -0
  434. data/lib/schematic/integrationsapi/types/load_sample_data_set_response.rb +1 -0
  435. data/lib/schematic/integrationsapi/types/run_integration_response.rb +1 -0
  436. data/lib/schematic/integrationsapi/types/start_data_import_request_body.rb +2 -0
  437. data/lib/schematic/integrationsapi/types/start_data_import_response.rb +1 -0
  438. data/lib/schematic/integrationsapi/types/uninstall_integration_response.rb +1 -0
  439. data/lib/schematic/internal/http/raw_client.rb +58 -7
  440. data/lib/schematic/internal/iterators/cursor_page_iterator.rb +14 -2
  441. data/lib/schematic/internal/iterators/item_iterator.rb +6 -0
  442. data/lib/schematic/internal/iterators/offset_page_iterator.rb +22 -2
  443. data/lib/schematic/internal/types/utils.rb +2 -2
  444. data/lib/schematic/licenses/client.rb +21 -4
  445. data/lib/schematic/licenses/types/count_licenses_params.rb +4 -0
  446. data/lib/schematic/licenses/types/count_licenses_request.rb +4 -0
  447. data/lib/schematic/licenses/types/count_licenses_response.rb +1 -0
  448. data/lib/schematic/licenses/types/get_single_license_response.rb +1 -0
  449. data/lib/schematic/licenses/types/list_licenses_params.rb +4 -0
  450. data/lib/schematic/licenses/types/list_licenses_request.rb +4 -0
  451. data/lib/schematic/licenses/types/list_licenses_response.rb +1 -0
  452. data/lib/schematic/planbundle/client.rb +40 -3
  453. data/lib/schematic/planbundle/types/create_custom_plan_bundle_request_body.rb +5 -2
  454. data/lib/schematic/planbundle/types/create_custom_plan_bundle_response.rb +1 -0
  455. data/lib/schematic/planbundle/types/create_plan_bundle_request_body.rb +4 -1
  456. data/lib/schematic/planbundle/types/create_plan_bundle_response.rb +1 -0
  457. data/lib/schematic/planbundle/types/update_plan_bundle_request_body.rb +7 -2
  458. data/lib/schematic/planbundle/types/update_plan_bundle_response.rb +1 -0
  459. data/lib/schematic/plangroups/client.rb +65 -3
  460. data/lib/schematic/plangroups/types/create_plan_group_request_body.rb +39 -0
  461. data/lib/schematic/plangroups/types/create_plan_group_response.rb +1 -0
  462. data/lib/schematic/plangroups/types/get_plan_group_response.rb +1 -0
  463. data/lib/schematic/plangroups/types/update_plan_group_request_body.rb +40 -0
  464. data/lib/schematic/plangroups/types/update_plan_group_response.rb +1 -0
  465. data/lib/schematic/planmigrations/client.rb +66 -13
  466. data/lib/schematic/planmigrations/types/count_company_migrations_params.rb +4 -0
  467. data/lib/schematic/planmigrations/types/count_company_migrations_request.rb +5 -1
  468. data/lib/schematic/planmigrations/types/count_company_migrations_response.rb +1 -0
  469. data/lib/schematic/planmigrations/types/count_migrations_params.rb +3 -0
  470. data/lib/schematic/planmigrations/types/count_migrations_request.rb +4 -1
  471. data/lib/schematic/planmigrations/types/count_migrations_response.rb +1 -0
  472. data/lib/schematic/planmigrations/types/create_migration_input.rb +11 -3
  473. data/lib/schematic/planmigrations/types/create_migration_response.rb +1 -0
  474. data/lib/schematic/planmigrations/types/get_migration_response.rb +1 -0
  475. data/lib/schematic/planmigrations/types/list_company_migrations_params.rb +4 -0
  476. data/lib/schematic/planmigrations/types/list_company_migrations_request.rb +5 -1
  477. data/lib/schematic/planmigrations/types/list_company_migrations_response.rb +1 -0
  478. data/lib/schematic/planmigrations/types/list_migrations_params.rb +3 -0
  479. data/lib/schematic/planmigrations/types/list_migrations_request.rb +4 -1
  480. data/lib/schematic/planmigrations/types/list_migrations_response.rb +1 -0
  481. data/lib/schematic/planmigrations/types/preview_migration_request_body.rb +6 -1
  482. data/lib/schematic/planmigrations/types/preview_migration_response.rb +1 -0
  483. data/lib/schematic/planmigrations/types/retry_company_migration_response.rb +1 -0
  484. data/lib/schematic/planmigrations/types/retry_migration_request_body.rb +1 -0
  485. data/lib/schematic/planmigrations/types/retry_migration_response.rb +1 -0
  486. data/lib/schematic/plans/client.rb +173 -28
  487. data/lib/schematic/plans/types/count_billing_product_match_companies_params.rb +3 -0
  488. data/lib/schematic/plans/types/count_billing_product_match_companies_request.rb +3 -0
  489. data/lib/schematic/plans/types/count_billing_product_match_companies_response.rb +1 -0
  490. data/lib/schematic/plans/types/count_plans_params.rb +16 -0
  491. data/lib/schematic/plans/types/count_plans_request.rb +16 -0
  492. data/lib/schematic/plans/types/count_plans_response.rb +1 -0
  493. data/lib/schematic/plans/types/create_billing_linked_plan_request_body.rb +7 -1
  494. data/lib/schematic/plans/types/create_custom_plan_request_body.rb +7 -1
  495. data/lib/schematic/plans/types/create_custom_plan_response.rb +1 -0
  496. data/lib/schematic/plans/types/create_plan_response.rb +1 -0
  497. data/lib/schematic/plans/types/delete_plan_response.rb +1 -0
  498. data/lib/schematic/plans/types/delete_plan_version_request.rb +2 -1
  499. data/lib/schematic/plans/types/delete_plan_version_response.rb +1 -0
  500. data/lib/schematic/plans/types/get_plan_request.rb +1 -0
  501. data/lib/schematic/plans/types/get_plan_response.rb +1 -0
  502. data/lib/schematic/plans/types/list_billing_product_match_companies_params.rb +3 -0
  503. data/lib/schematic/plans/types/list_billing_product_match_companies_request.rb +3 -0
  504. data/lib/schematic/plans/types/list_billing_product_match_companies_response.rb +1 -0
  505. data/lib/schematic/plans/types/list_custom_plan_billings_params.rb +7 -0
  506. data/lib/schematic/plans/types/list_custom_plan_billings_request.rb +7 -0
  507. data/lib/schematic/plans/types/list_custom_plan_billings_response.rb +1 -0
  508. data/lib/schematic/plans/types/list_plan_issues_params.rb +1 -0
  509. data/lib/schematic/plans/types/list_plan_issues_request.rb +1 -0
  510. data/lib/schematic/plans/types/list_plan_issues_response.rb +1 -0
  511. data/lib/schematic/plans/types/list_plans_params.rb +16 -0
  512. data/lib/schematic/plans/types/list_plans_request.rb +16 -0
  513. data/lib/schematic/plans/types/list_plans_response.rb +1 -0
  514. data/lib/schematic/plans/types/mark_custom_plan_billing_paid_response.rb +1 -0
  515. data/lib/schematic/plans/types/publish_plan_version_request_body.rb +16 -1
  516. data/lib/schematic/plans/types/publish_plan_version_response.rb +1 -0
  517. data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +4 -0
  518. data/lib/schematic/plans/types/retry_custom_plan_billing_response.rb +1 -0
  519. data/lib/schematic/plans/types/update_company_plans_request_body.rb +3 -1
  520. data/lib/schematic/plans/types/update_company_plans_response.rb +1 -0
  521. data/lib/schematic/plans/types/update_plan_response.rb +1 -0
  522. data/lib/schematic/plans/types/upsert_billing_product_plan_response.rb +1 -0
  523. data/lib/schematic/plans/types/upsert_plan_for_billing_product_response.rb +1 -0
  524. data/lib/schematic/scheduledcheckout/client.rb +23 -3
  525. data/lib/schematic/scheduledcheckout/types/create_scheduled_checkout_request.rb +3 -0
  526. data/lib/schematic/scheduledcheckout/types/create_scheduled_checkout_response.rb +1 -0
  527. data/lib/schematic/scheduledcheckout/types/get_scheduled_checkout_response.rb +1 -0
  528. data/lib/schematic/scheduledcheckout/types/list_scheduled_checkouts_params.rb +3 -0
  529. data/lib/schematic/scheduledcheckout/types/list_scheduled_checkouts_request.rb +3 -0
  530. data/lib/schematic/scheduledcheckout/types/list_scheduled_checkouts_response.rb +1 -0
  531. data/lib/schematic/scheduledcheckout/types/update_scheduled_checkout_request.rb +2 -0
  532. data/lib/schematic/scheduledcheckout/types/update_scheduled_checkout_response.rb +1 -0
  533. data/lib/schematic/schematic_client.rb +4 -4
  534. data/lib/schematic/types/account_member_response_data.rb +9 -0
  535. data/lib/schematic/types/activity_entry_response_data.rb +5 -0
  536. data/lib/schematic/types/api_key_create_response_data.rb +12 -0
  537. data/lib/schematic/types/api_key_integration_response_data.rb +2 -0
  538. data/lib/schematic/types/api_key_response_data.rb +11 -0
  539. data/lib/schematic/types/audit_log_export_metadata.rb +4 -0
  540. data/lib/schematic/types/audit_log_list_response_data.rb +16 -0
  541. data/lib/schematic/types/audit_log_response_data.rb +21 -0
  542. data/lib/schematic/types/billing_collection_method.rb +12 -0
  543. data/lib/schematic/types/billing_coupon_response_data.rb +16 -0
  544. data/lib/schematic/types/billing_credit_bundle_response_data.rb +22 -0
  545. data/lib/schematic/types/billing_credit_bundle_view.rb +21 -0
  546. data/lib/schematic/types/billing_credit_grant_response_data.rb +30 -0
  547. data/lib/schematic/types/billing_credit_ledger_response_data.rb +5 -0
  548. data/lib/schematic/types/billing_credit_response_data.rb +15 -0
  549. data/lib/schematic/types/billing_credit_view.rb +20 -0
  550. data/lib/schematic/types/billing_customer_response_data.rb +7 -0
  551. data/lib/schematic/types/billing_customer_subscription.rb +5 -0
  552. data/lib/schematic/types/billing_customer_with_subscriptions_response_data.rb +8 -0
  553. data/lib/schematic/types/billing_linked_resource_response_data.rb +2 -0
  554. data/lib/schematic/types/billing_meter_response_data.rb +5 -0
  555. data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +34 -0
  556. data/lib/schematic/types/billing_price_response_data.rb +9 -0
  557. data/lib/schematic/types/billing_price_view.rb +23 -0
  558. data/lib/schematic/types/billing_product_detail_response_data.rb +14 -0
  559. data/lib/schematic/types/billing_product_for_subscription_response_data.rb +22 -0
  560. data/lib/schematic/types/billing_product_plan_response_data.rb +11 -0
  561. data/lib/schematic/types/billing_product_price_response_data.rb +17 -0
  562. data/lib/schematic/types/billing_product_price_tier_response_data.rb +3 -0
  563. data/lib/schematic/types/billing_product_pricing.rb +11 -0
  564. data/lib/schematic/types/billing_product_record_response_data.rb +8 -0
  565. data/lib/schematic/types/billing_product_response_data.rb +12 -0
  566. data/lib/schematic/types/billing_subscription_discount.rb +6 -0
  567. data/lib/schematic/types/billing_subscription_discount_view.rb +13 -0
  568. data/lib/schematic/types/billing_subscription_response_data.rb +19 -0
  569. data/lib/schematic/types/billing_subscription_view.rb +23 -0
  570. data/lib/schematic/types/capture_raw_event.rb +4 -0
  571. data/lib/schematic/types/catalog_config_ordered_entitlement.rb +1 -0
  572. data/lib/schematic/types/catalog_config_ordered_entitlement_response_data.rb +1 -0
  573. data/lib/schematic/types/catalog_config_ordered_plan.rb +1 -0
  574. data/lib/schematic/types/catalog_config_ordered_plan_response_data.rb +1 -0
  575. data/lib/schematic/types/catalog_configuration_response_data.rb +10 -0
  576. data/lib/schematic/types/catalog_derived_feature_response_data.rb +2 -0
  577. data/lib/schematic/types/catalog_response_data.rb +12 -0
  578. data/lib/schematic/types/change_subscription_internal_request_body.rb +13 -0
  579. data/lib/schematic/types/change_subscription_request_body.rb +12 -0
  580. data/lib/schematic/types/check_flag_request_body.rb +3 -0
  581. data/lib/schematic/types/check_flag_response_data.rb +14 -0
  582. data/lib/schematic/types/check_flags_response_data.rb +2 -0
  583. data/lib/schematic/types/checkout_bundle_purchase_behavior.rb +12 -0
  584. data/lib/schematic/types/checkout_data_response_data.rb +10 -0
  585. data/lib/schematic/types/checkout_field_input.rb +5 -0
  586. data/lib/schematic/types/checkout_field_response_data.rb +9 -0
  587. data/lib/schematic/types/checkout_field_value.rb +1 -0
  588. data/lib/schematic/types/checkout_field_with_value.rb +6 -0
  589. data/lib/schematic/types/checkout_settings_response_data.rb +9 -0
  590. data/lib/schematic/types/checkout_subscription.rb +23 -0
  591. data/lib/schematic/types/clerk_integration_config.rb +1 -0
  592. data/lib/schematic/types/company_billing_address_view.rb +5 -0
  593. data/lib/schematic/types/company_billing_checkout_settings.rb +4 -0
  594. data/lib/schematic/types/company_billing_details_response_data.rb +5 -0
  595. data/lib/schematic/types/company_billing_details_view.rb +5 -0
  596. data/lib/schematic/types/company_billing_entity_response_data.rb +1 -0
  597. data/lib/schematic/types/company_billing_entity_subscription_response_data.rb +17 -0
  598. data/lib/schematic/types/company_credit_balance.rb +2 -0
  599. data/lib/schematic/types/company_credit_balance_response_data.rb +5 -0
  600. data/lib/schematic/types/company_detail_response_data.rb +23 -0
  601. data/lib/schematic/types/company_event_period_metrics_response_data.rb +10 -0
  602. data/lib/schematic/types/company_feature_usage_export_metadata.rb +25 -0
  603. data/lib/schematic/types/company_ledger_response_data.rb +2 -0
  604. data/lib/schematic/types/company_membership_detail_response_data.rb +5 -0
  605. data/lib/schematic/types/company_membership_response_data.rb +4 -0
  606. data/lib/schematic/types/company_override_note_response_data.rb +5 -0
  607. data/lib/schematic/types/company_override_response_data.rb +19 -0
  608. data/lib/schematic/types/company_plan_credit_grant_view.rb +38 -0
  609. data/lib/schematic/types/company_plan_detail_response_data.rb +44 -0
  610. data/lib/schematic/types/company_plan_with_billing_sub_view.rb +10 -0
  611. data/lib/schematic/types/company_response_data.rb +6 -0
  612. data/lib/schematic/types/company_subscription_response_data.rb +15 -0
  613. data/lib/schematic/types/company_tax_id_view.rb +4 -0
  614. data/lib/schematic/types/compatible_plans.rb +1 -0
  615. data/lib/schematic/types/compatible_plans_response_data.rb +1 -0
  616. data/lib/schematic/types/component_capabilities.rb +1 -0
  617. data/lib/schematic/types/component_checkout_settings.rb +8 -0
  618. data/lib/schematic/types/component_display_settings.rb +5 -0
  619. data/lib/schematic/types/component_hydrate_response_data.rb +27 -1
  620. data/lib/schematic/types/component_preview_response_data.rb +28 -1
  621. data/lib/schematic/types/component_response_data.rb +7 -0
  622. data/lib/schematic/types/component_settings_response_data.rb +5 -0
  623. data/lib/schematic/types/condition.rb +14 -0
  624. data/lib/schematic/types/condition_group_response_data.rb +6 -0
  625. data/lib/schematic/types/condition_group_view.rb +7 -0
  626. data/lib/schematic/types/condition_response_data.rb +23 -0
  627. data/lib/schematic/types/condition_view.rb +30 -0
  628. data/lib/schematic/types/coupon_request_body.rb +7 -0
  629. data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +26 -0
  630. data/lib/schematic/types/create_billing_price_tier_request_body.rb +5 -0
  631. data/lib/schematic/types/create_custom_plan_bundle_plan_request_body.rb +4 -1
  632. data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +33 -0
  633. data/lib/schematic/types/create_entitlement_req_common.rb +8 -0
  634. data/lib/schematic/types/create_event_request_body.rb +5 -0
  635. data/lib/schematic/types/create_flag_request_body.rb +6 -0
  636. data/lib/schematic/types/create_or_update_condition_group_request_body.rb +2 -0
  637. data/lib/schematic/types/create_or_update_condition_request_body.rb +12 -0
  638. data/lib/schematic/types/create_or_update_flag_request_body.rb +7 -0
  639. data/lib/schematic/types/create_or_update_rule_request_body.rb +6 -0
  640. data/lib/schematic/types/create_plan_request_body.rb +4 -1
  641. data/lib/schematic/types/create_price_tier_request_body.rb +3 -0
  642. data/lib/schematic/types/credit_bundle_currency_price.rb +1 -0
  643. data/lib/schematic/types/credit_bundle_currency_price_request_body.rb +2 -0
  644. data/lib/schematic/types/credit_bundle_currency_price_response_data.rb +1 -0
  645. data/lib/schematic/types/credit_bundle_purchase_response_data.rb +2 -0
  646. data/lib/schematic/types/credit_company_grant_view.rb +38 -0
  647. data/lib/schematic/types/credit_currency_price.rb +1 -0
  648. data/lib/schematic/types/credit_currency_price_request_body.rb +2 -0
  649. data/lib/schematic/types/credit_currency_price_response_data.rb +1 -0
  650. data/lib/schematic/types/credit_event_ledger_response_data.rb +31 -0
  651. data/lib/schematic/types/credit_grant_detail.rb +3 -0
  652. data/lib/schematic/types/credit_grant_expiry_request_body.rb +5 -0
  653. data/lib/schematic/types/credit_lease_response_data.rb +7 -0
  654. data/lib/schematic/types/credit_transfer_response_data.rb +5 -0
  655. data/lib/schematic/types/credit_transfer_view.rb +5 -0
  656. data/lib/schematic/types/credit_usage.rb +8 -0
  657. data/lib/schematic/types/credit_usage_aggregation.rb +3 -0
  658. data/lib/schematic/types/credits_auto_topup_company_summary.rb +1 -0
  659. data/lib/schematic/types/credits_auto_topup_credit_summary.rb +1 -0
  660. data/lib/schematic/types/credits_auto_topup_hard_failure.rb +3 -0
  661. data/lib/schematic/types/credits_auto_topup_retry_failure.rb +4 -0
  662. data/lib/schematic/types/credits_auto_topup_success.rb +3 -0
  663. data/lib/schematic/types/credits_credit_purchase_success.rb +5 -0
  664. data/lib/schematic/types/credits_webhook_company_summary.rb +1 -0
  665. data/lib/schematic/types/credits_webhook_credit_summary.rb +1 -0
  666. data/lib/schematic/types/currency_price_request_body.rb +9 -0
  667. data/lib/schematic/types/custom_plan_billing_response_data.rb +16 -0
  668. data/lib/schematic/types/custom_plan_config.rb +2 -0
  669. data/lib/schematic/types/custom_plan_view_config_response_data.rb +2 -0
  670. data/lib/schematic/types/customer_billing_address.rb +5 -0
  671. data/lib/schematic/types/data_event_payload.rb +6 -0
  672. data/lib/schematic/types/data_export_metadata.rb +2 -0
  673. data/lib/schematic/types/data_export_response_data.rb +8 -0
  674. data/lib/schematic/types/datastream_company_plan.rb +3 -0
  675. data/lib/schematic/types/duplicate_plan_entitlements_response_response_data.rb +2 -0
  676. data/lib/schematic/types/entitlement_currency_prices_response_data.rb +3 -0
  677. data/lib/schematic/types/entitlements_in_plan.rb +1 -0
  678. data/lib/schematic/types/entity_key_definition_response_data.rb +4 -0
  679. data/lib/schematic/types/entity_key_detail_response_data.rb +9 -0
  680. data/lib/schematic/types/entity_key_response_data.rb +8 -0
  681. data/lib/schematic/types/entity_trait_definition_response_data.rb +6 -0
  682. data/lib/schematic/types/entity_trait_definition_usage.rb +19 -0
  683. data/lib/schematic/types/entity_trait_detail_response_data.rb +6 -0
  684. data/lib/schematic/types/entity_trait_response_data.rb +5 -0
  685. data/lib/schematic/types/entity_trait_value.rb +1 -0
  686. data/lib/schematic/types/environment_detail_response_data.rb +5 -0
  687. data/lib/schematic/types/environment_feature_usage_time_series_response_data.rb +2 -0
  688. data/lib/schematic/types/environment_response_data.rb +4 -0
  689. data/lib/schematic/types/environment_trait_usage_time_series_response_data.rb +2 -0
  690. data/lib/schematic/types/environment_usage_point_response_data.rb +1 -0
  691. data/lib/schematic/types/event_body.rb +3 -0
  692. data/lib/schematic/types/event_body_flag_check.rb +11 -0
  693. data/lib/schematic/types/event_body_identify.rb +3 -0
  694. data/lib/schematic/types/event_body_identify_company.rb +2 -0
  695. data/lib/schematic/types/event_body_inference.rb +13 -0
  696. data/lib/schematic/types/event_body_track.rb +5 -0
  697. data/lib/schematic/types/event_detail_response_data.rb +24 -0
  698. data/lib/schematic/types/event_export_metadata.rb +7 -0
  699. data/lib/schematic/types/event_response_data.rb +20 -0
  700. data/lib/schematic/types/event_summary_response_data.rb +5 -0
  701. data/lib/schematic/types/feature_company_response_data.rb +36 -0
  702. data/lib/schematic/types/feature_company_user_response_data.rb +12 -0
  703. data/lib/schematic/types/feature_detail_response_data.rb +21 -0
  704. data/lib/schematic/types/feature_entitlement.rb +18 -0
  705. data/lib/schematic/types/feature_in_plan_response_data.rb +19 -0
  706. data/lib/schematic/types/feature_ledger_response_data.rb +3 -0
  707. data/lib/schematic/types/feature_response_data.rb +14 -0
  708. data/lib/schematic/types/feature_usage_history_response_data.rb +19 -0
  709. data/lib/schematic/types/feature_usage_legacy_response_data.rb +5 -0
  710. data/lib/schematic/types/feature_usage_response_data.rb +34 -0
  711. data/lib/schematic/types/feature_usage_time_series_response_data.rb +4 -0
  712. data/lib/schematic/types/feature_view.rb +20 -0
  713. data/lib/schematic/types/flag_detail_response_data.rb +13 -0
  714. data/lib/schematic/types/flag_in_plan_response_data.rb +12 -0
  715. data/lib/schematic/types/flag_response_data.rb +9 -0
  716. data/lib/schematic/types/flag_view.rb +12 -0
  717. data/lib/schematic/types/generic_preview_object.rb +3 -0
  718. data/lib/schematic/types/get_onboarding_state_resp.rb +19 -0
  719. data/lib/schematic/types/insights_summary_response_data.rb +5 -0
  720. data/lib/schematic/types/install_integration_request_body.rb +5 -0
  721. data/lib/schematic/types/integration_capabilities.rb +2 -0
  722. data/lib/schematic/types/integration_config.rb +4 -0
  723. data/lib/schematic/types/integration_install_config.rb +9 -0
  724. data/lib/schematic/types/integration_install_response_data.rb +2 -0
  725. data/lib/schematic/types/integration_response_data.rb +4 -0
  726. data/lib/schematic/types/integration_webhook_url_response_data.rb +1 -0
  727. data/lib/schematic/types/integrations_list_response_data.rb +7 -0
  728. data/lib/schematic/types/integrations_response_data.rb +4 -0
  729. data/lib/schematic/types/invoice_request_body.rb +13 -0
  730. data/lib/schematic/types/invoice_response_data.rb +20 -0
  731. data/lib/schematic/types/issue_temporary_access_token_response_data.rb +7 -0
  732. data/lib/schematic/types/license_response_data.rb +3 -0
  733. data/lib/schematic/types/limit_time_series_point_response_data.rb +5 -0
  734. data/lib/schematic/types/manage_plan_request.rb +28 -0
  735. data/lib/schematic/types/manage_plan_response_response_data.rb +1 -0
  736. data/lib/schematic/types/meter_request_body.rb +2 -0
  737. data/lib/schematic/types/migration_proration_behavior.rb +13 -0
  738. data/lib/schematic/types/mrr_response_data.rb +1 -0
  739. data/lib/schematic/types/onboarding_milestone.rb +12 -0
  740. data/lib/schematic/types/onboarding_milestone_view.rb +15 -0
  741. data/lib/schematic/types/onboarding_path.rb +12 -0
  742. data/lib/schematic/types/onboarding_requirement.rb +16 -0
  743. data/lib/schematic/types/onboarding_requirement_status.rb +13 -0
  744. data/lib/schematic/types/onboarding_requirement_view.rb +17 -0
  745. data/lib/schematic/types/onboarding_track.rb +12 -0
  746. data/lib/schematic/types/ordered_plans_in_group.rb +1 -0
  747. data/lib/schematic/types/payment_method_request_body.rb +10 -0
  748. data/lib/schematic/types/payment_method_response_data.rb +17 -0
  749. data/lib/schematic/types/plan_billing_source.rb +12 -0
  750. data/lib/schematic/types/plan_bundle_credit_grant_request_body.rb +4 -0
  751. data/lib/schematic/types/plan_bundle_entitlement_request_body.rb +2 -0
  752. data/lib/schematic/types/plan_bundle_response_data.rb +5 -0
  753. data/lib/schematic/types/plan_catalog_membership_response_data.rb +1 -0
  754. data/lib/schematic/types/plan_change_response_data.rb +29 -0
  755. data/lib/schematic/types/plan_credit_grant_view.rb +35 -0
  756. data/lib/schematic/types/plan_currency_price_request_body.rb +4 -0
  757. data/lib/schematic/types/plan_currency_prices_response_data.rb +4 -0
  758. data/lib/schematic/types/plan_detail_response_data.rb +34 -0
  759. data/lib/schematic/types/plan_entitlement_response_data.rb +29 -0
  760. data/lib/schematic/types/plan_entitlements_order.rb +1 -0
  761. data/lib/schematic/types/plan_group_detail_response_data.rb +37 -0
  762. data/lib/schematic/types/plan_group_plan_detail_response_data.rb +38 -0
  763. data/lib/schematic/types/plan_group_plan_entitlements_order.rb +1 -0
  764. data/lib/schematic/types/plan_group_response_data.rb +27 -0
  765. data/lib/schematic/types/plan_growth_point_response_data.rb +3 -0
  766. data/lib/schematic/types/plan_issue_response_data.rb +3 -0
  767. data/lib/schematic/types/plan_response_data.rb +9 -0
  768. data/lib/schematic/types/plan_selection.rb +2 -0
  769. data/lib/schematic/types/plan_snapshot_view.rb +4 -0
  770. data/lib/schematic/types/plan_trait_response_data.rb +8 -0
  771. data/lib/schematic/types/plan_version_company_migration_response_data.rb +11 -0
  772. data/lib/schematic/types/plan_version_migration_preview_company_response_data.rb +7 -0
  773. data/lib/schematic/types/plan_version_migration_preview_response_data.rb +2 -0
  774. data/lib/schematic/types/plan_version_migration_response_data.rb +17 -0
  775. data/lib/schematic/types/plan_version_response_data.rb +10 -0
  776. data/lib/schematic/types/plan_version_snapshot_view.rb +2 -0
  777. data/lib/schematic/types/plan_view_public_response_data.rb +39 -0
  778. data/lib/schematic/types/preflight_event_usage_request_body.rb +11 -0
  779. data/lib/schematic/types/preflight_request_body.rb +13 -0
  780. data/lib/schematic/types/preview_object.rb +3 -0
  781. data/lib/schematic/types/preview_object_response_data.rb +3 -0
  782. data/lib/schematic/types/preview_subscription_change_response_data.rb +15 -0
  783. data/lib/schematic/types/preview_subscription_discount_response_data.rb +10 -0
  784. data/lib/schematic/types/preview_subscription_finance_response_data.rb +18 -0
  785. data/lib/schematic/types/preview_subscription_upcoming_invoice_line_items.rb +4 -0
  786. data/lib/schematic/types/public_plans_response_data.rb +8 -0
  787. data/lib/schematic/types/raw_event_response_data.rb +4 -0
  788. data/lib/schematic/types/rule.rb +9 -0
  789. data/lib/schematic/types/rule_condition_detail_response_data.rb +20 -0
  790. data/lib/schematic/types/rule_condition_group_detail_response_data.rb +6 -0
  791. data/lib/schematic/types/rule_condition_group_response_data.rb +5 -0
  792. data/lib/schematic/types/rule_condition_response_data.rb +17 -0
  793. data/lib/schematic/types/rule_detail_response_data.rb +10 -0
  794. data/lib/schematic/types/rule_response_data.rb +8 -0
  795. data/lib/schematic/types/rule_view.rb +11 -0
  796. data/lib/schematic/types/rules_detail_response_data.rb +1 -0
  797. data/lib/schematic/types/rules_engine_schema_version.rb +1 -1
  798. data/lib/schematic/types/rulesengine_check_flag_result.rb +14 -0
  799. data/lib/schematic/types/rulesengine_company.rb +13 -0
  800. data/lib/schematic/types/rulesengine_company_metric.rb +8 -0
  801. data/lib/schematic/types/rulesengine_condition.rb +14 -0
  802. data/lib/schematic/types/rulesengine_feature_entitlement.rb +18 -0
  803. data/lib/schematic/types/rulesengine_flag.rb +5 -0
  804. data/lib/schematic/types/rulesengine_rule.rb +9 -0
  805. data/lib/schematic/types/rulesengine_subscription.rb +2 -0
  806. data/lib/schematic/types/rulesengine_trait.rb +1 -0
  807. data/lib/schematic/types/rulesengine_trait_definition.rb +2 -0
  808. data/lib/schematic/types/rulesengine_user.rb +5 -0
  809. data/lib/schematic/types/rulesengine_warning_tier.rb +1 -0
  810. data/lib/schematic/types/scheduled_checkout_response_data.rb +13 -0
  811. data/lib/schematic/types/scheduled_downgrade_response_data.rb +10 -0
  812. data/lib/schematic/types/segment_status_resp.rb +2 -0
  813. data/lib/schematic/types/skipped_entitlement_response_data.rb +3 -0
  814. data/lib/schematic/types/stripe_embed_info.rb +3 -0
  815. data/lib/schematic/types/stripe_integration_config.rb +7 -0
  816. data/lib/schematic/types/subscription_trait_update.rb +6 -0
  817. data/lib/schematic/types/tax_id_input.rb +1 -0
  818. data/lib/schematic/types/temporary_access_token_response_data.rb +6 -0
  819. data/lib/schematic/types/test_webhook_response_data.rb +2 -0
  820. data/lib/schematic/types/top_feature_by_usage_response_data.rb +5 -0
  821. data/lib/schematic/types/trait_definition.rb +2 -0
  822. data/lib/schematic/types/upcoming_invoice_response_data.rb +47 -0
  823. data/lib/schematic/types/update_add_on_request_body.rb +1 -0
  824. data/lib/schematic/types/update_auto_topup_override_request_body.rb +3 -0
  825. data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +23 -0
  826. data/lib/schematic/types/update_credit_bundle_request_body.rb +1 -0
  827. data/lib/schematic/types/update_entitlement_req_common.rb +7 -0
  828. data/lib/schematic/types/update_pay_in_advance_request_body.rb +1 -0
  829. data/lib/schematic/types/update_plan_request_body.rb +2 -0
  830. data/lib/schematic/types/update_plan_trait_trait_request_body.rb +1 -0
  831. data/lib/schematic/types/update_rule_request_body.rb +4 -0
  832. data/lib/schematic/types/upsert_billing_product_request_body.rb +14 -0
  833. data/lib/schematic/types/upsert_company_request_body.rb +10 -0
  834. data/lib/schematic/types/upsert_trait_request_body.rb +4 -0
  835. data/lib/schematic/types/upsert_user_request_body.rb +11 -0
  836. data/lib/schematic/types/upsert_user_sub_request_body.rb +9 -0
  837. data/lib/schematic/types/usage_based_entitlement_request_body.rb +21 -0
  838. data/lib/schematic/types/usage_based_entitlement_response_data.rb +13 -0
  839. data/lib/schematic/types/usage_time_series_point_response_data.rb +3 -0
  840. data/lib/schematic/types/user_credit_usage_response_data.rb +5 -0
  841. data/lib/schematic/types/user_daily_credit_point_response_data.rb +1 -0
  842. data/lib/schematic/types/user_daily_usage_point_response_data.rb +2 -0
  843. data/lib/schematic/types/user_detail_response_data.rb +9 -0
  844. data/lib/schematic/types/user_feature_usage_response_data.rb +5 -0
  845. data/lib/schematic/types/user_response_data.rb +5 -0
  846. data/lib/schematic/types/user_usage_by_company_response_data.rb +3 -0
  847. data/lib/schematic/types/user_usage_detail_response_data.rb +6 -0
  848. data/lib/schematic/types/warning_tier.rb +1 -0
  849. data/lib/schematic/types/warning_tier_request_body.rb +1 -0
  850. data/lib/schematic/types/warning_tier_response_data.rb +2 -0
  851. data/lib/schematic/types/web_feature_usage_webhook_output.rb +6 -0
  852. data/lib/schematic/types/web_scheduled_downgrade_webhook_output.rb +6 -0
  853. data/lib/schematic/types/webhook_event_detail_response_data.rb +9 -0
  854. data/lib/schematic/types/webhook_event_response_data.rb +8 -0
  855. data/lib/schematic/types/webhook_response_data.rb +9 -0
  856. data/lib/schematic/types/webhook_url.rb +1 -0
  857. data/lib/schematic/types/who_am_i_response_data.rb +10 -0
  858. data/lib/schematic/types/work_os_integration_config.rb +1 -0
  859. data/lib/schematic/version.rb +1 -1
  860. data/lib/schematic/wasm/rulesengine.wasm +0 -0
  861. data/lib/schematic/webhooks/client.rb +59 -10
  862. data/lib/schematic/webhooks/types/count_webhook_events_params.rb +4 -0
  863. data/lib/schematic/webhooks/types/count_webhook_events_request.rb +4 -0
  864. data/lib/schematic/webhooks/types/count_webhook_events_response.rb +1 -0
  865. data/lib/schematic/webhooks/types/count_webhooks_params.rb +2 -0
  866. data/lib/schematic/webhooks/types/count_webhooks_request.rb +2 -0
  867. data/lib/schematic/webhooks/types/count_webhooks_response.rb +1 -0
  868. data/lib/schematic/webhooks/types/create_webhook_request_body.rb +4 -0
  869. data/lib/schematic/webhooks/types/create_webhook_response.rb +1 -0
  870. data/lib/schematic/webhooks/types/delete_webhook_response.rb +1 -0
  871. data/lib/schematic/webhooks/types/get_webhook_event_response.rb +1 -0
  872. data/lib/schematic/webhooks/types/get_webhook_response.rb +1 -0
  873. data/lib/schematic/webhooks/types/list_webhook_events_params.rb +4 -0
  874. data/lib/schematic/webhooks/types/list_webhook_events_request.rb +4 -0
  875. data/lib/schematic/webhooks/types/list_webhook_events_response.rb +1 -0
  876. data/lib/schematic/webhooks/types/list_webhooks_params.rb +2 -0
  877. data/lib/schematic/webhooks/types/list_webhooks_request.rb +2 -0
  878. data/lib/schematic/webhooks/types/list_webhooks_response.rb +1 -0
  879. data/lib/schematic/webhooks/types/send_test_webhook_action_response.rb +1 -0
  880. data/lib/schematic/webhooks/types/test_webhook_request_body.rb +1 -0
  881. data/lib/schematic/webhooks/types/update_webhook_request_body.rb +6 -0
  882. data/lib/schematic/webhooks/types/update_webhook_response.rb +1 -0
  883. data/lib/schematic.rb +29 -1
  884. data/reference.md +643 -130
  885. metadata +31 -2
@@ -22,16 +22,22 @@ module Schematic
22
22
  # @option params [Integer, nil] :limit
23
23
  # @option params [Integer, nil] :offset
24
24
  #
25
+ # @example
26
+ # client.billing.list_coupons(
27
+ # is_active: true,
28
+ # q: "q",
29
+ # limit: 1000000,
30
+ # offset: 1000000
31
+ # )
32
+ #
25
33
  # @return [Schematic::Billing::Types::ListCouponsResponse]
26
34
  def list_coupons(request_options: {}, **params)
27
35
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
28
- query_param_names = %i[is_active q limit offset]
29
36
  query_params = {}
30
37
  query_params["is_active"] = params[:is_active] if params.key?(:is_active)
31
38
  query_params["q"] = params[:q] if params.key?(:q)
32
39
  query_params["limit"] = params[:limit] if params.key?(:limit)
33
40
  query_params["offset"] = params[:offset] if params.key?(:offset)
34
- params.except(*query_param_names)
35
41
 
36
42
  request = Schematic::Internal::JSON::Request.new(
37
43
  base_url: request_options[:base_url],
@@ -62,6 +68,18 @@ module Schematic
62
68
  # @option request_options [Hash{String => Object}] :additional_body_parameters
63
69
  # @option request_options [Integer] :timeout_in_seconds
64
70
  #
71
+ # @example
72
+ # client.billing.upsert_billing_coupon(
73
+ # amount_off: 1000000,
74
+ # duration: "duration",
75
+ # duration_in_months: 1000000,
76
+ # external_id: "external_id",
77
+ # max_redemptions: 1000000,
78
+ # name: "name",
79
+ # percent_off: 1.1,
80
+ # times_redeemed: 1000000
81
+ # )
82
+ #
65
83
  # @return [Schematic::Billing::Types::UpsertBillingCouponResponse]
66
84
  def upsert_billing_coupon(request_options: {}, **params)
67
85
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -95,6 +113,9 @@ module Schematic
95
113
  # @option request_options [Integer] :timeout_in_seconds
96
114
  # @option params [String] :billing_id
97
115
  #
116
+ # @example
117
+ # client.billing.delete_billing_coupon(billing_id: "billing_id")
118
+ #
98
119
  # @return [Schematic::Billing::Types::DeleteBillingCouponResponse]
99
120
  def delete_billing_coupon(request_options: {}, **params)
100
121
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -127,6 +148,9 @@ module Schematic
127
148
  # @option request_options [Integer] :timeout_in_seconds
128
149
  # @option params [String] :billing_id
129
150
  #
151
+ # @example
152
+ # client.billing.delete_billing_customer(billing_id: "billing_id")
153
+ #
130
154
  # @return [Schematic::Billing::Types::DeleteBillingCustomerResponse]
131
155
  def delete_billing_customer(request_options: {}, **params)
132
156
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -158,6 +182,16 @@ module Schematic
158
182
  # @option request_options [Hash{String => Object}] :additional_body_parameters
159
183
  # @option request_options [Integer] :timeout_in_seconds
160
184
  #
185
+ # @example
186
+ # client.billing.upsert_billing_customer(
187
+ # email: "email",
188
+ # external_id: "external_id",
189
+ # meta: {
190
+ # key: "value"
191
+ # },
192
+ # name: "name"
193
+ # )
194
+ #
161
195
  # @return [Schematic::Billing::Types::UpsertBillingCustomerResponse]
162
196
  def upsert_billing_customer(request_options: {}, **params)
163
197
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -196,10 +230,19 @@ module Schematic
196
230
  # @option params [Integer, nil] :limit
197
231
  # @option params [Integer, nil] :offset
198
232
  #
233
+ # @example
234
+ # client.billing.list_customers_with_subscriptions(
235
+ # company_ids: ["company_ids"],
236
+ # name: "name",
237
+ # provider_type: "metronome",
238
+ # q: "q",
239
+ # limit: 1000000,
240
+ # offset: 1000000
241
+ # )
242
+ #
199
243
  # @return [Schematic::Billing::Types::ListCustomersWithSubscriptionsResponse]
200
244
  def list_customers_with_subscriptions(request_options: {}, **params)
201
245
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
202
- query_param_names = %i[company_ids name provider_type q limit offset]
203
246
  query_params = {}
204
247
  query_params["company_ids"] = params[:company_ids] if params.key?(:company_ids)
205
248
  query_params["name"] = params[:name] if params.key?(:name)
@@ -207,7 +250,6 @@ module Schematic
207
250
  query_params["q"] = params[:q] if params.key?(:q)
208
251
  query_params["limit"] = params[:limit] if params.key?(:limit)
209
252
  query_params["offset"] = params[:offset] if params.key?(:offset)
210
- params.except(*query_param_names)
211
253
 
212
254
  request = Schematic::Internal::JSON::Request.new(
213
255
  base_url: request_options[:base_url],
@@ -244,10 +286,19 @@ module Schematic
244
286
  # @option params [Integer, nil] :limit
245
287
  # @option params [Integer, nil] :offset
246
288
  #
289
+ # @example
290
+ # client.billing.count_customers(
291
+ # company_ids: ["company_ids"],
292
+ # name: "name",
293
+ # provider_type: "metronome",
294
+ # q: "q",
295
+ # limit: 1000000,
296
+ # offset: 1000000
297
+ # )
298
+ #
247
299
  # @return [Schematic::Billing::Types::CountCustomersResponse]
248
300
  def count_customers(request_options: {}, **params)
249
301
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
250
- query_param_names = %i[company_ids name provider_type q limit offset]
251
302
  query_params = {}
252
303
  query_params["company_ids"] = params[:company_ids] if params.key?(:company_ids)
253
304
  query_params["name"] = params[:name] if params.key?(:name)
@@ -255,7 +306,6 @@ module Schematic
255
306
  query_params["q"] = params[:q] if params.key?(:q)
256
307
  query_params["limit"] = params[:limit] if params.key?(:limit)
257
308
  query_params["offset"] = params[:offset] if params.key?(:offset)
258
- params.except(*query_param_names)
259
309
 
260
310
  request = Schematic::Internal::JSON::Request.new(
261
311
  base_url: request_options[:base_url],
@@ -291,17 +341,24 @@ module Schematic
291
341
  # @option params [Integer, nil] :limit
292
342
  # @option params [Integer, nil] :offset
293
343
  #
344
+ # @example
345
+ # client.billing.list_invoices(
346
+ # company_id: "company_id",
347
+ # customer_external_id: "customer_external_id",
348
+ # subscription_external_id: "subscription_external_id",
349
+ # limit: 1000000,
350
+ # offset: 1000000
351
+ # )
352
+ #
294
353
  # @return [Schematic::Billing::Types::ListInvoicesResponse]
295
354
  def list_invoices(request_options: {}, **params)
296
355
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
297
- query_param_names = %i[company_id customer_external_id subscription_external_id limit offset]
298
356
  query_params = {}
299
357
  query_params["company_id"] = params[:company_id] if params.key?(:company_id)
300
358
  query_params["customer_external_id"] = params[:customer_external_id] if params.key?(:customer_external_id)
301
359
  query_params["subscription_external_id"] = params[:subscription_external_id] if params.key?(:subscription_external_id)
302
360
  query_params["limit"] = params[:limit] if params.key?(:limit)
303
361
  query_params["offset"] = params[:offset] if params.key?(:offset)
304
- params.except(*query_param_names)
305
362
 
306
363
  request = Schematic::Internal::JSON::Request.new(
307
364
  base_url: request_options[:base_url],
@@ -332,6 +389,17 @@ module Schematic
332
389
  # @option request_options [Hash{String => Object}] :additional_body_parameters
333
390
  # @option request_options [Integer] :timeout_in_seconds
334
391
  #
392
+ # @example
393
+ # client.billing.upsert_invoice(
394
+ # amount_due: 1000000,
395
+ # amount_paid: 1000000,
396
+ # amount_remaining: 1000000,
397
+ # collection_method: "collection_method",
398
+ # currency: "currency",
399
+ # customer_external_id: "customer_external_id",
400
+ # subtotal: 1000000
401
+ # )
402
+ #
335
403
  # @return [Schematic::Billing::Types::UpsertInvoiceResponse]
336
404
  def upsert_invoice(request_options: {}, **params)
337
405
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -365,6 +433,9 @@ module Schematic
365
433
  # @option request_options [Integer] :timeout_in_seconds
366
434
  # @option params [String] :billing_id
367
435
  #
436
+ # @example
437
+ # client.billing.delete_billing_invoice(billing_id: "billing_id")
438
+ #
368
439
  # @return [Schematic::Billing::Types::DeleteBillingInvoiceResponse]
369
440
  def delete_billing_invoice(request_options: {}, **params)
370
441
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -399,15 +470,20 @@ module Schematic
399
470
  # @option params [Integer, nil] :limit
400
471
  # @option params [Integer, nil] :offset
401
472
  #
473
+ # @example
474
+ # client.billing.list_meters(
475
+ # display_name: "display_name",
476
+ # limit: 1000000,
477
+ # offset: 1000000
478
+ # )
479
+ #
402
480
  # @return [Schematic::Billing::Types::ListMetersResponse]
403
481
  def list_meters(request_options: {}, **params)
404
482
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
405
- query_param_names = %i[display_name limit offset]
406
483
  query_params = {}
407
484
  query_params["display_name"] = params[:display_name] if params.key?(:display_name)
408
485
  query_params["limit"] = params[:limit] if params.key?(:limit)
409
486
  query_params["offset"] = params[:offset] if params.key?(:offset)
410
- params.except(*query_param_names)
411
487
 
412
488
  request = Schematic::Internal::JSON::Request.new(
413
489
  base_url: request_options[:base_url],
@@ -438,6 +514,14 @@ module Schematic
438
514
  # @option request_options [Hash{String => Object}] :additional_body_parameters
439
515
  # @option request_options [Integer] :timeout_in_seconds
440
516
  #
517
+ # @example
518
+ # client.billing.upsert_billing_meter(
519
+ # display_name: "display_name",
520
+ # event_name: "event_name",
521
+ # event_payload_key: "event_payload_key",
522
+ # external_id: "external_id"
523
+ # )
524
+ #
441
525
  # @return [Schematic::Billing::Types::UpsertBillingMeterResponse]
442
526
  def upsert_billing_meter(request_options: {}, **params)
443
527
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -474,16 +558,22 @@ module Schematic
474
558
  # @option params [Integer, nil] :limit
475
559
  # @option params [Integer, nil] :offset
476
560
  #
561
+ # @example
562
+ # client.billing.list_payment_methods(
563
+ # company_id: "company_id",
564
+ # customer_external_id: "customer_external_id",
565
+ # limit: 1000000,
566
+ # offset: 1000000
567
+ # )
568
+ #
477
569
  # @return [Schematic::Billing::Types::ListPaymentMethodsResponse]
478
570
  def list_payment_methods(request_options: {}, **params)
479
571
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
480
- query_param_names = %i[company_id customer_external_id limit offset]
481
572
  query_params = {}
482
573
  query_params["company_id"] = params[:company_id] if params.key?(:company_id)
483
574
  query_params["customer_external_id"] = params[:customer_external_id] if params.key?(:customer_external_id)
484
575
  query_params["limit"] = params[:limit] if params.key?(:limit)
485
576
  query_params["offset"] = params[:offset] if params.key?(:offset)
486
- params.except(*query_param_names)
487
577
 
488
578
  request = Schematic::Internal::JSON::Request.new(
489
579
  base_url: request_options[:base_url],
@@ -514,6 +604,13 @@ module Schematic
514
604
  # @option request_options [Hash{String => Object}] :additional_body_parameters
515
605
  # @option request_options [Integer] :timeout_in_seconds
516
606
  #
607
+ # @example
608
+ # client.billing.upsert_payment_method(
609
+ # customer_external_id: "customer_external_id",
610
+ # external_id: "external_id",
611
+ # payment_method_type: "payment_method_type"
612
+ # )
613
+ #
517
614
  # @return [Schematic::Billing::Types::UpsertPaymentMethodResponse]
518
615
  def upsert_payment_method(request_options: {}, **params)
519
616
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -547,6 +644,9 @@ module Schematic
547
644
  # @option request_options [Integer] :timeout_in_seconds
548
645
  # @option params [String] :billing_id
549
646
  #
647
+ # @example
648
+ # client.billing.delete_payment_method_by_external_id(billing_id: "billing_id")
649
+ #
550
650
  # @return [Schematic::Billing::Types::DeletePaymentMethodByExternalIdResponse]
551
651
  def delete_payment_method_by_external_id(request_options: {}, **params)
552
652
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -596,10 +696,31 @@ module Schematic
596
696
  # @option params [Integer, nil] :limit
597
697
  # @option params [Integer, nil] :offset
598
698
  #
699
+ # @example
700
+ # client.billing.list_billing_prices(
701
+ # currency: "currency",
702
+ # for_initial_plan: true,
703
+ # for_trial_expiry_plan: true,
704
+ # ids: ["ids"],
705
+ # interval: "interval",
706
+ # interval_count: 1000000,
707
+ # is_active: true,
708
+ # plan_version_id: "plan_version_id",
709
+ # price: 1000000,
710
+ # product_id: "product_id",
711
+ # product_ids: ["product_ids"],
712
+ # provider_type: "metronome",
713
+ # q: "q",
714
+ # tiers_mode: "graduated",
715
+ # usage_type: "licensed",
716
+ # with_meter: true,
717
+ # limit: 1000000,
718
+ # offset: 1000000
719
+ # )
720
+ #
599
721
  # @return [Schematic::Billing::Types::ListBillingPricesResponse]
600
722
  def list_billing_prices(request_options: {}, **params)
601
723
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
602
- query_param_names = %i[currency for_initial_plan for_trial_expiry_plan ids interval interval_count is_active plan_version_id price product_id product_ids provider_type q tiers_mode usage_type with_meter limit offset]
603
724
  query_params = {}
604
725
  query_params["currency"] = params[:currency] if params.key?(:currency)
605
726
  query_params["for_initial_plan"] = params[:for_initial_plan] if params.key?(:for_initial_plan)
@@ -619,7 +740,6 @@ module Schematic
619
740
  query_params["with_meter"] = params[:with_meter] if params.key?(:with_meter)
620
741
  query_params["limit"] = params[:limit] if params.key?(:limit)
621
742
  query_params["offset"] = params[:offset] if params.key?(:offset)
622
- params.except(*query_param_names)
623
743
 
624
744
  request = Schematic::Internal::JSON::Request.new(
625
745
  base_url: request_options[:base_url],
@@ -650,6 +770,22 @@ module Schematic
650
770
  # @option request_options [Hash{String => Object}] :additional_body_parameters
651
771
  # @option request_options [Integer] :timeout_in_seconds
652
772
  #
773
+ # @example
774
+ # client.billing.upsert_billing_price(
775
+ # billing_scheme: "per_unit",
776
+ # currency: "currency",
777
+ # external_account_id: "external_account_id",
778
+ # interval: "interval",
779
+ # is_active: true,
780
+ # price: 1000000,
781
+ # price_external_id: "price_external_id",
782
+ # price_tiers: [{
783
+ # price_external_id: "price_external_id"
784
+ # }],
785
+ # product_external_id: "product_external_id",
786
+ # usage_type: "licensed"
787
+ # )
788
+ #
653
789
  # @return [Schematic::Billing::Types::UpsertBillingPriceResponse]
654
790
  def upsert_billing_price(request_options: {}, **params)
655
791
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -683,6 +819,9 @@ module Schematic
683
819
  # @option request_options [Integer] :timeout_in_seconds
684
820
  # @option params [String] :billing_id
685
821
  #
822
+ # @example
823
+ # client.billing.delete_billing_product(billing_id: "billing_id")
824
+ #
686
825
  # @return [Schematic::Billing::Types::DeleteBillingProductResponse]
687
826
  def delete_billing_product(request_options: {}, **params)
688
827
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -732,10 +871,31 @@ module Schematic
732
871
  # @option params [Integer, nil] :limit
733
872
  # @option params [Integer, nil] :offset
734
873
  #
874
+ # @example
875
+ # client.billing.list_billing_product_prices(
876
+ # currency: "currency",
877
+ # for_initial_plan: true,
878
+ # for_trial_expiry_plan: true,
879
+ # ids: ["ids"],
880
+ # interval: "interval",
881
+ # interval_count: 1000000,
882
+ # is_active: true,
883
+ # plan_version_id: "plan_version_id",
884
+ # price: 1000000,
885
+ # product_id: "product_id",
886
+ # product_ids: ["product_ids"],
887
+ # provider_type: "metronome",
888
+ # q: "q",
889
+ # tiers_mode: "graduated",
890
+ # usage_type: "licensed",
891
+ # with_meter: true,
892
+ # limit: 1000000,
893
+ # offset: 1000000
894
+ # )
895
+ #
735
896
  # @return [Schematic::Billing::Types::ListBillingProductPricesResponse]
736
897
  def list_billing_product_prices(request_options: {}, **params)
737
898
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
738
- query_param_names = %i[currency for_initial_plan for_trial_expiry_plan ids interval interval_count is_active plan_version_id price product_id product_ids provider_type q tiers_mode usage_type with_meter limit offset]
739
899
  query_params = {}
740
900
  query_params["currency"] = params[:currency] if params.key?(:currency)
741
901
  query_params["for_initial_plan"] = params[:for_initial_plan] if params.key?(:for_initial_plan)
@@ -755,7 +915,6 @@ module Schematic
755
915
  query_params["with_meter"] = params[:with_meter] if params.key?(:with_meter)
756
916
  query_params["limit"] = params[:limit] if params.key?(:limit)
757
917
  query_params["offset"] = params[:offset] if params.key?(:offset)
758
- params.except(*query_param_names)
759
918
 
760
919
  request = Schematic::Internal::JSON::Request.new(
761
920
  base_url: request_options[:base_url],
@@ -787,6 +946,9 @@ module Schematic
787
946
  # @option request_options [Integer] :timeout_in_seconds
788
947
  # @option params [String] :billing_id
789
948
  #
949
+ # @example
950
+ # client.billing.delete_product_price(billing_id: "billing_id")
951
+ #
790
952
  # @return [Schematic::Billing::Types::DeleteProductPriceResponse]
791
953
  def delete_product_price(request_options: {}, **params)
792
954
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -818,6 +980,12 @@ module Schematic
818
980
  # @option request_options [Hash{String => Object}] :additional_body_parameters
819
981
  # @option request_options [Integer] :timeout_in_seconds
820
982
  #
983
+ # @example
984
+ # client.billing.upsert_billing_product(
985
+ # external_id: "external_id",
986
+ # price: 1.1
987
+ # )
988
+ #
821
989
  # @return [Schematic::Billing::Types::UpsertBillingProductResponse]
822
990
  def upsert_billing_product(request_options: {}, **params)
823
991
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -863,10 +1031,26 @@ module Schematic
863
1031
  # @option params [Integer, nil] :limit
864
1032
  # @option params [Integer, nil] :offset
865
1033
  #
1034
+ # @example
1035
+ # client.billing.list_billing_products(
1036
+ # ids: ["ids"],
1037
+ # is_active: true,
1038
+ # name: "name",
1039
+ # price_usage_type: "licensed",
1040
+ # provider_type: "metronome",
1041
+ # q: "q",
1042
+ # recurring_charges_only: true,
1043
+ # with_one_time_charges: true,
1044
+ # with_prices_only: true,
1045
+ # with_zero_price: true,
1046
+ # without_linked_to_plan: true,
1047
+ # limit: 1000000,
1048
+ # offset: 1000000
1049
+ # )
1050
+ #
866
1051
  # @return [Schematic::Billing::Types::ListBillingProductsResponse]
867
1052
  def list_billing_products(request_options: {}, **params)
868
1053
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
869
- query_param_names = %i[ids is_active name price_usage_type provider_type q recurring_charges_only with_one_time_charges with_prices_only with_zero_price without_linked_to_plan limit offset]
870
1054
  query_params = {}
871
1055
  query_params["ids"] = params[:ids] if params.key?(:ids)
872
1056
  query_params["is_active"] = params[:is_active] if params.key?(:is_active)
@@ -881,7 +1065,6 @@ module Schematic
881
1065
  query_params["without_linked_to_plan"] = params[:without_linked_to_plan] if params.key?(:without_linked_to_plan)
882
1066
  query_params["limit"] = params[:limit] if params.key?(:limit)
883
1067
  query_params["offset"] = params[:offset] if params.key?(:offset)
884
- params.except(*query_param_names)
885
1068
 
886
1069
  request = Schematic::Internal::JSON::Request.new(
887
1070
  base_url: request_options[:base_url],
@@ -925,10 +1108,26 @@ module Schematic
925
1108
  # @option params [Integer, nil] :limit
926
1109
  # @option params [Integer, nil] :offset
927
1110
  #
1111
+ # @example
1112
+ # client.billing.count_billing_products(
1113
+ # ids: ["ids"],
1114
+ # is_active: true,
1115
+ # name: "name",
1116
+ # price_usage_type: "licensed",
1117
+ # provider_type: "metronome",
1118
+ # q: "q",
1119
+ # recurring_charges_only: true,
1120
+ # with_one_time_charges: true,
1121
+ # with_prices_only: true,
1122
+ # with_zero_price: true,
1123
+ # without_linked_to_plan: true,
1124
+ # limit: 1000000,
1125
+ # offset: 1000000
1126
+ # )
1127
+ #
928
1128
  # @return [Schematic::Billing::Types::CountBillingProductsResponse]
929
1129
  def count_billing_products(request_options: {}, **params)
930
1130
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
931
- query_param_names = %i[ids is_active name price_usage_type provider_type q recurring_charges_only with_one_time_charges with_prices_only with_zero_price without_linked_to_plan limit offset]
932
1131
  query_params = {}
933
1132
  query_params["ids"] = params[:ids] if params.key?(:ids)
934
1133
  query_params["is_active"] = params[:is_active] if params.key?(:is_active)
@@ -943,7 +1142,6 @@ module Schematic
943
1142
  query_params["without_linked_to_plan"] = params[:without_linked_to_plan] if params.key?(:without_linked_to_plan)
944
1143
  query_params["limit"] = params[:limit] if params.key?(:limit)
945
1144
  query_params["offset"] = params[:offset] if params.key?(:offset)
946
- params.except(*query_param_names)
947
1145
 
948
1146
  request = Schematic::Internal::JSON::Request.new(
949
1147
  base_url: request_options[:base_url],
@@ -974,6 +1172,31 @@ module Schematic
974
1172
  # @option request_options [Hash{String => Object}] :additional_body_parameters
975
1173
  # @option request_options [Integer] :timeout_in_seconds
976
1174
  #
1175
+ # @example
1176
+ # client.billing.upsert_billing_subscription(
1177
+ # cancel_at_period_end: true,
1178
+ # currency: "currency",
1179
+ # customer_external_id: "customer_external_id",
1180
+ # discounts: [{
1181
+ # coupon_external_id: "coupon_external_id",
1182
+ # external_id: "external_id",
1183
+ # is_active: true,
1184
+ # started_at: "2024-01-15T09:30:00Z"
1185
+ # }],
1186
+ # expired_at: "2024-01-15T09:30:00Z",
1187
+ # product_external_ids: [{
1188
+ # currency: "currency",
1189
+ # interval: "interval",
1190
+ # price: 1000000,
1191
+ # price_external_id: "price_external_id",
1192
+ # product_external_id: "product_external_id",
1193
+ # quantity: 1000000,
1194
+ # usage_type: "licensed"
1195
+ # }],
1196
+ # subscription_external_id: "subscription_external_id",
1197
+ # total_price: 1000000
1198
+ # )
1199
+ #
977
1200
  # @return [Schematic::Billing::Types::UpsertBillingSubscriptionResponse]
978
1201
  def upsert_billing_subscription(request_options: {}, **params)
979
1202
  params = Schematic::Internal::Types::Utils.normalize_keys(params)
@@ -6,17 +6,29 @@ module Schematic
6
6
  # Input parameters
7
7
  class CountBillingProductsParams < Internal::Types::Model
8
8
  field :ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
9
+
9
10
  field :is_active, -> { Internal::Types::Boolean }, optional: true, nullable: false
11
+
10
12
  field :limit, -> { Integer }, optional: true, nullable: false
13
+
11
14
  field :name, -> { String }, optional: true, nullable: false
15
+
12
16
  field :offset, -> { Integer }, optional: true, nullable: false
17
+
13
18
  field :price_usage_type, -> { Schematic::Types::BillingPriceUsageType }, optional: true, nullable: false
19
+
14
20
  field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
21
+
15
22
  field :q, -> { String }, optional: true, nullable: false
23
+
16
24
  field :recurring_charges_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
25
+
17
26
  field :with_one_time_charges, -> { Internal::Types::Boolean }, optional: true, nullable: false
27
+
18
28
  field :with_prices_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
29
+
19
30
  field :with_zero_price, -> { Internal::Types::Boolean }, optional: true, nullable: false
31
+
20
32
  field :without_linked_to_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
21
33
  end
22
34
  end
@@ -5,17 +5,29 @@ module Schematic
5
5
  module Types
6
6
  class CountBillingProductsRequest < Internal::Types::Model
7
7
  field :ids, -> { String }, optional: true, nullable: false
8
+
8
9
  field :is_active, -> { Internal::Types::Boolean }, optional: true, nullable: false
10
+
9
11
  field :name, -> { String }, optional: true, nullable: false
12
+
10
13
  field :price_usage_type, -> { Schematic::Types::BillingPriceUsageType }, optional: true, nullable: false
14
+
11
15
  field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
16
+
12
17
  field :q, -> { String }, optional: true, nullable: false
18
+
13
19
  field :recurring_charges_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
20
+
14
21
  field :with_one_time_charges, -> { Internal::Types::Boolean }, optional: true, nullable: false
22
+
15
23
  field :with_prices_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
24
+
16
25
  field :with_zero_price, -> { Internal::Types::Boolean }, optional: true, nullable: false
26
+
17
27
  field :without_linked_to_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
28
+
18
29
  field :limit, -> { Integer }, optional: true, nullable: false
30
+
19
31
  field :offset, -> { Integer }, optional: true, nullable: false
20
32
  end
21
33
  end
@@ -5,6 +5,7 @@ module Schematic
5
5
  module Types
6
6
  class CountBillingProductsResponse < Internal::Types::Model
7
7
  field :data, -> { Schematic::Types::CountResponse }, optional: false, nullable: false
8
+
8
9
  field :params, -> { Schematic::Billing::Types::CountBillingProductsParams }, optional: false, nullable: false
9
10
  end
10
11
  end
@@ -6,10 +6,15 @@ module Schematic
6
6
  # Input parameters
7
7
  class CountCustomersParams < Internal::Types::Model
8
8
  field :company_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
9
+
9
10
  field :limit, -> { Integer }, optional: true, nullable: false
11
+
10
12
  field :name, -> { String }, optional: true, nullable: false
13
+
11
14
  field :offset, -> { Integer }, optional: true, nullable: false
15
+
12
16
  field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
17
+
13
18
  field :q, -> { String }, optional: true, nullable: false
14
19
  end
15
20
  end
@@ -5,10 +5,15 @@ module Schematic
5
5
  module Types
6
6
  class CountCustomersRequest < Internal::Types::Model
7
7
  field :company_ids, -> { String }, optional: true, nullable: false
8
+
8
9
  field :name, -> { String }, optional: true, nullable: false
10
+
9
11
  field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
12
+
10
13
  field :q, -> { String }, optional: true, nullable: false
14
+
11
15
  field :limit, -> { Integer }, optional: true, nullable: false
16
+
12
17
  field :offset, -> { Integer }, optional: true, nullable: false
13
18
  end
14
19
  end
@@ -5,6 +5,7 @@ module Schematic
5
5
  module Types
6
6
  class CountCustomersResponse < Internal::Types::Model
7
7
  field :data, -> { Schematic::Types::CountResponse }, optional: false, nullable: false
8
+
8
9
  field :params, -> { Schematic::Billing::Types::CountCustomersParams }, optional: false, nullable: false
9
10
  end
10
11
  end
@@ -5,11 +5,17 @@ module Schematic
5
5
  module Types
6
6
  class CreateBillingCustomerRequestBody < Internal::Types::Model
7
7
  field :company_id, -> { String }, optional: true, nullable: false
8
+
8
9
  field :default_payment_method_id, -> { String }, optional: true, nullable: false
10
+
9
11
  field :email, -> { String }, optional: false, nullable: false
12
+
10
13
  field :external_id, -> { String }, optional: false, nullable: false
14
+
11
15
  field :meta, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: false
16
+
12
17
  field :name, -> { String }, optional: false, nullable: false
18
+
13
19
  field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
14
20
  end
15
21
  end
@@ -5,21 +5,37 @@ module Schematic
5
5
  module Types
6
6
  class CreateBillingPriceRequestBody < Internal::Types::Model
7
7
  field :billing_scheme, -> { Schematic::Types::BillingPriceScheme }, optional: false, nullable: false
8
+
8
9
  field :currency, -> { String }, optional: false, nullable: false
10
+
9
11
  field :external_account_id, -> { String }, optional: false, nullable: false
12
+
10
13
  field :interval, -> { String }, optional: false, nullable: false
14
+
11
15
  field :interval_count, -> { Integer }, optional: true, nullable: false
16
+
12
17
  field :is_active, -> { Internal::Types::Boolean }, optional: false, nullable: false
18
+
13
19
  field :meter_id, -> { String }, optional: true, nullable: false
20
+
14
21
  field :nickname, -> { String }, optional: true, nullable: false
22
+
15
23
  field :package_size, -> { Integer }, optional: true, nullable: false
24
+
16
25
  field :price, -> { Integer }, optional: false, nullable: false
26
+
17
27
  field :price_decimal, -> { String }, optional: true, nullable: false
28
+
18
29
  field :price_external_id, -> { String }, optional: false, nullable: false
30
+
19
31
  field :price_tiers, -> { Internal::Types::Array[Schematic::Types::CreateBillingPriceTierRequestBody] }, optional: false, nullable: false
32
+
20
33
  field :product_external_id, -> { String }, optional: false, nullable: false
34
+
21
35
  field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
36
+
22
37
  field :tiers_mode, -> { Schematic::Types::BillingTiersMode }, optional: true, nullable: false
38
+
23
39
  field :usage_type, -> { Schematic::Types::BillingPriceUsageType }, optional: false, nullable: false
24
40
  end
25
41
  end