schematichq 1.5.3 → 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 +7 -1
- data/.fernignore +2 -0
- data/.rubocop.yml +4 -0
- data/README.md +1 -1
- data/WASM_VERSION +1 -1
- data/lib/schematic/accesstokens/client.rb +9 -1
- data/lib/schematic/accounts/client.rb +183 -21
- 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 +409 -41
- data/lib/schematic/credits/types/acquire_credit_lease_request_body.rb +1 -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 +2 -2
- data/lib/schematic/credits/types/extend_credit_lease_request_body.rb +1 -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/reserve_credits_request_body.rb +1 -1
- data/lib/schematic/credits/types/update_credit_spend_policy_request_body.rb +2 -2
- data/lib/schematic/dataexports/client.rb +36 -6
- data/lib/schematic/entitlements/client.rb +244 -28
- 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/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 +26 -3
- data/lib/schematic/planmigrations/client.rb +98 -11
- 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 +2 -0
- data/lib/schematic/rules_engine.rb +14 -2
- data/lib/schematic/scheduledcheckout/client.rb +35 -4
- data/lib/schematic/schematic_client.rb +22 -11
- 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/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/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 +1 -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 +2 -0
- data/lib/schematic/types/company_subscription_response_data.rb +1 -1
- data/lib/schematic/types/company_user_usage_response_data.rb +2 -2
- data/lib/schematic/types/company_user_usage_row_response_data.rb +2 -2
- data/lib/schematic/types/component_response_data.rb +1 -1
- 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 +10 -6
- 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_reservation_response_data.rb +2 -2
- data/lib/schematic/types/credit_spend_policy.rb +2 -2
- data/lib/schematic/types/credit_spend_policy_response_data.rb +4 -4
- 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 +6 -0
- data/lib/schematic/types/entitlement_currency_prices_response_data.rb +1 -1
- data/lib/schematic/types/estimated_plan_total.rb +1 -1
- 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/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_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/rulesengine_company.rb +1 -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 +2 -2
- data/lib/schematic/types/rulesengine_feature_entitlement.rb +8 -6
- 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/version.rb +1 -1
- data/lib/schematic/wasm/rulesengine.wasm +0 -0
- data/lib/schematic/webhooks/client.rb +88 -10
- data/lib/schematic.rb +38 -3
- data/reference.md +340 -44
- metadata +37 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class BillingPriceResponseData < Internal::Types::Model
|
|
6
|
-
field :currency, -> {
|
|
6
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
7
7
|
|
|
8
8
|
field :external_price_id, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
@@ -7,7 +7,7 @@ module Schematic
|
|
|
7
7
|
|
|
8
8
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
-
field :currency, -> {
|
|
10
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
11
11
|
|
|
12
12
|
field :id, -> { String }, optional: false, nullable: false
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ module Schematic
|
|
|
17
17
|
|
|
18
18
|
field :name, -> { String }, optional: false, nullable: false
|
|
19
19
|
|
|
20
|
-
field :price, -> {
|
|
20
|
+
field :price, -> { Float }, optional: false, nullable: false
|
|
21
21
|
|
|
22
22
|
field :price_decimal, -> { String }, optional: true, nullable: false
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ module Schematic
|
|
|
27
27
|
|
|
28
28
|
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
29
29
|
|
|
30
|
-
field :quantity, -> {
|
|
30
|
+
field :quantity, -> { Float }, optional: false, nullable: false
|
|
31
31
|
|
|
32
32
|
field :subscription_count, -> { Integer }, optional: false, nullable: false
|
|
33
33
|
|
|
@@ -9,7 +9,7 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
-
field :currency, -> {
|
|
12
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
13
13
|
|
|
14
14
|
field :environment_id, -> { String }, optional: false, nullable: false
|
|
15
15
|
|
|
@@ -39,7 +39,7 @@ module Schematic
|
|
|
39
39
|
|
|
40
40
|
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
41
41
|
|
|
42
|
-
field :quantity, -> {
|
|
42
|
+
field :quantity, -> { Float }, optional: false, nullable: false
|
|
43
43
|
|
|
44
44
|
field :subscription_id, -> { String }, optional: false, nullable: false
|
|
45
45
|
|
|
@@ -7,7 +7,7 @@ module Schematic
|
|
|
7
7
|
|
|
8
8
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
-
field :currency, -> {
|
|
10
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
11
11
|
|
|
12
12
|
field :id, -> { String }, optional: false, nullable: false
|
|
13
13
|
|
|
@@ -5,7 +5,7 @@ module Schematic
|
|
|
5
5
|
class BillingProductPricing < Internal::Types::Model
|
|
6
6
|
field :billing_threshold, -> { Integer }, optional: true, nullable: false
|
|
7
7
|
|
|
8
|
-
field :currency, -> {
|
|
8
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
9
9
|
|
|
10
10
|
field :interval, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ module Schematic
|
|
|
17
17
|
|
|
18
18
|
field :name, -> { String }, optional: false, nullable: false
|
|
19
19
|
|
|
20
|
-
field :price, -> {
|
|
20
|
+
field :price, -> { Float }, optional: false, nullable: false
|
|
21
21
|
|
|
22
22
|
field :price_decimal, -> { String }, optional: true, nullable: false
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ module Schematic
|
|
|
25
25
|
|
|
26
26
|
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
27
27
|
|
|
28
|
-
field :quantity, -> {
|
|
28
|
+
field :quantity, -> { Float }, optional: false, nullable: false
|
|
29
29
|
|
|
30
30
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
31
31
|
end
|
|
@@ -9,7 +9,7 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :coupon_name, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
-
field :currency, -> {
|
|
12
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
13
13
|
|
|
14
14
|
field :customer_facing_code, -> { String }, optional: true, nullable: false
|
|
15
15
|
|
|
@@ -23,7 +23,7 @@ module Schematic
|
|
|
23
23
|
|
|
24
24
|
field :is_active, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
25
25
|
|
|
26
|
-
field :percent_off, -> {
|
|
26
|
+
field :percent_off, -> { Float }, optional: true, nullable: false
|
|
27
27
|
|
|
28
28
|
field :promo_code_external_id, -> { String }, optional: true, nullable: false
|
|
29
29
|
|
|
@@ -13,7 +13,7 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
15
15
|
|
|
16
|
-
field :currency, -> {
|
|
16
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
17
17
|
|
|
18
18
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
15
15
|
|
|
16
|
-
field :currency, -> {
|
|
16
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
17
17
|
|
|
18
18
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
19
19
|
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class CatalogConfigOrderedPlan < Internal::Types::Model
|
|
6
|
+
field :credits, -> { Internal::Types::Array[Schematic::Types::CatalogConfigPlanCredit] }, optional: true, nullable: false
|
|
7
|
+
|
|
6
8
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::CatalogConfigOrderedEntitlement] }, optional: true, nullable: false
|
|
7
9
|
|
|
8
10
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class CatalogConfigOrderedPlanResponseData < Internal::Types::Model
|
|
6
|
+
field :credits, -> { Internal::Types::Array[Schematic::Types::CatalogConfigPlanCreditResponseData] }, optional: false, nullable: false
|
|
7
|
+
|
|
6
8
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::CatalogConfigOrderedEntitlementResponseData] }, optional: false, nullable: false
|
|
7
9
|
|
|
8
10
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CatalogConfigPlanCredit < Internal::Types::Model
|
|
6
|
+
field :credit_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :visible, -> { Internal::Types::Boolean }, optional: true, 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 CatalogConfigPlanCreditResponseData < 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
|
|
@@ -15,7 +15,7 @@ module Schematic
|
|
|
15
15
|
|
|
16
16
|
field :credit_bundles, -> { Internal::Types::Array[Schematic::Types::UpdateCreditBundleRequestBody] }, optional: false, nullable: false
|
|
17
17
|
|
|
18
|
-
field :currency, -> {
|
|
18
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
19
19
|
|
|
20
20
|
field :custom_field_values, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldValue] }, optional: false, nullable: false
|
|
21
21
|
|
|
@@ -13,7 +13,7 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
field :credit_bundles, -> { Internal::Types::Array[Schematic::Types::UpdateCreditBundleRequestBody] }, optional: false, nullable: false
|
|
15
15
|
|
|
16
|
-
field :currency, -> {
|
|
16
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
17
17
|
|
|
18
18
|
field :custom_field_values, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldValue] }, optional: false, nullable: false
|
|
19
19
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module CheckoutProblemCode
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
ADD_ON_CONFLICTS_WITH_PLAN = "add_on_conflicts_with_plan"
|
|
9
|
+
ADD_ON_INTERVAL_MISMATCH = "add_on_interval_mismatch"
|
|
10
|
+
ADD_ON_REQUIRES_BILLED_PLAN = "add_on_requires_billed_plan"
|
|
11
|
+
ADD_ON_UNAVAILABLE = "add_on_unavailable"
|
|
12
|
+
BILLING_CYCLE_ANCHOR_CONFLICTS_WITH_TRIAL = "billing_cycle_anchor_conflicts_with_trial"
|
|
13
|
+
BILLING_CYCLE_ANCHOR_MUST_BE_FUTURE = "billing_cycle_anchor_must_be_future"
|
|
14
|
+
BILLING_CYCLE_ANCHOR_NEEDS_NEW_SUBSCRIPTION = "billing_cycle_anchor_needs_new_subscription"
|
|
15
|
+
BILLING_CYCLE_ANCHOR_WITHOUT_PLAN = "billing_cycle_anchor_without_plan"
|
|
16
|
+
BILLING_START_DATE_MUST_BE_PAST = "billing_start_date_must_be_past"
|
|
17
|
+
BILLING_START_DATE_NEEDS_NEW_SUBSCRIPTION = "billing_start_date_needs_new_subscription"
|
|
18
|
+
BILLING_START_DATE_NEEDS_RENEWAL_DATE = "billing_start_date_needs_renewal_date"
|
|
19
|
+
BILLING_START_DATE_NOT_BEFORE_RENEWAL_DATE = "billing_start_date_not_before_renewal_date"
|
|
20
|
+
BILLING_START_DATE_TOO_FAR_IN_PAST = "billing_start_date_too_far_in_past"
|
|
21
|
+
CREDIT_BUNDLE_INCOMPATIBLE = "credit_bundle_incompatible"
|
|
22
|
+
CREDIT_BUNDLE_UNAVAILABLE = "credit_bundle_unavailable"
|
|
23
|
+
CREDIT_BUNDLES_ACTIVATE_ON_PAYMENT = "credit_bundles_activate_on_payment"
|
|
24
|
+
CURRENCY_MISMATCH = "currency_mismatch"
|
|
25
|
+
CUSTOM_FIELD_REQUIRED = "custom_field_required"
|
|
26
|
+
DISCOUNT_INELIGIBLE = "discount_ineligible"
|
|
27
|
+
DOWNGRADE_NOT_PERMITTED = "downgrade_not_permitted"
|
|
28
|
+
FREE_FIRST_PERIOD_ACTIVATES_ON_PAYMENT = "free_first_period_activates_on_payment"
|
|
29
|
+
INVOICE_EMAIL_REQUIRED = "invoice_email_required"
|
|
30
|
+
INVOICED_SUBSCRIPTION_CONFLICTS_WITH_TRIAL = "invoiced_subscription_conflicts_with_trial"
|
|
31
|
+
INVOICED_SUBSCRIPTION_NEEDS_NEW_SUBSCRIPTION = "invoiced_subscription_needs_new_subscription"
|
|
32
|
+
INVOICED_SUBSCRIPTION_REQUIRES_PLAN = "invoiced_subscription_requires_plan"
|
|
33
|
+
OPT_IN_REQUIRED = "opt_in_required"
|
|
34
|
+
PAY_IN_ADVANCE_PRICE_INVALID = "pay_in_advance_price_invalid"
|
|
35
|
+
PAY_IN_ADVANCE_REQUIRED = "pay_in_advance_required"
|
|
36
|
+
PAYMENT_METHOD_REQUIRED = "payment_method_required"
|
|
37
|
+
PLAN_NOT_TRIALABLE = "plan_not_trialable"
|
|
38
|
+
PLAN_UNAVAILABLE = "plan_unavailable"
|
|
39
|
+
PRICE_UNAVAILABLE = "price_unavailable"
|
|
40
|
+
PRORATE_FIRST_PERIOD_WITHOUT_ANCHOR = "prorate_first_period_without_anchor"
|
|
41
|
+
PROVIDER_REJECTED = "provider_rejected"
|
|
42
|
+
SCHEDULED_CHANGE_BLOCKS_PURCHASE = "scheduled_change_blocks_purchase"
|
|
43
|
+
SCHEDULED_CHANGE_PENDING = "scheduled_change_pending"
|
|
44
|
+
SELECTION_INVALID = "selection_invalid"
|
|
45
|
+
SUBSCRIPTION_CURRENCY_CHANGE = "subscription_currency_change"
|
|
46
|
+
TRIAL_END_MUST_BE_FUTURE = "trial_end_must_be_future"
|
|
47
|
+
TRIAL_END_TOO_FAR = "trial_end_too_far"
|
|
48
|
+
TRIAL_EXCLUDES_ADD_ONS = "trial_excludes_add_ons"
|
|
49
|
+
TRIAL_EXCLUDES_USAGE_BASED = "trial_excludes_usage_based"
|
|
50
|
+
USAGE_PRICE_MISSING_FOR_INTERVAL = "usage_price_missing_for_interval"
|
|
51
|
+
USAGE_OVER_LIMIT = "usage_over_limit"
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CheckoutProblemResponseData < Internal::Types::Model
|
|
6
|
+
field :blocking, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :bundle_id, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :code, -> { Schematic::Types::CheckoutProblemCode }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :detail, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :feature_id, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :field_id, -> { String }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
21
|
+
|
|
22
|
+
field :payment_method_id, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :plan_id, -> { String }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :price_id, -> { String }, optional: true, nullable: false
|
|
27
|
+
|
|
28
|
+
field :source, -> { Schematic::Types::CheckoutProblemSource }, optional: false, nullable: false
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -17,7 +17,7 @@ module Schematic
|
|
|
17
17
|
|
|
18
18
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
19
19
|
|
|
20
|
-
field :currency, -> {
|
|
20
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
21
21
|
|
|
22
22
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
23
23
|
|
|
@@ -9,7 +9,7 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :company, -> { Schematic::Types::CompanyResponseData }, optional: true, nullable: false
|
|
11
11
|
|
|
12
|
-
field :currency, -> {
|
|
12
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
13
13
|
|
|
14
14
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
15
15
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class CompanyCreditBalance < Internal::Types::Model
|
|
6
|
-
field :remaining, -> {
|
|
6
|
+
field :remaining, -> { Float }, optional: false, nullable: false
|
|
7
7
|
|
|
8
|
-
field :reserved, -> {
|
|
8
|
+
field :reserved, -> { Float }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
-
field :settled, -> {
|
|
10
|
+
field :settled, -> { Float }, optional: false, nullable: false
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
end
|
|
@@ -5,15 +5,15 @@ module Schematic
|
|
|
5
5
|
class CompanyCreditBalanceResponseData < Internal::Types::Model
|
|
6
6
|
field :credit_id, -> { String }, optional: false, nullable: false
|
|
7
7
|
|
|
8
|
-
field :remaining, -> {
|
|
8
|
+
field :remaining, -> { Float }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
-
field :reserved, -> {
|
|
10
|
+
field :reserved, -> { Float }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
-
field :settled, -> {
|
|
12
|
+
field :settled, -> { Float }, optional: false, nullable: false
|
|
13
13
|
|
|
14
14
|
field :source, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
15
15
|
|
|
16
|
-
field :total, -> {
|
|
16
|
+
field :total, -> { Float }, optional: true, nullable: false
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
@@ -5,7 +5,7 @@ module Schematic
|
|
|
5
5
|
class CompanyDetailResponseData < Internal::Types::Model
|
|
6
6
|
field :add_ons, -> { Internal::Types::Array[Schematic::Types::CompanyPlanWithBillingSubView] }, optional: false, nullable: false
|
|
7
7
|
|
|
8
|
-
field :billing_credit_balances, -> { Internal::Types::Hash[String,
|
|
8
|
+
field :billing_credit_balances, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
9
9
|
|
|
10
10
|
field :billing_email, -> { String }, optional: true, nullable: false
|
|
11
11
|
|
|
@@ -7,7 +7,7 @@ module Schematic
|
|
|
7
7
|
|
|
8
8
|
field :company_id, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
-
field :consumption_rate, -> {
|
|
10
|
+
field :consumption_rate, -> { Float }, optional: true, nullable: false
|
|
11
11
|
|
|
12
12
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
13
13
|
|
|
@@ -27,6 +27,8 @@ module Schematic
|
|
|
27
27
|
|
|
28
28
|
field :notes, -> { Internal::Types::Array[Schematic::Types::CompanyOverrideNoteResponseData] }, optional: false, nullable: false
|
|
29
29
|
|
|
30
|
+
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
31
|
+
|
|
30
32
|
field :rule_id, -> { String }, optional: true, nullable: false
|
|
31
33
|
|
|
32
34
|
field :rule_id_usage_exceeded, -> { String }, 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
|
|
|
@@ -37,6 +37,8 @@ module Schematic
|
|
|
37
37
|
|
|
38
38
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
39
39
|
|
|
40
|
+
field :credit_visibility, -> { Internal::Types::Array[Schematic::Types::PlanCreditVisibility] }, optional: true, nullable: false
|
|
41
|
+
|
|
40
42
|
field :credits, -> { Internal::Types::Array[Schematic::Types::BillingCreditResponseData] }, optional: false, nullable: false
|
|
41
43
|
|
|
42
44
|
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
|
|
@@ -7,7 +7,7 @@ module Schematic
|
|
|
7
7
|
|
|
8
8
|
field :cancel_at_period_end, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
-
field :currency, -> {
|
|
10
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
11
11
|
|
|
12
12
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
13
13
|
|
|
@@ -9,9 +9,9 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :start_time, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
-
field :top_user_share, -> {
|
|
12
|
+
field :top_user_share, -> { Float }, optional: false, nullable: false
|
|
13
13
|
|
|
14
|
-
field :total, -> {
|
|
14
|
+
field :total, -> { Float }, optional: false, nullable: false
|
|
15
15
|
|
|
16
16
|
field :unattributed, -> { Schematic::Types::CompanyUserUsageRowResponseData }, optional: true, nullable: false
|
|
17
17
|
end
|
|
@@ -5,13 +5,13 @@ module Schematic
|
|
|
5
5
|
class CompanyUserUsageRowResponseData < Internal::Types::Model
|
|
6
6
|
field :last_seen, -> { String }, optional: true, nullable: false
|
|
7
7
|
|
|
8
|
-
field :share, -> {
|
|
8
|
+
field :share, -> { Float }, optional: false, nullable: false
|
|
9
9
|
|
|
10
10
|
field :user, -> { Schematic::Types::UserResponseData }, optional: true, nullable: false
|
|
11
11
|
|
|
12
12
|
field :user_id, -> { String }, optional: true, nullable: false
|
|
13
13
|
|
|
14
|
-
field :value, -> {
|
|
14
|
+
field :value, -> { Float }, optional: false, nullable: false
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class ComponentResponseData < Internal::Types::Model
|
|
6
|
-
field :ast, -> { Internal::Types::Hash[String,
|
|
6
|
+
field :ast, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
7
7
|
|
|
8
8
|
field :catalog_id, -> { String }, optional: true, nullable: false
|
|
9
9
|
|
|
@@ -9,7 +9,7 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
-
field :consumption_rate, -> {
|
|
12
|
+
field :consumption_rate, -> { Float }, optional: true, nullable: false
|
|
13
13
|
|
|
14
14
|
field :credit_id, -> { String }, optional: true, nullable: false
|
|
15
15
|
|
|
@@ -27,6 +27,8 @@ module Schematic
|
|
|
27
27
|
|
|
28
28
|
field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
|
|
29
29
|
|
|
30
|
+
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
31
|
+
|
|
30
32
|
field :resource_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
31
33
|
|
|
32
34
|
field :trait_definition, -> { Schematic::Types::TraitDefinition }, optional: true, nullable: false
|
|
@@ -11,7 +11,7 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
|
|
13
13
|
|
|
14
|
-
field :consumption_rate, -> {
|
|
14
|
+
field :consumption_rate, -> { Float }, optional: true, nullable: false
|
|
15
15
|
|
|
16
16
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
17
17
|
|
|
@@ -33,6 +33,8 @@ module Schematic
|
|
|
33
33
|
|
|
34
34
|
field :operator, -> { Schematic::Types::ComparableOperator }, optional: false, nullable: false
|
|
35
35
|
|
|
36
|
+
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
37
|
+
|
|
36
38
|
field :resource_unspecified_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
37
39
|
|
|
38
40
|
field :rule_id, -> { String }, optional: false, nullable: false
|
|
@@ -17,7 +17,7 @@ module Schematic
|
|
|
17
17
|
|
|
18
18
|
field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
|
|
19
19
|
|
|
20
|
-
field :consumption_rate, -> {
|
|
20
|
+
field :consumption_rate, -> { Float }, optional: true, nullable: false
|
|
21
21
|
|
|
22
22
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
23
23
|
|
|
@@ -43,6 +43,8 @@ module Schematic
|
|
|
43
43
|
|
|
44
44
|
field :plans, -> { Internal::Types::Array[Schematic::Types::GenericPreviewObject] }, optional: false, nullable: false
|
|
45
45
|
|
|
46
|
+
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
47
|
+
|
|
46
48
|
field :resource_unspecified_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
47
49
|
|
|
48
50
|
field :rule_id, -> { String }, optional: false, nullable: false
|
|
@@ -5,7 +5,7 @@ module Schematic
|
|
|
5
5
|
class CouponRequestBody < Internal::Types::Model
|
|
6
6
|
field :amount_off, -> { Integer }, optional: false, nullable: false
|
|
7
7
|
|
|
8
|
-
field :currency, -> {
|
|
8
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
9
9
|
|
|
10
10
|
field :duration, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ module Schematic
|
|
|
15
15
|
|
|
16
16
|
field :name, -> { String }, optional: false, nullable: false
|
|
17
17
|
|
|
18
|
-
field :percent_off, -> {
|
|
18
|
+
field :percent_off, -> { Float }, optional: false, nullable: false
|
|
19
19
|
|
|
20
20
|
field :times_redeemed, -> { Integer }, optional: false, nullable: false
|
|
21
21
|
end
|
|
@@ -47,7 +47,7 @@ module Schematic
|
|
|
47
47
|
|
|
48
48
|
field :license_id, -> { String }, optional: true, nullable: false
|
|
49
49
|
|
|
50
|
-
field :overdraft_limit, -> {
|
|
50
|
+
field :overdraft_limit, -> { Float }, optional: true, nullable: false
|
|
51
51
|
|
|
52
52
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
53
53
|
|
|
@@ -7,9 +7,9 @@ module Schematic
|
|
|
7
7
|
|
|
8
8
|
field :billing_threshold, -> { Integer }, optional: true, nullable: false
|
|
9
9
|
|
|
10
|
-
field :credit_consumption_rate, -> {
|
|
10
|
+
field :credit_consumption_rate, -> { Float }, optional: true, nullable: false
|
|
11
11
|
|
|
12
|
-
field :currency, -> {
|
|
12
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
13
13
|
|
|
14
14
|
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::CurrencyPriceRequestBody] }, optional: true, nullable: false
|
|
15
15
|
|
|
@@ -41,6 +41,8 @@ module Schematic
|
|
|
41
41
|
|
|
42
42
|
field :price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
|
|
43
43
|
|
|
44
|
+
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
45
|
+
|
|
44
46
|
field :quarterly_metered_price_id, -> { String }, optional: true, nullable: false
|
|
45
47
|
|
|
46
48
|
field :quarterly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class CreateEntitlementReqCommon < Internal::Types::Model
|
|
6
|
-
field :credit_consumption_rate, -> {
|
|
6
|
+
field :credit_consumption_rate, -> { Float }, optional: true, nullable: false
|
|
7
7
|
|
|
8
8
|
field :feature_id, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
|
|
13
13
|
|
|
14
|
+
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :value_bool, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :value_credit_id, -> { String }, optional: true, nullable: false
|
|
@@ -7,7 +7,7 @@ module Schematic
|
|
|
7
7
|
|
|
8
8
|
field :condition_type, -> { Schematic::Types::ConditionType }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
-
field :credit_cost, -> {
|
|
10
|
+
field :credit_cost, -> { Float }, optional: true, nullable: false
|
|
11
11
|
|
|
12
12
|
field :credit_id, -> { String }, optional: true, nullable: false
|
|
13
13
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CreditBalanceEventResponseData < Internal::Types::Model
|
|
6
|
+
field :amount, -> { Float }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :event_type, -> { Schematic::Types::CreditEventType }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :grant_id, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :grant_reason, -> { Schematic::Types::BillingCreditGrantReason }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :plan_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :timestamp, -> { String }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :zeroed_out_reason, -> { Schematic::Types::BillingCreditGrantZeroedOutReason }, optional: true, nullable: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|