schematichq 1.4.11 → 1.4.13
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 +2 -2
- data/.fern/replay.lock +15 -3
- data/README.md +1 -1
- data/lib/schematic/accounts/types/create_api_key_request_body.rb +1 -0
- data/lib/schematic/accounts/types/update_api_key_request_body.rb +1 -0
- data/lib/schematic/billing/client.rb +6 -2
- data/lib/schematic/billing/types/list_billing_prices_params.rb +1 -0
- data/lib/schematic/billing/types/list_billing_prices_request.rb +1 -0
- data/lib/schematic/billing/types/list_billing_product_prices_params.rb +1 -0
- data/lib/schematic/billing/types/list_billing_product_prices_request.rb +1 -0
- data/lib/schematic/catalogs/types/create_catalog_request_body.rb +0 -1
- data/lib/schematic/checkout/types/update_company_billing_details_request_body.rb +1 -0
- data/lib/schematic/client.rb +1 -1
- data/lib/schematic/companies/client.rb +76 -0
- data/lib/schematic/companies/types/count_entity_keys_params.rb +15 -0
- data/lib/schematic/companies/types/count_entity_keys_request.rb +14 -0
- data/lib/schematic/companies/types/count_entity_keys_response.rb +12 -0
- data/lib/schematic/companies/types/delete_entity_key_definition_response.rb +12 -0
- data/lib/schematic/entitlements/client.rb +88 -0
- data/lib/schematic/entitlements/types/get_user_usage_by_company_params.rb +15 -0
- data/lib/schematic/entitlements/types/get_user_usage_by_company_request.rb +14 -0
- data/lib/schematic/entitlements/types/get_user_usage_by_company_response.rb +12 -0
- data/lib/schematic/entitlements/types/get_user_usage_detail_params.rb +15 -0
- data/lib/schematic/entitlements/types/get_user_usage_detail_request.rb +14 -0
- data/lib/schematic/entitlements/types/get_user_usage_detail_response.rb +12 -0
- data/lib/schematic/plans/types/publish_plan_version_request_body.rb +5 -0
- data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +1 -0
- data/lib/schematic/types/api_key_create_response_data.rb +1 -0
- data/lib/schematic/types/api_key_response_data.rb +1 -0
- data/lib/schematic/types/billing_credit_view.rb +1 -1
- data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +2 -0
- data/lib/schematic/types/billing_product_record_response_data.rb +17 -0
- data/lib/schematic/types/catalog_config_ordered_entitlement.rb +1 -1
- data/lib/schematic/types/catalog_config_ordered_entitlement_response_data.rb +1 -1
- data/lib/schematic/types/catalog_response_data.rb +0 -1
- data/lib/schematic/types/company_billing_details_response_data.rb +1 -0
- data/lib/schematic/types/company_billing_details_view.rb +1 -0
- data/lib/schematic/types/company_feature_usage_export_metadata.rb +4 -1
- data/lib/schematic/types/company_feature_usage_export_metadata_sort_order_direction.rb +12 -0
- data/lib/schematic/types/company_feature_usage_export_metadata_visible_columns_item.rb +14 -0
- data/lib/schematic/types/company_plan_credit_grant_view.rb +2 -0
- data/lib/schematic/types/company_plan_detail_response_data.rb +1 -1
- data/lib/schematic/types/company_tax_id_view.rb +13 -0
- data/lib/schematic/types/component_checkout_settings.rb +1 -0
- data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +2 -0
- data/lib/schematic/types/custom_plan_billing_response_data.rb +1 -0
- data/lib/schematic/types/data_export_metadata.rb +1 -0
- data/lib/schematic/types/data_export_type.rb +1 -0
- data/lib/schematic/types/event_export_metadata.rb +16 -0
- data/lib/schematic/types/event_export_metadata_event_types_item.rb +14 -0
- data/lib/schematic/types/feature_view.rb +1 -1
- data/lib/schematic/types/plan_credit_grant_scaling.rb +12 -0
- data/lib/schematic/types/plan_credit_grant_view.rb +2 -0
- data/lib/schematic/types/plan_detail_response_data.rb +1 -1
- data/lib/schematic/types/plan_group_plan_detail_response_data.rb +1 -1
- data/lib/schematic/types/plan_view_public_response_data.rb +1 -1
- data/lib/schematic/types/tax_id_input.rb +10 -0
- data/lib/schematic/types/tax_id_type.rb +48 -0
- data/lib/schematic/types/test_webhook_response_data.rb +1 -0
- data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +2 -0
- data/lib/schematic/types/user_credit_usage_response_data.rb +14 -0
- data/lib/schematic/types/user_daily_credit_point_response_data.rb +10 -0
- data/lib/schematic/types/user_daily_usage_point_response_data.rb +11 -0
- data/lib/schematic/types/user_feature_usage_response_data.rb +14 -0
- data/lib/schematic/types/user_usage_by_company_response_data.rb +12 -0
- data/lib/schematic/types/user_usage_detail_response_data.rb +15 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic.rb +26 -1
- data/reference.md +370 -12
- metadata +27 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class CatalogConfigOrderedEntitlementResponseData < Internal::Types::Model
|
|
6
|
-
field :
|
|
6
|
+
field :feature_id, -> { String }, optional: false, nullable: false
|
|
7
7
|
field :visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
8
|
end
|
|
9
9
|
end
|
|
@@ -10,7 +10,6 @@ module Schematic
|
|
|
10
10
|
field :custom_plan_price_text, -> { String }, optional: true, nullable: false
|
|
11
11
|
field :custom_plans_visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
12
12
|
field :description, -> { String }, optional: true, nullable: false
|
|
13
|
-
field :environment_id, -> { String }, optional: false, nullable: false
|
|
14
13
|
field :id, -> { String }, optional: false, nullable: false
|
|
15
14
|
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
16
15
|
field :name, -> { String }, optional: false, nullable: false
|
|
@@ -8,6 +8,7 @@ module Schematic
|
|
|
8
8
|
field :custom_fields, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldWithValue] }, optional: false, nullable: false
|
|
9
9
|
field :email, -> { String }, optional: true, nullable: false
|
|
10
10
|
field :phone, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :tax_ids, -> { Internal::Types::Array[Schematic::Types::CompanyTaxIdView] }, optional: false, nullable: false
|
|
11
12
|
end
|
|
12
13
|
end
|
|
13
14
|
end
|
|
@@ -8,6 +8,7 @@ module Schematic
|
|
|
8
8
|
field :custom_fields, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldWithValue] }, optional: false, nullable: false
|
|
9
9
|
field :email, -> { String }, optional: true, nullable: false
|
|
10
10
|
field :phone, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :tax_ids, -> { Internal::Types::Array[Schematic::Types::CompanyTaxIdView] }, optional: false, nullable: false
|
|
11
12
|
end
|
|
12
13
|
end
|
|
13
14
|
end
|
|
@@ -5,7 +5,7 @@ module Schematic
|
|
|
5
5
|
class CompanyFeatureUsageExportMetadata < Internal::Types::Model
|
|
6
6
|
field :company_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
7
7
|
field :credit_type_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
8
|
-
field :feature_ids, -> { Internal::Types::Array[String] }, optional:
|
|
8
|
+
field :feature_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
9
9
|
field :has_scheduled_downgrade, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
10
|
field :monetized_subscriptions, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
11
|
field :notification_email_recipient_email_addresses, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
@@ -13,8 +13,11 @@ module Schematic
|
|
|
13
13
|
field :plan_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
14
14
|
field :plan_version_id, -> { String }, optional: true, nullable: false
|
|
15
15
|
field :q, -> { String }, optional: true, nullable: false
|
|
16
|
+
field :sort_order_column, -> { String }, optional: true, nullable: false
|
|
17
|
+
field :sort_order_direction, -> { Schematic::Types::CompanyFeatureUsageExportMetadataSortOrderDirection }, optional: true, nullable: false
|
|
16
18
|
field :subscription_statuses, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
17
19
|
field :subscription_types, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
20
|
+
field :visible_columns, -> { Internal::Types::Array[Schematic::Types::CompanyFeatureUsageExportMetadataVisibleColumnsItem] }, optional: true, nullable: false
|
|
18
21
|
field :with_entitlement_for, -> { String }, optional: true, nullable: false
|
|
19
22
|
field :with_subscription, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
20
23
|
field :without_feature_override_for, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module CompanyFeatureUsageExportMetadataVisibleColumnsItem
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
PLAN = "plan"
|
|
9
|
+
SUBSCRIPTION = "subscription"
|
|
10
|
+
USERS = "users"
|
|
11
|
+
LAST_SEEN_AT = "last_seen_at"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -28,6 +28,7 @@ module Schematic
|
|
|
28
28
|
field :expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
29
29
|
field :expiry_unit_count, -> { Integer }, optional: true, nullable: false
|
|
30
30
|
field :id, -> { String }, optional: false, nullable: false
|
|
31
|
+
field :license_id, -> { String }, optional: true, nullable: false
|
|
31
32
|
field :plan, -> { Schematic::Types::GenericPreviewObject }, optional: true, nullable: false
|
|
32
33
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
33
34
|
field :plan_version_id, -> { String }, optional: true, nullable: false
|
|
@@ -36,6 +37,7 @@ module Schematic
|
|
|
36
37
|
field :reset_start, -> { Schematic::Types::BillingPlanCreditGrantResetStart }, optional: true, nullable: false
|
|
37
38
|
field :reset_type, -> { Schematic::Types::BillingPlanCreditGrantResetType }, optional: false, nullable: false
|
|
38
39
|
field :rollover_percentage, -> { Integer }, optional: false, nullable: false
|
|
40
|
+
field :scaling, -> { Schematic::Types::PlanCreditGrantScaling }, optional: false, nullable: false
|
|
39
41
|
field :singular_name, -> { String }, optional: true, nullable: false
|
|
40
42
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
41
43
|
end
|
|
@@ -35,7 +35,7 @@ module Schematic
|
|
|
35
35
|
field :invalid_reason, -> { Schematic::Types::CompanyPlanInvalidReason }, optional: true, nullable: false
|
|
36
36
|
field :is_custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
37
37
|
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
38
|
-
field :is_free, -> { Internal::Types::Boolean }, optional:
|
|
38
|
+
field :is_free, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
39
39
|
field :is_trialable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
40
40
|
field :monthly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
|
|
41
41
|
field :name, -> { String }, optional: false, nullable: false
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CompanyTaxIdView < Internal::Types::Model
|
|
6
|
+
field :country, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :type, -> { String }, optional: false, nullable: false
|
|
9
|
+
field :value, -> { String }, optional: false, nullable: false
|
|
10
|
+
field :verification_status, -> { String }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -6,6 +6,7 @@ module Schematic
|
|
|
6
6
|
field :collect_address, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
7
7
|
field :collect_email, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
8
|
field :collect_phone, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
|
+
field :proration_behavior, -> { Schematic::Types::ProrationBehavior }, optional: false, nullable: false
|
|
9
10
|
field :tax_collection_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
11
|
end
|
|
11
12
|
end
|
|
@@ -20,12 +20,14 @@ module Schematic
|
|
|
20
20
|
field :expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
21
21
|
field :expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
22
22
|
field :expiry_unit_count, -> { Integer }, optional: true, nullable: false
|
|
23
|
+
field :license_id, -> { String }, optional: true, nullable: false
|
|
23
24
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
24
25
|
field :plan_version_id, -> { String }, optional: true, nullable: false
|
|
25
26
|
field :reset_cadence, -> { Schematic::Types::BillingPlanCreditGrantResetCadence }, optional: false, nullable: false
|
|
26
27
|
field :reset_start, -> { Schematic::Types::BillingPlanCreditGrantResetStart }, optional: false, nullable: false
|
|
27
28
|
field :reset_type, -> { Schematic::Types::BillingPlanCreditGrantResetType }, optional: true, nullable: false
|
|
28
29
|
field :rollover_percentage, -> { Integer }, optional: true, nullable: false
|
|
30
|
+
field :scaling, -> { Schematic::Types::PlanCreditGrantScaling }, optional: true, nullable: false
|
|
29
31
|
end
|
|
30
32
|
end
|
|
31
33
|
end
|
|
@@ -12,6 +12,7 @@ module Schematic
|
|
|
12
12
|
field :paid_at, -> { String }, optional: true, nullable: false
|
|
13
13
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
14
14
|
field :published_at, -> { String }, optional: true, nullable: false
|
|
15
|
+
field :send_invoice, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
15
16
|
field :status, -> { Schematic::Types::CustomPlanBillingStatus }, optional: false, nullable: false
|
|
16
17
|
field :stripe_invoice_url, -> { String }, optional: true, nullable: false
|
|
17
18
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
@@ -9,6 +9,7 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
member -> { Schematic::Types::AuditLogExportMetadata }, key: "AUDIT_LOG"
|
|
11
11
|
member -> { Schematic::Types::CompanyFeatureUsageExportMetadata }, key: "COMPANY_FEATURE_USAGE"
|
|
12
|
+
member -> { Schematic::Types::EventExportMetadata }, key: "EVENT"
|
|
12
13
|
end
|
|
13
14
|
end
|
|
14
15
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class EventExportMetadata < Internal::Types::Model
|
|
6
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
7
|
+
field :end_time, -> { String }, optional: true, nullable: false
|
|
8
|
+
field :event_subtype, -> { String }, optional: true, nullable: false
|
|
9
|
+
field :event_types, -> { Internal::Types::Array[Schematic::Types::EventExportMetadataEventTypesItem] }, optional: true, nullable: false
|
|
10
|
+
field :flag_id, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :notification_email_recipient_email_addresses, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
12
|
+
field :start_time, -> { String }, optional: true, nullable: false
|
|
13
|
+
field :user_id, -> { String }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module EventExportMetadataEventTypesItem
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
FLAG_CHECK = "flag_check"
|
|
9
|
+
IDENTIFY = "identify"
|
|
10
|
+
INFERENCE = "inference"
|
|
11
|
+
TRACK = "track"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -5,7 +5,7 @@ module Schematic
|
|
|
5
5
|
class FeatureView < Internal::Types::Model
|
|
6
6
|
field :account_id, -> { String }, optional: false, nullable: false
|
|
7
7
|
field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
|
|
8
|
-
field :billing_product, -> { Schematic::Types::
|
|
8
|
+
field :billing_product, -> { Schematic::Types::BillingProductRecordResponseData }, optional: true, nullable: false
|
|
9
9
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
10
10
|
field :description, -> { String }, optional: false, nullable: false
|
|
11
11
|
field :event_subtype, -> { String }, optional: true, nullable: false
|
|
@@ -25,6 +25,7 @@ module Schematic
|
|
|
25
25
|
field :expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
26
26
|
field :expiry_unit_count, -> { Integer }, optional: true, nullable: false
|
|
27
27
|
field :id, -> { String }, optional: false, nullable: false
|
|
28
|
+
field :license_id, -> { String }, optional: true, nullable: false
|
|
28
29
|
field :plan, -> { Schematic::Types::GenericPreviewObject }, optional: true, nullable: false
|
|
29
30
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
30
31
|
field :plan_version_id, -> { String }, optional: true, nullable: false
|
|
@@ -33,6 +34,7 @@ module Schematic
|
|
|
33
34
|
field :reset_start, -> { Schematic::Types::BillingPlanCreditGrantResetStart }, optional: true, nullable: false
|
|
34
35
|
field :reset_type, -> { Schematic::Types::BillingPlanCreditGrantResetType }, optional: false, nullable: false
|
|
35
36
|
field :rollover_percentage, -> { Integer }, optional: false, nullable: false
|
|
37
|
+
field :scaling, -> { Schematic::Types::PlanCreditGrantScaling }, optional: false, nullable: false
|
|
36
38
|
field :singular_name, -> { String }, optional: true, nullable: false
|
|
37
39
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
38
40
|
end
|
|
@@ -27,7 +27,7 @@ module Schematic
|
|
|
27
27
|
field :id, -> { String }, optional: false, nullable: false
|
|
28
28
|
field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::BillingPlanCreditGrantResponseData] }, optional: true, nullable: false
|
|
29
29
|
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
30
|
-
field :is_free, -> { Internal::Types::Boolean }, optional:
|
|
30
|
+
field :is_free, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
31
31
|
field :is_trialable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
32
32
|
field :monthly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
|
|
33
33
|
field :name, -> { String }, optional: false, nullable: false
|
|
@@ -31,7 +31,7 @@ module Schematic
|
|
|
31
31
|
field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::BillingPlanCreditGrantResponseData] }, optional: true, nullable: false
|
|
32
32
|
field :is_custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
33
33
|
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
34
|
-
field :is_free, -> { Internal::Types::Boolean }, optional:
|
|
34
|
+
field :is_free, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
35
35
|
field :is_trialable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
36
36
|
field :monthly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
|
|
37
37
|
field :name, -> { String }, optional: false, nullable: false
|
|
@@ -32,7 +32,7 @@ module Schematic
|
|
|
32
32
|
field :included_credit_grants, -> { Internal::Types::Array[Schematic::Types::PlanCreditGrantView] }, optional: false, nullable: false
|
|
33
33
|
field :is_custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
34
34
|
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
35
|
-
field :is_free, -> { Internal::Types::Boolean }, optional:
|
|
35
|
+
field :is_free, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
36
36
|
field :is_trialable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
37
37
|
field :monthly_price, -> { Schematic::Types::BillingPriceResponseData }, optional: true, nullable: false
|
|
38
38
|
field :name, -> { String }, optional: false, nullable: false
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class TaxIdInput < Internal::Types::Model
|
|
6
|
+
field :type, -> { Schematic::Types::TaxIdType }, optional: false, nullable: false
|
|
7
|
+
field :value, -> { String }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module TaxIdType
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
AE_TRN = "ae_trn"
|
|
9
|
+
AU_ABN = "au_abn"
|
|
10
|
+
AU_ARN = "au_arn"
|
|
11
|
+
BR_CNPJ = "br_cnpj"
|
|
12
|
+
BR_CPF = "br_cpf"
|
|
13
|
+
CA_BN = "ca_bn"
|
|
14
|
+
CA_GST_HST = "ca_gst_hst"
|
|
15
|
+
CA_PST_BC = "ca_pst_bc"
|
|
16
|
+
CA_PST_MB = "ca_pst_mb"
|
|
17
|
+
CA_PST_SK = "ca_pst_sk"
|
|
18
|
+
CA_QST = "ca_qst"
|
|
19
|
+
CH_UID = "ch_uid"
|
|
20
|
+
CH_VAT = "ch_vat"
|
|
21
|
+
EU_VAT = "eu_vat"
|
|
22
|
+
GB_VAT = "gb_vat"
|
|
23
|
+
HK_BR = "hk_br"
|
|
24
|
+
ID_NPWP = "id_npwp"
|
|
25
|
+
IL_VAT = "il_vat"
|
|
26
|
+
IN_GST = "in_gst"
|
|
27
|
+
JP_CN = "jp_cn"
|
|
28
|
+
JP_RN = "jp_rn"
|
|
29
|
+
JP_TRN = "jp_trn"
|
|
30
|
+
KR_BRN = "kr_brn"
|
|
31
|
+
MX_RFC = "mx_rfc"
|
|
32
|
+
MY_FRP = "my_frp"
|
|
33
|
+
MY_ITN = "my_itn"
|
|
34
|
+
MY_SST = "my_sst"
|
|
35
|
+
NO_VAT = "no_vat"
|
|
36
|
+
NZ_GST = "nz_gst"
|
|
37
|
+
PH_TIN = "ph_tin"
|
|
38
|
+
SA_VAT = "sa_vat"
|
|
39
|
+
SG_GST = "sg_gst"
|
|
40
|
+
SG_UEN = "sg_uen"
|
|
41
|
+
TH_VAT = "th_vat"
|
|
42
|
+
TR_TIN = "tr_tin"
|
|
43
|
+
TW_VAT = "tw_vat"
|
|
44
|
+
US_EIN = "us_ein"
|
|
45
|
+
ZA_VAT = "za_vat"
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class TestWebhookResponseData < Internal::Types::Model
|
|
6
|
+
field :failure_reason, -> { String }, optional: true, nullable: false
|
|
6
7
|
field :response_code, -> { Integer }, optional: false, nullable: false
|
|
7
8
|
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
9
|
end
|
|
@@ -19,10 +19,12 @@ module Schematic
|
|
|
19
19
|
field :expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
20
20
|
field :expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
21
21
|
field :expiry_unit_count, -> { Integer }, optional: true, nullable: false
|
|
22
|
+
field :license_id, -> { String }, optional: true, nullable: false
|
|
22
23
|
field :reset_cadence, -> { Schematic::Types::BillingPlanCreditGrantResetCadence }, optional: false, nullable: false
|
|
23
24
|
field :reset_start, -> { Schematic::Types::BillingPlanCreditGrantResetStart }, optional: false, nullable: false
|
|
24
25
|
field :reset_type, -> { Schematic::Types::BillingPlanCreditGrantResetType }, optional: true, nullable: false
|
|
25
26
|
field :rollover_percentage, -> { Integer }, optional: true, nullable: false
|
|
27
|
+
field :scaling, -> { Schematic::Types::PlanCreditGrantScaling }, optional: true, nullable: false
|
|
26
28
|
end
|
|
27
29
|
end
|
|
28
30
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class UserCreditUsageResponseData < Internal::Types::Model
|
|
6
|
+
field :billing_credit_id, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :credit_name, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :credits_used, -> { Integer }, optional: false, nullable: false
|
|
9
|
+
field :share, -> { Integer }, optional: false, nullable: false
|
|
10
|
+
field :user, -> { Schematic::Types::UserResponseData }, optional: true, nullable: false
|
|
11
|
+
field :user_id, -> { String }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class UserDailyCreditPointResponseData < Internal::Types::Model
|
|
6
|
+
field :credits_used, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
field :date, -> { String }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class UserDailyUsagePointResponseData < Internal::Types::Model
|
|
6
|
+
field :date, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :feature, -> { Schematic::Types::FeatureResponseData }, optional: true, nullable: false
|
|
8
|
+
field :value, -> { Integer }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class UserFeatureUsageResponseData < Internal::Types::Model
|
|
6
|
+
field :feature, -> { Schematic::Types::FeatureResponseData }, optional: true, nullable: false
|
|
7
|
+
field :last_seen, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :share, -> { Integer }, optional: false, nullable: false
|
|
9
|
+
field :user, -> { Schematic::Types::UserResponseData }, optional: true, nullable: false
|
|
10
|
+
field :user_id, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :value, -> { Integer }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class UserUsageByCompanyResponseData < Internal::Types::Model
|
|
6
|
+
field :credits, -> { Internal::Types::Array[Schematic::Types::UserCreditUsageResponseData] }, optional: false, nullable: false
|
|
7
|
+
field :end_time, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :rows, -> { Internal::Types::Array[Schematic::Types::UserFeatureUsageResponseData] }, optional: false, nullable: false
|
|
9
|
+
field :start_time, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class UserUsageDetailResponseData < Internal::Types::Model
|
|
6
|
+
field :credits, -> { Internal::Types::Array[Schematic::Types::UserCreditUsageResponseData] }, optional: false, nullable: false
|
|
7
|
+
field :daily_credit_points, -> { Internal::Types::Array[Schematic::Types::UserDailyCreditPointResponseData] }, optional: false, nullable: false
|
|
8
|
+
field :daily_points, -> { Internal::Types::Array[Schematic::Types::UserDailyUsagePointResponseData] }, optional: false, nullable: false
|
|
9
|
+
field :end_time, -> { String }, optional: false, nullable: false
|
|
10
|
+
field :feature_totals, -> { Internal::Types::Array[Schematic::Types::UserFeatureUsageResponseData] }, optional: false, nullable: false
|
|
11
|
+
field :start_time, -> { String }, optional: false, nullable: false
|
|
12
|
+
field :user, -> { Schematic::Types::UserResponseData }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/lib/schematic/version.rb
CHANGED
data/lib/schematic.rb
CHANGED
|
@@ -188,6 +188,7 @@ require_relative "schematic/credits/types/list_billing_plan_credit_grants_params
|
|
|
188
188
|
require_relative "schematic/types/billing_credit_auto_topup_availability"
|
|
189
189
|
require_relative "schematic/types/billing_plan_credit_grant_reset_start"
|
|
190
190
|
require_relative "schematic/types/billing_plan_credit_grant_reset_type"
|
|
191
|
+
require_relative "schematic/types/plan_credit_grant_scaling"
|
|
191
192
|
require_relative "schematic/types/preview_object_response_data"
|
|
192
193
|
require_relative "schematic/types/billing_plan_credit_grant_response_data"
|
|
193
194
|
require_relative "schematic/credits/types/list_billing_plan_credit_grants_response"
|
|
@@ -268,6 +269,7 @@ require_relative "schematic/catalogs/types/get_plans_in_catalog_response"
|
|
|
268
269
|
require_relative "schematic/types/checkout_subscription"
|
|
269
270
|
require_relative "schematic/checkout/types/checkout_internal_response"
|
|
270
271
|
require_relative "schematic/types/billing_credit_ledger_authority"
|
|
272
|
+
require_relative "schematic/types/billing_product_record_response_data"
|
|
271
273
|
require_relative "schematic/types/credit_currency_price"
|
|
272
274
|
require_relative "schematic/types/billing_credit_view"
|
|
273
275
|
require_relative "schematic/types/billing_product_for_subscription_response_data"
|
|
@@ -313,6 +315,7 @@ require_relative "schematic/types/preview_subscription_change_response_data"
|
|
|
313
315
|
require_relative "schematic/checkout/types/preview_checkout_internal_response"
|
|
314
316
|
require_relative "schematic/types/company_billing_address_view"
|
|
315
317
|
require_relative "schematic/types/company_billing_checkout_settings"
|
|
318
|
+
require_relative "schematic/types/company_tax_id_view"
|
|
316
319
|
require_relative "schematic/types/company_billing_details_response_data"
|
|
317
320
|
require_relative "schematic/checkout/types/get_company_billing_details_response"
|
|
318
321
|
require_relative "schematic/checkout/types/update_company_billing_details_response"
|
|
@@ -353,8 +356,11 @@ require_relative "schematic/companies/types/get_active_company_subscription_resp
|
|
|
353
356
|
require_relative "schematic/companies/types/upsert_company_trait_response"
|
|
354
357
|
require_relative "schematic/companies/types/list_entity_key_definitions_params"
|
|
355
358
|
require_relative "schematic/companies/types/list_entity_key_definitions_response"
|
|
359
|
+
require_relative "schematic/companies/types/delete_entity_key_definition_response"
|
|
356
360
|
require_relative "schematic/companies/types/count_entity_key_definitions_params"
|
|
357
361
|
require_relative "schematic/companies/types/count_entity_key_definitions_response"
|
|
362
|
+
require_relative "schematic/companies/types/count_entity_keys_params"
|
|
363
|
+
require_relative "schematic/companies/types/count_entity_keys_response"
|
|
358
364
|
require_relative "schematic/companies/types/list_entity_trait_definitions_params"
|
|
359
365
|
require_relative "schematic/companies/types/list_entity_trait_definitions_response"
|
|
360
366
|
require_relative "schematic/companies/types/get_or_create_entity_trait_definition_response"
|
|
@@ -444,6 +450,16 @@ require_relative "schematic/types/duplicate_plan_entitlements_response_response_
|
|
|
444
450
|
require_relative "schematic/entitlements/types/duplicate_plan_entitlements_response"
|
|
445
451
|
require_relative "schematic/entitlements/types/get_feature_usage_by_company_params"
|
|
446
452
|
require_relative "schematic/entitlements/types/get_feature_usage_by_company_response"
|
|
453
|
+
require_relative "schematic/entitlements/types/get_user_usage_by_company_params"
|
|
454
|
+
require_relative "schematic/types/user_credit_usage_response_data"
|
|
455
|
+
require_relative "schematic/types/user_feature_usage_response_data"
|
|
456
|
+
require_relative "schematic/types/user_usage_by_company_response_data"
|
|
457
|
+
require_relative "schematic/entitlements/types/get_user_usage_by_company_response"
|
|
458
|
+
require_relative "schematic/entitlements/types/get_user_usage_detail_params"
|
|
459
|
+
require_relative "schematic/types/user_daily_credit_point_response_data"
|
|
460
|
+
require_relative "schematic/types/user_daily_usage_point_response_data"
|
|
461
|
+
require_relative "schematic/types/user_usage_detail_response_data"
|
|
462
|
+
require_relative "schematic/entitlements/types/get_user_usage_detail_response"
|
|
447
463
|
require_relative "schematic/plans/types/update_company_plans_response"
|
|
448
464
|
require_relative "schematic/plans/types/list_custom_plan_billings_params"
|
|
449
465
|
require_relative "schematic/plans/types/list_custom_plan_billings_response"
|
|
@@ -493,6 +509,7 @@ require_relative "schematic/types/plan_credit_grant_view"
|
|
|
493
509
|
require_relative "schematic/types/company_plan_detail_response_data"
|
|
494
510
|
require_relative "schematic/types/compatible_plans"
|
|
495
511
|
require_relative "schematic/types/component_capabilities"
|
|
512
|
+
require_relative "schematic/types/proration_behavior"
|
|
496
513
|
require_relative "schematic/types/component_checkout_settings"
|
|
497
514
|
require_relative "schematic/types/component_display_settings"
|
|
498
515
|
require_relative "schematic/types/credit_transfer_view"
|
|
@@ -508,7 +525,11 @@ require_relative "schematic/types/data_export_status"
|
|
|
508
525
|
require_relative "schematic/types/data_export_type"
|
|
509
526
|
require_relative "schematic/dataexports/types/list_data_exports_params"
|
|
510
527
|
require_relative "schematic/types/audit_log_export_metadata"
|
|
528
|
+
require_relative "schematic/types/company_feature_usage_export_metadata_sort_order_direction"
|
|
529
|
+
require_relative "schematic/types/company_feature_usage_export_metadata_visible_columns_item"
|
|
511
530
|
require_relative "schematic/types/company_feature_usage_export_metadata"
|
|
531
|
+
require_relative "schematic/types/event_export_metadata_event_types_item"
|
|
532
|
+
require_relative "schematic/types/event_export_metadata"
|
|
512
533
|
require_relative "schematic/types/data_export_metadata"
|
|
513
534
|
require_relative "schematic/types/data_export_output_file_type"
|
|
514
535
|
require_relative "schematic/types/data_export_response_data"
|
|
@@ -762,7 +783,6 @@ require_relative "schematic/types/update_billing_plan_credit_grant_request_body"
|
|
|
762
783
|
require_relative "schematic/types/plan_bundle_credit_grant_request_body"
|
|
763
784
|
require_relative "schematic/types/plan_bundle_entitlement_request_body"
|
|
764
785
|
require_relative "schematic/types/plan_currency_price_request_body"
|
|
765
|
-
require_relative "schematic/types/proration_behavior"
|
|
766
786
|
require_relative "schematic/types/release_credit_lease_request_body"
|
|
767
787
|
require_relative "schematic/types/rule_condition_group_response_data"
|
|
768
788
|
require_relative "schematic/types/rule_condition_response_data"
|
|
@@ -789,6 +809,8 @@ require_relative "schematic/types/rulesengine_company"
|
|
|
789
809
|
require_relative "schematic/types/rulesengine_flag"
|
|
790
810
|
require_relative "schematic/types/rulesengine_user"
|
|
791
811
|
require_relative "schematic/types/scheduled_downgrade_config_behavior"
|
|
812
|
+
require_relative "schematic/types/tax_id_type"
|
|
813
|
+
require_relative "schematic/types/tax_id_input"
|
|
792
814
|
require_relative "schematic/types/temporary_access_token_response_data"
|
|
793
815
|
require_relative "schematic/types/update_entitlement_req_common"
|
|
794
816
|
require_relative "schematic/types/update_plan_request_body"
|
|
@@ -881,6 +903,7 @@ require_relative "schematic/companies/types/get_or_create_company_membership_req
|
|
|
881
903
|
require_relative "schematic/companies/types/get_active_company_subscription_request"
|
|
882
904
|
require_relative "schematic/companies/types/list_entity_key_definitions_request"
|
|
883
905
|
require_relative "schematic/companies/types/count_entity_key_definitions_request"
|
|
906
|
+
require_relative "schematic/companies/types/count_entity_keys_request"
|
|
884
907
|
require_relative "schematic/companies/types/list_entity_trait_definitions_request"
|
|
885
908
|
require_relative "schematic/companies/types/create_entity_trait_definition_request_body"
|
|
886
909
|
require_relative "schematic/companies/types/update_entity_trait_definition_request_body"
|
|
@@ -912,6 +935,8 @@ require_relative "schematic/entitlements/types/create_billing_linked_plan_entitl
|
|
|
912
935
|
require_relative "schematic/entitlements/types/count_plan_entitlements_request"
|
|
913
936
|
require_relative "schematic/entitlements/types/duplicate_plan_entitlements_request_body"
|
|
914
937
|
require_relative "schematic/entitlements/types/get_feature_usage_by_company_request"
|
|
938
|
+
require_relative "schematic/entitlements/types/get_user_usage_by_company_request"
|
|
939
|
+
require_relative "schematic/entitlements/types/get_user_usage_detail_request"
|
|
915
940
|
require_relative "schematic/plans/client"
|
|
916
941
|
require_relative "schematic/plans/types/update_company_plans_request_body"
|
|
917
942
|
require_relative "schematic/plans/types/list_custom_plan_billings_request"
|