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
|
@@ -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
|
data/lib/schematic/types/{feature_entitlement_month_reset.rb → metric_period_month_reset.rb}
RENAMED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
|
-
module
|
|
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
|
|
@@ -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 :
|
|
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::
|
|
17
|
-
field :icon, -> {
|
|
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, -> {
|
|
17
|
-
field :metric_period_month_reset, -> {
|
|
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::
|
|
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::
|
|
20
|
-
field :icon, -> {
|
|
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, -> {
|
|
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, -> {
|
|
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::
|
|
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::
|
|
21
|
-
field :icon, -> {
|
|
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
|
data/lib/schematic/types/rule.rb
CHANGED
|
@@ -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::
|
|
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, -> {
|
|
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, -> {
|
|
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 :metric_value, -> { Integer }, optional: true, nullable: false
|
|
18
|
-
field :operator, -> {
|
|
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, -> {
|
|
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, -> {
|
|
15
|
-
field :metric_period_month_reset, -> {
|
|
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, -> {
|
|
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, -> {
|
|
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, -> {
|
|
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
|
|
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, -> {
|
|
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
|
|
@@ -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::
|
|
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::
|
|
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::
|
|
12
|
-
field :period, -> { Schematic::Types::
|
|
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::
|
|
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::
|
|
15
|
-
field :metric_period_month_reset, -> { Schematic::Types::
|
|
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::
|
|
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
|
|
@@ -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::
|
|
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::
|
|
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,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
|
-
module
|
|
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::
|
|
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
|
|
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
|