schematichq 1.4.0 → 1.4.2

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 (279) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +4 -4
  3. data/.fern/replay.lock +10 -0
  4. data/.fernignore +3 -0
  5. data/README.md +1 -1
  6. data/lib/schematic/accounts/client.rb +76 -0
  7. data/lib/schematic/accounts/types/get_account_member_response.rb +12 -0
  8. data/lib/schematic/accounts/types/list_account_members_params.rb +15 -0
  9. data/lib/schematic/accounts/types/list_account_members_request.rb +14 -0
  10. data/lib/schematic/accounts/types/list_account_members_response.rb +12 -0
  11. data/lib/schematic/billing/client.rb +6 -2
  12. data/lib/schematic/billing/types/count_billing_products_params.rb +1 -0
  13. data/lib/schematic/billing/types/count_billing_products_request.rb +1 -0
  14. data/lib/schematic/billing/types/create_billing_price_request_body.rb +2 -0
  15. data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +1 -0
  16. data/lib/schematic/billing/types/create_meter_request_body.rb +1 -0
  17. data/lib/schematic/billing/types/list_billing_products_params.rb +1 -0
  18. data/lib/schematic/billing/types/list_billing_products_request.rb +1 -0
  19. data/lib/schematic/cache.rb +7 -4
  20. data/lib/schematic/client.rb +14 -4
  21. data/lib/schematic/companies/client.rb +8 -105
  22. data/lib/schematic/companies/types/count_companies_params.rb +1 -0
  23. data/lib/schematic/companies/types/count_companies_request.rb +1 -0
  24. data/lib/schematic/companies/types/list_companies_params.rb +1 -0
  25. data/lib/schematic/companies/types/list_companies_request.rb +1 -0
  26. data/lib/schematic/companies/types/list_plan_changes_params.rb +2 -2
  27. data/lib/schematic/companies/types/list_plan_changes_request.rb +2 -2
  28. data/lib/schematic/credits/client.rb +44 -2
  29. data/lib/schematic/credits/types/count_billing_plan_credit_grants_params.rb +1 -0
  30. data/lib/schematic/credits/types/count_billing_plan_credit_grants_request.rb +1 -0
  31. data/lib/schematic/credits/types/list_billing_plan_credit_grants_params.rb +1 -0
  32. data/lib/schematic/credits/types/list_billing_plan_credit_grants_request.rb +1 -0
  33. data/lib/schematic/credits/types/list_company_credit_balances_params.rb +12 -0
  34. data/lib/schematic/credits/types/list_company_credit_balances_request.rb +11 -0
  35. data/lib/schematic/credits/types/list_company_credit_balances_response.rb +12 -0
  36. data/lib/schematic/datastream/client.rb +28 -21
  37. data/lib/schematic/datastream/websocket_client.rb +32 -1
  38. data/lib/schematic/entitlements/client.rb +38 -2
  39. data/lib/schematic/entitlements/types/count_feature_usage_params.rb +1 -0
  40. data/lib/schematic/entitlements/types/count_feature_usage_request.rb +1 -0
  41. data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +44 -0
  42. data/lib/schematic/entitlements/types/create_company_override_request_body.rb +2 -2
  43. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +6 -2
  44. data/lib/schematic/entitlements/types/list_feature_usage_params.rb +1 -0
  45. data/lib/schematic/entitlements/types/list_feature_usage_request.rb +1 -0
  46. data/lib/schematic/entitlements/types/update_company_override_request_body.rb +2 -2
  47. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +6 -2
  48. data/lib/schematic/entitlements/types/upsert_plan_entitlement_for_billing_product_response.rb +12 -0
  49. data/lib/schematic/event_buffer.rb +10 -2
  50. data/lib/schematic/events/client.rb +3 -1
  51. data/lib/schematic/events/types/list_events_params.rb +1 -0
  52. data/lib/schematic/events/types/list_events_request.rb +1 -0
  53. data/lib/schematic/features/client.rb +50 -14
  54. data/lib/schematic/features/types/count_features_params.rb +1 -0
  55. data/lib/schematic/features/types/count_features_request.rb +4 -3
  56. data/lib/schematic/features/types/create_billing_linked_feature_request_body.rb +23 -0
  57. data/lib/schematic/features/types/create_feature_request_body.rb +1 -1
  58. data/lib/schematic/features/types/list_features_params.rb +1 -0
  59. data/lib/schematic/features/types/list_features_request.rb +4 -3
  60. data/lib/schematic/features/types/update_feature_request_body.rb +1 -1
  61. data/lib/schematic/features/types/upsert_feature_for_billing_product_response.rb +12 -0
  62. data/lib/schematic/insights/client.rb +251 -0
  63. data/lib/schematic/insights/types/get_activity_params.rb +12 -0
  64. data/lib/schematic/insights/types/get_activity_request.rb +11 -0
  65. data/lib/schematic/insights/types/get_activity_response.rb +12 -0
  66. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_params.rb +15 -0
  67. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_request.rb +14 -0
  68. data/lib/schematic/insights/types/get_environment_feature_usage_time_series_response.rb +12 -0
  69. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_params.rb +15 -0
  70. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_request.rb +14 -0
  71. data/lib/schematic/insights/types/get_environment_trait_usage_time_series_response.rb +12 -0
  72. data/lib/schematic/insights/types/get_plan_growth_params.rb +12 -0
  73. data/lib/schematic/insights/types/get_plan_growth_request.rb +11 -0
  74. data/lib/schematic/insights/types/get_plan_growth_response.rb +12 -0
  75. data/lib/schematic/{companies/types/create_plan_trait_response.rb → insights/types/get_summary_response.rb} +3 -3
  76. data/lib/schematic/insights/types/get_top_features_by_usage_params.rb +14 -0
  77. data/lib/schematic/insights/types/get_top_features_by_usage_request.rb +13 -0
  78. data/lib/schematic/insights/types/get_top_features_by_usage_response.rb +12 -0
  79. data/lib/schematic/integrationsapi/client.rb +223 -0
  80. data/lib/schematic/integrationsapi/types/get_integration_webhook_url_response.rb +12 -0
  81. data/lib/schematic/integrationsapi/types/list_integrations_params.rb +18 -0
  82. data/lib/schematic/integrationsapi/types/list_integrations_request.rb +17 -0
  83. data/lib/schematic/integrationsapi/types/list_integrations_response.rb +12 -0
  84. data/lib/schematic/integrationsapi/types/load_sample_data_set_v_2_response.rb +12 -0
  85. data/lib/schematic/integrationsapi/types/run_integration_response.rb +12 -0
  86. data/lib/schematic/integrationsapi/types/start_data_import_request_body.rb +13 -0
  87. data/lib/schematic/integrationsapi/types/start_data_import_response.rb +12 -0
  88. data/lib/schematic/{companies/types/delete_plan_trait_response.rb → integrationsapi/types/uninstall_integration_response.rb} +2 -2
  89. data/lib/schematic/planbundle/client.rb +32 -0
  90. data/lib/schematic/planbundle/types/create_custom_plan_bundle_request_body.rb +13 -0
  91. data/lib/schematic/planbundle/types/create_custom_plan_bundle_response.rb +12 -0
  92. data/lib/schematic/plans/client.rb +251 -2
  93. data/lib/schematic/plans/types/count_billing_product_match_companies_params.rb +15 -0
  94. data/lib/schematic/plans/types/count_billing_product_match_companies_request.rb +14 -0
  95. data/lib/schematic/plans/types/count_billing_product_match_companies_response.rb +12 -0
  96. data/lib/schematic/plans/types/count_plans_params.rb +3 -0
  97. data/lib/schematic/plans/types/count_plans_request.rb +3 -0
  98. data/lib/schematic/plans/types/create_billing_linked_plan_request_body.rb +17 -0
  99. data/lib/schematic/plans/types/create_custom_plan_request_body.rb +15 -0
  100. data/lib/schematic/{companies/types/update_plan_trait_response.rb → plans/types/create_custom_plan_response.rb} +3 -3
  101. data/lib/schematic/plans/types/list_billing_product_match_companies_params.rb +15 -0
  102. data/lib/schematic/plans/types/list_billing_product_match_companies_request.rb +14 -0
  103. data/lib/schematic/plans/types/list_billing_product_match_companies_response.rb +12 -0
  104. data/lib/schematic/plans/types/list_custom_plan_billings_params.rb +17 -0
  105. data/lib/schematic/plans/types/list_custom_plan_billings_request.rb +16 -0
  106. data/lib/schematic/plans/types/list_custom_plan_billings_response.rb +12 -0
  107. data/lib/schematic/plans/types/list_plans_params.rb +3 -0
  108. data/lib/schematic/plans/types/list_plans_request.rb +3 -0
  109. data/lib/schematic/plans/types/publish_plan_version_request_body.rb +4 -0
  110. data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +15 -0
  111. data/lib/schematic/plans/types/retry_custom_plan_billing_response.rb +12 -0
  112. data/lib/schematic/plans/types/upsert_plan_for_billing_product_response.rb +12 -0
  113. data/lib/schematic/redis_cache.rb +5 -2
  114. data/lib/schematic/schematic_client.rb +0 -1
  115. data/lib/schematic/types/account_member_permission.rb +25 -0
  116. data/lib/schematic/types/account_member_response_data.rb +16 -0
  117. data/lib/schematic/types/{rulesengine_company_metric_month_reset.rb → account_member_role.rb} +3 -3
  118. data/lib/schematic/types/activity_entry_response_data.rb +14 -0
  119. data/lib/schematic/types/activity_response_response_data.rb +9 -0
  120. data/lib/schematic/types/api_key_create_response_data.rb +2 -0
  121. data/lib/schematic/types/api_key_integration_response_data.rb +11 -0
  122. data/lib/schematic/types/api_key_response_data.rb +2 -0
  123. data/lib/schematic/types/audit_log_list_response_data.rb +2 -0
  124. data/lib/schematic/types/audit_log_response_data.rb +2 -0
  125. data/lib/schematic/types/billing_credit_bundle_view.rb +1 -1
  126. data/lib/schematic/types/billing_credit_view.rb +1 -0
  127. data/lib/schematic/types/billing_linked_resource_response_data.rb +11 -0
  128. data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +2 -0
  129. data/lib/schematic/types/billing_price_response_data.rb +2 -0
  130. data/lib/schematic/types/billing_price_view.rb +2 -0
  131. data/lib/schematic/types/billing_product_for_subscription_response_data.rb +1 -0
  132. data/lib/schematic/types/billing_product_plan_response_data.rb +2 -1
  133. data/lib/schematic/types/billing_product_price_response_data.rb +2 -0
  134. data/lib/schematic/types/billing_provider_type.rb +1 -0
  135. data/lib/schematic/types/billing_strategy.rb +13 -0
  136. data/lib/schematic/types/change_subscription_internal_request_body.rb +1 -0
  137. data/lib/schematic/types/change_subscription_request_body.rb +1 -0
  138. data/lib/schematic/types/charge_type.rb +1 -0
  139. data/lib/schematic/types/check_flag_response_data.rb +2 -2
  140. data/lib/schematic/types/checkout_subscription.rb +1 -0
  141. data/lib/schematic/types/clerk_integration_config.rb +10 -0
  142. data/lib/schematic/types/company_credit_balance_response_data.rb +12 -0
  143. data/lib/schematic/types/company_detail_response_data.rb +1 -0
  144. data/lib/schematic/types/company_event_period_metrics_response_data.rb +2 -2
  145. data/lib/schematic/types/company_matching_criteria.rb +12 -0
  146. data/lib/schematic/types/company_override_response_data.rb +2 -2
  147. data/lib/schematic/types/company_plan_credit_grant_view.rb +40 -0
  148. data/lib/schematic/types/company_plan_detail_response_data.rb +9 -3
  149. data/lib/schematic/types/company_plan_with_billing_sub_view.rb +1 -1
  150. data/lib/schematic/types/company_subscription_response_data.rb +1 -0
  151. data/lib/schematic/types/{condition_operator.rb → comparable_operator.rb} +4 -4
  152. data/lib/schematic/types/condition.rb +4 -4
  153. data/lib/schematic/types/condition_response_data.rb +4 -4
  154. data/lib/schematic/types/{condition_condition_type.rb → condition_type.rb} +1 -1
  155. data/lib/schematic/types/condition_view.rb +4 -4
  156. data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +2 -0
  157. data/lib/schematic/types/create_custom_plan_bundle_plan_request_body.rb +12 -0
  158. data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +6 -2
  159. data/lib/schematic/types/create_entitlement_req_common.rb +2 -2
  160. data/lib/schematic/types/create_event_request_body.rb +3 -0
  161. data/lib/schematic/types/create_flag_request_body.rb +1 -1
  162. data/lib/schematic/types/create_or_update_condition_request_body.rb +4 -4
  163. data/lib/schematic/types/create_or_update_flag_request_body.rb +1 -1
  164. data/lib/schematic/types/create_or_update_rule_request_body.rb +1 -1
  165. data/lib/schematic/types/create_plan_request_body.rb +1 -1
  166. data/lib/schematic/types/credit_currency_price.rb +10 -0
  167. data/lib/schematic/types/currency_price_request_body.rb +3 -0
  168. data/lib/schematic/types/custom_plan_activation_strategy.rb +12 -0
  169. data/lib/schematic/types/custom_plan_billing_response_data.rb +19 -0
  170. data/lib/schematic/types/custom_plan_billing_status.rb +14 -0
  171. data/lib/schematic/types/data_event_payload.rb +3 -0
  172. data/lib/schematic/types/datastream_company_plan.rb +1 -0
  173. data/lib/schematic/types/duplicate_plan_entitlements_response_response_data.rb +1 -0
  174. data/lib/schematic/types/entitlement_currency_prices_response_data.rb +1 -0
  175. data/lib/schematic/types/environment_feature_usage_time_series_response_data.rb +11 -0
  176. data/lib/schematic/types/environment_trait_usage_time_series_response_data.rb +11 -0
  177. data/lib/schematic/types/environment_usage_point_response_data.rb +10 -0
  178. data/lib/schematic/types/event_detail_response_data.rb +2 -0
  179. data/lib/schematic/types/event_response_data.rb +1 -0
  180. data/lib/schematic/types/feature_company_response_data.rb +4 -3
  181. data/lib/schematic/types/feature_company_user_response_data.rb +2 -2
  182. data/lib/schematic/types/feature_detail_response_data.rb +3 -1
  183. data/lib/schematic/types/feature_entitlement.rb +2 -2
  184. data/lib/schematic/types/feature_in_plan_response_data.rb +26 -0
  185. data/lib/schematic/types/feature_response_data.rb +1 -1
  186. data/lib/schematic/types/feature_usage_response_data.rb +4 -3
  187. data/lib/schematic/types/feature_view.rb +1 -1
  188. data/lib/schematic/types/flag_detail_response_data.rb +2 -1
  189. data/lib/schematic/types/flag_in_plan_response_data.rb +21 -0
  190. data/lib/schematic/types/flag_response_data.rb +1 -1
  191. data/lib/schematic/types/flag_view.rb +0 -1
  192. data/lib/schematic/types/insights_summary_response_data.rb +14 -0
  193. data/lib/schematic/types/integration_capabilities.rb +11 -0
  194. data/lib/schematic/types/integration_config.rb +15 -0
  195. data/lib/schematic/types/integration_response_data.rb +13 -0
  196. data/lib/schematic/types/integration_state.rb +13 -0
  197. data/lib/schematic/types/{plan_controlled_by_type.rb → integration_type.rb} +4 -2
  198. data/lib/schematic/types/integration_webhook_url_response_data.rb +10 -0
  199. data/lib/schematic/types/integrations_data_set_response_data.rb +9 -0
  200. data/lib/schematic/types/integrations_list_response_data.rb +15 -0
  201. data/lib/schematic/types/integrations_response_data.rb +13 -0
  202. data/lib/schematic/types/{condition_metric_period.rb → metric_period.rb} +1 -1
  203. data/lib/schematic/types/{feature_entitlement_month_reset.rb → metric_period_month_reset.rb} +2 -2
  204. data/lib/schematic/types/mrr_response_data.rb +10 -0
  205. data/lib/schematic/types/orb_integration_config.rb +9 -0
  206. data/lib/schematic/types/plan_credit_grant_view.rb +2 -0
  207. data/lib/schematic/types/plan_currency_price_request_body.rb +1 -0
  208. data/lib/schematic/types/plan_currency_prices_response_data.rb +1 -0
  209. data/lib/schematic/types/plan_detail_response_data.rb +9 -3
  210. data/lib/schematic/types/plan_entitlement_response_data.rb +4 -2
  211. data/lib/schematic/types/plan_group_plan_detail_response_data.rb +9 -3
  212. data/lib/schematic/types/plan_growth_point_response_data.rb +12 -0
  213. data/lib/schematic/types/plan_growth_response_data.rb +9 -0
  214. data/lib/schematic/types/plan_icon.rb +35 -0
  215. data/lib/schematic/types/plan_response_data.rb +3 -1
  216. data/lib/schematic/types/plan_version_response_data.rb +1 -1
  217. data/lib/schematic/types/plan_view_public_response_data.rb +9 -3
  218. data/lib/schematic/types/rule.rb +1 -1
  219. data/lib/schematic/types/rule_condition_detail_response_data.rb +4 -4
  220. data/lib/schematic/types/rule_condition_response_data.rb +4 -4
  221. data/lib/schematic/types/rule_detail_response_data.rb +1 -1
  222. data/lib/schematic/types/rule_response_data.rb +1 -1
  223. data/lib/schematic/types/{rule_rule_type.rb → rule_type.rb} +3 -3
  224. data/lib/schematic/types/rule_view.rb +1 -1
  225. data/lib/schematic/types/rules_engine_schema_version.rb +1 -1
  226. data/lib/schematic/types/rulesengine_check_flag_result.rb +2 -2
  227. data/lib/schematic/types/rulesengine_company_metric.rb +2 -2
  228. data/lib/schematic/types/rulesengine_condition.rb +4 -4
  229. data/lib/schematic/types/{rulesengine_condition_condition_type.rb → rulesengine_condition_type.rb} +1 -1
  230. data/lib/schematic/types/rulesengine_feature_entitlement.rb +2 -2
  231. data/lib/schematic/types/{feature_entitlement_metric_period.rb → rulesengine_metric_period.rb} +1 -1
  232. data/lib/schematic/types/{condition_metric_period_month_reset.rb → rulesengine_metric_period_month_reset.rb} +2 -2
  233. data/lib/schematic/types/rulesengine_rule.rb +1 -1
  234. data/lib/schematic/types/{rulesengine_rule_rule_type.rb → rulesengine_rule_type.rb} +3 -3
  235. data/lib/schematic/types/stripe_integration_config.rb +15 -0
  236. data/lib/schematic/types/top_feature_by_usage_response_data.rb +14 -0
  237. data/lib/schematic/types/top_features_by_usage_response_data.rb +9 -0
  238. data/lib/schematic/types/trial_status.rb +13 -0
  239. data/lib/schematic/types/update_auto_topup_override_request_body.rb +12 -0
  240. data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +2 -0
  241. data/lib/schematic/types/update_entitlement_req_common.rb +2 -2
  242. data/lib/schematic/types/update_plan_request_body.rb +1 -1
  243. data/lib/schematic/types/upsert_billing_product_request_body.rb +3 -0
  244. data/lib/schematic/types/usage_based_entitlement_request_body.rb +4 -0
  245. data/lib/schematic/types/usage_based_entitlement_response_data.rb +3 -2
  246. data/lib/schematic/types/webhook_url.rb +10 -0
  247. data/lib/schematic/version.rb +1 -1
  248. data/lib/schematic.rb +121 -57
  249. data/reference.md +2910 -886
  250. metadata +110 -45
  251. data/lib/schematic/companies/types/create_plan_trait_request_body.rb +0 -13
  252. data/lib/schematic/companies/types/update_plan_trait_request_body.rb +0 -13
  253. data/lib/schematic/entitlements/types/create_company_override_request_body_metric_period.rb +0 -16
  254. data/lib/schematic/entitlements/types/create_company_override_request_body_metric_period_month_reset.rb +0 -14
  255. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body_metric_period.rb +0 -16
  256. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body_metric_period_month_reset.rb +0 -14
  257. data/lib/schematic/entitlements/types/update_company_override_request_body_metric_period.rb +0 -16
  258. data/lib/schematic/entitlements/types/update_company_override_request_body_metric_period_month_reset.rb +0 -14
  259. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body_metric_period.rb +0 -16
  260. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body_metric_period_month_reset.rb +0 -14
  261. data/lib/schematic/types/create_entitlement_in_bundle_request_body_metric_period.rb +0 -14
  262. data/lib/schematic/types/create_entitlement_in_bundle_request_body_metric_period_month_reset.rb +0 -12
  263. data/lib/schematic/types/create_entitlement_req_common_metric_period.rb +0 -14
  264. data/lib/schematic/types/create_entitlement_req_common_metric_period_month_reset.rb +0 -12
  265. data/lib/schematic/types/create_or_update_condition_request_body_condition_type.rb +0 -17
  266. data/lib/schematic/types/create_or_update_condition_request_body_metric_period.rb +0 -14
  267. data/lib/schematic/types/create_or_update_condition_request_body_metric_period_month_reset.rb +0 -12
  268. data/lib/schematic/types/create_or_update_condition_request_body_operator.rb +0 -18
  269. data/lib/schematic/types/create_or_update_rule_request_body_rule_type.rb +0 -15
  270. data/lib/schematic/types/rulesengine_check_flag_result_feature_usage_period.rb +0 -14
  271. data/lib/schematic/types/rulesengine_check_flag_result_rule_type.rb +0 -17
  272. data/lib/schematic/types/rulesengine_company_metric_period.rb +0 -14
  273. data/lib/schematic/types/rulesengine_condition_metric_period.rb +0 -14
  274. data/lib/schematic/types/rulesengine_condition_metric_period_month_reset.rb +0 -12
  275. data/lib/schematic/types/rulesengine_condition_operator.rb +0 -18
  276. data/lib/schematic/types/rulesengine_feature_entitlement_metric_period.rb +0 -14
  277. data/lib/schematic/types/rulesengine_feature_entitlement_month_reset.rb +0 -12
  278. data/lib/schematic/types/update_entitlement_req_common_metric_period.rb +0 -14
  279. data/lib/schematic/types/update_entitlement_req_common_metric_period_month_reset.rb +0 -12
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class IntegrationsDataSetResponseData < Internal::Types::Model
6
+ field :keys, -> { Internal::Types::Array[String] }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class IntegrationsListResponseData < Internal::Types::Model
6
+ field :capabilities, -> { Schematic::Types::IntegrationCapabilities }, optional: false, nullable: false
7
+ field :config, -> { Schematic::Types::IntegrationConfig }, optional: true, nullable: false
8
+ field :id, -> { String }, optional: false, nullable: false
9
+ field :is_app_install, -> { Internal::Types::Boolean }, optional: false, nullable: false
10
+ field :is_connect_install, -> { Internal::Types::Boolean }, optional: false, nullable: false
11
+ field :state, -> { Schematic::Types::IntegrationState }, optional: false, nullable: false
12
+ field :type, -> { Schematic::Types::IntegrationType }, optional: false, nullable: false
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class IntegrationsResponseData < Internal::Types::Model
6
+ field :created_at, -> { String }, optional: false, nullable: false
7
+ field :id, -> { String }, optional: false, nullable: false
8
+ field :state, -> { Schematic::Types::IntegrationState }, optional: false, nullable: false
9
+ field :type, -> { Schematic::Types::IntegrationType }, optional: false, nullable: false
10
+ field :updated_at, -> { String }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module ConditionMetricPeriod
5
+ module MetricPeriod
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
8
  ALL_TIME = "all_time"
@@ -2,11 +2,11 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module FeatureEntitlementMonthReset
5
+ module MetricPeriodMonthReset
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
- FIRST_OF_MONTH = "first_of_month"
9
8
  BILLING_CYCLE = "billing_cycle"
9
+ FIRST_OF_MONTH = "first_of_month"
10
10
  end
11
11
  end
12
12
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class MrrResponseData < Internal::Types::Model
6
+ field :amount, -> { Integer }, optional: false, nullable: false
7
+ field :currency, -> { String }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class OrbIntegrationConfig < Internal::Types::Model
6
+ field :external_customer_id_key, -> { String }, optional: true, nullable: false
7
+ end
8
+ end
9
+ end
@@ -9,6 +9,8 @@ module Schematic
9
9
  field :billing_credit_auto_topup_expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
10
10
  field :billing_credit_auto_topup_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
11
11
  field :billing_credit_auto_topup_expiry_unit_count, -> { Integer }, optional: true, nullable: false
12
+ field :billing_credit_auto_topup_self_service, -> { Internal::Types::Boolean }, optional: false, nullable: false
13
+ field :billing_credit_auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
12
14
  field :billing_credit_auto_topup_threshold_percent, -> { Integer }, optional: true, nullable: false
13
15
  field :created_at, -> { String }, optional: false, nullable: false
14
16
  field :credit, -> { Schematic::Types::BillingCreditView }, optional: true, nullable: false
@@ -6,6 +6,7 @@ module Schematic
6
6
  field :currency, -> { String }, optional: false, nullable: false
7
7
  field :monthly_price, -> { Integer }, optional: true, nullable: false
8
8
  field :one_time_price, -> { Integer }, optional: true, nullable: false
9
+ field :quarterly_price, -> { Integer }, optional: true, nullable: false
9
10
  field :yearly_price, -> { Integer }, optional: true, nullable: false
10
11
  end
11
12
  end
@@ -6,6 +6,7 @@ module Schematic
6
6
  field :currency, -> { String }, optional: false, nullable: false
7
7
  field :monthly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
8
8
  field :one_time_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
9
+ field :quarterly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
9
10
  field :yearly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
10
11
  end
11
12
  end
@@ -5,16 +5,21 @@ module Schematic
5
5
  class PlanDetailResponseData < Internal::Types::Model
6
6
  field :active_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
7
7
  field :audience_type, -> { String }, optional: true, nullable: false
8
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
8
9
  field :billing_product, -> { Schematic::Types::BillingProductDetailResponseData }, optional: true, nullable: false
10
+ field :billing_strategy, -> { Schematic::Types::BillingStrategy }, optional: false, nullable: false
9
11
  field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
10
12
  field :company_count, -> { Integer }, optional: false, nullable: false
11
- field :controlled_by, -> { Schematic::Types::PlanControlledByType }, optional: false, nullable: false
13
+ field :company_id, -> { String }, optional: true, nullable: false
14
+ field :company_name, -> { String }, optional: true, nullable: false
15
+ field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
16
+ field :copied_from_plan_id, -> { String }, optional: true, nullable: false
12
17
  field :created_at, -> { String }, optional: false, nullable: false
13
18
  field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
14
19
  field :description, -> { String }, optional: false, nullable: false
15
20
  field :draft_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
16
- field :features, -> { Internal::Types::Array[Schematic::Types::FeatureDetailResponseData] }, optional: false, nullable: false
17
- field :icon, -> { String }, optional: false, nullable: false
21
+ field :features, -> { Internal::Types::Array[Schematic::Types::FeatureInPlanResponseData] }, optional: false, nullable: false
22
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
18
23
  field :id, -> { String }, optional: false, nullable: false
19
24
  field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::BillingPlanCreditGrantResponseData] }, optional: true, nullable: false
20
25
  field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -24,6 +29,7 @@ module Schematic
24
29
  field :name, -> { String }, optional: false, nullable: false
25
30
  field :one_time_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
26
31
  field :plan_type, -> { Schematic::Types::PlanType }, optional: false, nullable: false
32
+ field :quarterly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
27
33
  field :trial_days, -> { Integer }, optional: true, nullable: false
28
34
  field :updated_at, -> { String }, optional: false, nullable: false
29
35
  field :versions, -> { Internal::Types::Array[Schematic::Types::PlanVersionResponseData] }, optional: false, nullable: false
@@ -3,6 +3,7 @@
3
3
  module Schematic
4
4
  module Types
5
5
  class PlanEntitlementResponseData < Internal::Types::Model
6
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
6
7
  field :billing_threshold, -> { Integer }, optional: true, nullable: false
7
8
  field :consumption_rate, -> { Integer }, optional: true, nullable: false
8
9
  field :created_at, -> { String }, optional: false, nullable: false
@@ -12,9 +13,10 @@ module Schematic
12
13
  field :feature_id, -> { String }, optional: false, nullable: false
13
14
  field :id, -> { String }, optional: false, nullable: false
14
15
  field :metered_monthly_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
16
+ field :metered_quarterly_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
15
17
  field :metered_yearly_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
16
- field :metric_period, -> { String }, optional: true, nullable: false
17
- field :metric_period_month_reset, -> { String }, optional: true, nullable: false
18
+ field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
19
+ field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
18
20
  field :plan, -> { Schematic::Types::PlanResponseData }, optional: true, nullable: false
19
21
  field :plan_id, -> { String }, optional: false, nullable: false
20
22
  field :price_behavior, -> { Schematic::Types::EntitlementPriceBehavior }, optional: true, nullable: false
@@ -5,19 +5,24 @@ module Schematic
5
5
  class PlanGroupPlanDetailResponseData < Internal::Types::Model
6
6
  field :active_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
7
7
  field :audience_type, -> { String }, optional: true, nullable: false
8
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
8
9
  field :billing_product, -> { Schematic::Types::BillingProductDetailResponseData }, optional: true, nullable: false
10
+ field :billing_strategy, -> { Schematic::Types::BillingStrategy }, optional: false, nullable: false
9
11
  field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
10
12
  field :company_count, -> { Integer }, optional: false, nullable: false
13
+ field :company_id, -> { String }, optional: true, nullable: false
14
+ field :company_name, -> { String }, optional: true, nullable: false
11
15
  field :compatible_plan_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
12
- field :controlled_by, -> { Schematic::Types::PlanControlledByType }, optional: false, nullable: false
16
+ field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
17
+ field :copied_from_plan_id, -> { String }, optional: true, nullable: false
13
18
  field :created_at, -> { String }, optional: false, nullable: false
14
19
  field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
15
20
  field :custom_plan_config, -> { Schematic::Types::CustomPlanViewConfigResponseData }, optional: true, nullable: false
16
21
  field :description, -> { String }, optional: false, nullable: false
17
22
  field :draft_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
18
23
  field :entitlements, -> { Internal::Types::Array[Schematic::Types::PlanEntitlementResponseData] }, optional: false, nullable: false
19
- field :features, -> { Internal::Types::Array[Schematic::Types::FeatureDetailResponseData] }, optional: false, nullable: false
20
- field :icon, -> { String }, optional: false, nullable: false
24
+ field :features, -> { Internal::Types::Array[Schematic::Types::FeatureInPlanResponseData] }, optional: false, nullable: false
25
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
21
26
  field :id, -> { String }, optional: false, nullable: false
22
27
  field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::BillingPlanCreditGrantResponseData] }, optional: true, nullable: false
23
28
  field :is_custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -28,6 +33,7 @@ module Schematic
28
33
  field :name, -> { String }, optional: false, nullable: false
29
34
  field :one_time_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
30
35
  field :plan_type, -> { Schematic::Types::PlanType }, optional: false, nullable: false
36
+ field :quarterly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
31
37
  field :trial_days, -> { Integer }, optional: true, nullable: false
32
38
  field :updated_at, -> { String }, optional: false, nullable: false
33
39
  field :versions, -> { Internal::Types::Array[Schematic::Types::PlanVersionResponseData] }, optional: false, nullable: false
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class PlanGrowthPointResponseData < Internal::Types::Model
6
+ field :month, -> { String }, optional: false, nullable: false
7
+ field :plan_id, -> { String }, optional: false, nullable: false
8
+ field :plan_name, -> { String }, optional: false, nullable: false
9
+ field :subscribers, -> { Integer }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class PlanGrowthResponseData < Internal::Types::Model
6
+ field :points, -> { Internal::Types::Array[Schematic::Types::PlanGrowthPointResponseData] }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ module PlanIcon
6
+ extend Schematic::Internal::Types::Enum
7
+
8
+ AMBER = "amber"
9
+ BLUE = "blue"
10
+ BLUE_GRAY = "blueGray"
11
+ BLUE_GREEN = "blueGreen"
12
+ CYAN = "cyan"
13
+ EMERALD = "emerald"
14
+ FUCHSIA = "fuchsia"
15
+ GRAY = "gray"
16
+ GREEN = "green"
17
+ INDIGO = "indigo"
18
+ LIGHT_BLUE = "lightBlue"
19
+ LIME = "lime"
20
+ ORANGE = "orange"
21
+ PINK = "pink"
22
+ PURPLE = "purple"
23
+ RED = "red"
24
+ RED_ORANGE = "redOrange"
25
+ ROSE = "rose"
26
+ SKY = "sky"
27
+ SLATE = "slate"
28
+ TEAL = "teal"
29
+ TRUE_GRAY = "trueGray"
30
+ VIOLET = "violet"
31
+ WARM_GRAY = "warmGray"
32
+ YELLOW = "yellow"
33
+ end
34
+ end
35
+ end
@@ -4,9 +4,11 @@ module Schematic
4
4
  module Types
5
5
  class PlanResponseData < Internal::Types::Model
6
6
  field :audience_type, -> { String }, optional: true, nullable: false
7
+ field :company_id, -> { String }, optional: true, nullable: false
8
+ field :copied_from_plan_id, -> { String }, optional: true, nullable: false
7
9
  field :created_at, -> { String }, optional: false, nullable: false
8
10
  field :description, -> { String }, optional: false, nullable: false
9
- field :icon, -> { String }, optional: false, nullable: false
11
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
10
12
  field :id, -> { String }, optional: false, nullable: false
11
13
  field :name, -> { String }, optional: false, nullable: false
12
14
  field :plan_type, -> { Schematic::Types::PlanType }, optional: false, nullable: false
@@ -6,7 +6,7 @@ module Schematic
6
6
  field :created_at, -> { String }, optional: false, nullable: false
7
7
  field :description, -> { String }, optional: false, nullable: false
8
8
  field :environment_id, -> { String }, optional: false, nullable: false
9
- field :icon, -> { String }, optional: false, nullable: false
9
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
10
10
  field :id, -> { String }, optional: false, nullable: false
11
11
  field :name, -> { String }, optional: false, nullable: false
12
12
  field :original_plan_id, -> { String }, optional: true, nullable: false
@@ -5,11 +5,16 @@ module Schematic
5
5
  class PlanViewPublicResponseData < Internal::Types::Model
6
6
  field :active_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
7
7
  field :audience_type, -> { String }, optional: true, nullable: false
8
+ field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
8
9
  field :billing_product, -> { Schematic::Types::BillingProductDetailResponseData }, optional: true, nullable: false
10
+ field :billing_strategy, -> { Schematic::Types::BillingStrategy }, optional: false, nullable: false
9
11
  field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
10
12
  field :company_count, -> { Integer }, optional: false, nullable: false
13
+ field :company_id, -> { String }, optional: true, nullable: false
14
+ field :company_name, -> { String }, optional: true, nullable: false
11
15
  field :compatible_plan_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
12
- field :controlled_by, -> { Schematic::Types::PlanControlledByType }, optional: false, nullable: false
16
+ field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
17
+ field :copied_from_plan_id, -> { String }, optional: true, nullable: false
13
18
  field :created_at, -> { String }, optional: false, nullable: false
14
19
  field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
15
20
  field :custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -17,8 +22,8 @@ module Schematic
17
22
  field :description, -> { String }, optional: false, nullable: false
18
23
  field :draft_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
19
24
  field :entitlements, -> { Internal::Types::Array[Schematic::Types::PlanEntitlementResponseData] }, optional: false, nullable: false
20
- field :features, -> { Internal::Types::Array[Schematic::Types::FeatureDetailResponseData] }, optional: false, nullable: false
21
- field :icon, -> { String }, optional: false, nullable: false
25
+ field :features, -> { Internal::Types::Array[Schematic::Types::FeatureInPlanResponseData] }, optional: false, nullable: false
26
+ field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
22
27
  field :id, -> { String }, optional: false, nullable: false
23
28
  field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::PlanCreditGrantView] }, optional: false, nullable: false
24
29
  field :is_custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -29,6 +34,7 @@ module Schematic
29
34
  field :name, -> { String }, optional: false, nullable: false
30
35
  field :one_time_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
31
36
  field :plan_type, -> { Schematic::Types::PlanType }, optional: false, nullable: false
37
+ field :quarterly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
32
38
  field :trial_days, -> { Integer }, optional: true, nullable: false
33
39
  field :updated_at, -> { String }, optional: false, nullable: false
34
40
  field :versions, -> { Internal::Types::Array[Schematic::Types::PlanVersionResponseData] }, optional: false, nullable: false
@@ -11,7 +11,7 @@ module Schematic
11
11
  field :id, -> { String }, optional: false, nullable: false
12
12
  field :name, -> { String }, optional: false, nullable: false
13
13
  field :priority, -> { Integer }, optional: false, nullable: false
14
- field :rule_type, -> { Schematic::Types::RuleRuleType }, optional: false, nullable: false
14
+ field :rule_type, -> { Schematic::Types::RuleType }, optional: false, nullable: false
15
15
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
16
16
  end
17
17
  end
@@ -6,16 +6,16 @@ module Schematic
6
6
  field :comparison_trait, -> { Schematic::Types::EntityTraitDefinitionResponseData }, optional: true, nullable: false
7
7
  field :comparison_trait_id, -> { String }, optional: true, nullable: false
8
8
  field :condition_group_id, -> { String }, optional: true, nullable: false
9
- field :condition_type, -> { String }, optional: false, nullable: false
9
+ field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
10
10
  field :created_at, -> { String }, optional: false, nullable: false
11
11
  field :environment_id, -> { String }, optional: false, nullable: false
12
12
  field :event_subtype, -> { String }, optional: true, nullable: false
13
13
  field :flag_id, -> { String }, optional: true, nullable: false
14
14
  field :id, -> { String }, optional: false, nullable: false
15
- field :metric_period, -> { String }, optional: true, nullable: false
16
- field :metric_period_month_reset, -> { String }, optional: true, nullable: false
15
+ field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
16
+ field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
17
17
  field :metric_value, -> { Integer }, optional: true, nullable: false
18
- field :operator, -> { String }, optional: false, nullable: false
18
+ field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
19
19
  field :resource_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
20
20
  field :resources, -> { Internal::Types::Array[Schematic::Types::PreviewObjectResponseData] }, optional: false, nullable: false
21
21
  field :rule_id, -> { String }, optional: false, nullable: false
@@ -5,16 +5,16 @@ module Schematic
5
5
  class RuleConditionResponseData < Internal::Types::Model
6
6
  field :comparison_trait_id, -> { String }, optional: true, nullable: false
7
7
  field :condition_group_id, -> { String }, optional: true, nullable: false
8
- field :condition_type, -> { String }, optional: false, nullable: false
8
+ field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
9
9
  field :created_at, -> { String }, optional: false, nullable: false
10
10
  field :environment_id, -> { String }, optional: false, nullable: false
11
11
  field :event_subtype, -> { String }, optional: true, nullable: false
12
12
  field :flag_id, -> { String }, optional: true, nullable: false
13
13
  field :id, -> { String }, optional: false, nullable: false
14
- field :metric_period, -> { String }, optional: true, nullable: false
15
- field :metric_period_month_reset, -> { String }, optional: true, nullable: false
14
+ field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
15
+ field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
16
16
  field :metric_value, -> { Integer }, optional: true, nullable: false
17
- field :operator, -> { String }, optional: false, nullable: false
17
+ field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
18
18
  field :resource_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
19
19
  field :rule_id, -> { String }, optional: false, nullable: false
20
20
  field :trait_entity_type, -> { Schematic::Types::EntityType }, optional: true, nullable: false
@@ -11,7 +11,7 @@ module Schematic
11
11
  field :id, -> { String }, optional: false, nullable: false
12
12
  field :name, -> { String }, optional: false, nullable: false
13
13
  field :priority, -> { Integer }, optional: false, nullable: false
14
- field :rule_type, -> { String }, optional: false, nullable: false
14
+ field :rule_type, -> { Schematic::Types::RuleType }, optional: false, nullable: false
15
15
  field :updated_at, -> { String }, optional: false, nullable: false
16
16
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
17
17
  end
@@ -9,7 +9,7 @@ module Schematic
9
9
  field :id, -> { String }, optional: false, nullable: false
10
10
  field :name, -> { String }, optional: false, nullable: false
11
11
  field :priority, -> { Integer }, optional: false, nullable: false
12
- field :rule_type, -> { String }, optional: false, nullable: false
12
+ field :rule_type, -> { Schematic::Types::RuleType }, optional: false, nullable: false
13
13
  field :updated_at, -> { String }, optional: false, nullable: false
14
14
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
15
15
  end
@@ -2,13 +2,13 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module RuleRuleType
5
+ module RuleType
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
- DEFAULT = "default"
9
- GLOBAL_OVERRIDE = "global_override"
10
8
  COMPANY_OVERRIDE = "company_override"
11
9
  COMPANY_OVERRIDE_USAGE_EXCEEDED = "company_override_usage_exceeded"
10
+ DEFAULT = "default"
11
+ GLOBAL_OVERRIDE = "global_override"
12
12
  PLAN_ENTITLEMENT = "plan_entitlement"
13
13
  PLAN_ENTITLEMENT_USAGE_EXCEEDED = "plan_entitlement_usage_exceeded"
14
14
  STANDARD = "standard"
@@ -12,7 +12,7 @@ module Schematic
12
12
  field :id, -> { String }, optional: false, nullable: false
13
13
  field :name, -> { String }, optional: false, nullable: false
14
14
  field :priority, -> { Integer }, optional: false, nullable: false
15
- field :rule_type, -> { String }, optional: false, nullable: false
15
+ field :rule_type, -> { Schematic::Types::RuleType }, optional: false, nullable: false
16
16
  field :updated_at, -> { String }, optional: false, nullable: false
17
17
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
18
18
  end
@@ -5,7 +5,7 @@ module Schematic
5
5
  module RulesEngineSchemaVersion
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
- V_5_F_633_CC_3 = "v5f633cc3"
8
+ V_97288_F_60 = "v97288f60"
9
9
  PLACEHOLDER_FOR_FERN_COMPATIBILITY = "placeholder-for-fern-compatibility"
10
10
  end
11
11
  end
@@ -9,13 +9,13 @@ module Schematic
9
9
  field :feature_allocation, -> { Integer }, optional: true, nullable: false
10
10
  field :feature_usage, -> { Integer }, optional: true, nullable: false
11
11
  field :feature_usage_event, -> { String }, optional: true, nullable: false
12
- field :feature_usage_period, -> { Schematic::Types::RulesengineCheckFlagResultFeatureUsagePeriod }, optional: true, nullable: false
12
+ field :feature_usage_period, -> { Schematic::Types::RulesengineMetricPeriod }, optional: true, nullable: false
13
13
  field :feature_usage_reset_at, -> { String }, optional: true, nullable: false
14
14
  field :flag_id, -> { String }, optional: true, nullable: false
15
15
  field :flag_key, -> { String }, optional: false, nullable: false
16
16
  field :reason, -> { String }, optional: false, nullable: false
17
17
  field :rule_id, -> { String }, optional: true, nullable: false
18
- field :rule_type, -> { Schematic::Types::RulesengineCheckFlagResultRuleType }, optional: true, nullable: false
18
+ field :rule_type, -> { Schematic::Types::RulesengineRuleType }, optional: true, nullable: false
19
19
  field :user_id, -> { String }, optional: true, nullable: false
20
20
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
21
21
  end
@@ -8,8 +8,8 @@ module Schematic
8
8
  field :created_at, -> { String }, optional: false, nullable: false
9
9
  field :environment_id, -> { String }, optional: false, nullable: false
10
10
  field :event_subtype, -> { String }, optional: false, nullable: false
11
- field :month_reset, -> { Schematic::Types::RulesengineCompanyMetricMonthReset }, optional: false, nullable: false
12
- field :period, -> { Schematic::Types::RulesengineCompanyMetricPeriod }, optional: false, nullable: false
11
+ field :month_reset, -> { Schematic::Types::RulesengineMetricPeriodMonthReset }, optional: false, nullable: false
12
+ field :period, -> { Schematic::Types::RulesengineMetricPeriod }, optional: false, nullable: false
13
13
  field :valid_until, -> { String }, optional: true, nullable: false
14
14
  field :value, -> { Integer }, optional: false, nullable: false
15
15
  end
@@ -5,16 +5,16 @@ module Schematic
5
5
  class RulesengineCondition < Internal::Types::Model
6
6
  field :account_id, -> { String }, optional: false, nullable: false
7
7
  field :comparison_trait_definition, -> { Schematic::Types::RulesengineTraitDefinition }, optional: true, nullable: false
8
- field :condition_type, -> { Schematic::Types::RulesengineConditionConditionType }, optional: false, nullable: false
8
+ field :condition_type, -> { Schematic::Types::RulesengineConditionType }, optional: false, nullable: false
9
9
  field :consumption_rate, -> { Integer }, optional: true, nullable: false
10
10
  field :credit_id, -> { String }, optional: true, nullable: false
11
11
  field :environment_id, -> { String }, optional: false, nullable: false
12
12
  field :event_subtype, -> { String }, optional: true, nullable: false
13
13
  field :id, -> { String }, optional: false, nullable: false
14
- field :metric_period, -> { Schematic::Types::RulesengineConditionMetricPeriod }, optional: true, nullable: false
15
- field :metric_period_month_reset, -> { Schematic::Types::RulesengineConditionMetricPeriodMonthReset }, optional: true, nullable: false
14
+ field :metric_period, -> { Schematic::Types::RulesengineMetricPeriod }, optional: true, nullable: false
15
+ field :metric_period_month_reset, -> { Schematic::Types::RulesengineMetricPeriodMonthReset }, optional: true, nullable: false
16
16
  field :metric_value, -> { Integer }, optional: true, nullable: false
17
- field :operator, -> { Schematic::Types::RulesengineConditionOperator }, optional: false, nullable: false
17
+ field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
18
18
  field :resource_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
19
19
  field :trait_definition, -> { Schematic::Types::RulesengineTraitDefinition }, optional: true, nullable: false
20
20
  field :trait_value, -> { String }, optional: false, nullable: false
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module RulesengineConditionConditionType
5
+ module RulesengineConditionType
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
8
  BASE_PLAN = "base_plan"
@@ -11,9 +11,9 @@ module Schematic
11
11
  field :event_name, -> { String }, optional: true, nullable: false
12
12
  field :feature_id, -> { String }, optional: false, nullable: false
13
13
  field :feature_key, -> { String }, optional: false, nullable: false
14
- field :metric_period, -> { Schematic::Types::RulesengineFeatureEntitlementMetricPeriod }, optional: true, nullable: false
14
+ field :metric_period, -> { Schematic::Types::RulesengineMetricPeriod }, optional: true, nullable: false
15
15
  field :metric_reset_at, -> { String }, optional: true, nullable: false
16
- field :month_reset, -> { Schematic::Types::RulesengineFeatureEntitlementMonthReset }, optional: true, nullable: false
16
+ field :month_reset, -> { Schematic::Types::RulesengineMetricPeriodMonthReset }, optional: true, nullable: false
17
17
  field :soft_limit, -> { Integer }, optional: true, nullable: false
18
18
  field :usage, -> { Integer }, optional: true, nullable: false
19
19
  field :value_type, -> { Schematic::Types::RulesengineEntitlementValueType }, optional: false, nullable: false
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module FeatureEntitlementMetricPeriod
5
+ module RulesengineMetricPeriod
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
8
  ALL_TIME = "all_time"
@@ -2,11 +2,11 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module ConditionMetricPeriodMonthReset
5
+ module RulesengineMetricPeriodMonthReset
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
- FIRST_OF_MONTH = "first_of_month"
9
8
  BILLING_CYCLE = "billing_cycle"
9
+ FIRST_OF_MONTH = "first_of_month"
10
10
  end
11
11
  end
12
12
  end
@@ -11,7 +11,7 @@ module Schematic
11
11
  field :id, -> { String }, optional: false, nullable: false
12
12
  field :name, -> { String }, optional: false, nullable: false
13
13
  field :priority, -> { Integer }, optional: false, nullable: false
14
- field :rule_type, -> { Schematic::Types::RulesengineRuleRuleType }, optional: false, nullable: false
14
+ field :rule_type, -> { Schematic::Types::RulesengineRuleType }, optional: false, nullable: false
15
15
  field :value, -> { Internal::Types::Boolean }, optional: false, nullable: false
16
16
  end
17
17
  end
@@ -2,13 +2,13 @@
2
2
 
3
3
  module Schematic
4
4
  module Types
5
- module RulesengineRuleRuleType
5
+ module RulesengineRuleType
6
6
  extend Schematic::Internal::Types::Enum
7
7
 
8
- DEFAULT = "default"
9
- GLOBAL_OVERRIDE = "global_override"
10
8
  COMPANY_OVERRIDE = "company_override"
11
9
  COMPANY_OVERRIDE_USAGE_EXCEEDED = "company_override_usage_exceeded"
10
+ DEFAULT = "default"
11
+ GLOBAL_OVERRIDE = "global_override"
12
12
  PLAN_ENTITLEMENT = "plan_entitlement"
13
13
  PLAN_ENTITLEMENT_USAGE_EXCEEDED = "plan_entitlement_usage_exceeded"
14
14
  STANDARD = "standard"
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class StripeIntegrationConfig < Internal::Types::Model
6
+ field :account_id, -> { String }, optional: true, nullable: false
7
+ field :account_name, -> { String }, optional: true, nullable: false
8
+ field :company_update_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
9
+ field :is_sandbox, -> { Internal::Types::Boolean }, optional: false, nullable: false
10
+ field :live_mode, -> { Internal::Types::Boolean }, optional: false, nullable: false
11
+ field :onboard_url, -> { String }, optional: true, nullable: false
12
+ field :version, -> { Integer }, optional: false, nullable: false
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class TopFeatureByUsageResponseData < Internal::Types::Model
6
+ field :change_pct, -> { Integer }, optional: true, nullable: false
7
+ field :feature_id, -> { String }, optional: false, nullable: false
8
+ field :feature_name, -> { String }, optional: false, nullable: false
9
+ field :plural_name, -> { String }, optional: true, nullable: false
10
+ field :prior_usage, -> { Integer }, optional: false, nullable: false
11
+ field :usage, -> { Integer }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Schematic
4
+ module Types
5
+ class TopFeaturesByUsageResponseData < Internal::Types::Model
6
+ field :features, -> { Internal::Types::Array[Schematic::Types::TopFeatureByUsageResponseData] }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end