schematichq 1.4.7 → 1.4.9
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 +3 -3
- data/.fern/replay.lock +7 -1
- data/WASM_VERSION +1 -1
- data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +1 -0
- data/lib/schematic/billing/types/create_invoice_request_body.rb +2 -0
- data/lib/schematic/client.rb +1 -1
- data/lib/schematic/companies/client.rb +76 -0
- data/lib/schematic/companies/types/get_billing_entity_child_subscriptions_params.rb +12 -0
- data/lib/schematic/companies/types/get_billing_entity_child_subscriptions_request.rb +11 -0
- data/lib/schematic/companies/types/get_billing_entity_child_subscriptions_response.rb +12 -0
- data/lib/schematic/companies/types/get_company_billing_entity_params.rb +12 -0
- data/lib/schematic/companies/types/get_company_billing_entity_request.rb +11 -0
- data/lib/schematic/companies/types/get_company_billing_entity_response.rb +12 -0
- data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +1 -0
- data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +1 -0
- data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +1 -0
- data/lib/schematic/planbundle/types/create_plan_bundle_request_body.rb +0 -1
- data/lib/schematic/planbundle/types/update_plan_bundle_request_body.rb +0 -1
- data/lib/schematic/rules_engine.rb +11 -0
- data/lib/schematic/types/account_member_permission.rb +1 -0
- data/lib/schematic/types/billing_credit_auto_topup_availability.rb +13 -0
- data/lib/schematic/types/billing_credit_grant_zeroed_out_reason.rb +2 -0
- data/lib/schematic/types/billing_plan_credit_grant_reset_cadence.rb +2 -0
- data/lib/schematic/types/billing_plan_credit_grant_response_data.rb +2 -0
- data/lib/schematic/types/change_subscription_internal_request_body.rb +1 -0
- data/lib/schematic/types/change_subscription_request_body.rb +1 -0
- data/lib/schematic/types/company_billing_entity_response_data.rb +10 -0
- data/lib/schematic/types/company_billing_entity_subscription_response_data.rb +26 -0
- data/lib/schematic/types/company_plan_credit_grant_view.rb +2 -0
- data/lib/schematic/types/company_plan_detail_response_data.rb +2 -0
- data/lib/schematic/types/create_billing_plan_credit_grant_request_body.rb +2 -0
- data/lib/schematic/types/event_body.rb +1 -0
- data/lib/schematic/types/event_body_inference.rb +22 -0
- data/lib/schematic/types/event_type.rb +1 -0
- data/lib/schematic/types/integrations_list_response_data.rb +1 -0
- data/lib/schematic/types/invoice_request_body.rb +2 -0
- data/lib/schematic/types/invoice_response_data.rb +2 -0
- data/lib/schematic/types/manage_plan_request.rb +1 -0
- data/lib/schematic/types/metronome_integration_config.rb +3 -1
- data/lib/schematic/types/plan_bundle_response_data.rb +0 -1
- data/lib/schematic/types/plan_credit_grant_view.rb +2 -0
- data/lib/schematic/types/plan_detail_response_data.rb +2 -0
- data/lib/schematic/types/plan_entitlement_response_data.rb +1 -0
- data/lib/schematic/types/plan_group_plan_detail_response_data.rb +2 -0
- data/lib/schematic/types/plan_view_public_response_data.rb +2 -0
- data/lib/schematic/types/update_billing_plan_credit_grant_request_body.rb +2 -0
- data/lib/schematic/types/warning_tier_request_body.rb +10 -0
- data/lib/schematic/types/warning_tier_response_data.rb +11 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/wasm/rulesengine.wasm +0 -0
- data/lib/schematic.rb +12 -0
- data/reference.md +144 -16
- metadata +14 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d171ff79b7e78a9a60d576805e1c8d4b679b08a69d87414759421e7b5c58db5
|
|
4
|
+
data.tar.gz: 1a042b9844338a76b885fcb14f19f003663f234fc64077c9ed55e57e85bf0553
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10072bf845fc063191774457072a90f0be6da68cb8e4bfdfa381481e0fa9ac3ac9cfd3cb8ed6c416fcf4f6d73a63fafcf2f7587f92f27cd147494ef9d87f8db9
|
|
7
|
+
data.tar.gz: dc208fa7352fede21e1fa3577bb7837a85c5968cb0a904be863636f568b73b4949a397408d40ee589d25f83d8a7bc5fb995fea2c358be2e6d296d88b72980bcf
|
data/.fern/metadata.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"cliVersion": "5.
|
|
2
|
+
"cliVersion": "5.50.0",
|
|
3
3
|
"generatorName": "fernapi/fern-ruby-sdk",
|
|
4
4
|
"generatorVersion": "1.1.13",
|
|
5
5
|
"generatorConfig": {
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"webrick": ">= 1.0"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"originGitCommit": "
|
|
17
|
-
"sdkVersion": "1.4.
|
|
16
|
+
"originGitCommit": "19cafdf92ab056ef6ba803bf1e352b0422a8ec45",
|
|
17
|
+
"sdkVersion": "1.4.9"
|
|
18
18
|
}
|
data/.fern/replay.lock
CHANGED
|
@@ -30,5 +30,11 @@ generations:
|
|
|
30
30
|
cli_version: unknown
|
|
31
31
|
generator_versions:
|
|
32
32
|
fernapi/fern-ruby-sdk: 1.1.13
|
|
33
|
-
|
|
33
|
+
- commit_sha: c93862aca1a52c6c033c908ebab873ca9ef6e401
|
|
34
|
+
tree_hash: 8af2113b2953c214b34eb7360fb741106399623c
|
|
35
|
+
timestamp: 2026-07-14T14:45:31.832Z
|
|
36
|
+
cli_version: unknown
|
|
37
|
+
generator_versions:
|
|
38
|
+
fernapi/fern-ruby-sdk: 1.1.13
|
|
39
|
+
current_generation: c93862aca1a52c6c033c908ebab873ca9ef6e401
|
|
34
40
|
patches: []
|
data/WASM_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.5.0
|
|
@@ -7,6 +7,7 @@ module Schematic
|
|
|
7
7
|
field :application_id, -> { String }, optional: true, nullable: false
|
|
8
8
|
field :cancel_at, -> { Integer }, optional: true, nullable: false
|
|
9
9
|
field :cancel_at_period_end, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
10
11
|
field :currency, -> { String }, optional: false, nullable: false
|
|
11
12
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
12
13
|
field :default_payment_method_external_id, -> { String }, optional: true, nullable: false
|
|
@@ -11,8 +11,10 @@ module Schematic
|
|
|
11
11
|
field :currency, -> { String }, optional: false, nullable: false
|
|
12
12
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
13
13
|
field :due_date, -> { String }, optional: true, nullable: false
|
|
14
|
+
field :ending_balance, -> { Integer }, optional: true, nullable: false
|
|
14
15
|
field :external_id, -> { String }, optional: true, nullable: false
|
|
15
16
|
field :payment_method_external_id, -> { String }, optional: true, nullable: false
|
|
17
|
+
field :starting_balance, -> { Integer }, optional: true, nullable: false
|
|
16
18
|
field :status, -> { Schematic::Types::InvoiceStatus }, optional: true, nullable: false
|
|
17
19
|
field :subscription_external_id, -> { String }, optional: true, nullable: false
|
|
18
20
|
field :subtotal, -> { Integer }, optional: false, nullable: false
|
data/lib/schematic/client.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Schematic
|
|
|
10
10
|
@raw_client = Schematic::Internal::Http::RawClient.new(
|
|
11
11
|
base_url: base_url || Schematic::Environment::DEFAULT,
|
|
12
12
|
headers: {
|
|
13
|
-
"User-Agent" => "schematichq/1.4.
|
|
13
|
+
"User-Agent" => "schematichq/1.4.9",
|
|
14
14
|
"X-Fern-Language" => "Ruby",
|
|
15
15
|
"X-Schematic-Api-Key" => api_key.to_s
|
|
16
16
|
}
|
|
@@ -375,6 +375,82 @@ module Schematic
|
|
|
375
375
|
end
|
|
376
376
|
end
|
|
377
377
|
|
|
378
|
+
# @param request_options [Hash]
|
|
379
|
+
# @param params [Hash]
|
|
380
|
+
# @option request_options [String] :base_url
|
|
381
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
382
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
383
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
384
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
385
|
+
# @option params [String, nil] :company_id
|
|
386
|
+
#
|
|
387
|
+
# @return [Schematic::Companies::Types::GetCompanyBillingEntityResponse]
|
|
388
|
+
def get_company_billing_entity(request_options: {}, **params)
|
|
389
|
+
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
390
|
+
query_param_names = %i[company_id]
|
|
391
|
+
query_params = {}
|
|
392
|
+
query_params["company_id"] = params[:company_id] if params.key?(:company_id)
|
|
393
|
+
params.except(*query_param_names)
|
|
394
|
+
|
|
395
|
+
request = Schematic::Internal::JSON::Request.new(
|
|
396
|
+
base_url: request_options[:base_url],
|
|
397
|
+
method: "GET",
|
|
398
|
+
path: "company-billing-entity",
|
|
399
|
+
query: query_params,
|
|
400
|
+
request_options: request_options
|
|
401
|
+
)
|
|
402
|
+
begin
|
|
403
|
+
response = @client.send(request)
|
|
404
|
+
rescue Net::HTTPRequestTimeout
|
|
405
|
+
raise Schematic::Errors::TimeoutError
|
|
406
|
+
end
|
|
407
|
+
code = response.code.to_i
|
|
408
|
+
if code.between?(200, 299)
|
|
409
|
+
Schematic::Companies::Types::GetCompanyBillingEntityResponse.load(response.body)
|
|
410
|
+
else
|
|
411
|
+
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
412
|
+
raise error_class.new(response.body, code: code)
|
|
413
|
+
end
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# @param request_options [Hash]
|
|
417
|
+
# @param params [Hash]
|
|
418
|
+
# @option request_options [String] :base_url
|
|
419
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
420
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
421
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
422
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
423
|
+
# @option params [String, nil] :company_id
|
|
424
|
+
#
|
|
425
|
+
# @return [Schematic::Companies::Types::GetBillingEntityChildSubscriptionsResponse]
|
|
426
|
+
def get_billing_entity_child_subscriptions(request_options: {}, **params)
|
|
427
|
+
params = Schematic::Internal::Types::Utils.normalize_keys(params)
|
|
428
|
+
query_param_names = %i[company_id]
|
|
429
|
+
query_params = {}
|
|
430
|
+
query_params["company_id"] = params[:company_id] if params.key?(:company_id)
|
|
431
|
+
params.except(*query_param_names)
|
|
432
|
+
|
|
433
|
+
request = Schematic::Internal::JSON::Request.new(
|
|
434
|
+
base_url: request_options[:base_url],
|
|
435
|
+
method: "GET",
|
|
436
|
+
path: "company-billing-entity-subscriptions",
|
|
437
|
+
query: query_params,
|
|
438
|
+
request_options: request_options
|
|
439
|
+
)
|
|
440
|
+
begin
|
|
441
|
+
response = @client.send(request)
|
|
442
|
+
rescue Net::HTTPRequestTimeout
|
|
443
|
+
raise Schematic::Errors::TimeoutError
|
|
444
|
+
end
|
|
445
|
+
code = response.code.to_i
|
|
446
|
+
if code.between?(200, 299)
|
|
447
|
+
Schematic::Companies::Types::GetBillingEntityChildSubscriptionsResponse.load(response.body)
|
|
448
|
+
else
|
|
449
|
+
error_class = Schematic::Errors::ResponseError.subclass_for_code(code)
|
|
450
|
+
raise error_class.new(response.body, code: code)
|
|
451
|
+
end
|
|
452
|
+
end
|
|
453
|
+
|
|
378
454
|
# @param request_options [Hash]
|
|
379
455
|
# @param params [Hash]
|
|
380
456
|
# @option request_options [String] :base_url
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Companies
|
|
5
|
+
module Types
|
|
6
|
+
# Input parameters
|
|
7
|
+
class GetBillingEntityChildSubscriptionsParams < Internal::Types::Model
|
|
8
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Companies
|
|
5
|
+
module Types
|
|
6
|
+
class GetBillingEntityChildSubscriptionsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Schematic::Types::CompanyBillingEntitySubscriptionResponseData] }, optional: false, nullable: false
|
|
8
|
+
field :params, -> { Schematic::Companies::Types::GetBillingEntityChildSubscriptionsParams }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Companies
|
|
5
|
+
module Types
|
|
6
|
+
# Input parameters
|
|
7
|
+
class GetCompanyBillingEntityParams < Internal::Types::Model
|
|
8
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Companies
|
|
5
|
+
module Types
|
|
6
|
+
class GetCompanyBillingEntityResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Schematic::Types::CompanyBillingEntityResponseData] }, optional: false, nullable: false
|
|
8
|
+
field :params, -> { Schematic::Companies::Types::GetCompanyBillingEntityParams }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb
CHANGED
|
@@ -35,6 +35,7 @@ module Schematic
|
|
|
35
35
|
field :value_numeric, -> { Integer }, optional: true, nullable: false
|
|
36
36
|
field :value_trait_id, -> { String }, optional: true, nullable: false
|
|
37
37
|
field :value_type, -> { Schematic::Types::EntitlementValueType }, optional: false, nullable: false
|
|
38
|
+
field :warning_tiers, -> { Internal::Types::Array[Schematic::Types::WarningTierRequestBody] }, optional: true, nullable: false
|
|
38
39
|
field :yearly_metered_price_id, -> { String }, optional: true, nullable: false
|
|
39
40
|
field :yearly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
|
|
40
41
|
field :yearly_unit_price, -> { Integer }, optional: true, nullable: false
|
|
@@ -33,6 +33,7 @@ module Schematic
|
|
|
33
33
|
field :value_numeric, -> { Integer }, optional: true, nullable: false
|
|
34
34
|
field :value_trait_id, -> { String }, optional: true, nullable: false
|
|
35
35
|
field :value_type, -> { Schematic::Types::EntitlementValueType }, optional: false, nullable: false
|
|
36
|
+
field :warning_tiers, -> { Internal::Types::Array[Schematic::Types::WarningTierRequestBody] }, optional: true, nullable: false
|
|
36
37
|
field :yearly_metered_price_id, -> { String }, optional: true, nullable: false
|
|
37
38
|
field :yearly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
|
|
38
39
|
field :yearly_unit_price, -> { Integer }, optional: true, nullable: false
|
|
@@ -31,6 +31,7 @@ module Schematic
|
|
|
31
31
|
field :value_numeric, -> { Integer }, optional: true, nullable: false
|
|
32
32
|
field :value_trait_id, -> { String }, optional: true, nullable: false
|
|
33
33
|
field :value_type, -> { Schematic::Types::EntitlementValueType }, optional: false, nullable: false
|
|
34
|
+
field :warning_tiers, -> { Internal::Types::Array[Schematic::Types::WarningTierRequestBody] }, optional: true, nullable: false
|
|
34
35
|
field :yearly_metered_price_id, -> { String }, optional: true, nullable: false
|
|
35
36
|
field :yearly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
|
|
36
37
|
field :yearly_unit_price, -> { Integer }, optional: true, nullable: false
|
|
@@ -8,7 +8,6 @@ module Schematic
|
|
|
8
8
|
field :credit_grants, -> { Internal::Types::Array[Schematic::Types::PlanBundleCreditGrantRequestBody] }, optional: true, nullable: false
|
|
9
9
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::PlanBundleEntitlementRequestBody] }, optional: false, nullable: false
|
|
10
10
|
field :plan, -> { Schematic::Types::CreatePlanRequestBody }, optional: true, nullable: false
|
|
11
|
-
field :traits, -> { Internal::Types::Array[Schematic::Types::UpdatePlanTraitTraitRequestBody] }, optional: true, nullable: false
|
|
12
11
|
end
|
|
13
12
|
end
|
|
14
13
|
end
|
|
@@ -10,7 +10,6 @@ module Schematic
|
|
|
10
10
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::PlanBundleEntitlementRequestBody] }, optional: false, nullable: false
|
|
11
11
|
field :plan, -> { Schematic::Types::UpdatePlanRequestBody }, optional: true, nullable: false
|
|
12
12
|
field :plan_version_id, -> { String }, optional: true, nullable: false
|
|
13
|
-
field :traits, -> { Internal::Types::Array[Schematic::Types::UpdatePlanTraitTraitRequestBody] }, optional: true, nullable: false
|
|
14
13
|
end
|
|
15
14
|
end
|
|
16
15
|
end
|
|
@@ -15,6 +15,7 @@ module Schematic
|
|
|
15
15
|
@alloc_fn = nil
|
|
16
16
|
@dealloc_fn = nil
|
|
17
17
|
@check_flag_fn = nil
|
|
18
|
+
@set_time_fn = nil
|
|
18
19
|
@get_result_json_fn = nil
|
|
19
20
|
@get_result_json_length_fn = nil
|
|
20
21
|
@get_version_key_fn = nil
|
|
@@ -47,6 +48,11 @@ module Schematic
|
|
|
47
48
|
@alloc_fn = export_func("alloc")
|
|
48
49
|
@dealloc_fn = export_func("dealloc")
|
|
49
50
|
@check_flag_fn = export_func("checkFlagCombined")
|
|
51
|
+
# Optional: feed the wasm the current wall-clock time before each check.
|
|
52
|
+
# The raw wasm32-unknown-unknown build has no clock under wasmtime
|
|
53
|
+
# (SCHY-471); without this, metric-period reset timestamps are omitted.
|
|
54
|
+
# Absent on older wasm — hence the safe-navigation call below.
|
|
55
|
+
@set_time_fn = @instance.export("setCurrentTimeMillis")&.to_func
|
|
50
56
|
@get_result_json_fn = export_func("getResultJson")
|
|
51
57
|
@get_result_json_length_fn = export_func("getResultJsonLength")
|
|
52
58
|
@get_version_key_fn = export_func("get_version_key_wasm")
|
|
@@ -80,6 +86,11 @@ module Schematic
|
|
|
80
86
|
ptr = @alloc_fn.call(json_bytes.bytesize)
|
|
81
87
|
begin
|
|
82
88
|
@memory.write(ptr, json_bytes)
|
|
89
|
+
|
|
90
|
+
# Supply the host's current time so the engine can compute
|
|
91
|
+
# metric-period reset timestamps (SCHY-471). No-op on older wasm.
|
|
92
|
+
@set_time_fn&.call((Time.now.to_f * 1000).to_i)
|
|
93
|
+
|
|
83
94
|
result_len = @check_flag_fn.call(ptr, json_bytes.bytesize)
|
|
84
95
|
|
|
85
96
|
raise "WASM checkFlagCombined returned error" if result_len.negative?
|
|
@@ -8,6 +8,7 @@ module Schematic
|
|
|
8
8
|
COMPANIES_EDIT = "companies_edit"
|
|
9
9
|
COMPANY_USERS_EDIT = "company_users_edit"
|
|
10
10
|
COMPONENTS_EDIT = "components_edit"
|
|
11
|
+
CUSTOM_PLANS_EDIT = "custom_plans_edit"
|
|
11
12
|
DATA_EXPORTS_EDIT = "data_exports_edit"
|
|
12
13
|
FEATURES_EDIT = "features_edit"
|
|
13
14
|
FLAG_RULES_EDIT = "flag_rules_edit"
|
|
@@ -5,7 +5,9 @@ module Schematic
|
|
|
5
5
|
module BillingCreditGrantZeroedOutReason
|
|
6
6
|
extend Schematic::Internal::Types::Enum
|
|
7
7
|
|
|
8
|
+
CUSTOMER_ARCHIVED = "customer_archived"
|
|
8
9
|
EXPIRED = "expired"
|
|
10
|
+
INTEGRATION_UNINSTALLED = "integration_uninstalled"
|
|
9
11
|
MANUAL = "manual"
|
|
10
12
|
PLAN_CHANGE = "plan_change"
|
|
11
13
|
PLAN_PERIOD_RESET = "plan_period_reset"
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
class BillingPlanCreditGrantResponseData < Internal::Types::Model
|
|
6
6
|
field :auto_topup_amount, -> { Integer }, optional: true, nullable: false
|
|
7
7
|
field :auto_topup_amount_type, -> { String }, optional: true, nullable: false
|
|
8
|
+
field :auto_topup_availability, -> { Schematic::Types::BillingCreditAutoTopupAvailability }, optional: false, nullable: false
|
|
8
9
|
field :auto_topup_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
10
|
field :auto_topup_expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
10
11
|
field :auto_topup_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
@@ -12,6 +13,7 @@ module Schematic
|
|
|
12
13
|
field :auto_topup_self_service, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
13
14
|
field :auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
|
|
14
15
|
field :auto_topup_threshold_percent, -> { Integer }, optional: true, nullable: false
|
|
16
|
+
field :can_buy_bundles, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
15
17
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
16
18
|
field :credit, -> { Schematic::Types::BillingCreditResponseData }, optional: true, nullable: false
|
|
17
19
|
field :credit_amount, -> { Integer }, optional: false, nullable: false
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
class ChangeSubscriptionInternalRequestBody < Internal::Types::Model
|
|
6
6
|
field :add_on_ids, -> { Internal::Types::Array[Schematic::Types::UpdateAddOnRequestBody] }, optional: false, nullable: false
|
|
7
7
|
field :auto_topup_overrides, -> { Internal::Types::Array[Schematic::Types::UpdateAutoTopupOverrideRequestBody] }, optional: false, nullable: false
|
|
8
|
+
field :billing_entity_id, -> { String }, optional: true, nullable: false
|
|
8
9
|
field :company_id, -> { String }, optional: false, nullable: false
|
|
9
10
|
field :coupon_external_id, -> { String }, optional: true, nullable: false
|
|
10
11
|
field :credit_bundles, -> { Internal::Types::Array[Schematic::Types::UpdateCreditBundleRequestBody] }, optional: false, nullable: false
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
class ChangeSubscriptionRequestBody < Internal::Types::Model
|
|
6
6
|
field :add_on_ids, -> { Internal::Types::Array[Schematic::Types::UpdateAddOnRequestBody] }, optional: false, nullable: false
|
|
7
7
|
field :auto_topup_overrides, -> { Internal::Types::Array[Schematic::Types::UpdateAutoTopupOverrideRequestBody] }, optional: false, nullable: false
|
|
8
|
+
field :billing_entity_id, -> { String }, optional: true, nullable: false
|
|
8
9
|
field :coupon_external_id, -> { String }, optional: true, nullable: false
|
|
9
10
|
field :credit_bundles, -> { Internal::Types::Array[Schematic::Types::UpdateCreditBundleRequestBody] }, optional: false, nullable: false
|
|
10
11
|
field :custom_field_values, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldValue] }, optional: false, nullable: false
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CompanyBillingEntityResponseData < Internal::Types::Model
|
|
6
|
+
field :billing_entity, -> { Schematic::Types::CompanyResponseData }, optional: true, nullable: false
|
|
7
|
+
field :has_own_stripe_customer, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class CompanyBillingEntitySubscriptionResponseData < Internal::Types::Model
|
|
6
|
+
field :cancel_at, -> { String }, optional: true, nullable: false
|
|
7
|
+
field :cancel_at_period_end, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
field :company, -> { Schematic::Types::CompanyResponseData }, optional: true, nullable: false
|
|
9
|
+
field :currency, -> { String }, optional: false, nullable: false
|
|
10
|
+
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
field :discounts, -> { Internal::Types::Array[Schematic::Types::BillingSubscriptionDiscountView] }, optional: false, nullable: false
|
|
12
|
+
field :expired_at, -> { String }, optional: true, nullable: false
|
|
13
|
+
field :interval, -> { String }, optional: false, nullable: false
|
|
14
|
+
field :is_initial, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
15
|
+
field :latest_invoice, -> { Schematic::Types::InvoiceResponseData }, optional: true, nullable: false
|
|
16
|
+
field :payment_method, -> { Schematic::Types::PaymentMethodResponseData }, optional: true, nullable: false
|
|
17
|
+
field :plan_name, -> { String }, optional: false, nullable: false
|
|
18
|
+
field :products, -> { Internal::Types::Array[Schematic::Types::BillingProductForSubscriptionResponseData] }, optional: false, nullable: false
|
|
19
|
+
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
20
|
+
field :status, -> { String }, optional: false, nullable: false
|
|
21
|
+
field :subscription_external_id, -> { String }, optional: false, nullable: false
|
|
22
|
+
field :total_price, -> { Integer }, optional: false, nullable: false
|
|
23
|
+
field :trial_end, -> { String }, optional: true, nullable: false
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
class CompanyPlanCreditGrantView < Internal::Types::Model
|
|
6
6
|
field :billing_credit_auto_topup_amount, -> { Integer }, optional: true, nullable: false
|
|
7
7
|
field :billing_credit_auto_topup_amount_type, -> { String }, optional: true, nullable: false
|
|
8
|
+
field :billing_credit_auto_topup_availability, -> { Schematic::Types::BillingCreditAutoTopupAvailability }, optional: true, nullable: false
|
|
8
9
|
field :billing_credit_auto_topup_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
10
|
field :billing_credit_auto_topup_expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
10
11
|
field :billing_credit_auto_topup_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
@@ -12,6 +13,7 @@ module Schematic
|
|
|
12
13
|
field :billing_credit_auto_topup_self_service, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
13
14
|
field :billing_credit_auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
|
|
14
15
|
field :billing_credit_auto_topup_threshold_percent, -> { Integer }, optional: true, nullable: false
|
|
16
|
+
field :billing_credit_can_buy_bundles, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
15
17
|
field :company_auto_topup_amount, -> { Integer }, optional: true, nullable: false
|
|
16
18
|
field :company_auto_topup_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
17
19
|
field :company_auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
|
|
@@ -13,11 +13,13 @@ module Schematic
|
|
|
13
13
|
field :company_can_trial, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
14
14
|
field :company_count, -> { Integer }, optional: false, nullable: false
|
|
15
15
|
field :company_id, -> { String }, optional: true, nullable: false
|
|
16
|
+
field :company_logo_url, -> { String }, optional: true, nullable: false
|
|
16
17
|
field :company_name, -> { String }, optional: true, nullable: false
|
|
17
18
|
field :compatible_plan_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
18
19
|
field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
19
20
|
field :copied_from_plan_id, -> { String }, optional: true, nullable: false
|
|
20
21
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
22
|
+
field :credits, -> { Internal::Types::Array[Schematic::Types::BillingCreditResponseData] }, optional: false, nullable: false
|
|
21
23
|
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
|
|
22
24
|
field :current, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
23
25
|
field :custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
@@ -6,6 +6,7 @@ module Schematic
|
|
|
6
6
|
field :apply_to_existing, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
7
7
|
field :auto_topup_amount, -> { Integer }, optional: true, nullable: false
|
|
8
8
|
field :auto_topup_amount_type, -> { String }, optional: true, nullable: false
|
|
9
|
+
field :auto_topup_availability, -> { Schematic::Types::BillingCreditAutoTopupAvailability }, optional: true, nullable: false
|
|
9
10
|
field :auto_topup_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
11
|
field :auto_topup_expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
11
12
|
field :auto_topup_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
@@ -13,6 +14,7 @@ module Schematic
|
|
|
13
14
|
field :auto_topup_self_service, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
15
|
field :auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
|
|
15
16
|
field :auto_topup_threshold_percent, -> { Integer }, optional: true, nullable: false
|
|
17
|
+
field :can_buy_bundles, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
16
18
|
field :credit_amount, -> { Integer }, optional: false, nullable: false
|
|
17
19
|
field :credit_id, -> { String }, optional: false, nullable: false
|
|
18
20
|
field :expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class EventBodyInference < Internal::Types::Model
|
|
6
|
+
field :cached_input_tokens, -> { Integer }, optional: true, nullable: false
|
|
7
|
+
field :company, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: false
|
|
8
|
+
field :cost, -> { String }, optional: true, nullable: false
|
|
9
|
+
field :currency, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :event, -> { String }, optional: true, nullable: false
|
|
11
|
+
field :input_tokens, -> { Integer }, optional: false, nullable: false
|
|
12
|
+
field :operation, -> { String }, optional: true, nullable: false
|
|
13
|
+
field :output_tokens, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
15
|
+
field :reasoning_tokens, -> { Integer }, optional: true, nullable: false
|
|
16
|
+
field :request_model, -> { String }, optional: true, nullable: false
|
|
17
|
+
field :requests, -> { Integer }, optional: true, nullable: false
|
|
18
|
+
field :response_model, -> { String }, optional: false, nullable: false
|
|
19
|
+
field :user, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -8,6 +8,7 @@ module Schematic
|
|
|
8
8
|
field :id, -> { String }, optional: false, nullable: false
|
|
9
9
|
field :is_app_install, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
10
|
field :is_connect_install, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
11
|
+
field :last_webhook_received_at, -> { String }, optional: true, nullable: false
|
|
11
12
|
field :state, -> { Schematic::Types::IntegrationState }, optional: false, nullable: false
|
|
12
13
|
field :type, -> { Schematic::Types::IntegrationType }, optional: false, nullable: false
|
|
13
14
|
end
|
|
@@ -10,7 +10,9 @@ module Schematic
|
|
|
10
10
|
field :currency, -> { String }, optional: false, nullable: false
|
|
11
11
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
12
12
|
field :due_date, -> { String }, optional: true, nullable: false
|
|
13
|
+
field :ending_balance, -> { Integer }, optional: true, nullable: false
|
|
13
14
|
field :payment_method_external_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
field :starting_balance, -> { Integer }, optional: true, nullable: false
|
|
14
16
|
field :status, -> { Schematic::Types::InvoiceStatus }, optional: true, nullable: false
|
|
15
17
|
field :subscription_external_id, -> { String }, optional: true, nullable: false
|
|
16
18
|
field :subtotal, -> { Integer }, optional: false, nullable: false
|
|
@@ -12,11 +12,13 @@ module Schematic
|
|
|
12
12
|
field :currency, -> { String }, optional: false, nullable: false
|
|
13
13
|
field :customer_external_id, -> { String }, optional: false, nullable: false
|
|
14
14
|
field :due_date, -> { String }, optional: true, nullable: false
|
|
15
|
+
field :ending_balance, -> { Integer }, optional: false, nullable: false
|
|
15
16
|
field :environment_id, -> { String }, optional: false, nullable: false
|
|
16
17
|
field :external_id, -> { String }, optional: true, nullable: false
|
|
17
18
|
field :id, -> { String }, optional: false, nullable: false
|
|
18
19
|
field :payment_method_external_id, -> { String }, optional: true, nullable: false
|
|
19
20
|
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
21
|
+
field :starting_balance, -> { Integer }, optional: false, nullable: false
|
|
20
22
|
field :status, -> { Schematic::Types::InvoiceStatus }, optional: true, nullable: false
|
|
21
23
|
field :subscription_external_id, -> { String }, optional: true, nullable: false
|
|
22
24
|
field :subtotal, -> { Integer }, optional: false, nullable: false
|
|
@@ -7,6 +7,7 @@ module Schematic
|
|
|
7
7
|
field :base_plan_id, -> { String }, optional: true, nullable: false
|
|
8
8
|
field :base_plan_price_id, -> { String }, optional: true, nullable: false
|
|
9
9
|
field :base_plan_version_id, -> { String }, optional: true, nullable: false
|
|
10
|
+
field :billing_entity_id, -> { String }, optional: true, nullable: false
|
|
10
11
|
field :cancel_immediately, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
12
|
field :company_id, -> { String }, optional: false, nullable: false
|
|
12
13
|
field :coupon_external_id, -> { String }, optional: true, nullable: false
|
|
@@ -7,7 +7,6 @@ module Schematic
|
|
|
7
7
|
field :credit_grants, -> { Internal::Types::Array[Schematic::Types::BillingPlanCreditGrantResponseData] }, optional: true, nullable: false
|
|
8
8
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::PlanEntitlementResponseData] }, optional: true, nullable: false
|
|
9
9
|
field :plan, -> { Schematic::Types::PlanResponseData }, optional: true, nullable: false
|
|
10
|
-
field :traits, -> { Internal::Types::Array[Schematic::Types::PlanTraitResponseData] }, optional: true, nullable: false
|
|
11
10
|
end
|
|
12
11
|
end
|
|
13
12
|
end
|
|
@@ -5,6 +5,7 @@ module Schematic
|
|
|
5
5
|
class PlanCreditGrantView < Internal::Types::Model
|
|
6
6
|
field :billing_credit_auto_topup_amount, -> { Integer }, optional: true, nullable: false
|
|
7
7
|
field :billing_credit_auto_topup_amount_type, -> { String }, optional: true, nullable: false
|
|
8
|
+
field :billing_credit_auto_topup_availability, -> { Schematic::Types::BillingCreditAutoTopupAvailability }, optional: true, nullable: false
|
|
8
9
|
field :billing_credit_auto_topup_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
10
|
field :billing_credit_auto_topup_expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
10
11
|
field :billing_credit_auto_topup_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
@@ -12,6 +13,7 @@ module Schematic
|
|
|
12
13
|
field :billing_credit_auto_topup_self_service, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
13
14
|
field :billing_credit_auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
|
|
14
15
|
field :billing_credit_auto_topup_threshold_percent, -> { Integer }, optional: true, nullable: false
|
|
16
|
+
field :billing_credit_can_buy_bundles, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
15
17
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
16
18
|
field :credit, -> { Schematic::Types::BillingCreditView }, optional: true, nullable: false
|
|
17
19
|
field :credit_amount, -> { Integer }, optional: false, nullable: false
|
|
@@ -11,10 +11,12 @@ module Schematic
|
|
|
11
11
|
field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
|
|
12
12
|
field :company_count, -> { Integer }, optional: false, nullable: false
|
|
13
13
|
field :company_id, -> { String }, optional: true, nullable: false
|
|
14
|
+
field :company_logo_url, -> { String }, optional: true, nullable: false
|
|
14
15
|
field :company_name, -> { String }, optional: true, nullable: false
|
|
15
16
|
field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
16
17
|
field :copied_from_plan_id, -> { String }, optional: true, nullable: false
|
|
17
18
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
19
|
+
field :credits, -> { Internal::Types::Array[Schematic::Types::BillingCreditResponseData] }, optional: false, nullable: false
|
|
18
20
|
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
|
|
19
21
|
field :description, -> { String }, optional: false, nullable: false
|
|
20
22
|
field :draft_version, -> { Schematic::Types::PlanVersionResponseData }, optional: true, nullable: false
|
|
@@ -32,6 +32,7 @@ module Schematic
|
|
|
32
32
|
field :value_trait, -> { Schematic::Types::EntityTraitDefinitionResponseData }, optional: true, nullable: false
|
|
33
33
|
field :value_trait_id, -> { String }, optional: true, nullable: false
|
|
34
34
|
field :value_type, -> { Schematic::Types::EntitlementValueType }, optional: false, nullable: false
|
|
35
|
+
field :warning_tiers, -> { Internal::Types::Array[Schematic::Types::WarningTierResponseData] }, optional: false, nullable: false
|
|
35
36
|
end
|
|
36
37
|
end
|
|
37
38
|
end
|
|
@@ -12,11 +12,13 @@ module Schematic
|
|
|
12
12
|
field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
|
|
13
13
|
field :company_count, -> { Integer }, optional: false, nullable: false
|
|
14
14
|
field :company_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
field :company_logo_url, -> { String }, optional: true, nullable: false
|
|
15
16
|
field :company_name, -> { String }, optional: true, nullable: false
|
|
16
17
|
field :compatible_plan_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
17
18
|
field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
18
19
|
field :copied_from_plan_id, -> { String }, optional: true, nullable: false
|
|
19
20
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
21
|
+
field :credits, -> { Internal::Types::Array[Schematic::Types::BillingCreditResponseData] }, optional: false, nullable: false
|
|
20
22
|
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
|
|
21
23
|
field :custom_plan_config, -> { Schematic::Types::CustomPlanViewConfigResponseData }, optional: true, nullable: false
|
|
22
24
|
field :description, -> { String }, optional: false, nullable: false
|
|
@@ -12,11 +12,13 @@ module Schematic
|
|
|
12
12
|
field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
|
|
13
13
|
field :company_count, -> { Integer }, optional: false, nullable: false
|
|
14
14
|
field :company_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
field :company_logo_url, -> { String }, optional: true, nullable: false
|
|
15
16
|
field :company_name, -> { String }, optional: true, nullable: false
|
|
16
17
|
field :compatible_plan_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
17
18
|
field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
18
19
|
field :copied_from_plan_id, -> { String }, optional: true, nullable: false
|
|
19
20
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
21
|
+
field :credits, -> { Internal::Types::Array[Schematic::Types::BillingCreditResponseData] }, optional: false, nullable: false
|
|
20
22
|
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPricesResponseData] }, optional: false, nullable: false
|
|
21
23
|
field :custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
22
24
|
field :custom_plan_config, -> { Schematic::Types::CustomPlanConfig }, optional: true, nullable: false
|
|
@@ -6,6 +6,7 @@ module Schematic
|
|
|
6
6
|
field :apply_to_existing, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
7
7
|
field :auto_topup_amount, -> { Integer }, optional: true, nullable: false
|
|
8
8
|
field :auto_topup_amount_type, -> { String }, optional: true, nullable: false
|
|
9
|
+
field :auto_topup_availability, -> { Schematic::Types::BillingCreditAutoTopupAvailability }, optional: true, nullable: false
|
|
9
10
|
field :auto_topup_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
11
|
field :auto_topup_expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
11
12
|
field :auto_topup_expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
@@ -13,6 +14,7 @@ module Schematic
|
|
|
13
14
|
field :auto_topup_self_service, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
15
|
field :auto_topup_threshold_credits, -> { Integer }, optional: true, nullable: false
|
|
15
16
|
field :auto_topup_threshold_percent, -> { Integer }, optional: true, nullable: false
|
|
17
|
+
field :can_buy_bundles, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
16
18
|
field :credit_amount, -> { Integer }, optional: true, nullable: false
|
|
17
19
|
field :expiry_type, -> { Schematic::Types::BillingCreditExpiryType }, optional: true, nullable: false
|
|
18
20
|
field :expiry_unit, -> { Schematic::Types::BillingCreditExpiryUnit }, optional: true, nullable: false
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class WarningTierRequestBody < Internal::Types::Model
|
|
6
|
+
field :key, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :value, -> { Integer }, 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 WarningTierResponseData < Internal::Types::Model
|
|
6
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
7
|
+
field :key, -> { String }, optional: false, nullable: false
|
|
8
|
+
field :value, -> { Integer }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
data/lib/schematic/version.rb
CHANGED
|
Binary file
|
data/lib/schematic.rb
CHANGED
|
@@ -185,6 +185,7 @@ require_relative "schematic/credits/types/acquire_credit_lease_response"
|
|
|
185
185
|
require_relative "schematic/credits/types/extend_credit_lease_response"
|
|
186
186
|
require_relative "schematic/credits/types/release_credit_lease_response"
|
|
187
187
|
require_relative "schematic/credits/types/list_billing_plan_credit_grants_params"
|
|
188
|
+
require_relative "schematic/types/billing_credit_auto_topup_availability"
|
|
188
189
|
require_relative "schematic/types/billing_plan_credit_grant_reset_start"
|
|
189
190
|
require_relative "schematic/types/billing_plan_credit_grant_reset_type"
|
|
190
191
|
require_relative "schematic/types/preview_object_response_data"
|
|
@@ -269,6 +270,7 @@ require_relative "schematic/types/feature_in_plan_response_data"
|
|
|
269
270
|
require_relative "schematic/types/plan_icon"
|
|
270
271
|
require_relative "schematic/types/plan_type"
|
|
271
272
|
require_relative "schematic/types/plan_response_data"
|
|
273
|
+
require_relative "schematic/types/warning_tier_response_data"
|
|
272
274
|
require_relative "schematic/types/plan_entitlement_response_data"
|
|
273
275
|
require_relative "schematic/types/feature_usage_response_data"
|
|
274
276
|
require_relative "schematic/types/feature_usage_detail_response_data"
|
|
@@ -304,6 +306,12 @@ require_relative "schematic/types/company_response_data"
|
|
|
304
306
|
require_relative "schematic/companies/types/delete_company_by_keys_response"
|
|
305
307
|
require_relative "schematic/companies/types/lookup_company_params"
|
|
306
308
|
require_relative "schematic/companies/types/lookup_company_response"
|
|
309
|
+
require_relative "schematic/companies/types/get_company_billing_entity_params"
|
|
310
|
+
require_relative "schematic/types/company_billing_entity_response_data"
|
|
311
|
+
require_relative "schematic/companies/types/get_company_billing_entity_response"
|
|
312
|
+
require_relative "schematic/companies/types/get_billing_entity_child_subscriptions_params"
|
|
313
|
+
require_relative "schematic/types/company_billing_entity_subscription_response_data"
|
|
314
|
+
require_relative "schematic/companies/types/get_billing_entity_child_subscriptions_response"
|
|
307
315
|
require_relative "schematic/companies/types/list_company_memberships_params"
|
|
308
316
|
require_relative "schematic/types/company_membership_detail_response_data"
|
|
309
317
|
require_relative "schematic/companies/types/list_company_memberships_response"
|
|
@@ -661,6 +669,7 @@ require_relative "schematic/types/create_entitlement_req_common"
|
|
|
661
669
|
require_relative "schematic/types/event_body_flag_check"
|
|
662
670
|
require_relative "schematic/types/event_body_identify_company"
|
|
663
671
|
require_relative "schematic/types/event_body_identify"
|
|
672
|
+
require_relative "schematic/types/event_body_inference"
|
|
664
673
|
require_relative "schematic/types/event_body_track"
|
|
665
674
|
require_relative "schematic/types/event_body"
|
|
666
675
|
require_relative "schematic/types/create_event_request_body"
|
|
@@ -736,6 +745,7 @@ require_relative "schematic/types/upsert_trait_request_body"
|
|
|
736
745
|
require_relative "schematic/types/upsert_user_request_body"
|
|
737
746
|
require_relative "schematic/types/upsert_user_sub_request_body"
|
|
738
747
|
require_relative "schematic/types/usage_based_entitlement_request_body"
|
|
748
|
+
require_relative "schematic/types/warning_tier_request_body"
|
|
739
749
|
require_relative "schematic/types/web_feature_usage_webhook_output"
|
|
740
750
|
require_relative "schematic/types/web_scheduled_downgrade_webhook_output"
|
|
741
751
|
require_relative "schematic/types/webhook_event_response_data"
|
|
@@ -804,6 +814,8 @@ require_relative "schematic/companies/types/list_companies_request"
|
|
|
804
814
|
require_relative "schematic/companies/types/delete_company_request"
|
|
805
815
|
require_relative "schematic/companies/types/count_companies_request"
|
|
806
816
|
require_relative "schematic/companies/types/lookup_company_request"
|
|
817
|
+
require_relative "schematic/companies/types/get_company_billing_entity_request"
|
|
818
|
+
require_relative "schematic/companies/types/get_billing_entity_child_subscriptions_request"
|
|
807
819
|
require_relative "schematic/companies/types/list_company_memberships_request"
|
|
808
820
|
require_relative "schematic/companies/types/get_or_create_company_membership_request_body"
|
|
809
821
|
require_relative "schematic/companies/types/get_active_company_subscription_request"
|
data/reference.md
CHANGED
|
@@ -2017,6 +2017,14 @@ client.billing.upsert_invoice(
|
|
|
2017
2017
|
<dl>
|
|
2018
2018
|
<dd>
|
|
2019
2019
|
|
|
2020
|
+
**ending_balance:** `Integer`
|
|
2021
|
+
|
|
2022
|
+
</dd>
|
|
2023
|
+
</dl>
|
|
2024
|
+
|
|
2025
|
+
<dl>
|
|
2026
|
+
<dd>
|
|
2027
|
+
|
|
2020
2028
|
**external_id:** `String`
|
|
2021
2029
|
|
|
2022
2030
|
</dd>
|
|
@@ -2033,6 +2041,14 @@ client.billing.upsert_invoice(
|
|
|
2033
2041
|
<dl>
|
|
2034
2042
|
<dd>
|
|
2035
2043
|
|
|
2044
|
+
**starting_balance:** `Integer`
|
|
2045
|
+
|
|
2046
|
+
</dd>
|
|
2047
|
+
</dl>
|
|
2048
|
+
|
|
2049
|
+
<dl>
|
|
2050
|
+
<dd>
|
|
2051
|
+
|
|
2036
2052
|
**status:** `Schematic::Types::InvoiceStatus`
|
|
2037
2053
|
|
|
2038
2054
|
</dd>
|
|
@@ -3689,6 +3705,14 @@ client.billing.upsert_billing_subscription(
|
|
|
3689
3705
|
<dl>
|
|
3690
3706
|
<dd>
|
|
3691
3707
|
|
|
3708
|
+
**company_id:** `String`
|
|
3709
|
+
|
|
3710
|
+
</dd>
|
|
3711
|
+
</dl>
|
|
3712
|
+
|
|
3713
|
+
<dl>
|
|
3714
|
+
<dd>
|
|
3715
|
+
|
|
3692
3716
|
**currency:** `String`
|
|
3693
3717
|
|
|
3694
3718
|
</dd>
|
|
@@ -7613,6 +7637,102 @@ client.companies.lookup_company(keys: {
|
|
|
7613
7637
|
</dl>
|
|
7614
7638
|
|
|
7615
7639
|
|
|
7640
|
+
</dd>
|
|
7641
|
+
</dl>
|
|
7642
|
+
</details>
|
|
7643
|
+
|
|
7644
|
+
<details><summary><code>client.companies.<a href="/lib/schematic/companies/client.rb">get_company_billing_entity</a>() -> Schematic::Companies::Types::GetCompanyBillingEntityResponse</code></summary>
|
|
7645
|
+
<dl>
|
|
7646
|
+
<dd>
|
|
7647
|
+
|
|
7648
|
+
#### 🔌 Usage
|
|
7649
|
+
|
|
7650
|
+
<dl>
|
|
7651
|
+
<dd>
|
|
7652
|
+
|
|
7653
|
+
<dl>
|
|
7654
|
+
<dd>
|
|
7655
|
+
|
|
7656
|
+
```ruby
|
|
7657
|
+
client.companies.get_company_billing_entity(company_id: "company_id")
|
|
7658
|
+
```
|
|
7659
|
+
</dd>
|
|
7660
|
+
</dl>
|
|
7661
|
+
</dd>
|
|
7662
|
+
</dl>
|
|
7663
|
+
|
|
7664
|
+
#### ⚙️ Parameters
|
|
7665
|
+
|
|
7666
|
+
<dl>
|
|
7667
|
+
<dd>
|
|
7668
|
+
|
|
7669
|
+
<dl>
|
|
7670
|
+
<dd>
|
|
7671
|
+
|
|
7672
|
+
**company_id:** `String`
|
|
7673
|
+
|
|
7674
|
+
</dd>
|
|
7675
|
+
</dl>
|
|
7676
|
+
|
|
7677
|
+
<dl>
|
|
7678
|
+
<dd>
|
|
7679
|
+
|
|
7680
|
+
**request_options:** `Schematic::Companies::RequestOptions`
|
|
7681
|
+
|
|
7682
|
+
</dd>
|
|
7683
|
+
</dl>
|
|
7684
|
+
</dd>
|
|
7685
|
+
</dl>
|
|
7686
|
+
|
|
7687
|
+
|
|
7688
|
+
</dd>
|
|
7689
|
+
</dl>
|
|
7690
|
+
</details>
|
|
7691
|
+
|
|
7692
|
+
<details><summary><code>client.companies.<a href="/lib/schematic/companies/client.rb">get_billing_entity_child_subscriptions</a>() -> Schematic::Companies::Types::GetBillingEntityChildSubscriptionsResponse</code></summary>
|
|
7693
|
+
<dl>
|
|
7694
|
+
<dd>
|
|
7695
|
+
|
|
7696
|
+
#### 🔌 Usage
|
|
7697
|
+
|
|
7698
|
+
<dl>
|
|
7699
|
+
<dd>
|
|
7700
|
+
|
|
7701
|
+
<dl>
|
|
7702
|
+
<dd>
|
|
7703
|
+
|
|
7704
|
+
```ruby
|
|
7705
|
+
client.companies.get_billing_entity_child_subscriptions(company_id: "company_id")
|
|
7706
|
+
```
|
|
7707
|
+
</dd>
|
|
7708
|
+
</dl>
|
|
7709
|
+
</dd>
|
|
7710
|
+
</dl>
|
|
7711
|
+
|
|
7712
|
+
#### ⚙️ Parameters
|
|
7713
|
+
|
|
7714
|
+
<dl>
|
|
7715
|
+
<dd>
|
|
7716
|
+
|
|
7717
|
+
<dl>
|
|
7718
|
+
<dd>
|
|
7719
|
+
|
|
7720
|
+
**company_id:** `String`
|
|
7721
|
+
|
|
7722
|
+
</dd>
|
|
7723
|
+
</dl>
|
|
7724
|
+
|
|
7725
|
+
<dl>
|
|
7726
|
+
<dd>
|
|
7727
|
+
|
|
7728
|
+
**request_options:** `Schematic::Companies::RequestOptions`
|
|
7729
|
+
|
|
7730
|
+
</dd>
|
|
7731
|
+
</dl>
|
|
7732
|
+
</dd>
|
|
7733
|
+
</dl>
|
|
7734
|
+
|
|
7735
|
+
|
|
7616
7736
|
</dd>
|
|
7617
7737
|
</dl>
|
|
7618
7738
|
</details>
|
|
@@ -11231,6 +11351,14 @@ client.entitlements.create_plan_entitlement(
|
|
|
11231
11351
|
<dl>
|
|
11232
11352
|
<dd>
|
|
11233
11353
|
|
|
11354
|
+
**warning_tiers:** `Internal::Types::Array[Schematic::Types::WarningTierRequestBody]`
|
|
11355
|
+
|
|
11356
|
+
</dd>
|
|
11357
|
+
</dl>
|
|
11358
|
+
|
|
11359
|
+
<dl>
|
|
11360
|
+
<dd>
|
|
11361
|
+
|
|
11234
11362
|
**yearly_metered_price_id:** `String`
|
|
11235
11363
|
|
|
11236
11364
|
</dd>
|
|
@@ -11570,6 +11698,14 @@ client.entitlements.update_plan_entitlement(
|
|
|
11570
11698
|
<dl>
|
|
11571
11699
|
<dd>
|
|
11572
11700
|
|
|
11701
|
+
**warning_tiers:** `Internal::Types::Array[Schematic::Types::WarningTierRequestBody]`
|
|
11702
|
+
|
|
11703
|
+
</dd>
|
|
11704
|
+
</dl>
|
|
11705
|
+
|
|
11706
|
+
<dl>
|
|
11707
|
+
<dd>
|
|
11708
|
+
|
|
11573
11709
|
**yearly_metered_price_id:** `String`
|
|
11574
11710
|
|
|
11575
11711
|
</dd>
|
|
@@ -11944,6 +12080,14 @@ client.entitlements.upsert_plan_entitlement_for_billing_product(
|
|
|
11944
12080
|
<dl>
|
|
11945
12081
|
<dd>
|
|
11946
12082
|
|
|
12083
|
+
**warning_tiers:** `Internal::Types::Array[Schematic::Types::WarningTierRequestBody]`
|
|
12084
|
+
|
|
12085
|
+
</dd>
|
|
12086
|
+
</dl>
|
|
12087
|
+
|
|
12088
|
+
<dl>
|
|
12089
|
+
<dd>
|
|
12090
|
+
|
|
11947
12091
|
**yearly_metered_price_id:** `String`
|
|
11948
12092
|
|
|
11949
12093
|
</dd>
|
|
@@ -14326,14 +14470,6 @@ client.planbundle.create_plan_bundle(entitlements: [{
|
|
|
14326
14470
|
<dl>
|
|
14327
14471
|
<dd>
|
|
14328
14472
|
|
|
14329
|
-
**traits:** `Internal::Types::Array[Schematic::Types::UpdatePlanTraitTraitRequestBody]`
|
|
14330
|
-
|
|
14331
|
-
</dd>
|
|
14332
|
-
</dl>
|
|
14333
|
-
|
|
14334
|
-
<dl>
|
|
14335
|
-
<dd>
|
|
14336
|
-
|
|
14337
14473
|
**request_options:** `Schematic::Planbundle::RequestOptions`
|
|
14338
14474
|
|
|
14339
14475
|
</dd>
|
|
@@ -14427,14 +14563,6 @@ client.planbundle.update_plan_bundle(
|
|
|
14427
14563
|
<dl>
|
|
14428
14564
|
<dd>
|
|
14429
14565
|
|
|
14430
|
-
**traits:** `Internal::Types::Array[Schematic::Types::UpdatePlanTraitTraitRequestBody]`
|
|
14431
|
-
|
|
14432
|
-
</dd>
|
|
14433
|
-
</dl>
|
|
14434
|
-
|
|
14435
|
-
<dl>
|
|
14436
|
-
<dd>
|
|
14437
|
-
|
|
14438
14566
|
**request_options:** `Schematic::Planbundle::RequestOptions`
|
|
14439
14567
|
|
|
14440
14568
|
</dd>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: schematichq
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Schematic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-07-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: wasmtime
|
|
@@ -194,6 +194,12 @@ files:
|
|
|
194
194
|
- lib/schematic/companies/types/get_active_company_subscription_params.rb
|
|
195
195
|
- lib/schematic/companies/types/get_active_company_subscription_request.rb
|
|
196
196
|
- lib/schematic/companies/types/get_active_company_subscription_response.rb
|
|
197
|
+
- lib/schematic/companies/types/get_billing_entity_child_subscriptions_params.rb
|
|
198
|
+
- lib/schematic/companies/types/get_billing_entity_child_subscriptions_request.rb
|
|
199
|
+
- lib/schematic/companies/types/get_billing_entity_child_subscriptions_response.rb
|
|
200
|
+
- lib/schematic/companies/types/get_company_billing_entity_params.rb
|
|
201
|
+
- lib/schematic/companies/types/get_company_billing_entity_request.rb
|
|
202
|
+
- lib/schematic/companies/types/get_company_billing_entity_response.rb
|
|
197
203
|
- lib/schematic/companies/types/get_company_response.rb
|
|
198
204
|
- lib/schematic/companies/types/get_entity_trait_definition_response.rb
|
|
199
205
|
- lib/schematic/companies/types/get_entity_trait_values_params.rb
|
|
@@ -592,6 +598,7 @@ files:
|
|
|
592
598
|
- lib/schematic/types/audit_log_list_response_data.rb
|
|
593
599
|
- lib/schematic/types/audit_log_response_data.rb
|
|
594
600
|
- lib/schematic/types/billing_coupon_response_data.rb
|
|
601
|
+
- lib/schematic/types/billing_credit_auto_topup_availability.rb
|
|
595
602
|
- lib/schematic/types/billing_credit_bundle_response_data.rb
|
|
596
603
|
- lib/schematic/types/billing_credit_bundle_status.rb
|
|
597
604
|
- lib/schematic/types/billing_credit_bundle_type.rb
|
|
@@ -653,6 +660,8 @@ files:
|
|
|
653
660
|
- lib/schematic/types/checkout_settings_response_data.rb
|
|
654
661
|
- lib/schematic/types/checkout_subscription.rb
|
|
655
662
|
- lib/schematic/types/clerk_integration_config.rb
|
|
663
|
+
- lib/schematic/types/company_billing_entity_response_data.rb
|
|
664
|
+
- lib/schematic/types/company_billing_entity_subscription_response_data.rb
|
|
656
665
|
- lib/schematic/types/company_credit_balance.rb
|
|
657
666
|
- lib/schematic/types/company_credit_balance_response_data.rb
|
|
658
667
|
- lib/schematic/types/company_detail_response_data.rb
|
|
@@ -767,6 +776,7 @@ files:
|
|
|
767
776
|
- lib/schematic/types/event_body_flag_check.rb
|
|
768
777
|
- lib/schematic/types/event_body_identify.rb
|
|
769
778
|
- lib/schematic/types/event_body_identify_company.rb
|
|
779
|
+
- lib/schematic/types/event_body_inference.rb
|
|
770
780
|
- lib/schematic/types/event_body_track.rb
|
|
771
781
|
- lib/schematic/types/event_detail_response_data.rb
|
|
772
782
|
- lib/schematic/types/event_response_data.rb
|
|
@@ -947,6 +957,8 @@ files:
|
|
|
947
957
|
- lib/schematic/types/usage_time_series_point_response_data.rb
|
|
948
958
|
- lib/schematic/types/user_detail_response_data.rb
|
|
949
959
|
- lib/schematic/types/user_response_data.rb
|
|
960
|
+
- lib/schematic/types/warning_tier_request_body.rb
|
|
961
|
+
- lib/schematic/types/warning_tier_response_data.rb
|
|
950
962
|
- lib/schematic/types/web_feature_usage_webhook_output.rb
|
|
951
963
|
- lib/schematic/types/web_scheduled_downgrade_webhook_output.rb
|
|
952
964
|
- lib/schematic/types/webhook_event_detail_response_data.rb
|