schematichq 1.4.13 → 1.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +7 -3
- data/.fern/replay.lock +15 -3
- data/.rubocop.yml +33 -0
- data/CONTRIBUTING.md +120 -0
- data/WASM_VERSION +1 -1
- data/lib/schematic/accesstokens/client.rb +8 -0
- data/lib/schematic/accesstokens/types/issue_temporary_access_token_request_body.rb +1 -0
- data/lib/schematic/accesstokens/types/issue_temporary_access_token_response.rb +1 -0
- data/lib/schematic/accounts/client.rb +176 -22
- data/lib/schematic/accounts/types/count_account_members_params.rb +4 -0
- data/lib/schematic/accounts/types/count_account_members_request.rb +4 -0
- data/lib/schematic/accounts/types/count_account_members_response.rb +1 -0
- data/lib/schematic/accounts/types/count_api_keys_params.rb +3 -0
- data/lib/schematic/accounts/types/count_api_keys_request.rb +3 -0
- data/lib/schematic/accounts/types/count_api_keys_response.rb +1 -0
- data/lib/schematic/accounts/types/count_audit_logs_params.rb +6 -0
- data/lib/schematic/accounts/types/count_audit_logs_request.rb +6 -0
- data/lib/schematic/accounts/types/count_audit_logs_response.rb +1 -0
- data/lib/schematic/accounts/types/create_api_key_request_body.rb +4 -0
- data/lib/schematic/accounts/types/create_api_key_response.rb +1 -0
- data/lib/schematic/accounts/types/create_environment_request_body.rb +1 -0
- data/lib/schematic/accounts/types/create_environment_response.rb +1 -0
- data/lib/schematic/accounts/types/delete_api_key_response.rb +1 -0
- data/lib/schematic/accounts/types/delete_environment_response.rb +1 -0
- data/lib/schematic/accounts/types/get_account_member_response.rb +1 -0
- data/lib/schematic/accounts/types/get_api_key_response.rb +1 -0
- data/lib/schematic/accounts/types/get_audit_log_response.rb +1 -0
- data/lib/schematic/accounts/types/get_environment_response.rb +1 -0
- data/lib/schematic/accounts/types/get_onboarding_state_response.rb +13 -0
- data/lib/schematic/accounts/types/get_who_am_i_response.rb +1 -0
- data/lib/schematic/accounts/types/list_account_members_params.rb +4 -0
- data/lib/schematic/accounts/types/list_account_members_request.rb +4 -0
- data/lib/schematic/accounts/types/list_account_members_response.rb +1 -0
- data/lib/schematic/accounts/types/list_api_keys_params.rb +3 -0
- data/lib/schematic/accounts/types/list_api_keys_request.rb +3 -0
- data/lib/schematic/accounts/types/list_api_keys_response.rb +1 -0
- data/lib/schematic/accounts/types/list_audit_logs_params.rb +6 -0
- data/lib/schematic/accounts/types/list_audit_logs_request.rb +6 -0
- data/lib/schematic/accounts/types/list_audit_logs_response.rb +1 -0
- data/lib/schematic/accounts/types/list_environments_params.rb +2 -0
- data/lib/schematic/accounts/types/list_environments_request.rb +2 -0
- data/lib/schematic/accounts/types/list_environments_response.rb +1 -0
- data/lib/schematic/accounts/types/quickstart_response.rb +1 -0
- data/lib/schematic/accounts/types/update_api_key_request_body.rb +3 -0
- data/lib/schematic/accounts/types/update_api_key_response.rb +1 -0
- data/lib/schematic/accounts/types/update_environment_request_body.rb +2 -0
- data/lib/schematic/accounts/types/update_environment_response.rb +1 -0
- data/lib/schematic/accounts/types/update_onboarding_state_request_body.rb +17 -0
- data/lib/schematic/accounts/types/update_onboarding_state_response.rb +13 -0
- data/lib/schematic/billing/client.rb +243 -20
- data/lib/schematic/billing/types/count_billing_products_params.rb +12 -0
- data/lib/schematic/billing/types/count_billing_products_request.rb +12 -0
- data/lib/schematic/billing/types/count_billing_products_response.rb +1 -0
- data/lib/schematic/billing/types/count_customers_params.rb +5 -0
- data/lib/schematic/billing/types/count_customers_request.rb +5 -0
- data/lib/schematic/billing/types/count_customers_response.rb +1 -0
- data/lib/schematic/billing/types/create_billing_customer_request_body.rb +6 -0
- data/lib/schematic/billing/types/create_billing_price_request_body.rb +16 -0
- data/lib/schematic/billing/types/create_billing_product_request_body.rb +4 -0
- data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +20 -0
- data/lib/schematic/billing/types/create_coupon_request_body.rb +8 -0
- data/lib/schematic/billing/types/create_invoice_request_body.rb +14 -0
- data/lib/schematic/billing/types/create_meter_request_body.rb +4 -0
- data/lib/schematic/billing/types/create_payment_method_request_body.rb +11 -0
- data/lib/schematic/billing/types/delete_billing_coupon_response.rb +1 -0
- data/lib/schematic/billing/types/delete_billing_customer_response.rb +1 -0
- data/lib/schematic/billing/types/delete_billing_invoice_response.rb +1 -0
- data/lib/schematic/billing/types/delete_billing_product_response.rb +1 -0
- data/lib/schematic/billing/types/delete_payment_method_by_external_id_response.rb +1 -0
- data/lib/schematic/billing/types/delete_product_price_response.rb +1 -0
- data/lib/schematic/billing/types/list_billing_prices_params.rb +17 -0
- data/lib/schematic/billing/types/list_billing_prices_request.rb +17 -0
- data/lib/schematic/billing/types/list_billing_prices_response.rb +1 -0
- data/lib/schematic/billing/types/list_billing_product_prices_params.rb +17 -0
- data/lib/schematic/billing/types/list_billing_product_prices_request.rb +17 -0
- data/lib/schematic/billing/types/list_billing_product_prices_response.rb +1 -0
- data/lib/schematic/billing/types/list_billing_products_params.rb +12 -0
- data/lib/schematic/billing/types/list_billing_products_request.rb +12 -0
- data/lib/schematic/billing/types/list_billing_products_response.rb +1 -0
- data/lib/schematic/billing/types/list_coupons_params.rb +3 -0
- data/lib/schematic/billing/types/list_coupons_request.rb +3 -0
- data/lib/schematic/billing/types/list_coupons_response.rb +1 -0
- data/lib/schematic/billing/types/list_customers_with_subscriptions_params.rb +5 -0
- data/lib/schematic/billing/types/list_customers_with_subscriptions_request.rb +5 -0
- data/lib/schematic/billing/types/list_customers_with_subscriptions_response.rb +1 -0
- data/lib/schematic/billing/types/list_invoices_params.rb +4 -0
- data/lib/schematic/billing/types/list_invoices_request.rb +4 -0
- data/lib/schematic/billing/types/list_invoices_response.rb +1 -0
- data/lib/schematic/billing/types/list_meters_params.rb +2 -0
- data/lib/schematic/billing/types/list_meters_request.rb +2 -0
- data/lib/schematic/billing/types/list_meters_response.rb +1 -0
- data/lib/schematic/billing/types/list_payment_methods_params.rb +3 -0
- data/lib/schematic/billing/types/list_payment_methods_request.rb +3 -0
- data/lib/schematic/billing/types/list_payment_methods_response.rb +1 -0
- data/lib/schematic/billing/types/upsert_billing_coupon_response.rb +1 -0
- data/lib/schematic/billing/types/upsert_billing_customer_response.rb +1 -0
- data/lib/schematic/billing/types/upsert_billing_meter_response.rb +1 -0
- data/lib/schematic/billing/types/upsert_billing_price_response.rb +1 -0
- data/lib/schematic/billing/types/upsert_billing_product_response.rb +1 -0
- data/lib/schematic/billing/types/upsert_billing_subscription_response.rb +1 -0
- data/lib/schematic/billing/types/upsert_invoice_response.rb +1 -0
- data/lib/schematic/billing/types/upsert_payment_method_response.rb +1 -0
- data/lib/schematic/catalogs/client.rb +61 -4
- data/lib/schematic/catalogs/types/create_catalog_request_body.rb +1 -0
- data/lib/schematic/catalogs/types/create_catalog_response.rb +1 -0
- data/lib/schematic/catalogs/types/delete_catalog_response.rb +1 -0
- data/lib/schematic/catalogs/types/get_catalog_response.rb +1 -0
- data/lib/schematic/catalogs/types/get_configuration_response.rb +1 -0
- data/lib/schematic/catalogs/types/get_credit_bundles_in_catalog_response.rb +1 -0
- data/lib/schematic/catalogs/types/get_derived_features_response.rb +1 -0
- data/lib/schematic/catalogs/types/get_plans_in_catalog_response.rb +1 -0
- data/lib/schematic/catalogs/types/list_catalogs_params.rb +3 -0
- data/lib/schematic/catalogs/types/list_catalogs_request.rb +3 -0
- data/lib/schematic/catalogs/types/list_catalogs_response.rb +1 -0
- data/lib/schematic/catalogs/types/update_catalog_configuration_request_body.rb +9 -0
- data/lib/schematic/catalogs/types/update_catalog_request_body.rb +3 -0
- data/lib/schematic/catalogs/types/update_catalog_response.rb +1 -0
- data/lib/schematic/catalogs/types/update_configuration_response.rb +1 -0
- data/lib/schematic/checkout/client.rb +117 -2
- data/lib/schematic/checkout/types/cancel_subscription_request.rb +2 -0
- data/lib/schematic/checkout/types/cancel_subscription_response.rb +1 -0
- data/lib/schematic/checkout/types/checkout_data_request_body.rb +2 -0
- data/lib/schematic/checkout/types/checkout_internal_response.rb +1 -0
- data/lib/schematic/checkout/types/get_checkout_data_response.rb +1 -0
- data/lib/schematic/checkout/types/get_company_billing_details_response.rb +1 -0
- data/lib/schematic/checkout/types/manage_plan_response.rb +1 -0
- data/lib/schematic/checkout/types/preview_checkout_internal_response.rb +1 -0
- data/lib/schematic/checkout/types/preview_manage_plan_response.rb +1 -0
- data/lib/schematic/checkout/types/update_company_billing_details_request_body.rb +5 -0
- data/lib/schematic/checkout/types/update_company_billing_details_response.rb +1 -0
- data/lib/schematic/checkout/types/update_customer_subscription_trial_end_response.rb +1 -0
- data/lib/schematic/checkout/types/update_trial_end_request_body.rb +1 -0
- data/lib/schematic/client.rb +37 -4
- data/lib/schematic/companies/client.rb +421 -45
- data/lib/schematic/companies/types/count_companies_params.rb +21 -0
- data/lib/schematic/companies/types/count_companies_request.rb +21 -0
- data/lib/schematic/companies/types/count_companies_response.rb +1 -0
- data/lib/schematic/companies/types/count_entity_key_definitions_params.rb +4 -0
- data/lib/schematic/companies/types/count_entity_key_definitions_request.rb +4 -0
- data/lib/schematic/companies/types/count_entity_key_definitions_response.rb +1 -0
- data/lib/schematic/companies/types/count_entity_keys_params.rb +3 -0
- data/lib/schematic/companies/types/count_entity_keys_request.rb +3 -0
- data/lib/schematic/companies/types/count_entity_keys_response.rb +1 -0
- data/lib/schematic/companies/types/count_entity_trait_definitions_params.rb +6 -0
- data/lib/schematic/companies/types/count_entity_trait_definitions_request.rb +6 -0
- data/lib/schematic/companies/types/count_entity_trait_definitions_response.rb +1 -0
- data/lib/schematic/companies/types/count_entity_traits_params.rb +18 -0
- data/lib/schematic/companies/types/count_entity_traits_request.rb +17 -0
- data/lib/schematic/companies/types/count_entity_traits_response.rb +13 -0
- data/lib/schematic/companies/types/count_plan_traits_params.rb +5 -0
- data/lib/schematic/companies/types/count_plan_traits_request.rb +5 -0
- data/lib/schematic/companies/types/count_plan_traits_response.rb +1 -0
- data/lib/schematic/companies/types/count_users_params.rb +5 -0
- data/lib/schematic/companies/types/count_users_request.rb +5 -0
- data/lib/schematic/companies/types/count_users_response.rb +1 -0
- data/lib/schematic/companies/types/create_company_response.rb +1 -0
- data/lib/schematic/companies/types/create_entity_trait_definition_request_body.rb +3 -0
- data/lib/schematic/companies/types/create_user_response.rb +1 -0
- data/lib/schematic/companies/types/delete_company_by_keys_response.rb +1 -0
- data/lib/schematic/companies/types/delete_company_membership_response.rb +1 -0
- data/lib/schematic/companies/types/delete_company_params.rb +1 -0
- data/lib/schematic/companies/types/delete_company_request.rb +2 -0
- data/lib/schematic/companies/types/delete_company_response.rb +1 -0
- data/lib/schematic/companies/types/delete_entity_key_definition_response.rb +1 -0
- data/lib/schematic/companies/types/delete_entity_trait_definition_response.rb +13 -0
- data/lib/schematic/companies/types/delete_user_by_keys_response.rb +1 -0
- data/lib/schematic/companies/types/delete_user_response.rb +1 -0
- data/lib/schematic/companies/types/get_active_company_subscription_params.rb +3 -0
- data/lib/schematic/companies/types/get_active_company_subscription_request.rb +3 -0
- data/lib/schematic/companies/types/get_active_company_subscription_response.rb +1 -0
- data/lib/schematic/companies/types/get_billing_entity_child_subscriptions_request.rb +1 -1
- data/lib/schematic/companies/types/get_billing_entity_child_subscriptions_response.rb +1 -0
- data/lib/schematic/companies/types/get_company_billing_entity_request.rb +1 -1
- data/lib/schematic/companies/types/get_company_billing_entity_response.rb +1 -0
- data/lib/schematic/companies/types/get_company_response.rb +1 -0
- data/lib/schematic/companies/types/get_entity_trait_definition_response.rb +1 -0
- data/lib/schematic/companies/types/get_entity_trait_definition_usage_response.rb +13 -0
- data/lib/schematic/companies/types/get_entity_trait_values_params.rb +3 -0
- data/lib/schematic/companies/types/get_entity_trait_values_request.rb +3 -0
- data/lib/schematic/companies/types/get_entity_trait_values_response.rb +1 -0
- data/lib/schematic/companies/types/get_or_create_company_membership_request_body.rb +1 -0
- data/lib/schematic/companies/types/get_or_create_company_membership_response.rb +1 -0
- data/lib/schematic/companies/types/get_or_create_entity_trait_definition_response.rb +1 -0
- data/lib/schematic/companies/types/get_plan_change_response.rb +1 -0
- data/lib/schematic/companies/types/get_plan_trait_response.rb +1 -0
- data/lib/schematic/companies/types/get_user_response.rb +1 -0
- data/lib/schematic/companies/types/list_companies_params.rb +21 -0
- data/lib/schematic/companies/types/list_companies_request.rb +21 -0
- data/lib/schematic/companies/types/list_companies_response.rb +1 -0
- data/lib/schematic/companies/types/list_company_memberships_params.rb +3 -0
- data/lib/schematic/companies/types/list_company_memberships_request.rb +3 -0
- data/lib/schematic/companies/types/list_company_memberships_response.rb +1 -0
- data/lib/schematic/companies/types/list_entity_key_definitions_params.rb +4 -0
- data/lib/schematic/companies/types/list_entity_key_definitions_request.rb +4 -0
- data/lib/schematic/companies/types/list_entity_key_definitions_response.rb +1 -0
- data/lib/schematic/companies/types/list_entity_trait_definitions_params.rb +6 -0
- data/lib/schematic/companies/types/list_entity_trait_definitions_request.rb +6 -0
- data/lib/schematic/companies/types/list_entity_trait_definitions_response.rb +1 -0
- data/lib/schematic/companies/types/list_plan_changes_params.rb +5 -1
- data/lib/schematic/companies/types/list_plan_changes_request.rb +5 -1
- data/lib/schematic/companies/types/list_plan_changes_response.rb +1 -0
- data/lib/schematic/companies/types/list_plan_traits_params.rb +5 -0
- data/lib/schematic/companies/types/list_plan_traits_request.rb +5 -0
- data/lib/schematic/companies/types/list_plan_traits_response.rb +1 -0
- data/lib/schematic/companies/types/list_users_params.rb +5 -0
- data/lib/schematic/companies/types/list_users_request.rb +5 -0
- data/lib/schematic/companies/types/list_users_response.rb +1 -0
- data/lib/schematic/companies/types/lookup_company_response.rb +1 -0
- data/lib/schematic/companies/types/lookup_user_response.rb +1 -0
- data/lib/schematic/companies/types/update_entity_trait_definition_request_body.rb +2 -0
- data/lib/schematic/companies/types/update_entity_trait_definition_response.rb +1 -0
- data/lib/schematic/companies/types/update_plan_trait_bulk_request_body.rb +2 -0
- data/lib/schematic/companies/types/update_plan_traits_bulk_response.rb +1 -0
- data/lib/schematic/companies/types/upsert_company_response.rb +1 -0
- data/lib/schematic/companies/types/upsert_company_trait_response.rb +1 -0
- data/lib/schematic/companies/types/upsert_user_response.rb +1 -0
- data/lib/schematic/companies/types/upsert_user_trait_response.rb +1 -0
- data/lib/schematic/components/client.rb +40 -8
- data/lib/schematic/components/types/bind_catalog_request_body.rb +1 -0
- data/lib/schematic/components/types/bind_catalog_response.rb +1 -0
- data/lib/schematic/components/types/count_components_params.rb +2 -0
- data/lib/schematic/components/types/count_components_request.rb +2 -0
- data/lib/schematic/components/types/count_components_response.rb +1 -0
- data/lib/schematic/components/types/create_component_request_body.rb +2 -0
- data/lib/schematic/components/types/create_component_response.rb +1 -0
- data/lib/schematic/components/types/delete_component_response.rb +1 -0
- data/lib/schematic/components/types/get_component_response.rb +1 -0
- data/lib/schematic/components/types/list_components_params.rb +2 -0
- data/lib/schematic/components/types/list_components_request.rb +2 -0
- data/lib/schematic/components/types/list_components_response.rb +1 -0
- data/lib/schematic/components/types/preview_component_data_params.rb +1 -0
- data/lib/schematic/components/types/preview_component_data_request.rb +1 -0
- data/lib/schematic/components/types/preview_component_data_response.rb +1 -0
- data/lib/schematic/components/types/update_component_request_body.rb +4 -0
- data/lib/schematic/components/types/update_component_response.rb +1 -0
- data/lib/schematic/componentspublic/client.rb +5 -3
- data/lib/schematic/componentspublic/types/get_public_plans_response.rb +1 -0
- data/lib/schematic/credits/client.rb +233 -36
- data/lib/schematic/credits/types/acquire_credit_lease_request_body.rb +3 -0
- data/lib/schematic/credits/types/acquire_credit_lease_response.rb +1 -0
- data/lib/schematic/credits/types/count_billing_credits_grants_params.rb +3 -0
- data/lib/schematic/credits/types/count_billing_credits_grants_request.rb +3 -0
- data/lib/schematic/credits/types/count_billing_credits_grants_response.rb +1 -0
- data/lib/schematic/credits/types/count_billing_credits_params.rb +3 -0
- data/lib/schematic/credits/types/count_billing_credits_request.rb +3 -0
- data/lib/schematic/credits/types/count_billing_credits_response.rb +1 -0
- data/lib/schematic/credits/types/count_billing_plan_credit_grants_params.rb +7 -0
- data/lib/schematic/credits/types/count_billing_plan_credit_grants_request.rb +7 -0
- data/lib/schematic/credits/types/count_billing_plan_credit_grants_response.rb +1 -0
- data/lib/schematic/credits/types/count_company_grants_params.rb +4 -0
- data/lib/schematic/credits/types/count_company_grants_request.rb +5 -1
- data/lib/schematic/credits/types/count_company_grants_response.rb +1 -0
- data/lib/schematic/credits/types/count_credit_bundles_params.rb +5 -0
- data/lib/schematic/credits/types/count_credit_bundles_request.rb +5 -0
- data/lib/schematic/credits/types/count_credit_bundles_response.rb +1 -0
- data/lib/schematic/credits/types/count_credit_event_ledger_params.rb +7 -0
- data/lib/schematic/credits/types/count_credit_event_ledger_request.rb +7 -0
- data/lib/schematic/credits/types/count_credit_event_ledger_response.rb +1 -0
- data/lib/schematic/credits/types/create_billing_credit_request_body.rb +12 -0
- data/lib/schematic/credits/types/create_billing_credit_response.rb +1 -0
- data/lib/schematic/credits/types/create_billing_plan_credit_grant_response.rb +1 -0
- data/lib/schematic/credits/types/create_company_credit_grant.rb +11 -0
- data/lib/schematic/credits/types/create_credit_bundle_request_body.rb +13 -0
- data/lib/schematic/credits/types/create_credit_bundle_response.rb +1 -0
- data/lib/schematic/credits/types/delete_billing_plan_credit_grant_request.rb +1 -0
- data/lib/schematic/credits/types/delete_billing_plan_credit_grant_response.rb +1 -0
- data/lib/schematic/credits/types/delete_credit_bundle_response.rb +1 -0
- data/lib/schematic/credits/types/extend_credit_lease_request_body.rb +2 -0
- data/lib/schematic/credits/types/extend_credit_lease_response.rb +1 -0
- data/lib/schematic/credits/types/get_credit_bundle_response.rb +1 -0
- data/lib/schematic/credits/types/get_single_billing_credit_response.rb +1 -0
- data/lib/schematic/credits/types/get_single_billing_plan_credit_grant_response.rb +1 -0
- data/lib/schematic/credits/types/grant_billing_credits_to_company_response.rb +1 -0
- data/lib/schematic/credits/types/list_billing_credits_params.rb +3 -0
- data/lib/schematic/credits/types/list_billing_credits_request.rb +3 -0
- data/lib/schematic/credits/types/list_billing_credits_response.rb +1 -0
- data/lib/schematic/credits/types/list_billing_plan_credit_grants_params.rb +7 -0
- data/lib/schematic/credits/types/list_billing_plan_credit_grants_request.rb +7 -0
- data/lib/schematic/credits/types/list_billing_plan_credit_grants_response.rb +1 -0
- data/lib/schematic/credits/types/list_company_credit_balances_response.rb +1 -0
- data/lib/schematic/credits/types/list_company_grants_params.rb +4 -0
- data/lib/schematic/credits/types/list_company_grants_request.rb +5 -1
- data/lib/schematic/credits/types/list_company_grants_response.rb +1 -0
- data/lib/schematic/credits/types/list_credit_bundles_params.rb +5 -0
- data/lib/schematic/credits/types/list_credit_bundles_request.rb +5 -0
- data/lib/schematic/credits/types/list_credit_bundles_response.rb +1 -0
- data/lib/schematic/credits/types/list_credit_event_ledger_params.rb +7 -0
- data/lib/schematic/credits/types/list_credit_event_ledger_request.rb +7 -0
- data/lib/schematic/credits/types/list_credit_event_ledger_response.rb +1 -0
- data/lib/schematic/credits/types/list_grants_for_credit_params.rb +3 -0
- data/lib/schematic/credits/types/list_grants_for_credit_request.rb +3 -0
- data/lib/schematic/credits/types/list_grants_for_credit_response.rb +1 -0
- data/lib/schematic/credits/types/release_credit_lease_response.rb +1 -0
- data/lib/schematic/credits/types/soft_delete_billing_credit_response.rb +1 -0
- data/lib/schematic/credits/types/update_billing_credit_request_body.rb +12 -0
- data/lib/schematic/credits/types/update_billing_credit_response.rb +1 -0
- data/lib/schematic/credits/types/update_billing_plan_credit_grant_response.rb +1 -0
- data/lib/schematic/credits/types/update_credit_bundle_details_request_body.rb +11 -0
- data/lib/schematic/credits/types/update_credit_bundle_details_response.rb +1 -0
- data/lib/schematic/credits/types/zero_out_grant_request_body.rb +1 -0
- data/lib/schematic/credits/types/zero_out_grant_response.rb +1 -0
- data/lib/schematic/dataexports/client.rb +20 -2
- data/lib/schematic/dataexports/types/create_data_export_request_body.rb +2 -0
- data/lib/schematic/dataexports/types/create_data_export_response.rb +1 -0
- data/lib/schematic/dataexports/types/get_data_export_response.rb +1 -0
- data/lib/schematic/dataexports/types/list_data_exports_params.rb +3 -0
- data/lib/schematic/dataexports/types/list_data_exports_request.rb +3 -0
- data/lib/schematic/dataexports/types/list_data_exports_response.rb +1 -0
- data/lib/schematic/datastream/client.rb +4 -4
- data/lib/schematic/entitlements/client.rb +256 -30
- data/lib/schematic/entitlements/types/count_company_overrides_params.rb +8 -0
- data/lib/schematic/entitlements/types/count_company_overrides_request.rb +8 -0
- data/lib/schematic/entitlements/types/count_company_overrides_response.rb +1 -0
- data/lib/schematic/entitlements/types/count_feature_companies_params.rb +3 -0
- data/lib/schematic/entitlements/types/count_feature_companies_request.rb +3 -0
- data/lib/schematic/entitlements/types/count_feature_companies_response.rb +1 -0
- data/lib/schematic/entitlements/types/count_feature_usage_params.rb +8 -0
- data/lib/schematic/entitlements/types/count_feature_usage_request.rb +8 -0
- data/lib/schematic/entitlements/types/count_feature_usage_response.rb +1 -0
- data/lib/schematic/entitlements/types/count_feature_users_params.rb +3 -0
- data/lib/schematic/entitlements/types/count_feature_users_request.rb +3 -0
- data/lib/schematic/entitlements/types/count_feature_users_response.rb +1 -0
- data/lib/schematic/entitlements/types/count_plan_entitlements_params.rb +10 -0
- data/lib/schematic/entitlements/types/count_plan_entitlements_request.rb +10 -0
- data/lib/schematic/entitlements/types/count_plan_entitlements_response.rb +1 -0
- data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +35 -0
- data/lib/schematic/entitlements/types/create_company_override_request_body.rb +11 -0
- data/lib/schematic/entitlements/types/create_company_override_response.rb +1 -0
- data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +33 -0
- data/lib/schematic/entitlements/types/create_plan_entitlement_response.rb +1 -0
- data/lib/schematic/entitlements/types/delete_company_override_response.rb +1 -0
- data/lib/schematic/entitlements/types/delete_plan_entitlement_response.rb +1 -0
- data/lib/schematic/entitlements/types/duplicate_plan_entitlements_request_body.rb +1 -0
- data/lib/schematic/entitlements/types/duplicate_plan_entitlements_response.rb +1 -0
- data/lib/schematic/entitlements/types/get_company_override_response.rb +1 -0
- data/lib/schematic/entitlements/types/get_feature_usage_by_company_response.rb +1 -0
- data/lib/schematic/entitlements/types/get_feature_usage_time_series_params.rb +4 -0
- data/lib/schematic/entitlements/types/get_feature_usage_time_series_request.rb +4 -0
- data/lib/schematic/entitlements/types/get_feature_usage_time_series_response.rb +1 -0
- data/lib/schematic/entitlements/types/get_plan_entitlement_response.rb +1 -0
- data/lib/schematic/entitlements/types/get_user_usage_by_company_params.rb +3 -0
- data/lib/schematic/entitlements/types/get_user_usage_by_company_request.rb +3 -0
- data/lib/schematic/entitlements/types/get_user_usage_by_company_response.rb +1 -0
- data/lib/schematic/entitlements/types/get_user_usage_detail_params.rb +3 -0
- data/lib/schematic/entitlements/types/get_user_usage_detail_request.rb +3 -0
- data/lib/schematic/entitlements/types/get_user_usage_detail_response.rb +1 -0
- data/lib/schematic/entitlements/types/list_company_overrides_params.rb +8 -0
- data/lib/schematic/entitlements/types/list_company_overrides_request.rb +8 -0
- data/lib/schematic/entitlements/types/list_company_overrides_response.rb +1 -0
- data/lib/schematic/entitlements/types/list_feature_companies_params.rb +3 -0
- data/lib/schematic/entitlements/types/list_feature_companies_request.rb +3 -0
- data/lib/schematic/entitlements/types/list_feature_companies_response.rb +1 -0
- data/lib/schematic/entitlements/types/list_feature_usage_history_params.rb +24 -0
- data/lib/schematic/entitlements/types/list_feature_usage_history_request.rb +23 -0
- data/lib/schematic/entitlements/types/list_feature_usage_history_response.rb +13 -0
- data/lib/schematic/entitlements/types/list_feature_usage_params.rb +8 -0
- data/lib/schematic/entitlements/types/list_feature_usage_request.rb +8 -0
- data/lib/schematic/entitlements/types/list_feature_usage_response.rb +1 -0
- data/lib/schematic/entitlements/types/list_feature_users_params.rb +3 -0
- data/lib/schematic/entitlements/types/list_feature_users_request.rb +3 -0
- data/lib/schematic/entitlements/types/list_feature_users_response.rb +1 -0
- data/lib/schematic/entitlements/types/list_plan_entitlements_params.rb +10 -0
- data/lib/schematic/entitlements/types/list_plan_entitlements_request.rb +10 -0
- data/lib/schematic/entitlements/types/list_plan_entitlements_response.rb +1 -0
- data/lib/schematic/entitlements/types/update_company_override_request_body.rb +10 -0
- data/lib/schematic/entitlements/types/update_company_override_response.rb +1 -0
- data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +31 -0
- data/lib/schematic/entitlements/types/update_plan_entitlement_response.rb +1 -0
- data/lib/schematic/entitlements/types/upsert_plan_entitlement_for_billing_product_response.rb +1 -0
- data/lib/schematic/event_buffer.rb +16 -2
- data/lib/schematic/events/client.rb +36 -7
- data/lib/schematic/events/types/create_event_batch_response.rb +1 -0
- data/lib/schematic/events/types/create_event_response.rb +1 -0
- data/lib/schematic/events/types/get_event_response.rb +1 -0
- data/lib/schematic/events/types/get_event_summaries_params.rb +3 -0
- data/lib/schematic/events/types/get_event_summaries_request.rb +3 -0
- data/lib/schematic/events/types/get_event_summaries_response.rb +1 -0
- data/lib/schematic/events/types/get_segment_integration_status_response.rb +1 -0
- data/lib/schematic/events/types/list_events_params.rb +7 -0
- data/lib/schematic/events/types/list_events_request.rb +7 -0
- data/lib/schematic/events/types/list_events_response.rb +1 -0
- data/lib/schematic/features/client.rb +137 -12
- data/lib/schematic/features/types/check_flag_response.rb +1 -0
- data/lib/schematic/features/types/check_flags_bulk_response.rb +1 -0
- data/lib/schematic/features/types/check_flags_response.rb +1 -0
- data/lib/schematic/features/types/count_features_params.rb +9 -0
- data/lib/schematic/features/types/count_features_request.rb +9 -0
- data/lib/schematic/features/types/count_features_response.rb +1 -0
- data/lib/schematic/features/types/count_flags_params.rb +4 -0
- data/lib/schematic/features/types/count_flags_request.rb +4 -0
- data/lib/schematic/features/types/count_flags_response.rb +1 -0
- data/lib/schematic/features/types/create_billing_linked_feature_request_body.rb +12 -0
- data/lib/schematic/features/types/create_feature_request_body.rb +10 -0
- data/lib/schematic/features/types/create_feature_response.rb +1 -0
- data/lib/schematic/features/types/create_flag_response.rb +1 -0
- data/lib/schematic/features/types/delete_feature_response.rb +1 -0
- data/lib/schematic/features/types/delete_flag_response.rb +1 -0
- data/lib/schematic/features/types/get_feature_response.rb +1 -0
- data/lib/schematic/features/types/get_flag_response.rb +1 -0
- data/lib/schematic/features/types/list_features_params.rb +9 -0
- data/lib/schematic/features/types/list_features_request.rb +9 -0
- data/lib/schematic/features/types/list_features_response.rb +1 -0
- data/lib/schematic/features/types/list_flags_params.rb +4 -0
- data/lib/schematic/features/types/list_flags_request.rb +4 -0
- data/lib/schematic/features/types/list_flags_response.rb +1 -0
- data/lib/schematic/features/types/update_feature_request_body.rb +11 -0
- data/lib/schematic/features/types/update_feature_response.rb +1 -0
- data/lib/schematic/features/types/update_flag_response.rb +1 -0
- data/lib/schematic/features/types/update_flag_rules_request_body.rb +1 -0
- data/lib/schematic/features/types/update_flag_rules_response.rb +1 -0
- data/lib/schematic/features/types/upsert_feature_for_billing_product_response.rb +1 -0
- data/lib/schematic/insights/client.rb +34 -13
- data/lib/schematic/insights/types/get_activity_response.rb +1 -0
- data/lib/schematic/insights/types/get_environment_feature_usage_time_series_params.rb +3 -0
- data/lib/schematic/insights/types/get_environment_feature_usage_time_series_request.rb +3 -0
- data/lib/schematic/insights/types/get_environment_feature_usage_time_series_response.rb +1 -0
- data/lib/schematic/insights/types/get_environment_trait_usage_time_series_params.rb +3 -0
- data/lib/schematic/insights/types/get_environment_trait_usage_time_series_request.rb +3 -0
- data/lib/schematic/insights/types/get_environment_trait_usage_time_series_response.rb +1 -0
- data/lib/schematic/insights/types/get_plan_growth_response.rb +1 -0
- data/lib/schematic/insights/types/get_summary_response.rb +1 -0
- data/lib/schematic/insights/types/get_top_features_by_usage_params.rb +2 -0
- data/lib/schematic/insights/types/get_top_features_by_usage_request.rb +2 -0
- data/lib/schematic/insights/types/get_top_features_by_usage_response.rb +1 -0
- data/lib/schematic/integrationsapi/client.rb +37 -5
- data/lib/schematic/integrationsapi/types/assume_stripe_installed_response.rb +1 -0
- data/lib/schematic/integrationsapi/types/get_integration_webhook_url_response.rb +1 -0
- data/lib/schematic/integrationsapi/types/install_integration_response.rb +1 -0
- data/lib/schematic/integrationsapi/types/install_stripe_response.rb +1 -0
- data/lib/schematic/integrationsapi/types/list_integrations_params.rb +6 -0
- data/lib/schematic/integrationsapi/types/list_integrations_request.rb +6 -0
- data/lib/schematic/integrationsapi/types/list_integrations_response.rb +1 -0
- data/lib/schematic/integrationsapi/types/load_sample_data_set_response.rb +1 -0
- data/lib/schematic/integrationsapi/types/run_integration_response.rb +1 -0
- data/lib/schematic/integrationsapi/types/start_data_import_request_body.rb +2 -0
- data/lib/schematic/integrationsapi/types/start_data_import_response.rb +1 -0
- data/lib/schematic/integrationsapi/types/uninstall_integration_response.rb +1 -0
- data/lib/schematic/internal/http/raw_client.rb +58 -7
- data/lib/schematic/internal/iterators/cursor_page_iterator.rb +14 -2
- data/lib/schematic/internal/iterators/item_iterator.rb +6 -0
- data/lib/schematic/internal/iterators/offset_page_iterator.rb +22 -2
- data/lib/schematic/internal/types/utils.rb +2 -2
- data/lib/schematic/licenses/client.rb +21 -4
- data/lib/schematic/licenses/types/count_licenses_params.rb +4 -0
- data/lib/schematic/licenses/types/count_licenses_request.rb +4 -0
- data/lib/schematic/licenses/types/count_licenses_response.rb +1 -0
- data/lib/schematic/licenses/types/get_single_license_response.rb +1 -0
- data/lib/schematic/licenses/types/list_licenses_params.rb +4 -0
- data/lib/schematic/licenses/types/list_licenses_request.rb +4 -0
- data/lib/schematic/licenses/types/list_licenses_response.rb +1 -0
- data/lib/schematic/planbundle/client.rb +40 -3
- data/lib/schematic/planbundle/types/create_custom_plan_bundle_request_body.rb +5 -2
- data/lib/schematic/planbundle/types/create_custom_plan_bundle_response.rb +1 -0
- data/lib/schematic/planbundle/types/create_plan_bundle_request_body.rb +4 -1
- data/lib/schematic/planbundle/types/create_plan_bundle_response.rb +1 -0
- data/lib/schematic/planbundle/types/update_plan_bundle_request_body.rb +7 -2
- data/lib/schematic/planbundle/types/update_plan_bundle_response.rb +1 -0
- data/lib/schematic/plangroups/client.rb +65 -3
- data/lib/schematic/plangroups/types/create_plan_group_request_body.rb +39 -0
- data/lib/schematic/plangroups/types/create_plan_group_response.rb +1 -0
- data/lib/schematic/plangroups/types/get_plan_group_response.rb +1 -0
- data/lib/schematic/plangroups/types/update_plan_group_request_body.rb +40 -0
- data/lib/schematic/plangroups/types/update_plan_group_response.rb +1 -0
- data/lib/schematic/planmigrations/client.rb +66 -13
- data/lib/schematic/planmigrations/types/count_company_migrations_params.rb +4 -0
- data/lib/schematic/planmigrations/types/count_company_migrations_request.rb +5 -1
- data/lib/schematic/planmigrations/types/count_company_migrations_response.rb +1 -0
- data/lib/schematic/planmigrations/types/count_migrations_params.rb +3 -0
- data/lib/schematic/planmigrations/types/count_migrations_request.rb +4 -1
- data/lib/schematic/planmigrations/types/count_migrations_response.rb +1 -0
- data/lib/schematic/planmigrations/types/create_migration_input.rb +11 -3
- data/lib/schematic/planmigrations/types/create_migration_response.rb +1 -0
- data/lib/schematic/planmigrations/types/get_migration_response.rb +1 -0
- data/lib/schematic/planmigrations/types/list_company_migrations_params.rb +4 -0
- data/lib/schematic/planmigrations/types/list_company_migrations_request.rb +5 -1
- data/lib/schematic/planmigrations/types/list_company_migrations_response.rb +1 -0
- data/lib/schematic/planmigrations/types/list_migrations_params.rb +3 -0
- data/lib/schematic/planmigrations/types/list_migrations_request.rb +4 -1
- data/lib/schematic/planmigrations/types/list_migrations_response.rb +1 -0
- data/lib/schematic/planmigrations/types/preview_migration_request_body.rb +6 -1
- data/lib/schematic/planmigrations/types/preview_migration_response.rb +1 -0
- data/lib/schematic/planmigrations/types/retry_company_migration_response.rb +1 -0
- data/lib/schematic/planmigrations/types/retry_migration_request_body.rb +1 -0
- data/lib/schematic/planmigrations/types/retry_migration_response.rb +1 -0
- data/lib/schematic/plans/client.rb +173 -28
- data/lib/schematic/plans/types/count_billing_product_match_companies_params.rb +3 -0
- data/lib/schematic/plans/types/count_billing_product_match_companies_request.rb +3 -0
- data/lib/schematic/plans/types/count_billing_product_match_companies_response.rb +1 -0
- data/lib/schematic/plans/types/count_plans_params.rb +16 -0
- data/lib/schematic/plans/types/count_plans_request.rb +16 -0
- data/lib/schematic/plans/types/count_plans_response.rb +1 -0
- data/lib/schematic/plans/types/create_billing_linked_plan_request_body.rb +7 -1
- data/lib/schematic/plans/types/create_custom_plan_request_body.rb +7 -1
- data/lib/schematic/plans/types/create_custom_plan_response.rb +1 -0
- data/lib/schematic/plans/types/create_plan_response.rb +1 -0
- data/lib/schematic/plans/types/delete_plan_response.rb +1 -0
- data/lib/schematic/plans/types/delete_plan_version_request.rb +2 -1
- data/lib/schematic/plans/types/delete_plan_version_response.rb +1 -0
- data/lib/schematic/plans/types/get_plan_request.rb +1 -0
- data/lib/schematic/plans/types/get_plan_response.rb +1 -0
- data/lib/schematic/plans/types/list_billing_product_match_companies_params.rb +3 -0
- data/lib/schematic/plans/types/list_billing_product_match_companies_request.rb +3 -0
- data/lib/schematic/plans/types/list_billing_product_match_companies_response.rb +1 -0
- data/lib/schematic/plans/types/list_custom_plan_billings_params.rb +7 -0
- data/lib/schematic/plans/types/list_custom_plan_billings_request.rb +7 -0
- data/lib/schematic/plans/types/list_custom_plan_billings_response.rb +1 -0
- data/lib/schematic/plans/types/list_plan_issues_params.rb +1 -0
- data/lib/schematic/plans/types/list_plan_issues_request.rb +1 -0
- data/lib/schematic/plans/types/list_plan_issues_response.rb +1 -0
- data/lib/schematic/plans/types/list_plans_params.rb +16 -0
- data/lib/schematic/plans/types/list_plans_request.rb +16 -0
- data/lib/schematic/plans/types/list_plans_response.rb +1 -0
- data/lib/schematic/plans/types/mark_custom_plan_billing_paid_response.rb +1 -0
- data/lib/schematic/plans/types/publish_plan_version_request_body.rb +16 -1
- data/lib/schematic/plans/types/publish_plan_version_response.rb +1 -0
- data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +4 -0
- data/lib/schematic/plans/types/retry_custom_plan_billing_response.rb +1 -0
- data/lib/schematic/plans/types/update_company_plans_request_body.rb +3 -1
- data/lib/schematic/plans/types/update_company_plans_response.rb +1 -0
- data/lib/schematic/plans/types/update_plan_response.rb +1 -0
- data/lib/schematic/plans/types/upsert_billing_product_plan_response.rb +1 -0
- data/lib/schematic/plans/types/upsert_plan_for_billing_product_response.rb +1 -0
- data/lib/schematic/scheduledcheckout/client.rb +23 -3
- data/lib/schematic/scheduledcheckout/types/create_scheduled_checkout_request.rb +3 -0
- data/lib/schematic/scheduledcheckout/types/create_scheduled_checkout_response.rb +1 -0
- data/lib/schematic/scheduledcheckout/types/get_scheduled_checkout_response.rb +1 -0
- data/lib/schematic/scheduledcheckout/types/list_scheduled_checkouts_params.rb +3 -0
- data/lib/schematic/scheduledcheckout/types/list_scheduled_checkouts_request.rb +3 -0
- data/lib/schematic/scheduledcheckout/types/list_scheduled_checkouts_response.rb +1 -0
- data/lib/schematic/scheduledcheckout/types/update_scheduled_checkout_request.rb +2 -0
- data/lib/schematic/scheduledcheckout/types/update_scheduled_checkout_response.rb +1 -0
- data/lib/schematic/schematic_client.rb +4 -4
- data/lib/schematic/types/account_member_response_data.rb +9 -0
- data/lib/schematic/types/activity_entry_response_data.rb +5 -0
- data/lib/schematic/types/api_key_create_response_data.rb +12 -0
- data/lib/schematic/types/api_key_integration_response_data.rb +2 -0
- data/lib/schematic/types/api_key_response_data.rb +11 -0
- data/lib/schematic/types/audit_log_export_metadata.rb +4 -0
- data/lib/schematic/types/audit_log_list_response_data.rb +16 -0
- data/lib/schematic/types/audit_log_response_data.rb +21 -0
- data/lib/schematic/types/billing_collection_method.rb +12 -0
- data/lib/schematic/types/billing_coupon_response_data.rb +16 -0
- data/lib/schematic/types/billing_credit_bundle_response_data.rb +22 -0
- data/lib/schematic/types/billing_credit_bundle_view.rb +21 -0
- data/lib/schematic/types/billing_credit_grant_response_data.rb +30 -0
- data/lib/schematic/types/billing_credit_ledger_response_data.rb +5 -0
- data/lib/schematic/types/billing_credit_response_data.rb +15 -0
- data/lib/schematic/types/billing_credit_view.rb +20 -0
- data/lib/schematic/types/billing_customer_response_data.rb +7 -0
- data/lib/schematic/types/billing_customer_subscription.rb +5 -0
- data/lib/schematic/types/billing_customer_with_subscriptions_response_data.rb +8 -0
- data/lib/schematic/types/billing_linked_resource_response_data.rb +2 -0
- data/lib/schematic/types/billing_meter_response_data.rb +5 -0
- data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +34 -0
- data/lib/schematic/types/billing_price_response_data.rb +9 -0
- data/lib/schematic/types/billing_price_view.rb +23 -0
- data/lib/schematic/types/billing_product_detail_response_data.rb +14 -0
- data/lib/schematic/types/billing_product_for_subscription_response_data.rb +22 -0
- data/lib/schematic/types/billing_product_plan_response_data.rb +11 -0
- data/lib/schematic/types/billing_product_price_response_data.rb +17 -0
- data/lib/schematic/types/billing_product_price_tier_response_data.rb +3 -0
- data/lib/schematic/types/billing_product_pricing.rb +11 -0
- data/lib/schematic/types/billing_product_record_response_data.rb +8 -0
- data/lib/schematic/types/billing_product_response_data.rb +12 -0
- data/lib/schematic/types/billing_subscription_discount.rb +6 -0
- data/lib/schematic/types/billing_subscription_discount_view.rb +13 -0
- data/lib/schematic/types/billing_subscription_response_data.rb +19 -0
- data/lib/schematic/types/billing_subscription_view.rb +23 -0
- data/lib/schematic/types/capture_raw_event.rb +4 -0
- data/lib/schematic/types/catalog_config_ordered_entitlement.rb +1 -0
- data/lib/schematic/types/catalog_config_ordered_entitlement_response_data.rb +1 -0
- data/lib/schematic/types/catalog_config_ordered_plan.rb +1 -0
- data/lib/schematic/types/catalog_config_ordered_plan_response_data.rb +1 -0
- data/lib/schematic/types/catalog_configuration_response_data.rb +10 -0
- data/lib/schematic/types/catalog_derived_feature_response_data.rb +2 -0
- data/lib/schematic/types/catalog_response_data.rb +12 -0
- data/lib/schematic/types/change_subscription_internal_request_body.rb +13 -0
- data/lib/schematic/types/change_subscription_request_body.rb +12 -0
- data/lib/schematic/types/check_flag_request_body.rb +3 -0
- data/lib/schematic/types/check_flag_response_data.rb +14 -0
- data/lib/schematic/types/check_flags_response_data.rb +2 -0
- data/lib/schematic/types/checkout_bundle_purchase_behavior.rb +12 -0
- data/lib/schematic/types/checkout_data_response_data.rb +10 -0
- data/lib/schematic/types/checkout_field_input.rb +5 -0
- data/lib/schematic/types/checkout_field_response_data.rb +9 -0
- data/lib/schematic/types/checkout_field_value.rb +1 -0
- data/lib/schematic/types/checkout_field_with_value.rb +6 -0
- data/lib/schematic/types/checkout_settings_response_data.rb +9 -0
- data/lib/schematic/types/checkout_subscription.rb +23 -0
- data/lib/schematic/types/clerk_integration_config.rb +1 -0
- data/lib/schematic/types/company_billing_address_view.rb +5 -0
- data/lib/schematic/types/company_billing_checkout_settings.rb +4 -0
- data/lib/schematic/types/company_billing_details_response_data.rb +5 -0
- data/lib/schematic/types/company_billing_details_view.rb +5 -0
- data/lib/schematic/types/company_billing_entity_response_data.rb +1 -0
- data/lib/schematic/types/company_billing_entity_subscription_response_data.rb +17 -0
- data/lib/schematic/types/company_credit_balance.rb +2 -0
- data/lib/schematic/types/company_credit_balance_response_data.rb +5 -0
- data/lib/schematic/types/company_detail_response_data.rb +23 -0
- data/lib/schematic/types/company_event_period_metrics_response_data.rb +10 -0
- data/lib/schematic/types/company_feature_usage_export_metadata.rb +25 -0
- data/lib/schematic/types/company_ledger_response_data.rb +2 -0
- data/lib/schematic/types/company_membership_detail_response_data.rb +5 -0
- data/lib/schematic/types/company_membership_response_data.rb +4 -0
- data/lib/schematic/types/company_override_note_response_data.rb +5 -0
- data/lib/schematic/types/company_override_response_data.rb +19 -0
- data/lib/schematic/types/company_plan_credit_grant_view.rb +38 -0
- data/lib/schematic/types/company_plan_detail_response_data.rb +44 -0
- data/lib/schematic/types/company_plan_with_billing_sub_view.rb +10 -0
- data/lib/schematic/types/company_response_data.rb +6 -0
- data/lib/schematic/types/company_subscription_response_data.rb +15 -0
- data/lib/schematic/types/company_tax_id_view.rb +4 -0
- data/lib/schematic/types/compatible_plans.rb +1 -0
- data/lib/schematic/types/compatible_plans_response_data.rb +1 -0
- data/lib/schematic/types/component_capabilities.rb +1 -0
- data/lib/schematic/types/component_checkout_settings.rb +8 -0
- data/lib/schematic/types/component_display_settings.rb +5 -0
- data/lib/schematic/types/component_hydrate_response_data.rb +27 -1
- data/lib/schematic/types/component_preview_response_data.rb +28 -1
- data/lib/schematic/types/component_response_data.rb +7 -0
- data/lib/schematic/types/component_settings_response_data.rb +5 -0
- data/lib/schematic/types/condition.rb +14 -0
- data/lib/schematic/types/condition_group_response_data.rb +6 -0
- data/lib/schematic/types/condition_group_view.rb +7 -0
- data/lib/schematic/types/condition_response_data.rb +23 -0
- data/lib/schematic/types/condition_view.rb +30 -0
- data/lib/schematic/types/coupon_request_body.rb +7 -0
- data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +26 -0
- data/lib/schematic/types/create_billing_price_tier_request_body.rb +5 -0
- data/lib/schematic/types/create_custom_plan_bundle_plan_request_body.rb +4 -1
- data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +33 -0
- data/lib/schematic/types/create_entitlement_req_common.rb +8 -0
- data/lib/schematic/types/create_event_request_body.rb +5 -0
- data/lib/schematic/types/create_flag_request_body.rb +6 -0
- data/lib/schematic/types/create_or_update_condition_group_request_body.rb +2 -0
- data/lib/schematic/types/create_or_update_condition_request_body.rb +12 -0
- data/lib/schematic/types/create_or_update_flag_request_body.rb +7 -0
- data/lib/schematic/types/create_or_update_rule_request_body.rb +6 -0
- data/lib/schematic/types/create_plan_request_body.rb +4 -1
- data/lib/schematic/types/create_price_tier_request_body.rb +3 -0
- data/lib/schematic/types/credit_bundle_currency_price.rb +1 -0
- data/lib/schematic/types/credit_bundle_currency_price_request_body.rb +2 -0
- data/lib/schematic/types/credit_bundle_currency_price_response_data.rb +1 -0
- data/lib/schematic/types/credit_bundle_purchase_response_data.rb +2 -0
- data/lib/schematic/types/credit_company_grant_view.rb +38 -0
- data/lib/schematic/types/credit_currency_price.rb +1 -0
- data/lib/schematic/types/credit_currency_price_request_body.rb +2 -0
- data/lib/schematic/types/credit_currency_price_response_data.rb +1 -0
- data/lib/schematic/types/credit_event_ledger_response_data.rb +31 -0
- data/lib/schematic/types/credit_grant_detail.rb +3 -0
- data/lib/schematic/types/credit_grant_expiry_request_body.rb +5 -0
- data/lib/schematic/types/credit_lease_response_data.rb +7 -0
- data/lib/schematic/types/credit_transfer_response_data.rb +5 -0
- data/lib/schematic/types/credit_transfer_view.rb +5 -0
- data/lib/schematic/types/credit_usage.rb +8 -0
- data/lib/schematic/types/credit_usage_aggregation.rb +3 -0
- data/lib/schematic/types/credits_auto_topup_company_summary.rb +1 -0
- data/lib/schematic/types/credits_auto_topup_credit_summary.rb +1 -0
- data/lib/schematic/types/credits_auto_topup_hard_failure.rb +3 -0
- data/lib/schematic/types/credits_auto_topup_retry_failure.rb +4 -0
- data/lib/schematic/types/credits_auto_topup_success.rb +3 -0
- data/lib/schematic/types/credits_credit_purchase_success.rb +5 -0
- data/lib/schematic/types/credits_webhook_company_summary.rb +1 -0
- data/lib/schematic/types/credits_webhook_credit_summary.rb +1 -0
- data/lib/schematic/types/currency_price_request_body.rb +9 -0
- data/lib/schematic/types/custom_plan_billing_response_data.rb +16 -0
- data/lib/schematic/types/custom_plan_config.rb +2 -0
- data/lib/schematic/types/custom_plan_view_config_response_data.rb +2 -0
- data/lib/schematic/types/customer_billing_address.rb +5 -0
- data/lib/schematic/types/data_event_payload.rb +6 -0
- data/lib/schematic/types/data_export_metadata.rb +2 -0
- data/lib/schematic/types/data_export_response_data.rb +8 -0
- data/lib/schematic/types/datastream_company_plan.rb +3 -0
- data/lib/schematic/types/duplicate_plan_entitlements_response_response_data.rb +2 -0
- data/lib/schematic/types/entitlement_currency_prices_response_data.rb +3 -0
- data/lib/schematic/types/entitlements_in_plan.rb +1 -0
- data/lib/schematic/types/entity_key_definition_response_data.rb +4 -0
- data/lib/schematic/types/entity_key_detail_response_data.rb +9 -0
- data/lib/schematic/types/entity_key_response_data.rb +8 -0
- data/lib/schematic/types/entity_trait_definition_response_data.rb +6 -0
- data/lib/schematic/types/entity_trait_definition_usage.rb +19 -0
- data/lib/schematic/types/entity_trait_detail_response_data.rb +6 -0
- data/lib/schematic/types/entity_trait_response_data.rb +5 -0
- data/lib/schematic/types/entity_trait_value.rb +1 -0
- data/lib/schematic/types/environment_detail_response_data.rb +5 -0
- data/lib/schematic/types/environment_feature_usage_time_series_response_data.rb +2 -0
- data/lib/schematic/types/environment_response_data.rb +4 -0
- data/lib/schematic/types/environment_trait_usage_time_series_response_data.rb +2 -0
- data/lib/schematic/types/environment_usage_point_response_data.rb +1 -0
- data/lib/schematic/types/event_body.rb +3 -0
- data/lib/schematic/types/event_body_flag_check.rb +11 -0
- data/lib/schematic/types/event_body_identify.rb +3 -0
- data/lib/schematic/types/event_body_identify_company.rb +2 -0
- data/lib/schematic/types/event_body_inference.rb +13 -0
- data/lib/schematic/types/event_body_track.rb +5 -0
- data/lib/schematic/types/event_detail_response_data.rb +24 -0
- data/lib/schematic/types/event_export_metadata.rb +7 -0
- data/lib/schematic/types/event_response_data.rb +20 -0
- data/lib/schematic/types/event_summary_response_data.rb +5 -0
- data/lib/schematic/types/feature_company_response_data.rb +36 -0
- data/lib/schematic/types/feature_company_user_response_data.rb +12 -0
- data/lib/schematic/types/feature_detail_response_data.rb +21 -0
- data/lib/schematic/types/feature_entitlement.rb +18 -0
- data/lib/schematic/types/feature_in_plan_response_data.rb +19 -0
- data/lib/schematic/types/feature_ledger_response_data.rb +3 -0
- data/lib/schematic/types/feature_response_data.rb +14 -0
- data/lib/schematic/types/feature_usage_history_response_data.rb +19 -0
- data/lib/schematic/types/feature_usage_legacy_response_data.rb +5 -0
- data/lib/schematic/types/feature_usage_response_data.rb +34 -0
- data/lib/schematic/types/feature_usage_time_series_response_data.rb +4 -0
- data/lib/schematic/types/feature_view.rb +20 -0
- data/lib/schematic/types/flag_detail_response_data.rb +13 -0
- data/lib/schematic/types/flag_in_plan_response_data.rb +12 -0
- data/lib/schematic/types/flag_response_data.rb +9 -0
- data/lib/schematic/types/flag_view.rb +12 -0
- data/lib/schematic/types/generic_preview_object.rb +3 -0
- data/lib/schematic/types/get_onboarding_state_resp.rb +19 -0
- data/lib/schematic/types/insights_summary_response_data.rb +5 -0
- data/lib/schematic/types/install_integration_request_body.rb +5 -0
- data/lib/schematic/types/integration_capabilities.rb +2 -0
- data/lib/schematic/types/integration_config.rb +4 -0
- data/lib/schematic/types/integration_install_config.rb +9 -0
- data/lib/schematic/types/integration_install_response_data.rb +2 -0
- data/lib/schematic/types/integration_response_data.rb +4 -0
- data/lib/schematic/types/integration_webhook_url_response_data.rb +1 -0
- data/lib/schematic/types/integrations_list_response_data.rb +7 -0
- data/lib/schematic/types/integrations_response_data.rb +4 -0
- data/lib/schematic/types/invoice_request_body.rb +13 -0
- data/lib/schematic/types/invoice_response_data.rb +20 -0
- data/lib/schematic/types/issue_temporary_access_token_response_data.rb +7 -0
- data/lib/schematic/types/license_response_data.rb +3 -0
- data/lib/schematic/types/limit_time_series_point_response_data.rb +5 -0
- data/lib/schematic/types/manage_plan_request.rb +28 -0
- data/lib/schematic/types/manage_plan_response_response_data.rb +1 -0
- data/lib/schematic/types/meter_request_body.rb +2 -0
- data/lib/schematic/types/migration_proration_behavior.rb +13 -0
- data/lib/schematic/types/mrr_response_data.rb +1 -0
- data/lib/schematic/types/onboarding_milestone.rb +12 -0
- data/lib/schematic/types/onboarding_milestone_view.rb +15 -0
- data/lib/schematic/types/onboarding_path.rb +12 -0
- data/lib/schematic/types/onboarding_requirement.rb +16 -0
- data/lib/schematic/types/onboarding_requirement_status.rb +13 -0
- data/lib/schematic/types/onboarding_requirement_view.rb +17 -0
- data/lib/schematic/types/onboarding_track.rb +12 -0
- data/lib/schematic/types/ordered_plans_in_group.rb +1 -0
- data/lib/schematic/types/payment_method_request_body.rb +10 -0
- data/lib/schematic/types/payment_method_response_data.rb +17 -0
- data/lib/schematic/types/plan_billing_source.rb +12 -0
- data/lib/schematic/types/plan_bundle_credit_grant_request_body.rb +4 -0
- data/lib/schematic/types/plan_bundle_entitlement_request_body.rb +2 -0
- data/lib/schematic/types/plan_bundle_response_data.rb +5 -0
- data/lib/schematic/types/plan_catalog_membership_response_data.rb +1 -0
- data/lib/schematic/types/plan_change_response_data.rb +29 -0
- data/lib/schematic/types/plan_credit_grant_view.rb +35 -0
- data/lib/schematic/types/plan_currency_price_request_body.rb +4 -0
- data/lib/schematic/types/plan_currency_prices_response_data.rb +4 -0
- data/lib/schematic/types/plan_detail_response_data.rb +34 -0
- data/lib/schematic/types/plan_entitlement_response_data.rb +29 -0
- data/lib/schematic/types/plan_entitlements_order.rb +1 -0
- data/lib/schematic/types/plan_group_detail_response_data.rb +37 -0
- data/lib/schematic/types/plan_group_plan_detail_response_data.rb +38 -0
- data/lib/schematic/types/plan_group_plan_entitlements_order.rb +1 -0
- data/lib/schematic/types/plan_group_response_data.rb +27 -0
- data/lib/schematic/types/plan_growth_point_response_data.rb +3 -0
- data/lib/schematic/types/plan_issue_response_data.rb +3 -0
- data/lib/schematic/types/plan_response_data.rb +9 -0
- data/lib/schematic/types/plan_selection.rb +2 -0
- data/lib/schematic/types/plan_snapshot_view.rb +4 -0
- data/lib/schematic/types/plan_trait_response_data.rb +8 -0
- data/lib/schematic/types/plan_version_company_migration_response_data.rb +11 -0
- data/lib/schematic/types/plan_version_migration_preview_company_response_data.rb +7 -0
- data/lib/schematic/types/plan_version_migration_preview_response_data.rb +2 -0
- data/lib/schematic/types/plan_version_migration_response_data.rb +17 -0
- data/lib/schematic/types/plan_version_response_data.rb +10 -0
- data/lib/schematic/types/plan_version_snapshot_view.rb +2 -0
- data/lib/schematic/types/plan_view_public_response_data.rb +39 -0
- data/lib/schematic/types/preflight_event_usage_request_body.rb +11 -0
- data/lib/schematic/types/preflight_request_body.rb +13 -0
- data/lib/schematic/types/preview_object.rb +3 -0
- data/lib/schematic/types/preview_object_response_data.rb +3 -0
- data/lib/schematic/types/preview_subscription_change_response_data.rb +15 -0
- data/lib/schematic/types/preview_subscription_discount_response_data.rb +10 -0
- data/lib/schematic/types/preview_subscription_finance_response_data.rb +18 -0
- data/lib/schematic/types/preview_subscription_upcoming_invoice_line_items.rb +4 -0
- data/lib/schematic/types/public_plans_response_data.rb +8 -0
- data/lib/schematic/types/raw_event_response_data.rb +4 -0
- data/lib/schematic/types/rule.rb +9 -0
- data/lib/schematic/types/rule_condition_detail_response_data.rb +20 -0
- data/lib/schematic/types/rule_condition_group_detail_response_data.rb +6 -0
- data/lib/schematic/types/rule_condition_group_response_data.rb +5 -0
- data/lib/schematic/types/rule_condition_response_data.rb +17 -0
- data/lib/schematic/types/rule_detail_response_data.rb +10 -0
- data/lib/schematic/types/rule_response_data.rb +8 -0
- data/lib/schematic/types/rule_view.rb +11 -0
- data/lib/schematic/types/rules_detail_response_data.rb +1 -0
- data/lib/schematic/types/rules_engine_schema_version.rb +1 -1
- data/lib/schematic/types/rulesengine_check_flag_result.rb +14 -0
- data/lib/schematic/types/rulesengine_company.rb +13 -0
- data/lib/schematic/types/rulesengine_company_metric.rb +8 -0
- data/lib/schematic/types/rulesengine_condition.rb +14 -0
- data/lib/schematic/types/rulesengine_feature_entitlement.rb +18 -0
- data/lib/schematic/types/rulesengine_flag.rb +5 -0
- data/lib/schematic/types/rulesengine_rule.rb +9 -0
- data/lib/schematic/types/rulesengine_subscription.rb +2 -0
- data/lib/schematic/types/rulesengine_trait.rb +1 -0
- data/lib/schematic/types/rulesengine_trait_definition.rb +2 -0
- data/lib/schematic/types/rulesengine_user.rb +5 -0
- data/lib/schematic/types/rulesengine_warning_tier.rb +1 -0
- data/lib/schematic/types/scheduled_checkout_response_data.rb +13 -0
- data/lib/schematic/types/scheduled_downgrade_response_data.rb +10 -0
- data/lib/schematic/types/segment_status_resp.rb +2 -0
- data/lib/schematic/types/skipped_entitlement_response_data.rb +3 -0
- data/lib/schematic/types/stripe_embed_info.rb +3 -0
- data/lib/schematic/types/stripe_integration_config.rb +7 -0
- data/lib/schematic/types/subscription_trait_update.rb +6 -0
- data/lib/schematic/types/tax_id_input.rb +1 -0
- data/lib/schematic/types/temporary_access_token_response_data.rb +6 -0
- data/lib/schematic/types/test_webhook_response_data.rb +2 -0
- data/lib/schematic/types/top_feature_by_usage_response_data.rb +5 -0
- data/lib/schematic/types/trait_definition.rb +2 -0
- data/lib/schematic/types/upcoming_invoice_response_data.rb +47 -0
- data/lib/schematic/types/update_add_on_request_body.rb +1 -0
- data/lib/schematic/types/update_auto_topup_override_request_body.rb +3 -0
- data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +23 -0
- data/lib/schematic/types/update_credit_bundle_request_body.rb +1 -0
- data/lib/schematic/types/update_entitlement_req_common.rb +7 -0
- data/lib/schematic/types/update_pay_in_advance_request_body.rb +1 -0
- data/lib/schematic/types/update_plan_request_body.rb +2 -0
- data/lib/schematic/types/update_plan_trait_trait_request_body.rb +1 -0
- data/lib/schematic/types/update_rule_request_body.rb +4 -0
- data/lib/schematic/types/upsert_billing_product_request_body.rb +14 -0
- data/lib/schematic/types/upsert_company_request_body.rb +10 -0
- data/lib/schematic/types/upsert_trait_request_body.rb +4 -0
- data/lib/schematic/types/upsert_user_request_body.rb +11 -0
- data/lib/schematic/types/upsert_user_sub_request_body.rb +9 -0
- data/lib/schematic/types/usage_based_entitlement_request_body.rb +21 -0
- data/lib/schematic/types/usage_based_entitlement_response_data.rb +13 -0
- data/lib/schematic/types/usage_time_series_point_response_data.rb +3 -0
- data/lib/schematic/types/user_credit_usage_response_data.rb +5 -0
- data/lib/schematic/types/user_daily_credit_point_response_data.rb +1 -0
- data/lib/schematic/types/user_daily_usage_point_response_data.rb +2 -0
- data/lib/schematic/types/user_detail_response_data.rb +9 -0
- data/lib/schematic/types/user_feature_usage_response_data.rb +5 -0
- data/lib/schematic/types/user_response_data.rb +5 -0
- data/lib/schematic/types/user_usage_by_company_response_data.rb +3 -0
- data/lib/schematic/types/user_usage_detail_response_data.rb +6 -0
- data/lib/schematic/types/warning_tier.rb +1 -0
- data/lib/schematic/types/warning_tier_request_body.rb +1 -0
- data/lib/schematic/types/warning_tier_response_data.rb +2 -0
- data/lib/schematic/types/web_feature_usage_webhook_output.rb +6 -0
- data/lib/schematic/types/web_scheduled_downgrade_webhook_output.rb +6 -0
- data/lib/schematic/types/webhook_event_detail_response_data.rb +9 -0
- data/lib/schematic/types/webhook_event_response_data.rb +8 -0
- data/lib/schematic/types/webhook_response_data.rb +9 -0
- data/lib/schematic/types/webhook_url.rb +1 -0
- data/lib/schematic/types/who_am_i_response_data.rb +10 -0
- data/lib/schematic/types/work_os_integration_config.rb +1 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/wasm/rulesengine.wasm +0 -0
- data/lib/schematic/webhooks/client.rb +59 -10
- data/lib/schematic/webhooks/types/count_webhook_events_params.rb +4 -0
- data/lib/schematic/webhooks/types/count_webhook_events_request.rb +4 -0
- data/lib/schematic/webhooks/types/count_webhook_events_response.rb +1 -0
- data/lib/schematic/webhooks/types/count_webhooks_params.rb +2 -0
- data/lib/schematic/webhooks/types/count_webhooks_request.rb +2 -0
- data/lib/schematic/webhooks/types/count_webhooks_response.rb +1 -0
- data/lib/schematic/webhooks/types/create_webhook_request_body.rb +4 -0
- data/lib/schematic/webhooks/types/create_webhook_response.rb +1 -0
- data/lib/schematic/webhooks/types/delete_webhook_response.rb +1 -0
- data/lib/schematic/webhooks/types/get_webhook_event_response.rb +1 -0
- data/lib/schematic/webhooks/types/get_webhook_response.rb +1 -0
- data/lib/schematic/webhooks/types/list_webhook_events_params.rb +4 -0
- data/lib/schematic/webhooks/types/list_webhook_events_request.rb +4 -0
- data/lib/schematic/webhooks/types/list_webhook_events_response.rb +1 -0
- data/lib/schematic/webhooks/types/list_webhooks_params.rb +2 -0
- data/lib/schematic/webhooks/types/list_webhooks_request.rb +2 -0
- data/lib/schematic/webhooks/types/list_webhooks_response.rb +1 -0
- data/lib/schematic/webhooks/types/send_test_webhook_action_response.rb +1 -0
- data/lib/schematic/webhooks/types/test_webhook_request_body.rb +1 -0
- data/lib/schematic/webhooks/types/update_webhook_request_body.rb +6 -0
- data/lib/schematic/webhooks/types/update_webhook_response.rb +1 -0
- data/lib/schematic.rb +29 -1
- data/reference.md +643 -130
- metadata +31 -2
|
@@ -17,19 +17,25 @@ module Schematic
|
|
|
17
17
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
18
18
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
19
19
|
# @option request_options [Integer] :timeout_in_seconds
|
|
20
|
-
# @option params [String] :
|
|
20
|
+
# @option params [String] :company_id
|
|
21
|
+
#
|
|
22
|
+
# @example
|
|
23
|
+
# client.plans.update_company_plans(
|
|
24
|
+
# company_id: "company_id",
|
|
25
|
+
# add_on_ids: ["add_on_ids"]
|
|
26
|
+
# )
|
|
21
27
|
#
|
|
22
28
|
# @return [Schematic::Plans::Types::UpdateCompanyPlansResponse]
|
|
23
29
|
def update_company_plans(request_options: {}, **params)
|
|
24
30
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
25
31
|
request_data = Schematic::Plans::Types::UpdateCompanyPlansRequestBody.new(params).to_h
|
|
26
|
-
non_body_param_names = [
|
|
32
|
+
non_body_param_names = %w[company_id]
|
|
27
33
|
body = request_data.except(*non_body_param_names)
|
|
28
34
|
|
|
29
35
|
request = Schematic::Internal::JSON::Request.new(
|
|
30
36
|
base_url: request_options[:base_url],
|
|
31
37
|
method: "PUT",
|
|
32
|
-
path: "company-plans/#{URI.encode_uri_component(params[:
|
|
38
|
+
path: "company-plans/#{URI.encode_uri_component(params[:company_id].to_s)}",
|
|
33
39
|
body: body,
|
|
34
40
|
request_options: request_options
|
|
35
41
|
)
|
|
@@ -56,23 +62,34 @@ module Schematic
|
|
|
56
62
|
# @option request_options [Integer] :timeout_in_seconds
|
|
57
63
|
# @option params [String, nil] :company_id
|
|
58
64
|
# @option params [String, nil] :plan_id
|
|
65
|
+
# @option params [Schematic::Types::PlanBillingSource, nil] :plan_billing_source
|
|
59
66
|
# @option params [Schematic::Types::CustomPlanBillingStatus, nil] :status
|
|
60
67
|
# @option params [Schematic::Types::CustomPlanBillingStatus, nil] :statuses
|
|
61
68
|
# @option params [Integer, nil] :limit
|
|
62
69
|
# @option params [Integer, nil] :offset
|
|
63
70
|
#
|
|
71
|
+
# @example
|
|
72
|
+
# client.plans.list_custom_plan_billings(
|
|
73
|
+
# company_id: "company_id",
|
|
74
|
+
# plan_id: "plan_id",
|
|
75
|
+
# plan_billing_source: "custom_plan",
|
|
76
|
+
# status: "active",
|
|
77
|
+
# statuses: ["active"],
|
|
78
|
+
# limit: 1000000,
|
|
79
|
+
# offset: 1000000
|
|
80
|
+
# )
|
|
81
|
+
#
|
|
64
82
|
# @return [Schematic::Plans::Types::ListCustomPlanBillingsResponse]
|
|
65
83
|
def list_custom_plan_billings(request_options: {}, **params)
|
|
66
84
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
67
|
-
query_param_names = %i[company_id plan_id status statuses limit offset]
|
|
68
85
|
query_params = {}
|
|
69
86
|
query_params["company_id"] = params[:company_id] if params.key?(:company_id)
|
|
70
87
|
query_params["plan_id"] = params[:plan_id] if params.key?(:plan_id)
|
|
88
|
+
query_params["plan_billing_source"] = params[:plan_billing_source] if params.key?(:plan_billing_source)
|
|
71
89
|
query_params["status"] = params[:status] if params.key?(:status)
|
|
72
90
|
query_params["statuses"] = params[:statuses] if params.key?(:statuses)
|
|
73
91
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
74
92
|
query_params["offset"] = params[:offset] if params.key?(:offset)
|
|
75
|
-
params.except(*query_param_names)
|
|
76
93
|
|
|
77
94
|
request = Schematic::Internal::JSON::Request.new(
|
|
78
95
|
base_url: request_options[:base_url],
|
|
@@ -104,14 +121,25 @@ module Schematic
|
|
|
104
121
|
# @option request_options [Integer] :timeout_in_seconds
|
|
105
122
|
# @option params [String] :custom_plan_billing_id
|
|
106
123
|
#
|
|
124
|
+
# @example
|
|
125
|
+
# client.plans.mark_custom_plan_billing_paid(
|
|
126
|
+
# custom_plan_billing_id: "custom_plan_billing_id",
|
|
127
|
+
# request: {
|
|
128
|
+
# key: "value"
|
|
129
|
+
# }
|
|
130
|
+
# )
|
|
131
|
+
#
|
|
107
132
|
# @return [Schematic::Plans::Types::MarkCustomPlanBillingPaidResponse]
|
|
108
133
|
def mark_custom_plan_billing_paid(request_options: {}, **params)
|
|
109
134
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
135
|
+
path_param_names = %i[custom_plan_billing_id]
|
|
136
|
+
body_params = params.except(*path_param_names)
|
|
137
|
+
|
|
110
138
|
request = Schematic::Internal::JSON::Request.new(
|
|
111
139
|
base_url: request_options[:base_url],
|
|
112
140
|
method: "PUT",
|
|
113
141
|
path: "custom-plan-billings/#{URI.encode_uri_component(params[:custom_plan_billing_id].to_s)}/mark-paid",
|
|
114
|
-
body:
|
|
142
|
+
body: body_params,
|
|
115
143
|
request_options: request_options
|
|
116
144
|
)
|
|
117
145
|
begin
|
|
@@ -137,11 +165,17 @@ module Schematic
|
|
|
137
165
|
# @option request_options [Integer] :timeout_in_seconds
|
|
138
166
|
# @option params [String] :custom_plan_billing_id
|
|
139
167
|
#
|
|
168
|
+
# @example
|
|
169
|
+
# client.plans.retry_custom_plan_billing(
|
|
170
|
+
# custom_plan_billing_id: "custom_plan_billing_id",
|
|
171
|
+
# customer_email: "customer_email"
|
|
172
|
+
# )
|
|
173
|
+
#
|
|
140
174
|
# @return [Schematic::Plans::Types::RetryCustomPlanBillingResponse]
|
|
141
175
|
def retry_custom_plan_billing(request_options: {}, **params)
|
|
142
176
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
143
177
|
request_data = Schematic::Plans::Types::RetryCustomPlanBillingRequestBody.new(params).to_h
|
|
144
|
-
non_body_param_names = [
|
|
178
|
+
non_body_param_names = %w[custom_plan_billing_id]
|
|
145
179
|
body = request_data.except(*non_body_param_names)
|
|
146
180
|
|
|
147
181
|
request = Schematic::Internal::JSON::Request.new(
|
|
@@ -173,6 +207,12 @@ module Schematic
|
|
|
173
207
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
174
208
|
# @option request_options [Integer] :timeout_in_seconds
|
|
175
209
|
#
|
|
210
|
+
# @example
|
|
211
|
+
# client.plans.create_custom_plan(
|
|
212
|
+
# company_id: "company_id",
|
|
213
|
+
# name: "name"
|
|
214
|
+
# )
|
|
215
|
+
#
|
|
176
216
|
# @return [Schematic::Plans::Types::CreateCustomPlanResponse]
|
|
177
217
|
def create_custom_plan(request_options: {}, **params)
|
|
178
218
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -222,10 +262,30 @@ module Schematic
|
|
|
222
262
|
# @option params [Integer, nil] :limit
|
|
223
263
|
# @option params [Integer, nil] :offset
|
|
224
264
|
#
|
|
265
|
+
# @example
|
|
266
|
+
# client.plans.list_plans(
|
|
267
|
+
# company_id: "company_id",
|
|
268
|
+
# company_scoped_only: true,
|
|
269
|
+
# exclude_company_scoped: true,
|
|
270
|
+
# for_fallback_plan: true,
|
|
271
|
+
# for_initial_plan: true,
|
|
272
|
+
# for_trial_expiry_plan: true,
|
|
273
|
+
# has_product_id: true,
|
|
274
|
+
# ids: ["ids"],
|
|
275
|
+
# include_draft_versions: true,
|
|
276
|
+
# plan_type: "plan",
|
|
277
|
+
# q: "q",
|
|
278
|
+
# scoped_to_company_id: "scoped_to_company_id",
|
|
279
|
+
# with_entitlements: true,
|
|
280
|
+
# without_entitlement_for: "without_entitlement_for",
|
|
281
|
+
# without_paid_product_id: true,
|
|
282
|
+
# limit: 1000000,
|
|
283
|
+
# offset: 1000000
|
|
284
|
+
# )
|
|
285
|
+
#
|
|
225
286
|
# @return [Schematic::Plans::Types::ListPlansResponse]
|
|
226
287
|
def list_plans(request_options: {}, **params)
|
|
227
288
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
228
|
-
query_param_names = %i[company_id company_scoped_only exclude_company_scoped for_fallback_plan for_initial_plan for_trial_expiry_plan has_product_id ids include_draft_versions plan_type q scoped_to_company_id with_entitlements without_entitlement_for without_paid_product_id limit offset]
|
|
229
289
|
query_params = {}
|
|
230
290
|
query_params["company_id"] = params[:company_id] if params.key?(:company_id)
|
|
231
291
|
query_params["company_scoped_only"] = params[:company_scoped_only] if params.key?(:company_scoped_only)
|
|
@@ -244,7 +304,6 @@ module Schematic
|
|
|
244
304
|
query_params["without_paid_product_id"] = params[:without_paid_product_id] if params.key?(:without_paid_product_id)
|
|
245
305
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
246
306
|
query_params["offset"] = params[:offset] if params.key?(:offset)
|
|
247
|
-
params.except(*query_param_names)
|
|
248
307
|
|
|
249
308
|
request = Schematic::Internal::JSON::Request.new(
|
|
250
309
|
base_url: request_options[:base_url],
|
|
@@ -275,6 +334,12 @@ module Schematic
|
|
|
275
334
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
276
335
|
# @option request_options [Integer] :timeout_in_seconds
|
|
277
336
|
#
|
|
337
|
+
# @example
|
|
338
|
+
# client.plans.create_plan(
|
|
339
|
+
# name: "name",
|
|
340
|
+
# plan_type: "plan"
|
|
341
|
+
# )
|
|
342
|
+
#
|
|
278
343
|
# @return [Schematic::Plans::Types::CreatePlanResponse]
|
|
279
344
|
def create_plan(request_options: {}, **params)
|
|
280
345
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -309,13 +374,17 @@ module Schematic
|
|
|
309
374
|
# @option params [String] :plan_id
|
|
310
375
|
# @option params [String, nil] :plan_version_id
|
|
311
376
|
#
|
|
377
|
+
# @example
|
|
378
|
+
# client.plans.get_plan(
|
|
379
|
+
# plan_id: "plan_id",
|
|
380
|
+
# plan_version_id: "plan_version_id"
|
|
381
|
+
# )
|
|
382
|
+
#
|
|
312
383
|
# @return [Schematic::Plans::Types::GetPlanResponse]
|
|
313
384
|
def get_plan(request_options: {}, **params)
|
|
314
385
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
315
|
-
query_param_names = %i[plan_version_id]
|
|
316
386
|
query_params = {}
|
|
317
387
|
query_params["plan_version_id"] = params[:plan_version_id] if params.key?(:plan_version_id)
|
|
318
|
-
params = params.except(*query_param_names)
|
|
319
388
|
|
|
320
389
|
request = Schematic::Internal::JSON::Request.new(
|
|
321
390
|
base_url: request_options[:base_url],
|
|
@@ -347,14 +416,23 @@ module Schematic
|
|
|
347
416
|
# @option request_options [Integer] :timeout_in_seconds
|
|
348
417
|
# @option params [String] :plan_id
|
|
349
418
|
#
|
|
419
|
+
# @example
|
|
420
|
+
# client.plans.update_plan(
|
|
421
|
+
# plan_id: "plan_id",
|
|
422
|
+
# name: "name"
|
|
423
|
+
# )
|
|
424
|
+
#
|
|
350
425
|
# @return [Schematic::Plans::Types::UpdatePlanResponse]
|
|
351
426
|
def update_plan(request_options: {}, **params)
|
|
352
427
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
428
|
+
path_param_names = %i[plan_id]
|
|
429
|
+
body_params = params.except(*path_param_names)
|
|
430
|
+
|
|
353
431
|
request = Schematic::Internal::JSON::Request.new(
|
|
354
432
|
base_url: request_options[:base_url],
|
|
355
433
|
method: "PUT",
|
|
356
434
|
path: "plans/#{URI.encode_uri_component(params[:plan_id].to_s)}",
|
|
357
|
-
body: Schematic::Types::UpdatePlanRequestBody.new(
|
|
435
|
+
body: Schematic::Types::UpdatePlanRequestBody.new(body_params).to_h,
|
|
358
436
|
request_options: request_options
|
|
359
437
|
)
|
|
360
438
|
begin
|
|
@@ -380,6 +458,9 @@ module Schematic
|
|
|
380
458
|
# @option request_options [Integer] :timeout_in_seconds
|
|
381
459
|
# @option params [String] :plan_id
|
|
382
460
|
#
|
|
461
|
+
# @example
|
|
462
|
+
# client.plans.delete_plan(plan_id: "plan_id")
|
|
463
|
+
#
|
|
383
464
|
# @return [Schematic::Plans::Types::DeletePlanResponse]
|
|
384
465
|
def delete_plan(request_options: {}, **params)
|
|
385
466
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -412,14 +493,24 @@ module Schematic
|
|
|
412
493
|
# @option request_options [Integer] :timeout_in_seconds
|
|
413
494
|
# @option params [String] :plan_id
|
|
414
495
|
#
|
|
496
|
+
# @example
|
|
497
|
+
# client.plans.upsert_billing_product_plan(
|
|
498
|
+
# plan_id: "plan_id",
|
|
499
|
+
# charge_type: "free",
|
|
500
|
+
# is_trialable: true
|
|
501
|
+
# )
|
|
502
|
+
#
|
|
415
503
|
# @return [Schematic::Plans::Types::UpsertBillingProductPlanResponse]
|
|
416
504
|
def upsert_billing_product_plan(request_options: {}, **params)
|
|
417
505
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
506
|
+
path_param_names = %i[plan_id]
|
|
507
|
+
body_params = params.except(*path_param_names)
|
|
508
|
+
|
|
418
509
|
request = Schematic::Internal::JSON::Request.new(
|
|
419
510
|
base_url: request_options[:base_url],
|
|
420
511
|
method: "PUT",
|
|
421
512
|
path: "plans/#{URI.encode_uri_component(params[:plan_id].to_s)}/billing_products",
|
|
422
|
-
body: Schematic::Types::UpsertBillingProductRequestBody.new(
|
|
513
|
+
body: Schematic::Types::UpsertBillingProductRequestBody.new(body_params).to_h,
|
|
423
514
|
request_options: request_options
|
|
424
515
|
)
|
|
425
516
|
begin
|
|
@@ -444,6 +535,14 @@ module Schematic
|
|
|
444
535
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
445
536
|
# @option request_options [Integer] :timeout_in_seconds
|
|
446
537
|
#
|
|
538
|
+
# @example
|
|
539
|
+
# client.plans.upsert_plan_for_billing_product(
|
|
540
|
+
# billing_provider: "metronome",
|
|
541
|
+
# external_resource_id: "external_resource_id",
|
|
542
|
+
# name: "name",
|
|
543
|
+
# plan_type: "plan"
|
|
544
|
+
# )
|
|
545
|
+
#
|
|
447
546
|
# @return [Schematic::Plans::Types::UpsertPlanForBillingProductResponse]
|
|
448
547
|
def upsert_plan_for_billing_product(request_options: {}, **params)
|
|
449
548
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -480,16 +579,22 @@ module Schematic
|
|
|
480
579
|
# @option params [Integer, nil] :limit
|
|
481
580
|
# @option params [Integer, nil] :offset
|
|
482
581
|
#
|
|
582
|
+
# @example
|
|
583
|
+
# client.plans.list_billing_product_match_companies(
|
|
584
|
+
# plan_id: "plan_id",
|
|
585
|
+
# q: "q",
|
|
586
|
+
# limit: 1000000,
|
|
587
|
+
# offset: 1000000
|
|
588
|
+
# )
|
|
589
|
+
#
|
|
483
590
|
# @return [Schematic::Plans::Types::ListBillingProductMatchCompaniesResponse]
|
|
484
591
|
def list_billing_product_match_companies(request_options: {}, **params)
|
|
485
592
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
486
|
-
query_param_names = %i[plan_id q limit offset]
|
|
487
593
|
query_params = {}
|
|
488
594
|
query_params["plan_id"] = params[:plan_id] if params.key?(:plan_id)
|
|
489
595
|
query_params["q"] = params[:q] if params.key?(:q)
|
|
490
596
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
491
597
|
query_params["offset"] = params[:offset] if params.key?(:offset)
|
|
492
|
-
params.except(*query_param_names)
|
|
493
598
|
|
|
494
599
|
request = Schematic::Internal::JSON::Request.new(
|
|
495
600
|
base_url: request_options[:base_url],
|
|
@@ -524,16 +629,22 @@ module Schematic
|
|
|
524
629
|
# @option params [Integer, nil] :limit
|
|
525
630
|
# @option params [Integer, nil] :offset
|
|
526
631
|
#
|
|
632
|
+
# @example
|
|
633
|
+
# client.plans.count_billing_product_match_companies(
|
|
634
|
+
# plan_id: "plan_id",
|
|
635
|
+
# q: "q",
|
|
636
|
+
# limit: 1000000,
|
|
637
|
+
# offset: 1000000
|
|
638
|
+
# )
|
|
639
|
+
#
|
|
527
640
|
# @return [Schematic::Plans::Types::CountBillingProductMatchCompaniesResponse]
|
|
528
641
|
def count_billing_product_match_companies(request_options: {}, **params)
|
|
529
642
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
530
|
-
query_param_names = %i[plan_id q limit offset]
|
|
531
643
|
query_params = {}
|
|
532
644
|
query_params["plan_id"] = params[:plan_id] if params.key?(:plan_id)
|
|
533
645
|
query_params["q"] = params[:q] if params.key?(:q)
|
|
534
646
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
535
647
|
query_params["offset"] = params[:offset] if params.key?(:offset)
|
|
536
|
-
params.except(*query_param_names)
|
|
537
648
|
|
|
538
649
|
request = Schematic::Internal::JSON::Request.new(
|
|
539
650
|
base_url: request_options[:base_url],
|
|
@@ -581,10 +692,30 @@ module Schematic
|
|
|
581
692
|
# @option params [Integer, nil] :limit
|
|
582
693
|
# @option params [Integer, nil] :offset
|
|
583
694
|
#
|
|
695
|
+
# @example
|
|
696
|
+
# client.plans.count_plans(
|
|
697
|
+
# company_id: "company_id",
|
|
698
|
+
# company_scoped_only: true,
|
|
699
|
+
# exclude_company_scoped: true,
|
|
700
|
+
# for_fallback_plan: true,
|
|
701
|
+
# for_initial_plan: true,
|
|
702
|
+
# for_trial_expiry_plan: true,
|
|
703
|
+
# has_product_id: true,
|
|
704
|
+
# ids: ["ids"],
|
|
705
|
+
# include_draft_versions: true,
|
|
706
|
+
# plan_type: "plan",
|
|
707
|
+
# q: "q",
|
|
708
|
+
# scoped_to_company_id: "scoped_to_company_id",
|
|
709
|
+
# with_entitlements: true,
|
|
710
|
+
# without_entitlement_for: "without_entitlement_for",
|
|
711
|
+
# without_paid_product_id: true,
|
|
712
|
+
# limit: 1000000,
|
|
713
|
+
# offset: 1000000
|
|
714
|
+
# )
|
|
715
|
+
#
|
|
584
716
|
# @return [Schematic::Plans::Types::CountPlansResponse]
|
|
585
717
|
def count_plans(request_options: {}, **params)
|
|
586
718
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
587
|
-
query_param_names = %i[company_id company_scoped_only exclude_company_scoped for_fallback_plan for_initial_plan for_trial_expiry_plan has_product_id ids include_draft_versions plan_type q scoped_to_company_id with_entitlements without_entitlement_for without_paid_product_id limit offset]
|
|
588
719
|
query_params = {}
|
|
589
720
|
query_params["company_id"] = params[:company_id] if params.key?(:company_id)
|
|
590
721
|
query_params["company_scoped_only"] = params[:company_scoped_only] if params.key?(:company_scoped_only)
|
|
@@ -603,7 +734,6 @@ module Schematic
|
|
|
603
734
|
query_params["without_paid_product_id"] = params[:without_paid_product_id] if params.key?(:without_paid_product_id)
|
|
604
735
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
605
736
|
query_params["offset"] = params[:offset] if params.key?(:offset)
|
|
606
|
-
params.except(*query_param_names)
|
|
607
737
|
|
|
608
738
|
request = Schematic::Internal::JSON::Request.new(
|
|
609
739
|
base_url: request_options[:base_url],
|
|
@@ -636,14 +766,18 @@ module Schematic
|
|
|
636
766
|
# @option params [String] :plan_id
|
|
637
767
|
# @option params [String, nil] :plan_version_id
|
|
638
768
|
#
|
|
769
|
+
# @example
|
|
770
|
+
# client.plans.list_plan_issues(
|
|
771
|
+
# plan_id: "plan_id",
|
|
772
|
+
# plan_version_id: "plan_version_id"
|
|
773
|
+
# )
|
|
774
|
+
#
|
|
639
775
|
# @return [Schematic::Plans::Types::ListPlanIssuesResponse]
|
|
640
776
|
def list_plan_issues(request_options: {}, **params)
|
|
641
777
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
642
|
-
query_param_names = %i[plan_id plan_version_id]
|
|
643
778
|
query_params = {}
|
|
644
779
|
query_params["plan_id"] = params[:plan_id] if params.key?(:plan_id)
|
|
645
780
|
query_params["plan_version_id"] = params[:plan_version_id] if params.key?(:plan_version_id)
|
|
646
|
-
params.except(*query_param_names)
|
|
647
781
|
|
|
648
782
|
request = Schematic::Internal::JSON::Request.new(
|
|
649
783
|
base_url: request_options[:base_url],
|
|
@@ -673,21 +807,25 @@ module Schematic
|
|
|
673
807
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
674
808
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
675
809
|
# @option request_options [Integer] :timeout_in_seconds
|
|
676
|
-
# @option params [String] :
|
|
810
|
+
# @option params [String] :plan_version_id
|
|
677
811
|
# @option params [Boolean, nil] :promote_archived_version
|
|
678
812
|
#
|
|
813
|
+
# @example
|
|
814
|
+
# client.plans.delete_plan_version(
|
|
815
|
+
# plan_version_id: "plan_version_id",
|
|
816
|
+
# promote_archived_version: true
|
|
817
|
+
# )
|
|
818
|
+
#
|
|
679
819
|
# @return [Schematic::Plans::Types::DeletePlanVersionResponse]
|
|
680
820
|
def delete_plan_version(request_options: {}, **params)
|
|
681
821
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
682
|
-
query_param_names = %i[promote_archived_version]
|
|
683
822
|
query_params = {}
|
|
684
823
|
query_params["promote_archived_version"] = params[:promote_archived_version] if params.key?(:promote_archived_version)
|
|
685
|
-
params = params.except(*query_param_names)
|
|
686
824
|
|
|
687
825
|
request = Schematic::Internal::JSON::Request.new(
|
|
688
826
|
base_url: request_options[:base_url],
|
|
689
827
|
method: "DELETE",
|
|
690
|
-
path: "plans/version/#{URI.encode_uri_component(params[:
|
|
828
|
+
path: "plans/version/#{URI.encode_uri_component(params[:plan_version_id].to_s)}",
|
|
691
829
|
query: query_params,
|
|
692
830
|
request_options: request_options
|
|
693
831
|
)
|
|
@@ -712,19 +850,26 @@ module Schematic
|
|
|
712
850
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
713
851
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
714
852
|
# @option request_options [Integer] :timeout_in_seconds
|
|
715
|
-
# @option params [String] :
|
|
853
|
+
# @option params [String] :plan_version_id
|
|
854
|
+
#
|
|
855
|
+
# @example
|
|
856
|
+
# client.plans.publish_plan_version(
|
|
857
|
+
# plan_version_id: "plan_version_id",
|
|
858
|
+
# excluded_company_ids: ["excluded_company_ids"],
|
|
859
|
+
# migration_strategy: "immediate"
|
|
860
|
+
# )
|
|
716
861
|
#
|
|
717
862
|
# @return [Schematic::Plans::Types::PublishPlanVersionResponse]
|
|
718
863
|
def publish_plan_version(request_options: {}, **params)
|
|
719
864
|
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
720
865
|
request_data = Schematic::Plans::Types::PublishPlanVersionRequestBody.new(params).to_h
|
|
721
|
-
non_body_param_names = [
|
|
866
|
+
non_body_param_names = %w[plan_version_id]
|
|
722
867
|
body = request_data.except(*non_body_param_names)
|
|
723
868
|
|
|
724
869
|
request = Schematic::Internal::JSON::Request.new(
|
|
725
870
|
base_url: request_options[:base_url],
|
|
726
871
|
method: "PUT",
|
|
727
|
-
path: "plans/version/#{URI.encode_uri_component(params[:
|
|
872
|
+
path: "plans/version/#{URI.encode_uri_component(params[:plan_version_id].to_s)}/publish",
|
|
728
873
|
body: body,
|
|
729
874
|
request_options: request_options
|
|
730
875
|
)
|
|
@@ -6,8 +6,11 @@ module Schematic
|
|
|
6
6
|
# Input parameters
|
|
7
7
|
class CountBillingProductMatchCompaniesParams < Internal::Types::Model
|
|
8
8
|
field :limit, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
9
10
|
field :offset, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
|
|
10
12
|
field :plan_id, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
11
14
|
field :q, -> { String }, optional: true, nullable: false
|
|
12
15
|
end
|
|
13
16
|
end
|
|
@@ -5,8 +5,11 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class CountBillingProductMatchCompaniesRequest < Internal::Types::Model
|
|
7
7
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
8
9
|
field :q, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
9
11
|
field :limit, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
10
13
|
field :offset, -> { Integer }, optional: true, nullable: false
|
|
11
14
|
end
|
|
12
15
|
end
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class CountBillingProductMatchCompaniesResponse < Internal::Types::Model
|
|
7
7
|
field :data, -> { Schematic::Types::CountResponse }, optional: false, nullable: false
|
|
8
|
+
|
|
8
9
|
field :params, -> { Schematic::Plans::Types::CountBillingProductMatchCompaniesParams }, optional: false, nullable: false
|
|
9
10
|
end
|
|
10
11
|
end
|
|
@@ -6,21 +6,37 @@ module Schematic
|
|
|
6
6
|
# Input parameters
|
|
7
7
|
class CountPlansParams < Internal::Types::Model
|
|
8
8
|
field :company_id, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
9
10
|
field :company_scoped_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
|
+
|
|
10
12
|
field :exclude_company_scoped, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
13
|
+
|
|
11
14
|
field :for_fallback_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
15
|
+
|
|
12
16
|
field :for_initial_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
17
|
+
|
|
13
18
|
field :for_trial_expiry_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
19
|
+
|
|
14
20
|
field :has_product_id, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
21
|
+
|
|
15
22
|
field :ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
23
|
+
|
|
16
24
|
field :include_draft_versions, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
25
|
+
|
|
17
26
|
field :limit, -> { Integer }, optional: true, nullable: false
|
|
27
|
+
|
|
18
28
|
field :offset, -> { Integer }, optional: true, nullable: false
|
|
29
|
+
|
|
19
30
|
field :plan_type, -> { Schematic::Types::PlanType }, optional: true, nullable: false
|
|
31
|
+
|
|
20
32
|
field :q, -> { String }, optional: true, nullable: false
|
|
33
|
+
|
|
21
34
|
field :scoped_to_company_id, -> { String }, optional: true, nullable: false
|
|
35
|
+
|
|
22
36
|
field :with_entitlements, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
37
|
+
|
|
23
38
|
field :without_entitlement_for, -> { String }, optional: true, nullable: false
|
|
39
|
+
|
|
24
40
|
field :without_paid_product_id, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
25
41
|
end
|
|
26
42
|
end
|
|
@@ -5,21 +5,37 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class CountPlansRequest < Internal::Types::Model
|
|
7
7
|
field :company_id, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
8
9
|
field :company_scoped_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
|
+
|
|
9
11
|
field :exclude_company_scoped, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
12
|
+
|
|
10
13
|
field :for_fallback_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
|
+
|
|
11
15
|
field :for_initial_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
16
|
+
|
|
12
17
|
field :for_trial_expiry_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
18
|
+
|
|
13
19
|
field :has_product_id, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
20
|
+
|
|
14
21
|
field :ids, -> { String }, optional: true, nullable: false
|
|
22
|
+
|
|
15
23
|
field :include_draft_versions, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
24
|
+
|
|
16
25
|
field :plan_type, -> { Schematic::Types::PlanType }, optional: true, nullable: false
|
|
26
|
+
|
|
17
27
|
field :q, -> { String }, optional: true, nullable: false
|
|
28
|
+
|
|
18
29
|
field :scoped_to_company_id, -> { String }, optional: true, nullable: false
|
|
30
|
+
|
|
19
31
|
field :with_entitlements, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
32
|
+
|
|
20
33
|
field :without_entitlement_for, -> { String }, optional: true, nullable: false
|
|
34
|
+
|
|
21
35
|
field :without_paid_product_id, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
36
|
+
|
|
22
37
|
field :limit, -> { Integer }, optional: true, nullable: false
|
|
38
|
+
|
|
23
39
|
field :offset, -> { Integer }, optional: true, nullable: false
|
|
24
40
|
end
|
|
25
41
|
end
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class CountPlansResponse < Internal::Types::Model
|
|
7
7
|
field :data, -> { Schematic::Types::CountResponse }, optional: false, nullable: false
|
|
8
|
+
|
|
8
9
|
field :params, -> { Schematic::Plans::Types::CountPlansParams }, optional: false, nullable: false
|
|
9
10
|
end
|
|
10
11
|
end
|
|
@@ -5,11 +5,17 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class CreateBillingLinkedPlanRequestBody < Internal::Types::Model
|
|
7
7
|
field :billing_provider, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
9
11
|
field :external_resource_id, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
10
13
|
field :external_resource_version, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
11
15
|
field :icon, -> { Schematic::Types::PlanIcon }, optional: true, nullable: false
|
|
16
|
+
|
|
12
17
|
field :name, -> { String }, optional: false, nullable: false
|
|
18
|
+
|
|
13
19
|
field :plan_type, -> { Schematic::Types::PlanType }, optional: false, nullable: false
|
|
14
20
|
end
|
|
15
21
|
end
|
|
@@ -5,9 +5,15 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class CreateCustomPlanRequestBody < Internal::Types::Model
|
|
7
7
|
field :company_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
8
9
|
field :copied_from_plan_id, -> { String }, optional: true, nullable: false
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
field :copied_price_id, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
10
15
|
field :icon, -> { Schematic::Types::PlanIcon }, optional: true, nullable: false
|
|
16
|
+
|
|
11
17
|
field :name, -> { String }, optional: false, nullable: false
|
|
12
18
|
end
|
|
13
19
|
end
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class CreateCustomPlanResponse < Internal::Types::Model
|
|
7
7
|
field :data, -> { Schematic::Types::PlanDetailResponseData }, optional: false, nullable: false
|
|
8
|
+
|
|
8
9
|
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
9
10
|
end
|
|
10
11
|
end
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class CreatePlanResponse < Internal::Types::Model
|
|
7
7
|
field :data, -> { Schematic::Types::PlanDetailResponseData }, optional: false, nullable: false
|
|
8
|
+
|
|
8
9
|
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
9
10
|
end
|
|
10
11
|
end
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class DeletePlanResponse < Internal::Types::Model
|
|
7
7
|
field :data, -> { Schematic::Types::DeleteResponse }, optional: false, nullable: false
|
|
8
|
+
|
|
8
9
|
field :params, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
9
10
|
end
|
|
10
11
|
end
|
|
@@ -4,7 +4,8 @@ module Schematic
|
|
|
4
4
|
module Plans
|
|
5
5
|
module Types
|
|
6
6
|
class DeletePlanVersionRequest < Internal::Types::Model
|
|
7
|
-
field :
|
|
7
|
+
field :plan_version_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
8
9
|
field :promote_archived_version, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
9
10
|
end
|
|
10
11
|
end
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class DeletePlanVersionResponse < Internal::Types::Model
|
|
7
7
|
field :data, -> { Schematic::Types::DeleteResponse }, optional: false, nullable: false
|
|
8
|
+
|
|
8
9
|
field :params, -> { Schematic::Plans::Types::DeletePlanVersionParams }, optional: false, nullable: false
|
|
9
10
|
end
|
|
10
11
|
end
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
module Types
|
|
6
6
|
class GetPlanResponse < Internal::Types::Model
|
|
7
7
|
field :data, -> { Schematic::Types::PlanDetailResponseData }, optional: false, nullable: false
|
|
8
|
+
|
|
8
9
|
field :params, -> { Schematic::Plans::Types::GetPlanParams }, optional: false, nullable: false
|
|
9
10
|
end
|
|
10
11
|
end
|