schematichq 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +4 -4
- data/.fern/replay.lock +14 -338
- data/.fernignore +8 -0
- data/.rubocop.yml +4 -0
- data/README.md +141 -0
- data/WASM_VERSION +1 -1
- data/custom.gemspec.rb +6 -0
- data/lib/schematic/accesstokens/client.rb +9 -1
- data/lib/schematic/accounts/client.rb +183 -21
- data/lib/schematic/accounts/types/update_environment_request_body.rb +2 -0
- data/lib/schematic/billing/client.rb +325 -34
- data/lib/schematic/billing/types/create_billing_price_request_body.rb +1 -1
- data/lib/schematic/billing/types/create_billing_product_request_body.rb +1 -1
- data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +1 -1
- data/lib/schematic/billing/types/create_coupon_request_body.rb +2 -2
- data/lib/schematic/billing/types/create_invoice_request_body.rb +1 -1
- data/lib/schematic/billing/types/get_billing_settings_response.rb +13 -0
- data/lib/schematic/billing/types/list_billing_prices_params.rb +1 -1
- data/lib/schematic/billing/types/list_billing_prices_request.rb +1 -1
- data/lib/schematic/billing/types/list_billing_product_prices_params.rb +1 -1
- data/lib/schematic/billing/types/list_billing_product_prices_request.rb +1 -1
- data/lib/schematic/billing/types/update_billing_settings_request_body.rb +11 -0
- data/lib/schematic/billing/types/update_billing_settings_response.rb +13 -0
- data/lib/schematic/catalogs/client.rb +121 -14
- data/lib/schematic/checkout/client.rb +80 -9
- data/lib/schematic/checkout/types/checkout_data_request_body.rb +1 -1
- data/lib/schematic/client.rb +5 -3
- data/lib/schematic/companies/client.rb +380 -44
- data/lib/schematic/components/client.rb +70 -8
- data/lib/schematic/components/types/create_component_request_body.rb +1 -1
- data/lib/schematic/components/types/update_component_request_body.rb +1 -1
- data/lib/schematic/componentspublic/client.rb +8 -1
- data/lib/schematic/credits/client.rb +458 -46
- data/lib/schematic/credits/leases/check.rb +477 -0
- data/lib/schematic/credits/leases/lease_manager.rb +565 -0
- data/lib/schematic/credits/leases/lease_store.rb +240 -0
- data/lib/schematic/credits/leases/redis_lease_store.rb +358 -0
- data/lib/schematic/credits/leases/redis_reservation_store.rb +326 -0
- data/lib/schematic/credits/leases/reservation_store.rb +161 -0
- data/lib/schematic/credits/leases/server_check.rb +237 -0
- data/lib/schematic/credits/leases/track.rb +66 -0
- data/lib/schematic/credits/leases/types.rb +329 -0
- data/lib/schematic/credits/leases/wire_client.rb +83 -0
- data/lib/schematic/credits/types/acquire_credit_lease_request_body.rb +3 -1
- data/lib/schematic/credits/types/create_billing_credit_request_body.rb +1 -1
- data/lib/schematic/credits/types/create_company_credit_grant.rb +1 -1
- data/lib/schematic/credits/types/create_credit_bundle_request_body.rb +1 -1
- data/lib/schematic/credits/types/create_credit_spend_policy_request_body.rb +5 -1
- data/lib/schematic/credits/types/extend_credit_lease_request_body.rb +3 -1
- data/lib/schematic/credits/types/get_credit_balance_time_series_params.rb +18 -0
- data/lib/schematic/credits/types/get_credit_balance_time_series_request.rb +17 -0
- data/lib/schematic/credits/types/get_credit_balance_time_series_response.rb +13 -0
- data/lib/schematic/credits/types/get_credit_spend_policy_usage_params.rb +16 -0
- data/lib/schematic/credits/types/get_credit_spend_policy_usage_request.rb +15 -0
- data/lib/schematic/credits/types/get_credit_spend_policy_usage_response.rb +13 -0
- data/lib/schematic/credits/types/reserve_credits_request_body.rb +1 -1
- data/lib/schematic/credits/types/update_credit_spend_policy_request_body.rb +5 -1
- data/lib/schematic/dataexports/client.rb +36 -6
- data/lib/schematic/datastream/client.rb +32 -2
- data/lib/schematic/entitlements/client.rb +406 -25
- data/lib/schematic/entitlements/types/count_company_user_usage_params.rb +24 -0
- data/lib/schematic/entitlements/types/count_company_user_usage_request.rb +23 -0
- data/lib/schematic/entitlements/types/count_company_user_usage_response.rb +13 -0
- data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +4 -2
- data/lib/schematic/entitlements/types/create_company_override_request_body.rb +3 -1
- data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +4 -2
- data/lib/schematic/entitlements/types/get_company_user_usage_metrics_params.rb +16 -0
- data/lib/schematic/entitlements/types/get_company_user_usage_metrics_request.rb +15 -0
- data/lib/schematic/entitlements/types/get_company_user_usage_metrics_response.rb +13 -0
- data/lib/schematic/entitlements/types/list_company_user_usage_params.rb +24 -0
- data/lib/schematic/entitlements/types/list_company_user_usage_request.rb +23 -0
- data/lib/schematic/entitlements/types/list_company_user_usage_response.rb +13 -0
- data/lib/schematic/entitlements/types/update_company_override_request_body.rb +3 -1
- data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +4 -2
- data/lib/schematic/errors/connection_error.rb +11 -0
- data/lib/schematic/errors/response_error.rb +23 -2
- data/lib/schematic/events/client.rb +78 -9
- data/lib/schematic/features/client.rb +160 -18
- data/lib/schematic/features/types/check_and_reserve_flag_request_body.rb +1 -1
- data/lib/schematic/features/types/create_billing_linked_feature_request_body.rb +2 -0
- data/lib/schematic/features/types/create_feature_request_body.rb +2 -0
- data/lib/schematic/features/types/update_feature_request_body.rb +2 -0
- data/lib/schematic/insights/client.rb +48 -6
- data/lib/schematic/integrationsapi/client.rb +120 -14
- data/lib/schematic/internal/http/base_request.rb +30 -0
- data/lib/schematic/internal/http/raw_client.rb +35 -5
- data/lib/schematic/internal/iterators/cursor_item_iterator.rb +7 -2
- data/lib/schematic/internal/iterators/cursor_page_iterator.rb +68 -14
- data/lib/schematic/internal/iterators/item_iterator.rb +61 -15
- data/lib/schematic/internal/iterators/offset_item_iterator.rb +7 -2
- data/lib/schematic/internal/iterators/offset_page_iterator.rb +57 -9
- data/lib/schematic/internal/json/request.rb +11 -2
- data/lib/schematic/internal/multipart/multipart_request.rb +1 -0
- data/lib/schematic/internal/types/model.rb +7 -3
- data/lib/schematic/internal/types/utils.rb +7 -0
- data/lib/schematic/licenses/client.rb +26 -3
- data/lib/schematic/planbundle/client.rb +27 -3
- data/lib/schematic/plangroups/client.rb +28 -3
- data/lib/schematic/plangroups/types/create_plan_group_request_body.rb +2 -0
- data/lib/schematic/plangroups/types/update_plan_group_request_body.rb +2 -0
- data/lib/schematic/planmigrations/client.rb +104 -11
- data/lib/schematic/planmigrations/types/count_migrations_params.rb +2 -0
- data/lib/schematic/planmigrations/types/count_migrations_request.rb +2 -0
- data/lib/schematic/planmigrations/types/create_migration_input.rb +2 -0
- data/lib/schematic/planmigrations/types/list_migrations_params.rb +2 -0
- data/lib/schematic/planmigrations/types/list_migrations_request.rb +2 -0
- data/lib/schematic/plans/client.rb +213 -23
- data/lib/schematic/plans/types/get_plan_version_diff_params.rb +12 -0
- data/lib/schematic/plans/types/get_plan_version_diff_request.rb +13 -0
- data/lib/schematic/plans/types/get_plan_version_diff_response.rb +13 -0
- data/lib/schematic/plans/types/publish_plan_version_request_body.rb +6 -0
- data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +2 -0
- data/lib/schematic/rules_engine.rb +49 -0
- data/lib/schematic/scheduledcheckout/client.rb +35 -4
- data/lib/schematic/schematic_client.rb +841 -33
- data/lib/schematic/types/billing_coupon_response_data.rb +2 -2
- data/lib/schematic/types/billing_credit_grant_response_data.rb +8 -8
- data/lib/schematic/types/billing_customer_subscription.rb +1 -1
- data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +1 -1
- data/lib/schematic/types/billing_price_response_data.rb +1 -1
- data/lib/schematic/types/billing_price_view.rb +1 -1
- data/lib/schematic/types/billing_product_detail_response_data.rb +2 -2
- data/lib/schematic/types/billing_product_for_subscription_response_data.rb +2 -2
- data/lib/schematic/types/billing_product_price_response_data.rb +1 -1
- data/lib/schematic/types/billing_product_pricing.rb +1 -1
- data/lib/schematic/types/billing_product_response_data.rb +2 -2
- data/lib/schematic/types/billing_settings_response_data.rb +9 -0
- data/lib/schematic/types/billing_subscription_discount_view.rb +2 -2
- data/lib/schematic/types/billing_subscription_response_data.rb +1 -1
- data/lib/schematic/types/billing_subscription_view.rb +1 -1
- data/lib/schematic/types/capture_raw_event.rb +4 -0
- data/lib/schematic/types/catalog_config_ordered_plan.rb +2 -0
- data/lib/schematic/types/catalog_config_ordered_plan_response_data.rb +2 -0
- data/lib/schematic/types/catalog_config_plan_credit.rb +11 -0
- data/lib/schematic/types/catalog_config_plan_credit_response_data.rb +11 -0
- data/lib/schematic/types/change_subscription_internal_request_body.rb +1 -1
- data/lib/schematic/types/change_subscription_request_body.rb +1 -1
- data/lib/schematic/types/check_flags_response_data.rb +2 -0
- data/lib/schematic/types/checkout_problem_code.rb +54 -0
- data/lib/schematic/types/checkout_problem_response_data.rb +31 -0
- data/lib/schematic/types/checkout_problem_source.rb +13 -0
- data/lib/schematic/types/checkout_subscription.rb +1 -1
- data/lib/schematic/types/company_billing_entity_subscription_response_data.rb +1 -1
- data/lib/schematic/types/company_credit_balance.rb +3 -3
- data/lib/schematic/types/company_credit_balance_response_data.rb +4 -4
- data/lib/schematic/types/company_detail_response_data.rb +3 -1
- data/lib/schematic/types/company_override_response_data.rb +3 -1
- data/lib/schematic/types/company_plan_credit_grant_view.rb +1 -1
- data/lib/schematic/types/company_plan_detail_response_data.rb +4 -0
- data/lib/schematic/types/company_subscription_response_data.rb +1 -1
- data/lib/schematic/types/company_user_usage_metrics_response_data.rb +15 -0
- data/lib/schematic/types/company_user_usage_response_data.rb +19 -0
- data/lib/schematic/types/company_user_usage_row_response_data.rb +17 -0
- data/lib/schematic/types/component_display_settings.rb +2 -0
- data/lib/schematic/types/component_response_data.rb +1 -1
- data/lib/schematic/types/component_settings_response_data.rb +2 -0
- data/lib/schematic/types/condition.rb +3 -1
- data/lib/schematic/types/condition_response_data.rb +3 -1
- data/lib/schematic/types/condition_view.rb +3 -1
- data/lib/schematic/types/coupon_request_body.rb +2 -2
- data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +1 -1
- data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +4 -2
- data/lib/schematic/types/create_entitlement_req_common.rb +3 -1
- data/lib/schematic/types/create_or_update_condition_request_body.rb +1 -1
- data/lib/schematic/types/credit_balance_event_response_data.rb +21 -0
- data/lib/schematic/types/credit_balance_feature_consumption_response_data.rb +13 -0
- data/lib/schematic/types/credit_balance_point_response_data.rb +15 -0
- data/lib/schematic/types/credit_balance_time_series_response_data.rb +15 -0
- data/lib/schematic/types/credit_bundle_currency_price.rb +1 -1
- data/lib/schematic/types/credit_bundle_currency_price_request_body.rb +1 -1
- data/lib/schematic/types/credit_bundle_currency_price_response_data.rb +1 -1
- data/lib/schematic/types/credit_burn_breakdown_line.rb +15 -0
- data/lib/schematic/types/credit_company_grant_view.rb +8 -8
- data/lib/schematic/types/credit_currency_price.rb +1 -1
- data/lib/schematic/types/credit_currency_price_request_body.rb +1 -1
- data/lib/schematic/types/credit_currency_price_response_data.rb +1 -1
- data/lib/schematic/types/credit_event_ledger_response_data.rb +14 -6
- data/lib/schematic/types/credit_event_type.rb +3 -0
- data/lib/schematic/types/credit_grant_detail.rb +1 -1
- data/lib/schematic/types/credit_lease_response_data.rb +2 -2
- data/lib/schematic/types/credit_ledger_entry_kind.rb +17 -0
- data/lib/schematic/types/credit_reservation_response_data.rb +2 -2
- data/lib/schematic/types/credit_spend_policy.rb +25 -0
- data/lib/schematic/types/credit_spend_policy_response_data.rb +13 -1
- data/lib/schematic/types/credit_spend_window.rb +11 -0
- data/lib/schematic/types/credit_spend_window_unit.rb +13 -0
- data/lib/schematic/types/credit_transfer_response_data.rb +1 -1
- data/lib/schematic/types/credit_transfer_view.rb +1 -1
- data/lib/schematic/types/credit_usage.rb +5 -5
- data/lib/schematic/types/credit_usage_aggregation.rb +4 -4
- data/lib/schematic/types/credit_usage_reason.rb +1 -0
- data/lib/schematic/types/credits_in_plan.rb +11 -0
- data/lib/schematic/types/currency.rb +144 -0
- data/lib/schematic/types/currency_price_request_body.rb +1 -1
- data/lib/schematic/types/custom_plan_billing_response_data.rb +8 -0
- data/lib/schematic/types/entitlement_currency_prices_response_data.rb +1 -1
- data/lib/schematic/types/environment_detail_response_data.rb +2 -0
- data/lib/schematic/types/environment_response_data.rb +2 -0
- data/lib/schematic/types/estimated_plan_total.rb +13 -0
- data/lib/schematic/types/feature_company_response_data.rb +7 -7
- data/lib/schematic/types/feature_detail_response_data.rb +2 -0
- data/lib/schematic/types/feature_entitlement.rb +8 -6
- data/lib/schematic/types/feature_event_source.rb +12 -0
- data/lib/schematic/types/feature_in_plan_response_data.rb +2 -0
- data/lib/schematic/types/feature_response_data.rb +2 -0
- data/lib/schematic/types/feature_usage_response_data.rb +7 -7
- data/lib/schematic/types/feature_view.rb +2 -0
- data/lib/schematic/types/flag_check_reservation_response_data.rb +3 -3
- data/lib/schematic/types/insights_summary_response_data.rb +1 -1
- data/lib/schematic/types/invoice_request_body.rb +1 -1
- data/lib/schematic/types/invoice_response_data.rb +1 -1
- data/lib/schematic/types/manage_plan_preview_response_response_data.rb +2 -0
- data/lib/schematic/types/manage_plan_request.rb +3 -1
- data/lib/schematic/types/manage_plan_response_response_data.rb +4 -0
- data/lib/schematic/types/mrr_response_data.rb +1 -1
- data/lib/schematic/types/onboarding_milestone_view.rb +1 -1
- data/lib/schematic/types/ordered_plans_in_group.rb +2 -0
- data/lib/schematic/types/pending_migration_response_data.rb +6 -0
- data/lib/schematic/types/plan_billing_source.rb +1 -0
- data/lib/schematic/types/plan_change_action.rb +1 -0
- data/lib/schematic/types/plan_change_amendment_status.rb +15 -0
- data/lib/schematic/types/plan_change_response_data.rb +4 -0
- data/lib/schematic/types/plan_credit_grant_view.rb +1 -1
- data/lib/schematic/types/plan_credit_order.rb +11 -0
- data/lib/schematic/types/plan_credit_visibility.rb +11 -0
- data/lib/schematic/types/plan_currency_price_request_body.rb +1 -1
- data/lib/schematic/types/plan_currency_prices_response_data.rb +1 -1
- data/lib/schematic/types/plan_entitlement_response_data.rb +3 -1
- data/lib/schematic/types/plan_group_plan_entitlements_order.rb +2 -0
- data/lib/schematic/types/plan_version_billing_product_change_response_data.rb +11 -0
- data/lib/schematic/types/plan_version_credit_grant_change_response_data.rb +17 -0
- data/lib/schematic/types/plan_version_diff_change_type.rb +13 -0
- data/lib/schematic/types/plan_version_diff_price_cadence.rb +14 -0
- data/lib/schematic/types/plan_version_diff_response_data.rb +23 -0
- data/lib/schematic/types/plan_version_entitlement_change_response_data.rb +17 -0
- data/lib/schematic/types/plan_version_field_change_response_data.rb +13 -0
- data/lib/schematic/types/plan_version_migration_response_data.rb +2 -0
- data/lib/schematic/types/plan_version_migration_strategy.rb +1 -0
- data/lib/schematic/types/plan_version_price_change_response_data.rb +15 -0
- data/lib/schematic/types/plan_view_public_response_data.rb +2 -0
- data/lib/schematic/types/preflight_request_body.rb +1 -1
- data/lib/schematic/types/preview_subscription_change_response_data.rb +3 -1
- data/lib/schematic/types/preview_subscription_discount_response_data.rb +2 -2
- data/lib/schematic/types/preview_subscription_finance_response_data.rb +2 -2
- data/lib/schematic/types/rules_engine_schema_version.rb +1 -1
- data/lib/schematic/types/rulesengine_company.rb +3 -1
- data/lib/schematic/types/rulesengine_condition.rb +3 -1
- data/lib/schematic/types/rulesengine_credit_postpaid_config.rb +1 -1
- data/lib/schematic/types/rulesengine_credit_spend_policy.rb +25 -0
- data/lib/schematic/types/rulesengine_credit_spend_policy_scope.rb +13 -0
- data/lib/schematic/types/rulesengine_credit_spend_window.rb +11 -0
- data/lib/schematic/types/rulesengine_feature_entitlement.rb +8 -6
- data/lib/schematic/types/rulesengine_user.rb +2 -0
- data/lib/schematic/types/scheduled_downgrade_response_data.rb +1 -1
- data/lib/schematic/types/top_feature_by_usage_response_data.rb +1 -1
- data/lib/schematic/types/upcoming_invoice_response_data.rb +1 -1
- data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +1 -1
- data/lib/schematic/types/update_entitlement_req_common.rb +3 -1
- data/lib/schematic/types/upsert_billing_product_request_body.rb +1 -1
- data/lib/schematic/types/usage_based_entitlement_request_body.rb +1 -1
- data/lib/schematic/types/usage_based_entitlement_response_data.rb +1 -1
- data/lib/schematic/types/user_credit_usage_response_data.rb +2 -2
- data/lib/schematic/types/user_daily_credit_point_response_data.rb +1 -1
- data/lib/schematic/types/user_feature_usage_response_data.rb +1 -1
- data/lib/schematic/types/user_usage_metric.rb +12 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/wasm/rulesengine.wasm +0 -0
- data/lib/schematic/webhooks/client.rb +88 -10
- data/lib/schematic.rb +64 -5
- data/lib/schematichq.rb +10 -0
- data/reference.md +888 -127
- metadata +71 -2
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module Currency
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
AED = "aed"
|
|
9
|
+
AFN = "afn"
|
|
10
|
+
ALL = "all"
|
|
11
|
+
AMD = "amd"
|
|
12
|
+
ANG = "ang"
|
|
13
|
+
AOA = "aoa"
|
|
14
|
+
ARS = "ars"
|
|
15
|
+
AUD = "aud"
|
|
16
|
+
AWG = "awg"
|
|
17
|
+
AZN = "azn"
|
|
18
|
+
BAM = "bam"
|
|
19
|
+
BBD = "bbd"
|
|
20
|
+
BDT = "bdt"
|
|
21
|
+
BIF = "bif"
|
|
22
|
+
BMD = "bmd"
|
|
23
|
+
BND = "bnd"
|
|
24
|
+
BOB = "bob"
|
|
25
|
+
BRL = "brl"
|
|
26
|
+
BSD = "bsd"
|
|
27
|
+
BWP = "bwp"
|
|
28
|
+
BYN = "byn"
|
|
29
|
+
BZD = "bzd"
|
|
30
|
+
CAD = "cad"
|
|
31
|
+
CDF = "cdf"
|
|
32
|
+
CHF = "chf"
|
|
33
|
+
CLP = "clp"
|
|
34
|
+
CNY = "cny"
|
|
35
|
+
COP = "cop"
|
|
36
|
+
CRC = "crc"
|
|
37
|
+
CVE = "cve"
|
|
38
|
+
CZK = "czk"
|
|
39
|
+
DJF = "djf"
|
|
40
|
+
DKK = "dkk"
|
|
41
|
+
DOP = "dop"
|
|
42
|
+
DZD = "dzd"
|
|
43
|
+
EGP = "egp"
|
|
44
|
+
ETB = "etb"
|
|
45
|
+
EUR = "eur"
|
|
46
|
+
FJD = "fjd"
|
|
47
|
+
FKP = "fkp"
|
|
48
|
+
GBP = "gbp"
|
|
49
|
+
GEL = "gel"
|
|
50
|
+
GIP = "gip"
|
|
51
|
+
GMD = "gmd"
|
|
52
|
+
GNF = "gnf"
|
|
53
|
+
GTQ = "gtq"
|
|
54
|
+
GYD = "gyd"
|
|
55
|
+
HKD = "hkd"
|
|
56
|
+
HNL = "hnl"
|
|
57
|
+
HTG = "htg"
|
|
58
|
+
HUF = "huf"
|
|
59
|
+
IDR = "idr"
|
|
60
|
+
ILS = "ils"
|
|
61
|
+
INR = "inr"
|
|
62
|
+
ISK = "isk"
|
|
63
|
+
JMD = "jmd"
|
|
64
|
+
JPY = "jpy"
|
|
65
|
+
KES = "kes"
|
|
66
|
+
KGS = "kgs"
|
|
67
|
+
KHR = "khr"
|
|
68
|
+
KMF = "kmf"
|
|
69
|
+
KRW = "krw"
|
|
70
|
+
KYD = "kyd"
|
|
71
|
+
KZT = "kzt"
|
|
72
|
+
LAK = "lak"
|
|
73
|
+
LBP = "lbp"
|
|
74
|
+
LKR = "lkr"
|
|
75
|
+
LRD = "lrd"
|
|
76
|
+
LSL = "lsl"
|
|
77
|
+
MAD = "mad"
|
|
78
|
+
MDL = "mdl"
|
|
79
|
+
MGA = "mga"
|
|
80
|
+
MKD = "mkd"
|
|
81
|
+
MMK = "mmk"
|
|
82
|
+
MNT = "mnt"
|
|
83
|
+
MOP = "mop"
|
|
84
|
+
MUR = "mur"
|
|
85
|
+
MVR = "mvr"
|
|
86
|
+
MWK = "mwk"
|
|
87
|
+
MXN = "mxn"
|
|
88
|
+
MYR = "myr"
|
|
89
|
+
MZN = "mzn"
|
|
90
|
+
NAD = "nad"
|
|
91
|
+
NGN = "ngn"
|
|
92
|
+
NIO = "nio"
|
|
93
|
+
NOK = "nok"
|
|
94
|
+
NPR = "npr"
|
|
95
|
+
NZD = "nzd"
|
|
96
|
+
PAB = "pab"
|
|
97
|
+
PEN = "pen"
|
|
98
|
+
PGK = "pgk"
|
|
99
|
+
PHP = "php"
|
|
100
|
+
PKR = "pkr"
|
|
101
|
+
PLN = "pln"
|
|
102
|
+
PYG = "pyg"
|
|
103
|
+
QAR = "qar"
|
|
104
|
+
RON = "ron"
|
|
105
|
+
RSD = "rsd"
|
|
106
|
+
RUB = "rub"
|
|
107
|
+
RWF = "rwf"
|
|
108
|
+
SAR = "sar"
|
|
109
|
+
SBD = "sbd"
|
|
110
|
+
SCR = "scr"
|
|
111
|
+
SEK = "sek"
|
|
112
|
+
SGD = "sgd"
|
|
113
|
+
SHP = "shp"
|
|
114
|
+
SLE = "sle"
|
|
115
|
+
SOS = "sos"
|
|
116
|
+
SRD = "srd"
|
|
117
|
+
STD = "std"
|
|
118
|
+
SZL = "szl"
|
|
119
|
+
THB = "thb"
|
|
120
|
+
TJS = "tjs"
|
|
121
|
+
TOP = "top"
|
|
122
|
+
TRY = "try"
|
|
123
|
+
TTD = "ttd"
|
|
124
|
+
TWD = "twd"
|
|
125
|
+
TZS = "tzs"
|
|
126
|
+
UAH = "uah"
|
|
127
|
+
UGX = "ugx"
|
|
128
|
+
USD = "usd"
|
|
129
|
+
UYU = "uyu"
|
|
130
|
+
UZS = "uzs"
|
|
131
|
+
VND = "vnd"
|
|
132
|
+
VUV = "vuv"
|
|
133
|
+
WST = "wst"
|
|
134
|
+
XAF = "xaf"
|
|
135
|
+
XCD = "xcd"
|
|
136
|
+
XCG = "xcg"
|
|
137
|
+
XOF = "xof"
|
|
138
|
+
XPF = "xpf"
|
|
139
|
+
YER = "yer"
|
|
140
|
+
ZAR = "zar"
|
|
141
|
+
ZMW = "zmw"
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class CurrencyPriceRequestBody < Internal::Types::Model
|
|
6
|
-
field :currency, -> {
|
|
6
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
7
7
|
|
|
8
8
|
field :monthly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
|
|
9
9
|
|
|
@@ -7,6 +7,10 @@ module Schematic
|
|
|
7
7
|
|
|
8
8
|
field :billing_cycle_anchor, -> { String }, optional: true, nullable: false
|
|
9
9
|
|
|
10
|
+
field :billing_start_date, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :checkout_id, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
10
14
|
field :company_id, -> { String }, optional: false, nullable: false
|
|
11
15
|
|
|
12
16
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
@@ -17,12 +21,16 @@ module Schematic
|
|
|
17
21
|
|
|
18
22
|
field :id, -> { String }, optional: false, nullable: false
|
|
19
23
|
|
|
24
|
+
field :migration_id, -> { String }, optional: true, nullable: false
|
|
25
|
+
|
|
20
26
|
field :paid_at, -> { String }, optional: true, nullable: false
|
|
21
27
|
|
|
22
28
|
field :plan_billing_source, -> { Schematic::Types::PlanBillingSource }, optional: false, nullable: false
|
|
23
29
|
|
|
24
30
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
25
31
|
|
|
32
|
+
field :problems, -> { Internal::Types::Array[Schematic::Types::CheckoutProblemResponseData] }, optional: false, nullable: false
|
|
33
|
+
|
|
26
34
|
field :prorate_first_period, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
27
35
|
|
|
28
36
|
field :published_at, -> { String }, optional: true, nullable: false
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class EntitlementCurrencyPricesResponseData < Internal::Types::Model
|
|
6
|
-
field :currency, -> {
|
|
6
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
7
7
|
|
|
8
8
|
field :monthly_price, -> { Schematic::Types::BillingPriceView }, optional: true, nullable: false
|
|
9
9
|
|
|
@@ -13,6 +13,8 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
field :name, -> { String }, optional: false, nullable: false
|
|
15
15
|
|
|
16
|
+
field :require_context_signature, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
17
|
+
|
|
16
18
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
17
19
|
end
|
|
18
20
|
end
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :name, -> { String }, optional: false, nullable: false
|
|
13
13
|
|
|
14
|
+
field :require_context_signature, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
15
|
+
|
|
14
16
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
15
17
|
end
|
|
16
18
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class EstimatedPlanTotal < Internal::Types::Model
|
|
6
|
+
field :amount, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :period, -> { Schematic::Types::PlanPriceCadence }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -13,17 +13,17 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
field :company_override, -> { Schematic::Types::CompanyOverrideResponseData }, optional: true, nullable: false
|
|
15
15
|
|
|
16
|
-
field :credit_consumption_rate, -> {
|
|
16
|
+
field :credit_consumption_rate, -> { Float }, optional: true, nullable: false
|
|
17
17
|
|
|
18
|
-
field :credit_grant_counts, -> { Internal::Types::Hash[String,
|
|
18
|
+
field :credit_grant_counts, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
19
19
|
|
|
20
20
|
field :credit_grant_details, -> { Internal::Types::Array[Schematic::Types::CreditGrantDetail] }, optional: true, nullable: false
|
|
21
21
|
|
|
22
22
|
field :credit_grant_reason, -> { Schematic::Types::BillingCreditGrantReason }, optional: true, nullable: false
|
|
23
23
|
|
|
24
|
-
field :credit_remaining, -> {
|
|
24
|
+
field :credit_remaining, -> { Float }, optional: true, nullable: false
|
|
25
25
|
|
|
26
|
-
field :credit_total, -> {
|
|
26
|
+
field :credit_total, -> { Float }, optional: true, nullable: false
|
|
27
27
|
|
|
28
28
|
field :credit_type_icon, -> { String }, optional: true, nullable: false
|
|
29
29
|
|
|
@@ -31,11 +31,11 @@ module Schematic
|
|
|
31
31
|
|
|
32
32
|
field :credit_usage_aggregation, -> { Schematic::Types::CreditUsageAggregation }, optional: true, nullable: false
|
|
33
33
|
|
|
34
|
-
field :credit_used, -> {
|
|
34
|
+
field :credit_used, -> { Float }, optional: true, nullable: false
|
|
35
35
|
|
|
36
36
|
field :effective_limit, -> { Integer }, optional: true, nullable: false
|
|
37
37
|
|
|
38
|
-
field :effective_price, -> {
|
|
38
|
+
field :effective_price, -> { Float }, optional: true, nullable: false
|
|
39
39
|
|
|
40
40
|
field :entitlement_expiration_date, -> { String }, optional: true, nullable: false
|
|
41
41
|
|
|
@@ -59,7 +59,7 @@ module Schematic
|
|
|
59
59
|
|
|
60
60
|
field :overuse, -> { Integer }, optional: true, nullable: false
|
|
61
61
|
|
|
62
|
-
field :percent_used, -> {
|
|
62
|
+
field :percent_used, -> { Float }, optional: true, nullable: false
|
|
63
63
|
|
|
64
64
|
field :period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
|
|
65
65
|
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :description, -> { String }, optional: false, nullable: false
|
|
13
13
|
|
|
14
|
+
field :event_source, -> { Schematic::Types::FeatureEventSource }, optional: false, nullable: false
|
|
15
|
+
|
|
14
16
|
field :event_subtype, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :event_summary, -> { Schematic::Types::EventSummaryResponseData }, optional: true, nullable: false
|
|
@@ -5,19 +5,19 @@ module Schematic
|
|
|
5
5
|
class FeatureEntitlement < Internal::Types::Model
|
|
6
6
|
field :allocation, -> { Integer }, optional: true, nullable: false
|
|
7
7
|
|
|
8
|
-
field :consumption_rate, -> {
|
|
8
|
+
field :consumption_rate, -> { Float }, optional: true, nullable: false
|
|
9
9
|
|
|
10
10
|
field :credit_id, -> { String }, optional: true, nullable: false
|
|
11
11
|
|
|
12
|
-
field :credit_remaining, -> {
|
|
12
|
+
field :credit_remaining, -> { Float }, optional: true, nullable: false
|
|
13
13
|
|
|
14
|
-
field :credit_reserved, -> {
|
|
14
|
+
field :credit_reserved, -> { Float }, optional: true, nullable: false
|
|
15
15
|
|
|
16
|
-
field :credit_settled, -> {
|
|
16
|
+
field :credit_settled, -> { Float }, optional: true, nullable: false
|
|
17
17
|
|
|
18
|
-
field :credit_total, -> {
|
|
18
|
+
field :credit_total, -> { Float }, optional: true, nullable: false
|
|
19
19
|
|
|
20
|
-
field :credit_used, -> {
|
|
20
|
+
field :credit_used, -> { Float }, optional: true, nullable: false
|
|
21
21
|
|
|
22
22
|
field :event_name, -> { String }, optional: true, nullable: false
|
|
23
23
|
|
|
@@ -33,6 +33,8 @@ module Schematic
|
|
|
33
33
|
|
|
34
34
|
field :month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
|
|
35
35
|
|
|
36
|
+
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
37
|
+
|
|
36
38
|
field :soft_limit, -> { Integer }, optional: true, nullable: false
|
|
37
39
|
|
|
38
40
|
field :usage, -> { Integer }, optional: true, nullable: false
|
|
@@ -9,6 +9,8 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :description, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
+
field :event_source, -> { Schematic::Types::FeatureEventSource }, optional: false, nullable: false
|
|
13
|
+
|
|
12
14
|
field :event_subtype, -> { String }, optional: true, nullable: false
|
|
13
15
|
|
|
14
16
|
field :event_summary, -> { Schematic::Types::EventSummaryResponseData }, optional: true, nullable: false
|
|
@@ -7,6 +7,8 @@ module Schematic
|
|
|
7
7
|
|
|
8
8
|
field :description, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
+
field :event_source, -> { Schematic::Types::FeatureEventSource }, optional: false, nullable: false
|
|
11
|
+
|
|
10
12
|
field :event_subtype, -> { String }, optional: true, nullable: false
|
|
11
13
|
|
|
12
14
|
field :feature_type, -> { Schematic::Types::FeatureType }, optional: false, nullable: false
|
|
@@ -11,27 +11,27 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :company_override, -> { Schematic::Types::CompanyOverrideResponseData }, optional: true, nullable: false
|
|
13
13
|
|
|
14
|
-
field :credit_consumption_rate, -> {
|
|
14
|
+
field :credit_consumption_rate, -> { Float }, optional: true, nullable: false
|
|
15
15
|
|
|
16
|
-
field :credit_grant_counts, -> { Internal::Types::Hash[String,
|
|
16
|
+
field :credit_grant_counts, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
17
17
|
|
|
18
18
|
field :credit_grant_details, -> { Internal::Types::Array[Schematic::Types::CreditGrantDetail] }, optional: true, nullable: false
|
|
19
19
|
|
|
20
20
|
field :credit_grant_reason, -> { Schematic::Types::BillingCreditGrantReason }, optional: true, nullable: false
|
|
21
21
|
|
|
22
|
-
field :credit_remaining, -> {
|
|
22
|
+
field :credit_remaining, -> { Float }, optional: true, nullable: false
|
|
23
23
|
|
|
24
|
-
field :credit_total, -> {
|
|
24
|
+
field :credit_total, -> { Float }, optional: true, nullable: false
|
|
25
25
|
|
|
26
26
|
field :credit_type_icon, -> { String }, optional: true, nullable: false
|
|
27
27
|
|
|
28
28
|
field :credit_usage_aggregation, -> { Schematic::Types::CreditUsageAggregation }, optional: true, nullable: false
|
|
29
29
|
|
|
30
|
-
field :credit_used, -> {
|
|
30
|
+
field :credit_used, -> { Float }, optional: true, nullable: false
|
|
31
31
|
|
|
32
32
|
field :effective_limit, -> { Integer }, optional: true, nullable: false
|
|
33
33
|
|
|
34
|
-
field :effective_price, -> {
|
|
34
|
+
field :effective_price, -> { Float }, optional: true, nullable: false
|
|
35
35
|
|
|
36
36
|
field :entitlement_expiration_date, -> { String }, optional: true, nullable: false
|
|
37
37
|
|
|
@@ -55,7 +55,7 @@ module Schematic
|
|
|
55
55
|
|
|
56
56
|
field :overuse, -> { Integer }, optional: true, nullable: false
|
|
57
57
|
|
|
58
|
-
field :percent_used, -> {
|
|
58
|
+
field :percent_used, -> { Float }, optional: true, nullable: false
|
|
59
59
|
|
|
60
60
|
field :period, -> { Schematic::Types::MetricPeriod }, optional: true, nullable: false
|
|
61
61
|
|
|
@@ -13,6 +13,8 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
field :description, -> { String }, optional: false, nullable: false
|
|
15
15
|
|
|
16
|
+
field :event_source, -> { Schematic::Types::FeatureEventSource }, optional: false, nullable: false
|
|
17
|
+
|
|
16
18
|
field :event_subtype, -> { String }, optional: true, nullable: false
|
|
17
19
|
|
|
18
20
|
field :event_summary, -> { Schematic::Types::EventSummaryResponseData }, optional: true, nullable: false
|
|
@@ -5,11 +5,11 @@ module Schematic
|
|
|
5
5
|
class FlagCheckReservationResponseData < Internal::Types::Model
|
|
6
6
|
field :company_id, -> { String }, optional: false, nullable: false
|
|
7
7
|
|
|
8
|
-
field :consumption_rate, -> {
|
|
8
|
+
field :consumption_rate, -> { Float }, optional: false, nullable: false
|
|
9
9
|
|
|
10
10
|
field :credit_type_id, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
-
field :credits_reserved, -> {
|
|
12
|
+
field :credits_reserved, -> { Float }, optional: false, nullable: false
|
|
13
13
|
|
|
14
14
|
field :event_subtype, -> { String }, optional: true, nullable: false
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ module Schematic
|
|
|
17
17
|
|
|
18
18
|
field :id, -> { String }, optional: false, nullable: false
|
|
19
19
|
|
|
20
|
-
field :quantity_reserved, -> {
|
|
20
|
+
field :quantity_reserved, -> { Float }, optional: false, nullable: false
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class InsightsSummaryResponseData < Internal::Types::Model
|
|
6
|
-
field :active_credits, -> {
|
|
6
|
+
field :active_credits, -> { Float }, optional: false, nullable: false
|
|
7
7
|
|
|
8
8
|
field :mrr, -> { Internal::Types::Array[Schematic::Types::MrrResponseData] }, optional: false, nullable: false
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :collection_method, -> { String }, optional: false, nullable: false
|
|
13
13
|
|
|
14
|
-
field :currency, -> {
|
|
14
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
15
15
|
|
|
16
16
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
17
17
|
|
|
@@ -15,7 +15,7 @@ module Schematic
|
|
|
15
15
|
|
|
16
16
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
17
17
|
|
|
18
|
-
field :currency, -> {
|
|
18
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
19
19
|
|
|
20
20
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
21
21
|
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class ManagePlanPreviewResponseResponseData < Internal::Types::Model
|
|
6
|
+
field :problems, -> { Internal::Types::Array[Schematic::Types::CheckoutProblemResponseData] }, optional: false, nullable: false
|
|
7
|
+
|
|
6
8
|
field :subscription_change_preview, -> { Schematic::Types::PreviewSubscriptionChangeResponseData }, optional: true, nullable: false
|
|
7
9
|
end
|
|
8
10
|
end
|
|
@@ -29,12 +29,14 @@ module Schematic
|
|
|
29
29
|
|
|
30
30
|
field :credit_bundles, -> { Internal::Types::Array[Schematic::Types::UpdateCreditBundleRequestBody] }, optional: false, nullable: false
|
|
31
31
|
|
|
32
|
-
field :currency, -> {
|
|
32
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
33
33
|
|
|
34
34
|
field :custom_field_values, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldValue] }, optional: false, nullable: false
|
|
35
35
|
|
|
36
36
|
field :days_until_due, -> { Integer }, optional: true, nullable: false
|
|
37
37
|
|
|
38
|
+
field :paid_outside_stripe, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
39
|
+
|
|
38
40
|
field :pay_in_advance_entitlements, -> { Internal::Types::Array[Schematic::Types::UpdatePayInAdvanceRequestBody] }, optional: false, nullable: false
|
|
39
41
|
|
|
40
42
|
field :payment_method_external_id, -> { String }, optional: true, nullable: false
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class ManagePlanResponseResponseData < Internal::Types::Model
|
|
6
|
+
field :checkout_id, -> { String }, optional: true, nullable: false
|
|
7
|
+
|
|
6
8
|
field :company, -> { Schematic::Types::CompanyDetailResponseData }, optional: true, nullable: false
|
|
7
9
|
|
|
10
|
+
field :problems, -> { Internal::Types::Array[Schematic::Types::CheckoutProblemResponseData] }, optional: false, nullable: false
|
|
11
|
+
|
|
8
12
|
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
13
|
end
|
|
10
14
|
end
|
|
@@ -5,7 +5,7 @@ module Schematic
|
|
|
5
5
|
class MrrResponseData < Internal::Types::Model
|
|
6
6
|
field :amount, -> { Integer }, optional: false, nullable: false
|
|
7
7
|
|
|
8
|
-
field :currency, -> {
|
|
8
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
end
|
|
@@ -7,7 +7,7 @@ module Schematic
|
|
|
7
7
|
|
|
8
8
|
field :missing, -> { Internal::Types::Array[Schematic::Types::OnboardingRequirement] }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
-
field :progress, -> {
|
|
10
|
+
field :progress, -> { Float }, optional: false, nullable: false
|
|
11
11
|
|
|
12
12
|
field :reached_at, -> { String }, optional: true, nullable: false
|
|
13
13
|
end
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class OrderedPlansInGroup < Internal::Types::Model
|
|
6
|
+
field :credits, -> { Internal::Types::Array[Schematic::Types::CreditsInPlan] }, optional: true, nullable: false
|
|
7
|
+
|
|
6
8
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::EntitlementsInPlan] }, optional: true, nullable: false
|
|
7
9
|
|
|
8
10
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class PendingMigrationResponseData < Internal::Types::Model
|
|
6
|
+
field :effective_at, -> { String }, optional: true, nullable: false
|
|
7
|
+
|
|
6
8
|
field :migration_id, -> { String }, optional: false, nullable: false
|
|
7
9
|
|
|
10
|
+
field :proration_behavior, -> { Schematic::Types::MigrationProrationBehavior }, optional: true, nullable: false
|
|
11
|
+
|
|
8
12
|
field :scheduled_for, -> { String }, optional: true, nullable: false
|
|
9
13
|
|
|
14
|
+
field :strategy, -> { Schematic::Types::PlanVersionMigrationStrategy }, optional: false, nullable: false
|
|
15
|
+
|
|
10
16
|
field :to_plan_id, -> { String }, optional: false, nullable: false
|
|
11
17
|
|
|
12
18
|
field :to_plan_name, -> { String }, optional: false, nullable: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module PlanChangeAmendmentStatus
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
APPLIED = "applied"
|
|
9
|
+
CANCELLED = "cancelled"
|
|
10
|
+
FAILED = "failed"
|
|
11
|
+
SCHEDULED = "scheduled"
|
|
12
|
+
SKIPPED = "skipped"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :add_ons_removed, -> { Internal::Types::Array[Schematic::Types::PlanSnapshotView] }, optional: false, nullable: false
|
|
13
13
|
|
|
14
|
+
field :amendment_status, -> { Schematic::Types::PlanChangeAmendmentStatus }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :api_key, -> { Schematic::Types::ApiKeyResponseData }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :audit_log, -> { Schematic::Types::AuditLogListResponseData }, optional: true, nullable: false
|
|
@@ -35,6 +37,8 @@ module Schematic
|
|
|
35
37
|
|
|
36
38
|
field :is_version_upgrade, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
37
39
|
|
|
40
|
+
field :migration_id, -> { String }, optional: true, nullable: false
|
|
41
|
+
|
|
38
42
|
field :previous_base_plan, -> { Schematic::Types::PlanSnapshotView }, optional: true, nullable: false
|
|
39
43
|
|
|
40
44
|
field :previous_base_plan_version, -> { Schematic::Types::PlanVersionSnapshotView }, optional: true, nullable: false
|
|
@@ -29,7 +29,7 @@ module Schematic
|
|
|
29
29
|
|
|
30
30
|
field :billing_credit_can_buy_bundles, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
31
31
|
|
|
32
|
-
field :billing_credit_overdraft_limit, -> {
|
|
32
|
+
field :billing_credit_overdraft_limit, -> { Float }, optional: true, nullable: false
|
|
33
33
|
|
|
34
34
|
field :billing_credit_postpaid_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
35
35
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class PlanCreditOrder < Internal::Types::Model
|
|
6
|
+
field :credit_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class PlanCreditVisibility < Internal::Types::Model
|
|
6
|
+
field :credit_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class PlanCurrencyPriceRequestBody < Internal::Types::Model
|
|
6
|
-
field :currency, -> {
|
|
6
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
7
7
|
|
|
8
8
|
field :monthly_price, -> { Integer }, optional: true, nullable: false
|
|
9
9
|
|