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.
- checksums.yaml +4 -4
- data/.fern/metadata.json +4 -4
- data/.fern/replay.lock +10 -0
- data/.fernignore +3 -0
- data/README.md +1 -1
- data/lib/schematic/accounts/client.rb +76 -0
- data/lib/schematic/accounts/types/get_account_member_response.rb +12 -0
- data/lib/schematic/accounts/types/list_account_members_params.rb +15 -0
- data/lib/schematic/accounts/types/list_account_members_request.rb +14 -0
- data/lib/schematic/accounts/types/list_account_members_response.rb +12 -0
- data/lib/schematic/billing/client.rb +6 -2
- data/lib/schematic/billing/types/count_billing_products_params.rb +1 -0
- data/lib/schematic/billing/types/count_billing_products_request.rb +1 -0
- data/lib/schematic/billing/types/create_billing_price_request_body.rb +2 -0
- data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +1 -0
- data/lib/schematic/billing/types/create_meter_request_body.rb +1 -0
- data/lib/schematic/billing/types/list_billing_products_params.rb +1 -0
- data/lib/schematic/billing/types/list_billing_products_request.rb +1 -0
- data/lib/schematic/cache.rb +7 -4
- data/lib/schematic/client.rb +14 -4
- data/lib/schematic/companies/client.rb +8 -105
- data/lib/schematic/companies/types/count_companies_params.rb +1 -0
- data/lib/schematic/companies/types/count_companies_request.rb +1 -0
- data/lib/schematic/companies/types/list_companies_params.rb +1 -0
- data/lib/schematic/companies/types/list_companies_request.rb +1 -0
- data/lib/schematic/companies/types/list_plan_changes_params.rb +2 -2
- data/lib/schematic/companies/types/list_plan_changes_request.rb +2 -2
- data/lib/schematic/credits/client.rb +44 -2
- data/lib/schematic/credits/types/count_billing_plan_credit_grants_params.rb +1 -0
- data/lib/schematic/credits/types/count_billing_plan_credit_grants_request.rb +1 -0
- data/lib/schematic/credits/types/list_billing_plan_credit_grants_params.rb +1 -0
- data/lib/schematic/credits/types/list_billing_plan_credit_grants_request.rb +1 -0
- data/lib/schematic/credits/types/list_company_credit_balances_params.rb +12 -0
- data/lib/schematic/credits/types/list_company_credit_balances_request.rb +11 -0
- data/lib/schematic/credits/types/list_company_credit_balances_response.rb +12 -0
- data/lib/schematic/datastream/client.rb +28 -21
- data/lib/schematic/datastream/websocket_client.rb +32 -1
- data/lib/schematic/entitlements/client.rb +38 -2
- data/lib/schematic/entitlements/types/count_feature_usage_params.rb +1 -0
- data/lib/schematic/entitlements/types/count_feature_usage_request.rb +1 -0
- data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +44 -0
- data/lib/schematic/entitlements/types/create_company_override_request_body.rb +2 -2
- data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +6 -2
- data/lib/schematic/entitlements/types/list_feature_usage_params.rb +1 -0
- data/lib/schematic/entitlements/types/list_feature_usage_request.rb +1 -0
- data/lib/schematic/entitlements/types/update_company_override_request_body.rb +2 -2
- data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +6 -2
- data/lib/schematic/entitlements/types/upsert_plan_entitlement_for_billing_product_response.rb +12 -0
- data/lib/schematic/event_buffer.rb +10 -2
- data/lib/schematic/events/client.rb +3 -1
- data/lib/schematic/events/types/list_events_params.rb +1 -0
- data/lib/schematic/events/types/list_events_request.rb +1 -0
- data/lib/schematic/features/client.rb +50 -14
- data/lib/schematic/features/types/count_features_params.rb +1 -0
- data/lib/schematic/features/types/count_features_request.rb +4 -3
- data/lib/schematic/features/types/create_billing_linked_feature_request_body.rb +23 -0
- data/lib/schematic/features/types/create_feature_request_body.rb +1 -1
- data/lib/schematic/features/types/list_features_params.rb +1 -0
- data/lib/schematic/features/types/list_features_request.rb +4 -3
- data/lib/schematic/features/types/update_feature_request_body.rb +1 -1
- data/lib/schematic/features/types/upsert_feature_for_billing_product_response.rb +12 -0
- data/lib/schematic/insights/client.rb +251 -0
- data/lib/schematic/insights/types/get_activity_params.rb +12 -0
- data/lib/schematic/insights/types/get_activity_request.rb +11 -0
- data/lib/schematic/insights/types/get_activity_response.rb +12 -0
- data/lib/schematic/insights/types/get_environment_feature_usage_time_series_params.rb +15 -0
- data/lib/schematic/insights/types/get_environment_feature_usage_time_series_request.rb +14 -0
- data/lib/schematic/insights/types/get_environment_feature_usage_time_series_response.rb +12 -0
- data/lib/schematic/insights/types/get_environment_trait_usage_time_series_params.rb +15 -0
- data/lib/schematic/insights/types/get_environment_trait_usage_time_series_request.rb +14 -0
- data/lib/schematic/insights/types/get_environment_trait_usage_time_series_response.rb +12 -0
- data/lib/schematic/insights/types/get_plan_growth_params.rb +12 -0
- data/lib/schematic/insights/types/get_plan_growth_request.rb +11 -0
- data/lib/schematic/insights/types/get_plan_growth_response.rb +12 -0
- data/lib/schematic/{companies/types/create_plan_trait_response.rb → insights/types/get_summary_response.rb} +3 -3
- data/lib/schematic/insights/types/get_top_features_by_usage_params.rb +14 -0
- data/lib/schematic/insights/types/get_top_features_by_usage_request.rb +13 -0
- data/lib/schematic/insights/types/get_top_features_by_usage_response.rb +12 -0
- data/lib/schematic/integrationsapi/client.rb +223 -0
- data/lib/schematic/integrationsapi/types/get_integration_webhook_url_response.rb +12 -0
- data/lib/schematic/integrationsapi/types/list_integrations_params.rb +18 -0
- data/lib/schematic/integrationsapi/types/list_integrations_request.rb +17 -0
- data/lib/schematic/integrationsapi/types/list_integrations_response.rb +12 -0
- data/lib/schematic/integrationsapi/types/load_sample_data_set_v_2_response.rb +12 -0
- data/lib/schematic/integrationsapi/types/run_integration_response.rb +12 -0
- data/lib/schematic/integrationsapi/types/start_data_import_request_body.rb +13 -0
- data/lib/schematic/integrationsapi/types/start_data_import_response.rb +12 -0
- data/lib/schematic/{companies/types/delete_plan_trait_response.rb → integrationsapi/types/uninstall_integration_response.rb} +2 -2
- data/lib/schematic/planbundle/client.rb +32 -0
- data/lib/schematic/planbundle/types/create_custom_plan_bundle_request_body.rb +13 -0
- data/lib/schematic/planbundle/types/create_custom_plan_bundle_response.rb +12 -0
- data/lib/schematic/plans/client.rb +251 -2
- data/lib/schematic/plans/types/count_billing_product_match_companies_params.rb +15 -0
- data/lib/schematic/plans/types/count_billing_product_match_companies_request.rb +14 -0
- data/lib/schematic/plans/types/count_billing_product_match_companies_response.rb +12 -0
- data/lib/schematic/plans/types/count_plans_params.rb +3 -0
- data/lib/schematic/plans/types/count_plans_request.rb +3 -0
- data/lib/schematic/plans/types/create_billing_linked_plan_request_body.rb +17 -0
- data/lib/schematic/plans/types/create_custom_plan_request_body.rb +15 -0
- data/lib/schematic/{companies/types/update_plan_trait_response.rb → plans/types/create_custom_plan_response.rb} +3 -3
- data/lib/schematic/plans/types/list_billing_product_match_companies_params.rb +15 -0
- data/lib/schematic/plans/types/list_billing_product_match_companies_request.rb +14 -0
- data/lib/schematic/plans/types/list_billing_product_match_companies_response.rb +12 -0
- data/lib/schematic/plans/types/list_custom_plan_billings_params.rb +17 -0
- data/lib/schematic/plans/types/list_custom_plan_billings_request.rb +16 -0
- data/lib/schematic/plans/types/list_custom_plan_billings_response.rb +12 -0
- data/lib/schematic/plans/types/list_plans_params.rb +3 -0
- data/lib/schematic/plans/types/list_plans_request.rb +3 -0
- data/lib/schematic/plans/types/publish_plan_version_request_body.rb +4 -0
- data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +15 -0
- data/lib/schematic/plans/types/retry_custom_plan_billing_response.rb +12 -0
- data/lib/schematic/plans/types/upsert_plan_for_billing_product_response.rb +12 -0
- data/lib/schematic/redis_cache.rb +5 -2
- data/lib/schematic/schematic_client.rb +0 -1
- data/lib/schematic/types/account_member_permission.rb +25 -0
- data/lib/schematic/types/account_member_response_data.rb +16 -0
- data/lib/schematic/types/{rulesengine_company_metric_month_reset.rb → account_member_role.rb} +3 -3
- data/lib/schematic/types/activity_entry_response_data.rb +14 -0
- data/lib/schematic/types/activity_response_response_data.rb +9 -0
- data/lib/schematic/types/api_key_create_response_data.rb +2 -0
- data/lib/schematic/types/api_key_integration_response_data.rb +11 -0
- data/lib/schematic/types/api_key_response_data.rb +2 -0
- data/lib/schematic/types/audit_log_list_response_data.rb +2 -0
- data/lib/schematic/types/audit_log_response_data.rb +2 -0
- data/lib/schematic/types/billing_credit_bundle_view.rb +1 -1
- data/lib/schematic/types/billing_credit_view.rb +1 -0
- data/lib/schematic/types/billing_linked_resource_response_data.rb +11 -0
- data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +2 -0
- data/lib/schematic/types/billing_price_response_data.rb +2 -0
- data/lib/schematic/types/billing_price_view.rb +2 -0
- data/lib/schematic/types/billing_product_for_subscription_response_data.rb +1 -0
- data/lib/schematic/types/billing_product_plan_response_data.rb +2 -1
- data/lib/schematic/types/billing_product_price_response_data.rb +2 -0
- data/lib/schematic/types/billing_provider_type.rb +1 -0
- data/lib/schematic/types/billing_strategy.rb +13 -0
- data/lib/schematic/types/change_subscription_internal_request_body.rb +1 -0
- data/lib/schematic/types/change_subscription_request_body.rb +1 -0
- data/lib/schematic/types/charge_type.rb +1 -0
- data/lib/schematic/types/check_flag_response_data.rb +2 -2
- data/lib/schematic/types/checkout_subscription.rb +1 -0
- data/lib/schematic/types/clerk_integration_config.rb +10 -0
- data/lib/schematic/types/company_credit_balance_response_data.rb +12 -0
- data/lib/schematic/types/company_detail_response_data.rb +1 -0
- data/lib/schematic/types/company_event_period_metrics_response_data.rb +2 -2
- data/lib/schematic/types/company_matching_criteria.rb +12 -0
- data/lib/schematic/types/company_override_response_data.rb +2 -2
- data/lib/schematic/types/company_plan_credit_grant_view.rb +40 -0
- data/lib/schematic/types/company_plan_detail_response_data.rb +9 -3
- data/lib/schematic/types/company_plan_with_billing_sub_view.rb +1 -1
- data/lib/schematic/types/company_subscription_response_data.rb +1 -0
- data/lib/schematic/types/{condition_operator.rb → comparable_operator.rb} +4 -4
- data/lib/schematic/types/condition.rb +4 -4
- data/lib/schematic/types/condition_response_data.rb +4 -4
- data/lib/schematic/types/{condition_condition_type.rb → condition_type.rb} +1 -1
- data/lib/schematic/types/condition_view.rb +4 -4
- data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +2 -0
- data/lib/schematic/types/create_custom_plan_bundle_plan_request_body.rb +12 -0
- data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +6 -2
- data/lib/schematic/types/create_entitlement_req_common.rb +2 -2
- data/lib/schematic/types/create_event_request_body.rb +3 -0
- data/lib/schematic/types/create_flag_request_body.rb +1 -1
- data/lib/schematic/types/create_or_update_condition_request_body.rb +4 -4
- data/lib/schematic/types/create_or_update_flag_request_body.rb +1 -1
- data/lib/schematic/types/create_or_update_rule_request_body.rb +1 -1
- data/lib/schematic/types/create_plan_request_body.rb +1 -1
- data/lib/schematic/types/credit_currency_price.rb +10 -0
- data/lib/schematic/types/currency_price_request_body.rb +3 -0
- data/lib/schematic/types/custom_plan_activation_strategy.rb +12 -0
- data/lib/schematic/types/custom_plan_billing_response_data.rb +19 -0
- data/lib/schematic/types/custom_plan_billing_status.rb +14 -0
- data/lib/schematic/types/data_event_payload.rb +3 -0
- data/lib/schematic/types/datastream_company_plan.rb +1 -0
- data/lib/schematic/types/duplicate_plan_entitlements_response_response_data.rb +1 -0
- data/lib/schematic/types/entitlement_currency_prices_response_data.rb +1 -0
- data/lib/schematic/types/environment_feature_usage_time_series_response_data.rb +11 -0
- data/lib/schematic/types/environment_trait_usage_time_series_response_data.rb +11 -0
- data/lib/schematic/types/environment_usage_point_response_data.rb +10 -0
- data/lib/schematic/types/event_detail_response_data.rb +2 -0
- data/lib/schematic/types/event_response_data.rb +1 -0
- data/lib/schematic/types/feature_company_response_data.rb +4 -3
- data/lib/schematic/types/feature_company_user_response_data.rb +2 -2
- data/lib/schematic/types/feature_detail_response_data.rb +3 -1
- data/lib/schematic/types/feature_entitlement.rb +2 -2
- data/lib/schematic/types/feature_in_plan_response_data.rb +26 -0
- data/lib/schematic/types/feature_response_data.rb +1 -1
- data/lib/schematic/types/feature_usage_response_data.rb +4 -3
- data/lib/schematic/types/feature_view.rb +1 -1
- data/lib/schematic/types/flag_detail_response_data.rb +2 -1
- data/lib/schematic/types/flag_in_plan_response_data.rb +21 -0
- data/lib/schematic/types/flag_response_data.rb +1 -1
- data/lib/schematic/types/flag_view.rb +0 -1
- data/lib/schematic/types/insights_summary_response_data.rb +14 -0
- data/lib/schematic/types/integration_capabilities.rb +11 -0
- data/lib/schematic/types/integration_config.rb +15 -0
- data/lib/schematic/types/integration_response_data.rb +13 -0
- data/lib/schematic/types/integration_state.rb +13 -0
- data/lib/schematic/types/{plan_controlled_by_type.rb → integration_type.rb} +4 -2
- data/lib/schematic/types/integration_webhook_url_response_data.rb +10 -0
- data/lib/schematic/types/integrations_data_set_response_data.rb +9 -0
- data/lib/schematic/types/integrations_list_response_data.rb +15 -0
- data/lib/schematic/types/integrations_response_data.rb +13 -0
- data/lib/schematic/types/{condition_metric_period.rb → metric_period.rb} +1 -1
- data/lib/schematic/types/{feature_entitlement_month_reset.rb → metric_period_month_reset.rb} +2 -2
- data/lib/schematic/types/mrr_response_data.rb +10 -0
- data/lib/schematic/types/orb_integration_config.rb +9 -0
- data/lib/schematic/types/plan_credit_grant_view.rb +2 -0
- data/lib/schematic/types/plan_currency_price_request_body.rb +1 -0
- data/lib/schematic/types/plan_currency_prices_response_data.rb +1 -0
- data/lib/schematic/types/plan_detail_response_data.rb +9 -3
- data/lib/schematic/types/plan_entitlement_response_data.rb +4 -2
- data/lib/schematic/types/plan_group_plan_detail_response_data.rb +9 -3
- data/lib/schematic/types/plan_growth_point_response_data.rb +12 -0
- data/lib/schematic/types/plan_growth_response_data.rb +9 -0
- data/lib/schematic/types/plan_icon.rb +35 -0
- data/lib/schematic/types/plan_response_data.rb +3 -1
- data/lib/schematic/types/plan_version_response_data.rb +1 -1
- data/lib/schematic/types/plan_view_public_response_data.rb +9 -3
- data/lib/schematic/types/rule.rb +1 -1
- data/lib/schematic/types/rule_condition_detail_response_data.rb +4 -4
- data/lib/schematic/types/rule_condition_response_data.rb +4 -4
- data/lib/schematic/types/rule_detail_response_data.rb +1 -1
- data/lib/schematic/types/rule_response_data.rb +1 -1
- data/lib/schematic/types/{rule_rule_type.rb → rule_type.rb} +3 -3
- data/lib/schematic/types/rule_view.rb +1 -1
- data/lib/schematic/types/rules_engine_schema_version.rb +1 -1
- data/lib/schematic/types/rulesengine_check_flag_result.rb +2 -2
- data/lib/schematic/types/rulesengine_company_metric.rb +2 -2
- data/lib/schematic/types/rulesengine_condition.rb +4 -4
- data/lib/schematic/types/{rulesengine_condition_condition_type.rb → rulesengine_condition_type.rb} +1 -1
- data/lib/schematic/types/rulesengine_feature_entitlement.rb +2 -2
- data/lib/schematic/types/{feature_entitlement_metric_period.rb → rulesengine_metric_period.rb} +1 -1
- data/lib/schematic/types/{condition_metric_period_month_reset.rb → rulesengine_metric_period_month_reset.rb} +2 -2
- data/lib/schematic/types/rulesengine_rule.rb +1 -1
- data/lib/schematic/types/{rulesengine_rule_rule_type.rb → rulesengine_rule_type.rb} +3 -3
- data/lib/schematic/types/stripe_integration_config.rb +15 -0
- data/lib/schematic/types/top_feature_by_usage_response_data.rb +14 -0
- data/lib/schematic/types/top_features_by_usage_response_data.rb +9 -0
- data/lib/schematic/types/trial_status.rb +13 -0
- data/lib/schematic/types/update_auto_topup_override_request_body.rb +12 -0
- data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +2 -0
- data/lib/schematic/types/update_entitlement_req_common.rb +2 -2
- data/lib/schematic/types/update_plan_request_body.rb +1 -1
- data/lib/schematic/types/upsert_billing_product_request_body.rb +3 -0
- data/lib/schematic/types/usage_based_entitlement_request_body.rb +4 -0
- data/lib/schematic/types/usage_based_entitlement_response_data.rb +3 -2
- data/lib/schematic/types/webhook_url.rb +10 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic.rb +121 -57
- data/reference.md +2910 -886
- metadata +110 -45
- data/lib/schematic/companies/types/create_plan_trait_request_body.rb +0 -13
- data/lib/schematic/companies/types/update_plan_trait_request_body.rb +0 -13
- data/lib/schematic/entitlements/types/create_company_override_request_body_metric_period.rb +0 -16
- data/lib/schematic/entitlements/types/create_company_override_request_body_metric_period_month_reset.rb +0 -14
- data/lib/schematic/entitlements/types/create_plan_entitlement_request_body_metric_period.rb +0 -16
- data/lib/schematic/entitlements/types/create_plan_entitlement_request_body_metric_period_month_reset.rb +0 -14
- data/lib/schematic/entitlements/types/update_company_override_request_body_metric_period.rb +0 -16
- data/lib/schematic/entitlements/types/update_company_override_request_body_metric_period_month_reset.rb +0 -14
- data/lib/schematic/entitlements/types/update_plan_entitlement_request_body_metric_period.rb +0 -16
- data/lib/schematic/entitlements/types/update_plan_entitlement_request_body_metric_period_month_reset.rb +0 -14
- data/lib/schematic/types/create_entitlement_in_bundle_request_body_metric_period.rb +0 -14
- data/lib/schematic/types/create_entitlement_in_bundle_request_body_metric_period_month_reset.rb +0 -12
- data/lib/schematic/types/create_entitlement_req_common_metric_period.rb +0 -14
- data/lib/schematic/types/create_entitlement_req_common_metric_period_month_reset.rb +0 -12
- data/lib/schematic/types/create_or_update_condition_request_body_condition_type.rb +0 -17
- data/lib/schematic/types/create_or_update_condition_request_body_metric_period.rb +0 -14
- data/lib/schematic/types/create_or_update_condition_request_body_metric_period_month_reset.rb +0 -12
- data/lib/schematic/types/create_or_update_condition_request_body_operator.rb +0 -18
- data/lib/schematic/types/create_or_update_rule_request_body_rule_type.rb +0 -15
- data/lib/schematic/types/rulesengine_check_flag_result_feature_usage_period.rb +0 -14
- data/lib/schematic/types/rulesengine_check_flag_result_rule_type.rb +0 -17
- data/lib/schematic/types/rulesengine_company_metric_period.rb +0 -14
- data/lib/schematic/types/rulesengine_condition_metric_period.rb +0 -14
- data/lib/schematic/types/rulesengine_condition_metric_period_month_reset.rb +0 -12
- data/lib/schematic/types/rulesengine_condition_operator.rb +0 -18
- data/lib/schematic/types/rulesengine_feature_entitlement_metric_period.rb +0 -14
- data/lib/schematic/types/rulesengine_feature_entitlement_month_reset.rb +0 -12
- data/lib/schematic/types/update_entitlement_req_common_metric_period.rb +0 -14
- data/lib/schematic/types/update_entitlement_req_common_metric_period_month_reset.rb +0 -12
|
@@ -482,7 +482,6 @@ module Schematic
|
|
|
482
482
|
keys.each do |key|
|
|
483
483
|
result = @datastream_client.check_flag(eval_ctx, key)
|
|
484
484
|
response = CheckFlagResponse.new(result)
|
|
485
|
-
enqueue_flag_check_event(key, response, company, user)
|
|
486
485
|
results << { flag: key, value: response.value, reason: response.reason }
|
|
487
486
|
rescue DataStream::EvaluationError => e
|
|
488
487
|
@logger.debug("DataStream check_flags falling back to API: #{e.message}")
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module AccountMemberPermission
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
BILLING_CREDITS_EDIT = "billing_credits_edit"
|
|
9
|
+
COMPANIES_EDIT = "companies_edit"
|
|
10
|
+
COMPANY_USERS_EDIT = "company_users_edit"
|
|
11
|
+
COMPONENTS_EDIT = "components_edit"
|
|
12
|
+
DATA_EXPORTS_EDIT = "data_exports_edit"
|
|
13
|
+
FEATURES_EDIT = "features_edit"
|
|
14
|
+
FLAG_RULES_EDIT = "flag_rules_edit"
|
|
15
|
+
FLAGS_EDIT = "flags_edit"
|
|
16
|
+
OVERRIDES_EDIT = "overrides_edit"
|
|
17
|
+
PLAN_BILLING_EDIT = "plan_billing_edit"
|
|
18
|
+
PLAN_ENTITLEMENTS_EDIT = "plan_entitlements_edit"
|
|
19
|
+
PLAN_VERSIONS_EDIT = "plan_versions_edit"
|
|
20
|
+
PLANS_EDIT = "plans_edit"
|
|
21
|
+
WEBHOOKS_EDIT = "webhooks_edit"
|
|
22
|
+
WEBHOOKS_REVEAL_SECRET = "webhooks_reveal_secret"
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class AccountMemberResponseData < Internal::Types::Model
|
|
6
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
field :image_url, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :permissions, -> { Internal::Types::Hash[String, Internal::Types::Array[Schematic::Types::AccountMemberPermission]] }, optional: false, nullable: false
|
|
12
|
+
field :role, -> { Schematic::Types::AccountMemberRole }, optional: true, nullable: false
|
|
13
|
+
field :updated_at, -> { String }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/schematic/types/{rulesengine_company_metric_month_reset.rb → account_member_role.rb}
RENAMED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
|
-
module
|
|
5
|
+
module AccountMemberRole
|
|
6
6
|
extend Schematic::Internal::Types::Enum
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
ADMIN = "admin"
|
|
9
|
+
MEMBER = "member"
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class ActivityEntryResponseData < Internal::Types::Model
|
|
6
|
+
field :actor_name, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :method_, -> { String }, optional: false, nullable: false, api_name: "method"
|
|
8
|
+
field :resource_name, -> { String }, optional: false, nullable: false
|
|
9
|
+
field :resource_type, -> { String }, optional: false, nullable: false
|
|
10
|
+
field :timestamp, -> { String }, optional: false, nullable: false
|
|
11
|
+
field :title, -> { String }, 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 ActivityResponseResponseData < Internal::Types::Model
|
|
6
|
+
field :entries, -> { Internal::Types::Array[Schematic::Types::ActivityEntryResponseData] }, optional: false, nullable: false
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
end
|
|
@@ -5,8 +5,10 @@ module Schematic
|
|
|
5
5
|
class ApiKeyCreateResponseData < Internal::Types::Model
|
|
6
6
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
7
7
|
field :description, -> { String }, optional: true, nullable: false
|
|
8
|
+
field :environment, -> { Schematic::Types::EnvironmentResponseData }, optional: true, nullable: false
|
|
8
9
|
field :environment_id, -> { String }, optional: true, nullable: false
|
|
9
10
|
field :id, -> { String }, optional: false, nullable: false
|
|
11
|
+
field :integration, -> { Schematic::Types::ApiKeyIntegrationResponseData }, optional: true, nullable: false
|
|
10
12
|
field :last_used_at, -> { String }, optional: true, nullable: false
|
|
11
13
|
field :name, -> { String }, optional: false, nullable: false
|
|
12
14
|
field :readonly, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class ApiKeyIntegrationResponseData < Internal::Types::Model
|
|
6
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :state, -> { Schematic::Types::IntegrationState }, optional: false, nullable: false
|
|
8
|
+
field :type, -> { Schematic::Types::IntegrationType }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -5,8 +5,10 @@ module Schematic
|
|
|
5
5
|
class ApiKeyResponseData < Internal::Types::Model
|
|
6
6
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
7
7
|
field :description, -> { String }, optional: true, nullable: false
|
|
8
|
+
field :environment, -> { Schematic::Types::EnvironmentResponseData }, optional: true, nullable: false
|
|
8
9
|
field :environment_id, -> { String }, optional: true, nullable: false
|
|
9
10
|
field :id, -> { String }, optional: false, nullable: false
|
|
11
|
+
field :integration, -> { Schematic::Types::ApiKeyIntegrationResponseData }, optional: true, nullable: false
|
|
10
12
|
field :last_used_at, -> { String }, optional: true, nullable: false
|
|
11
13
|
field :name, -> { String }, optional: false, nullable: false
|
|
12
14
|
field :readonly, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
@@ -4,8 +4,10 @@ module Schematic
|
|
|
4
4
|
module Types
|
|
5
5
|
class AuditLogListResponseData < Internal::Types::Model
|
|
6
6
|
field :actor_type, -> { Schematic::Types::ActorType }, optional: false, nullable: false
|
|
7
|
+
field :api_key, -> { Schematic::Types::ApiKeyResponseData }, optional: true, nullable: false
|
|
7
8
|
field :api_key_id, -> { String }, optional: true, nullable: false
|
|
8
9
|
field :ended_at, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :environment, -> { Schematic::Types::EnvironmentResponseData }, optional: true, nullable: false
|
|
9
11
|
field :environment_id, -> { String }, optional: true, nullable: false
|
|
10
12
|
field :id, -> { String }, optional: false, nullable: false
|
|
11
13
|
field :method_, -> { String }, optional: false, nullable: false, api_name: "method"
|
|
@@ -4,8 +4,10 @@ module Schematic
|
|
|
4
4
|
module Types
|
|
5
5
|
class AuditLogResponseData < Internal::Types::Model
|
|
6
6
|
field :actor_type, -> { Schematic::Types::ActorType }, optional: false, nullable: false
|
|
7
|
+
field :api_key, -> { Schematic::Types::ApiKeyResponseData }, optional: true, nullable: false
|
|
7
8
|
field :api_key_id, -> { String }, optional: true, nullable: false
|
|
8
9
|
field :ended_at, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :environment, -> { Schematic::Types::EnvironmentResponseData }, optional: true, nullable: false
|
|
9
11
|
field :environment_id, -> { String }, optional: true, nullable: false
|
|
10
12
|
field :id, -> { String }, optional: false, nullable: false
|
|
11
13
|
field :method_, -> { String }, optional: false, nullable: false, api_name: "method"
|
|
@@ -9,7 +9,7 @@ module Schematic
|
|
|
9
9
|
field :credit_icon, -> { String }, optional: true, nullable: false
|
|
10
10
|
field :credit_id, -> { String }, optional: false, nullable: false
|
|
11
11
|
field :credit_name, -> { String }, optional: false, nullable: false
|
|
12
|
-
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::CreditBundleCurrencyPrice] }, optional:
|
|
12
|
+
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::CreditBundleCurrencyPrice] }, optional: false, nullable: false
|
|
13
13
|
field :expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: false, nullable: false
|
|
14
14
|
field :expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: false, nullable: false
|
|
15
15
|
field :expiry_unit_count, -> { Integer }, optional: true, nullable: false
|
|
@@ -7,6 +7,7 @@ module Schematic
|
|
|
7
7
|
field :burn_strategy, -> { Schematic::Types::BillingCreditBurnStrategy }, optional: false, nullable: false
|
|
8
8
|
field :cost_editable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
9
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
10
|
+
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::CreditCurrencyPrice] }, optional: false, nullable: false
|
|
10
11
|
field :default_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: false, nullable: false
|
|
11
12
|
field :default_expiry_unit_count, -> { Integer }, optional: true, nullable: false
|
|
12
13
|
field :default_rollover_policy, -> { Schematic::Types::BillingCreditRolloverPolicy }, optional: false, nullable: false
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class BillingLinkedResourceResponseData < Internal::Types::Model
|
|
6
|
+
field :billing_provider, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
7
|
+
field :external_resource_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :originator, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -9,6 +9,8 @@ module Schematic
|
|
|
9
9
|
field :auto_topup_expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
10
10
|
field :auto_topup_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
11
11
|
field :auto_topup_expiry_unit_count, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
field :auto_topup_self_service, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
13
|
+
field :auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
|
|
12
14
|
field :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::BillingCreditResponseData }, optional: true, nullable: false
|
|
@@ -7,6 +7,8 @@ module Schematic
|
|
|
7
7
|
field :external_price_id, -> { String }, optional: false, nullable: false
|
|
8
8
|
field :id, -> { String }, optional: false, nullable: false
|
|
9
9
|
field :interval, -> { Schematic::Types::BillingProductPriceInterval }, optional: false, nullable: false
|
|
10
|
+
field :interval_count, -> { Integer }, optional: false, nullable: false
|
|
11
|
+
field :nickname, -> { String }, optional: true, nullable: false
|
|
10
12
|
field :price, -> { Integer }, optional: false, nullable: false
|
|
11
13
|
field :price_decimal, -> { String }, optional: true, nullable: false
|
|
12
14
|
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
@@ -8,10 +8,12 @@ module Schematic
|
|
|
8
8
|
field :currency, -> { String }, optional: false, nullable: false
|
|
9
9
|
field :id, -> { String }, optional: false, nullable: false
|
|
10
10
|
field :interval, -> { Schematic::Types::BillingProductPriceInterval }, optional: false, nullable: false
|
|
11
|
+
field :interval_count, -> { Integer }, optional: false, nullable: false
|
|
11
12
|
field :is_active, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
12
13
|
field :meter_event_name, -> { String }, optional: true, nullable: false
|
|
13
14
|
field :meter_event_payload_key, -> { String }, optional: true, nullable: false
|
|
14
15
|
field :meter_id, -> { String }, optional: true, nullable: false
|
|
16
|
+
field :nickname, -> { String }, optional: true, nullable: false
|
|
15
17
|
field :package_size, -> { Integer }, optional: false, nullable: false
|
|
16
18
|
field :price, -> { Integer }, optional: false, nullable: false
|
|
17
19
|
field :price_decimal, -> { String }, optional: true, nullable: false
|
|
@@ -11,6 +11,7 @@ module Schematic
|
|
|
11
11
|
field :external_id, -> { String }, optional: false, nullable: false
|
|
12
12
|
field :id, -> { String }, optional: false, nullable: false
|
|
13
13
|
field :interval, -> { String }, optional: false, nullable: false
|
|
14
|
+
field :interval_count, -> { Integer }, optional: true, nullable: false
|
|
14
15
|
field :meter_id, -> { String }, optional: true, nullable: false
|
|
15
16
|
field :name, -> { String }, optional: false, nullable: false
|
|
16
17
|
field :package_size, -> { Integer }, optional: false, nullable: false
|
|
@@ -5,8 +5,9 @@ module Schematic
|
|
|
5
5
|
class BillingProductPlanResponseData < Internal::Types::Model
|
|
6
6
|
field :account_id, -> { String }, optional: false, nullable: false
|
|
7
7
|
field :billing_product_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :billing_strategy, -> { Schematic::Types::BillingStrategy }, optional: false, nullable: false
|
|
8
9
|
field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
|
|
9
|
-
field :controlled_by, -> { Schematic::Types::
|
|
10
|
+
field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
10
11
|
field :environment_id, -> { String }, optional: false, nullable: false
|
|
11
12
|
field :is_trialable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
12
13
|
field :monthly_price_id, -> { String }, optional: true, nullable: false
|
|
@@ -8,8 +8,10 @@ module Schematic
|
|
|
8
8
|
field :currency, -> { String }, optional: false, nullable: false
|
|
9
9
|
field :id, -> { String }, optional: false, nullable: false
|
|
10
10
|
field :interval, -> { Schematic::Types::BillingProductPriceInterval }, optional: false, nullable: false
|
|
11
|
+
field :interval_count, -> { Integer }, optional: false, nullable: false
|
|
11
12
|
field :is_active, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
12
13
|
field :meter_id, -> { String }, optional: true, nullable: false
|
|
14
|
+
field :nickname, -> { String }, optional: true, nullable: false
|
|
13
15
|
field :package_size, -> { Integer }, optional: false, nullable: false
|
|
14
16
|
field :price, -> { Integer }, optional: false, nullable: false
|
|
15
17
|
field :price_decimal, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module BillingStrategy
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
SCHEMATIC_MANAGED = "schematic_managed"
|
|
9
|
+
PROVIDER_MANAGED = "provider_managed"
|
|
10
|
+
NO_BILLING = "no_billing"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -4,6 +4,7 @@ module Schematic
|
|
|
4
4
|
module Types
|
|
5
5
|
class ChangeSubscriptionInternalRequestBody < Internal::Types::Model
|
|
6
6
|
field :add_on_ids, -> { Internal::Types::Array[Schematic::Types::UpdateAddOnRequestBody] }, optional: false, nullable: false
|
|
7
|
+
field :auto_topup_overrides, -> { Internal::Types::Array[Schematic::Types::UpdateAutoTopupOverrideRequestBody] }, optional: false, nullable: false
|
|
7
8
|
field :company_id, -> { String }, optional: false, nullable: false
|
|
8
9
|
field :coupon_external_id, -> { String }, optional: true, nullable: false
|
|
9
10
|
field :credit_bundles, -> { Internal::Types::Array[Schematic::Types::UpdateCreditBundleRequestBody] }, optional: false, nullable: false
|
|
@@ -4,6 +4,7 @@ module Schematic
|
|
|
4
4
|
module Types
|
|
5
5
|
class ChangeSubscriptionRequestBody < Internal::Types::Model
|
|
6
6
|
field :add_on_ids, -> { Internal::Types::Array[Schematic::Types::UpdateAddOnRequestBody] }, optional: false, nullable: false
|
|
7
|
+
field :auto_topup_overrides, -> { Internal::Types::Array[Schematic::Types::UpdateAutoTopupOverrideRequestBody] }, optional: false, nullable: false
|
|
7
8
|
field :coupon_external_id, -> { String }, optional: true, nullable: false
|
|
8
9
|
field :credit_bundles, -> { Internal::Types::Array[Schematic::Types::UpdateCreditBundleRequestBody] }, optional: false, nullable: false
|
|
9
10
|
field :new_plan_id, -> { String }, optional: false, nullable: false
|
|
@@ -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, -> {
|
|
12
|
+
field :feature_usage_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
|
|
13
13
|
field :feature_usage_reset_at, -> { String }, optional: true, nullable: false
|
|
14
14
|
field :flag, -> { String }, optional: false, nullable: false
|
|
15
15
|
field :flag_id, -> { String }, optional: true, 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, -> {
|
|
18
|
+
field :rule_type, -> { Schematic::Types::RuleType }, 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
|
|
@@ -16,6 +16,7 @@ module Schematic
|
|
|
16
16
|
field :expired_at, -> { String }, optional: true, nullable: false
|
|
17
17
|
field :id, -> { String }, optional: false, nullable: false
|
|
18
18
|
field :interval, -> { String }, optional: false, nullable: false
|
|
19
|
+
field :invoice_url, -> { String }, optional: true, nullable: false
|
|
19
20
|
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
20
21
|
field :period_end, -> { Integer }, optional: false, nullable: false
|
|
21
22
|
field :period_start, -> { Integer }, optional: false, nullable: false
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class ClerkIntegrationConfig < Internal::Types::Model
|
|
6
|
+
field :first_events_received, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
7
|
+
field :webhook_url, -> { String }, optional: true, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CompanyCreditBalanceResponseData < Internal::Types::Model
|
|
6
|
+
field :credit_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :remaining, -> { Integer }, optional: false, nullable: false
|
|
8
|
+
field :source, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
9
|
+
field :total, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -8,6 +8,7 @@ module Schematic
|
|
|
8
8
|
field :billing_subscription, -> { Schematic::Types::BillingSubscriptionView }, optional: true, nullable: false
|
|
9
9
|
field :billing_subscriptions, -> { Internal::Types::Array[Schematic::Types::BillingSubscriptionView] }, optional: false, nullable: false
|
|
10
10
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
11
|
+
field :custom_plan_billings, -> { Internal::Types::Array[Schematic::Types::CustomPlanBillingResponseData] }, optional: false, nullable: false
|
|
11
12
|
field :default_payment_method, -> { Schematic::Types::PaymentMethodResponseData }, optional: true, nullable: false
|
|
12
13
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::FeatureEntitlement] }, optional: false, nullable: false
|
|
13
14
|
field :entity_traits, -> { Internal::Types::Array[Schematic::Types::EntityTraitDetailResponseData] }, optional: false, nullable: false
|
|
@@ -10,8 +10,8 @@ module Schematic
|
|
|
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: false, nullable: false
|
|
13
|
-
field :month_reset, -> {
|
|
14
|
-
field :period, -> {
|
|
13
|
+
field :month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: false, nullable: false
|
|
14
|
+
field :period, -> { Schematic::Types::MetricPeriod }, optional: false, nullable: false
|
|
15
15
|
field :valid_until, -> { String }, optional: true, nullable: false
|
|
16
16
|
field :value, -> { Integer }, optional: false, nullable: false
|
|
17
17
|
end
|
|
@@ -12,8 +12,8 @@ module Schematic
|
|
|
12
12
|
field :feature, -> { Schematic::Types::FeatureResponseData }, optional: true, nullable: false
|
|
13
13
|
field :feature_id, -> { String }, optional: false, nullable: false
|
|
14
14
|
field :id, -> { String }, optional: false, nullable: false
|
|
15
|
-
field :metric_period, -> {
|
|
16
|
-
field :metric_period_month_reset, -> {
|
|
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 :notes, -> { Internal::Types::Array[Schematic::Types::CompanyOverrideNoteResponseData] }, optional: false, nullable: false
|
|
18
18
|
field :rule_id, -> { String }, optional: true, nullable: false
|
|
19
19
|
field :rule_id_usage_exceeded, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CompanyPlanCreditGrantView < Internal::Types::Model
|
|
6
|
+
field :billing_credit_auto_topup_amount, -> { Integer }, optional: true, nullable: false
|
|
7
|
+
field :billing_credit_auto_topup_amount_type, -> { String }, optional: true, nullable: false
|
|
8
|
+
field :billing_credit_auto_topup_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
|
+
field :billing_credit_auto_topup_expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
10
|
+
field :billing_credit_auto_topup_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
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
|
|
14
|
+
field :billing_credit_auto_topup_threshold_percent, -> { Integer }, optional: true, nullable: false
|
|
15
|
+
field :company_auto_topup_amount, -> { Integer }, optional: true, nullable: false
|
|
16
|
+
field :company_auto_topup_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
17
|
+
field :company_auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
|
|
18
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
19
|
+
field :credit, -> { Schematic::Types::BillingCreditView }, optional: true, nullable: false
|
|
20
|
+
field :credit_amount, -> { Integer }, optional: false, nullable: false
|
|
21
|
+
field :credit_description, -> { String }, optional: false, nullable: false
|
|
22
|
+
field :credit_icon, -> { String }, optional: true, nullable: false
|
|
23
|
+
field :credit_id, -> { String }, optional: false, nullable: false
|
|
24
|
+
field :credit_name, -> { String }, optional: false, nullable: false
|
|
25
|
+
field :expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
26
|
+
field :expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
27
|
+
field :expiry_unit_count, -> { Integer }, optional: true, nullable: false
|
|
28
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
29
|
+
field :plan, -> { Schematic::Types::GenericPreviewObject }, optional: true, nullable: false
|
|
30
|
+
field :plan_id, -> { String }, optional: false, nullable: false
|
|
31
|
+
field :plan_version_id, -> { String }, optional: true, nullable: false
|
|
32
|
+
field :plural_name, -> { String }, optional: true, nullable: false
|
|
33
|
+
field :reset_cadence, -> { Schematic::Types::BillingPlanCreditGrantResetCadence }, optional: true, nullable: false
|
|
34
|
+
field :reset_start, -> { Schematic::Types::BillingPlanCreditGrantResetStart }, optional: true, nullable: false
|
|
35
|
+
field :reset_type, -> { Schematic::Types::BillingPlanCreditGrantResetType }, optional: false, nullable: false
|
|
36
|
+
field :singular_name, -> { String }, optional: true, nullable: false
|
|
37
|
+
field :updated_at, -> { String }, optional: false, nullable: false
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -5,12 +5,17 @@ module Schematic
|
|
|
5
5
|
class CompanyPlanDetailResponseData < 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_can_trial, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
11
13
|
field :company_count, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
field :company_name, -> { String }, optional: true, nullable: false
|
|
12
16
|
field :compatible_plan_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
13
|
-
field :controlled_by, -> { Schematic::Types::
|
|
17
|
+
field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
18
|
+
field :copied_from_plan_id, -> { String }, optional: true, nullable: false
|
|
14
19
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
15
20
|
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
|
|
16
21
|
field :current, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
@@ -19,8 +24,8 @@ module Schematic
|
|
|
19
24
|
field :description, -> { String }, optional: false, nullable: false
|
|
20
25
|
field :draft_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
|
|
21
26
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::PlanEntitlementResponseData] }, optional: false, nullable: false
|
|
22
|
-
field :features, -> { Internal::Types::Array[Schematic::Types::
|
|
23
|
-
field :icon, -> {
|
|
27
|
+
field :features, -> { Internal::Types::Array[Schematic::Types::FeatureInPlanResponseData] }, optional: false, nullable: false
|
|
28
|
+
field :icon, -> { Schematic::Types::PlanIcon }, optional: false, nullable: false
|
|
24
29
|
field :id, -> { String }, optional: false, nullable: false
|
|
25
30
|
field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::PlanCreditGrantView] }, optional: false, nullable: false
|
|
26
31
|
field :invalid_reason, -> { Schematic::Types::CompanyPlanInvalidReason }, optional: true, nullable: false
|
|
@@ -32,6 +37,7 @@ module Schematic
|
|
|
32
37
|
field :name, -> { String }, optional: false, nullable: false
|
|
33
38
|
field :one_time_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
|
|
34
39
|
field :plan_type, -> { Schematic::Types::PlanType }, optional: false, nullable: false
|
|
40
|
+
field :quarterly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
|
|
35
41
|
field :trial_days, -> { Integer }, optional: true, nullable: false
|
|
36
42
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
37
43
|
field :usage_violations, -> { Internal::Types::Array[Schematic::Types::FeatureUsageResponseData] }, optional: false, nullable: false
|
|
@@ -9,7 +9,7 @@ module Schematic
|
|
|
9
9
|
field :description, -> { String }, optional: true, nullable: false
|
|
10
10
|
field :id, -> { String }, optional: false, nullable: false
|
|
11
11
|
field :image_url, -> { String }, optional: true, nullable: false
|
|
12
|
-
field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::
|
|
12
|
+
field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::CompanyPlanCreditGrantView] }, optional: false, nullable: false
|
|
13
13
|
field :name, -> { String }, optional: false, nullable: false
|
|
14
14
|
field :plan_period, -> { String }, optional: true, nullable: false
|
|
15
15
|
field :plan_price, -> { Integer }, optional: true, nullable: false
|
|
@@ -13,6 +13,7 @@ module Schematic
|
|
|
13
13
|
field :latest_invoice, -> { Schematic::Types::InvoiceResponseData }, optional: true, nullable: false
|
|
14
14
|
field :payment_method, -> { Schematic::Types::PaymentMethodResponseData }, optional: true, nullable: false
|
|
15
15
|
field :products, -> { Internal::Types::Array[Schematic::Types::BillingProductForSubscriptionResponseData] }, optional: false, nullable: false
|
|
16
|
+
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
16
17
|
field :status, -> { String }, optional: false, nullable: false
|
|
17
18
|
field :subscription_external_id, -> { String }, optional: false, nullable: false
|
|
18
19
|
field :total_price, -> { Integer }, optional: false, nullable: false
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
|
-
module
|
|
5
|
+
module ComparableOperator
|
|
6
6
|
extend Schematic::Internal::Types::Enum
|
|
7
7
|
|
|
8
8
|
EQ = "eq"
|
|
9
|
-
NE = "ne"
|
|
10
9
|
GT = "gt"
|
|
11
|
-
LT = "lt"
|
|
12
10
|
GTE = "gte"
|
|
13
|
-
LTE = "lte"
|
|
14
11
|
IS_EMPTY = "is_empty"
|
|
12
|
+
LT = "lt"
|
|
13
|
+
LTE = "lte"
|
|
15
14
|
NOT_EMPTY = "not_empty"
|
|
15
|
+
NE = "ne"
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
end
|
|
@@ -5,16 +5,16 @@ module Schematic
|
|
|
5
5
|
class Condition < Internal::Types::Model
|
|
6
6
|
field :account_id, -> { String }, optional: false, nullable: false
|
|
7
7
|
field :comparison_trait_definition, -> { Schematic::Types::TraitDefinition }, optional: true, nullable: false
|
|
8
|
-
field :condition_type, -> { Schematic::Types::
|
|
8
|
+
field :condition_type, -> { Schematic::Types::ConditionType }, 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::
|
|
15
|
-
field :metric_period_month_reset, -> { Schematic::Types::
|
|
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, -> { Schematic::Types::
|
|
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::TraitDefinition }, optional: true, nullable: false
|
|
20
20
|
field :trait_value, -> { String }, optional: false, nullable: false
|
|
@@ -6,7 +6,7 @@ module Schematic
|
|
|
6
6
|
field :account_id, -> { String }, optional: false, 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, -> {
|
|
9
|
+
field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
|
|
10
10
|
field :consumption_rate, -> { Integer }, optional: true, nullable: false
|
|
11
11
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
12
12
|
field :credit_id, -> { String }, optional: true, nullable: false
|
|
@@ -14,10 +14,10 @@ module Schematic
|
|
|
14
14
|
field :event_subtype, -> { String }, optional: true, nullable: false
|
|
15
15
|
field :flag_id, -> { String }, optional: true, nullable: false
|
|
16
16
|
field :id, -> { String }, optional: false, nullable: false
|
|
17
|
-
field :metric_period, -> {
|
|
18
|
-
field :metric_period_month_reset, -> {
|
|
17
|
+
field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
|
|
18
|
+
field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
|
|
19
19
|
field :metric_value, -> { Integer }, optional: true, nullable: false
|
|
20
|
-
field :operator, -> {
|
|
20
|
+
field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
|
|
21
21
|
field :resource_unspecified_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
22
22
|
field :rule_id, -> { String }, optional: false, nullable: false
|
|
23
23
|
field :trait_entity_type, -> { Schematic::Types::EntityType }, optional: true, nullable: false
|
|
@@ -9,7 +9,7 @@ module Schematic
|
|
|
9
9
|
field :comparison_trait, -> { Schematic::Types::EntityTraitDefinitionResponseData }, optional: true, nullable: false
|
|
10
10
|
field :comparison_trait_id, -> { String }, optional: true, nullable: false
|
|
11
11
|
field :condition_group_id, -> { String }, optional: true, nullable: false
|
|
12
|
-
field :condition_type, -> {
|
|
12
|
+
field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
|
|
13
13
|
field :consumption_rate, -> { Integer }, optional: true, nullable: false
|
|
14
14
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
15
15
|
field :credit_id, -> { String }, optional: true, nullable: false
|
|
@@ -17,10 +17,10 @@ module Schematic
|
|
|
17
17
|
field :event_subtype, -> { String }, optional: true, nullable: false
|
|
18
18
|
field :flag_id, -> { String }, optional: true, nullable: false
|
|
19
19
|
field :id, -> { String }, optional: false, nullable: false
|
|
20
|
-
field :metric_period, -> {
|
|
21
|
-
field :metric_period_month_reset, -> {
|
|
20
|
+
field :metric_period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
|
|
21
|
+
field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
|
|
22
22
|
field :metric_value, -> { Integer }, optional: true, nullable: false
|
|
23
|
-
field :operator, -> {
|
|
23
|
+
field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
|
|
24
24
|
field :plan_versions, -> { Internal::Types::Array[Schematic::Types::GenericPreviewObject] }, optional: false, nullable: false
|
|
25
25
|
field :plans, -> { Internal::Types::Array[Schematic::Types::GenericPreviewObject] }, optional: false, nullable: false
|
|
26
26
|
field :resource_unspecified_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|