schematichq 1.5.7 → 1.5.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 +5 -5
- data/.fern/replay.lock +13 -1
- data/README.md +7 -1
- data/lib/schematic/accesstokens/client.rb +1 -1
- data/lib/schematic/accounts/client.rb +15 -15
- data/lib/schematic/billing/client.rb +706 -83
- data/lib/schematic/billing/types/charge_native_invoice_response.rb +15 -0
- data/lib/schematic/billing/types/convert_company_trial_response.rb +15 -0
- data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +6 -0
- data/lib/schematic/billing/types/delete_contract_document_response.rb +15 -0
- data/lib/schematic/billing/types/end_company_trial_response.rb +15 -0
- data/lib/schematic/billing/types/get_company_contract_response.rb +15 -0
- data/lib/schematic/billing/types/get_company_trial_response.rb +15 -0
- data/lib/schematic/billing/types/get_company_upcoming_invoices_response.rb +15 -0
- data/lib/schematic/billing/types/move_to_default_plan_response.rb +15 -0
- data/lib/schematic/billing/types/reissue_native_invoice_link_response.rb +15 -0
- data/lib/schematic/billing/types/revoke_native_invoice_link_response.rb +15 -0
- data/lib/schematic/billing/types/start_company_trial_request_body.rb +21 -0
- data/lib/schematic/billing/types/start_company_trial_response.rb +15 -0
- data/lib/schematic/billing/types/update_billing_settings_request_body.rb +4 -0
- data/lib/schematic/billing/types/update_company_billing_profile_request_body.rb +6 -0
- data/lib/schematic/billing/types/update_company_trial_request_body.rb +15 -0
- data/lib/schematic/billing/types/update_company_trial_response.rb +15 -0
- data/lib/schematic/billing/types/upload_contract_document_request.rb +11 -0
- data/lib/schematic/billing/types/upload_contract_document_response.rb +15 -0
- data/lib/schematic/cache.rb +19 -2
- data/lib/schematic/catalogs/client.rb +16 -16
- data/lib/schematic/catalogs/types/update_catalog_configuration_request_body.rb +2 -0
- data/lib/schematic/checkout/client.rb +98 -9
- data/lib/schematic/checkout/types/checkout_data_request_body.rb +2 -0
- data/lib/schematic/checkout/types/pause_subscription_request.rb +15 -0
- data/lib/schematic/checkout/types/pause_subscription_response.rb +15 -0
- data/lib/schematic/checkout/types/resume_subscription_request.rb +13 -0
- data/lib/schematic/checkout/types/resume_subscription_response.rb +15 -0
- data/lib/schematic/client.rb +7 -196
- data/lib/schematic/companies/client.rb +140 -44
- data/lib/schematic/companies/types/get_billing_entity_settings_response.rb +15 -0
- data/lib/schematic/companies/types/list_users_params.rb +4 -0
- data/lib/schematic/companies/types/list_users_request.rb +4 -0
- data/lib/schematic/companies/types/update_billing_entity_settings_request_body.rb +13 -0
- data/lib/schematic/companies/types/update_billing_entity_settings_response.rb +15 -0
- data/lib/schematic/components/client.rb +8 -8
- data/lib/schematic/componentspublic/client.rb +1 -1
- data/lib/schematic/credits/client.rb +41 -41
- data/lib/schematic/customplangrouprollouts/client.rb +258 -0
- data/lib/schematic/customplangrouprollouts/types/copy_custom_plan_request_body.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/copy_custom_plan_response.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/get_group_rollout_response.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/list_group_rollouts_params.rb +14 -0
- data/lib/schematic/customplangrouprollouts/types/list_group_rollouts_request.rb +11 -0
- data/lib/schematic/customplangrouprollouts/types/list_group_rollouts_response.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/preview_group_rollout_params.rb +16 -0
- data/lib/schematic/customplangrouprollouts/types/preview_group_rollout_request.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/preview_group_rollout_response.rb +15 -0
- data/lib/schematic/customplangrouprollouts/types/start_group_rollout_request_body.rb +17 -0
- data/lib/schematic/customplangrouprollouts/types/start_group_rollout_response.rb +15 -0
- data/lib/schematic/dataexports/client.rb +4 -4
- data/lib/schematic/datastream/client.rb +52 -22
- data/lib/schematic/datastream/resource_cache.rb +13 -3
- data/lib/schematic/entitlements/client.rb +28 -28
- data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +2 -0
- data/lib/schematic/entitlements/types/create_company_override_request_body.rb +2 -0
- data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +2 -0
- data/lib/schematic/entitlements/types/update_company_override_request_body.rb +2 -0
- data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +2 -0
- data/lib/schematic/errors/response_error.rb +4 -2
- data/lib/schematic/events/client.rb +213 -9
- data/lib/schematic/events/types/create_account_inference_cost_rate_request_body.rb +19 -0
- data/lib/schematic/events/types/create_account_inference_cost_rate_response.rb +15 -0
- data/lib/schematic/events/types/delete_account_inference_cost_rate_response.rb +15 -0
- data/lib/schematic/events/types/list_account_inference_cost_rates_params.rb +20 -0
- data/lib/schematic/events/types/list_account_inference_cost_rates_request.rb +17 -0
- data/lib/schematic/events/types/list_account_inference_cost_rates_response.rb +15 -0
- data/lib/schematic/events/types/update_account_inference_cost_rate_request_body.rb +13 -0
- data/lib/schematic/events/types/update_account_inference_cost_rate_response.rb +15 -0
- data/lib/schematic/features/client.rb +18 -18
- data/lib/schematic/insights/client.rb +6 -6
- data/lib/schematic/integrationsapi/client.rb +14 -14
- data/lib/schematic/internal/http/raw_client.rb +2 -2
- data/lib/schematic/internal/iterators/offset_page_iterator.rb +2 -0
- data/lib/schematic/licenses/client.rb +3 -3
- data/lib/schematic/planbundle/client.rb +3 -3
- data/lib/schematic/plangroups/client.rb +3 -3
- data/lib/schematic/planmigrations/client.rb +11 -11
- data/lib/schematic/plans/client.rb +20 -20
- data/lib/schematic/redis_cache.rb +10 -1
- data/lib/schematic/scheduledcheckout/client.rb +4 -4
- data/lib/schematic/schematic_client.rb +21 -3
- data/lib/schematic/types/account_inference_cost_rate_response_data.rb +29 -0
- data/lib/schematic/types/billing_customer_subscription.rb +2 -0
- data/lib/schematic/types/billing_invoice_billing_details_response_data.rb +2 -0
- data/lib/schematic/types/billing_invoice_detail_response_data.rb +2 -0
- data/lib/schematic/types/billing_moved_to_default_plan_response_data.rb +15 -0
- data/lib/schematic/types/billing_native_subscription_response_data.rb +4 -0
- data/lib/schematic/types/billing_product_for_subscription_response_data.rb +2 -0
- data/lib/schematic/types/billing_product_plan_response_data.rb +2 -0
- data/lib/schematic/types/billing_settings_response_data.rb +4 -0
- data/lib/schematic/types/billing_subscription_pause_behavior.rb +15 -0
- data/lib/schematic/types/billing_subscription_response_data.rb +6 -0
- data/lib/schematic/types/billing_subscription_view.rb +6 -0
- data/lib/schematic/types/billing_upcoming_invoice_response_data.rb +43 -0
- data/lib/schematic/types/billing_upcoming_invoices_response_data.rb +13 -0
- data/lib/schematic/types/catalog_configuration_response_data.rb +2 -0
- data/lib/schematic/types/catalog_plan_response_data.rb +4 -0
- data/lib/schematic/types/catalog_response_data.rb +2 -0
- data/lib/schematic/types/checkout_subscription.rb +6 -0
- data/lib/schematic/types/company_billing_entity_settings_response_data.rb +15 -0
- data/lib/schematic/types/company_billing_entity_subscription_response_data.rb +10 -0
- data/lib/schematic/types/company_billing_profile_contract_response_data.rb +55 -0
- data/lib/schematic/types/company_billing_profile_document_response_data.rb +15 -0
- data/lib/schematic/types/company_override_response_data.rb +2 -0
- data/lib/schematic/types/company_subscription_response_data.rb +10 -0
- data/lib/schematic/types/company_trial_response_data.rb +35 -0
- data/lib/schematic/types/company_trial_status.rb +16 -0
- data/lib/schematic/types/contract_billing_details_request_body.rb +19 -0
- data/lib/schematic/types/contract_postpaid_credit_response_data.rb +23 -0
- data/lib/schematic/types/contract_postpaid_response_data.rb +15 -0
- data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +2 -0
- data/lib/schematic/types/create_entitlement_req_common.rb +2 -0
- data/lib/schematic/types/credit_burn_breakdown_line.rb +4 -0
- data/lib/schematic/types/credit_ledger_export_metadata.rb +25 -0
- data/lib/schematic/types/credit_ledger_export_metadata_event_type.rb +19 -0
- data/lib/schematic/types/credit_model_rate.rb +17 -0
- data/lib/schematic/types/custom_plan_billing_response_data.rb +2 -0
- data/lib/schematic/types/data_export_metadata.rb +2 -0
- data/lib/schematic/types/data_export_type.rb +1 -0
- data/lib/schematic/types/group_rollout_change_response_data.rb +13 -0
- data/lib/schematic/types/group_rollout_changes_response_data.rb +23 -0
- data/lib/schematic/types/group_rollout_company_response_data.rb +15 -0
- data/lib/schematic/types/group_rollout_company_result_response_data.rb +19 -0
- data/lib/schematic/types/group_rollout_preview_response_data.rb +19 -0
- data/lib/schematic/types/group_rollout_response_data.rb +25 -0
- data/lib/schematic/types/group_rollout_versions_request_body.rb +13 -0
- data/lib/schematic/types/manage_plan_request.rb +4 -0
- data/lib/schematic/types/manage_plan_response_response_data.rb +2 -0
- data/lib/schematic/types/migration_error_code.rb +1 -0
- data/lib/schematic/types/plan_change_action.rb +2 -0
- data/lib/schematic/types/plan_change_response_data.rb +4 -0
- data/lib/schematic/types/plan_entitlement_response_data.rb +2 -0
- data/lib/schematic/types/publish_plan_version_request_body.rb +8 -0
- data/lib/schematic/types/publish_preview_interval_change_response_data.rb +13 -0
- data/lib/schematic/types/publish_preview_response_data.rb +6 -0
- data/lib/schematic/types/scheduled_downgrade_response_data.rb +4 -0
- data/lib/schematic/types/stripe_integration_config.rb +2 -0
- data/lib/schematic/types/trial_source.rb +15 -0
- data/lib/schematic/types/update_entitlement_req_common.rb +2 -0
- data/lib/schematic/types/web_scheduled_downgrade_webhook_output.rb +2 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/webhooks/client.rb +10 -10
- data/lib/schematic.rb +79 -5
- data/reference.md +5208 -3800
- metadata +70 -2
|
@@ -41,6 +41,8 @@ module Schematic
|
|
|
41
41
|
|
|
42
42
|
field :number, -> { String }, optional: true, nullable: false
|
|
43
43
|
|
|
44
|
+
field :payment_method_id, -> { String }, optional: true, nullable: false
|
|
45
|
+
|
|
44
46
|
field :pdf_url, -> { String }, optional: true, nullable: false
|
|
45
47
|
|
|
46
48
|
field :period_end, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class BillingMovedToDefaultPlanResponseData < Internal::Types::Model
|
|
8
|
+
field :company_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :plan_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :voided_invoices, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -30,6 +30,10 @@ module Schematic
|
|
|
30
30
|
field :status, -> { Schematic::Types::SubscriptionStatus }, optional: false, nullable: false
|
|
31
31
|
|
|
32
32
|
field :terms, -> { Schematic::Types::BillingInvoiceTermsResponseData }, optional: true, nullable: false
|
|
33
|
+
|
|
34
|
+
field :trial_end, -> { String }, optional: true, nullable: false
|
|
35
|
+
|
|
36
|
+
field :trial_end_setting, -> { Schematic::Types::BillingSubscriptionTrialEndSetting }, optional: true, nullable: false
|
|
33
37
|
end
|
|
34
38
|
end
|
|
35
39
|
end
|
|
@@ -47,6 +47,8 @@ module Schematic
|
|
|
47
47
|
|
|
48
48
|
field :subscription_item_external_id, -> { String }, optional: true, nullable: false
|
|
49
49
|
|
|
50
|
+
field :tiers_mode, -> { Schematic::Types::BillingTiersMode }, optional: true, nullable: false
|
|
51
|
+
|
|
50
52
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
51
53
|
|
|
52
54
|
field :usage_type, -> { Schematic::Types::BillingPriceUsageType }, optional: false, nullable: false
|
|
@@ -25,6 +25,8 @@ module Schematic
|
|
|
25
25
|
|
|
26
26
|
field :plan_id, -> { String }, optional: false, nullable: false
|
|
27
27
|
|
|
28
|
+
field :quarterly_price_id, -> { String }, optional: true, nullable: false
|
|
29
|
+
|
|
28
30
|
field :trial_days, -> { Integer }, optional: true, nullable: false
|
|
29
31
|
|
|
30
32
|
field :yearly_price_id, -> { String }, optional: true, nullable: false
|
|
@@ -5,7 +5,11 @@ require_relative "../../schematic"
|
|
|
5
5
|
module Schematic
|
|
6
6
|
module Types
|
|
7
7
|
class BillingSettingsResponseData < Internal::Types::Model
|
|
8
|
+
field :default_collector, -> { Schematic::Types::Collector }, optional: false, nullable: false
|
|
9
|
+
|
|
8
10
|
field :default_provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :invoice_reply_to_email, -> { String }, optional: true, nullable: false
|
|
9
13
|
end
|
|
10
14
|
end
|
|
11
15
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
module BillingSubscriptionPauseBehavior
|
|
8
|
+
extend Schematic::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
KEEP_AS_DRAFT = "keep_as_draft"
|
|
11
|
+
MARK_UNCOLLECTIBLE = "mark_uncollectible"
|
|
12
|
+
VOID = "void"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -31,6 +31,12 @@ module Schematic
|
|
|
31
31
|
|
|
32
32
|
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
33
33
|
|
|
34
|
+
field :pause_behavior, -> { Schematic::Types::BillingSubscriptionPauseBehavior }, optional: true, nullable: false
|
|
35
|
+
|
|
36
|
+
field :pause_resumes_at, -> { Integer }, optional: true, nullable: false
|
|
37
|
+
|
|
38
|
+
field :paused_at, -> { String }, optional: true, nullable: false
|
|
39
|
+
|
|
34
40
|
field :period_end, -> { Integer }, optional: false, nullable: false
|
|
35
41
|
|
|
36
42
|
field :period_start, -> { Integer }, optional: false, nullable: false
|
|
@@ -35,6 +35,12 @@ module Schematic
|
|
|
35
35
|
|
|
36
36
|
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
37
37
|
|
|
38
|
+
field :pause_behavior, -> { Schematic::Types::BillingSubscriptionPauseBehavior }, optional: true, nullable: false
|
|
39
|
+
|
|
40
|
+
field :pause_resumes_at, -> { Integer }, optional: true, nullable: false
|
|
41
|
+
|
|
42
|
+
field :paused_at, -> { String }, optional: true, nullable: false
|
|
43
|
+
|
|
38
44
|
field :payment_method, -> { Schematic::Types::PaymentMethodResponseData }, optional: true, nullable: false
|
|
39
45
|
|
|
40
46
|
field :period_end, -> { Integer }, optional: false, nullable: false
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class BillingUpcomingInvoiceResponseData < Internal::Types::Model
|
|
8
|
+
field :amount_due, -> { Integer }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :at, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :change_id, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :discount, -> { Integer }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :due_at, -> { String }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :ending_balance, -> { Integer }, optional: false, nullable: false
|
|
21
|
+
|
|
22
|
+
field :lines, -> { Internal::Types::Array[Schematic::Types::BillingStatementLineResponseData] }, optional: false, nullable: false
|
|
23
|
+
|
|
24
|
+
field :period_end, -> { String }, optional: false, nullable: false
|
|
25
|
+
|
|
26
|
+
field :period_start, -> { String }, optional: false, nullable: false
|
|
27
|
+
|
|
28
|
+
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
29
|
+
|
|
30
|
+
field :starting_balance, -> { Integer }, optional: false, nullable: false
|
|
31
|
+
|
|
32
|
+
field :subscription_external_id, -> { String }, optional: true, nullable: false
|
|
33
|
+
|
|
34
|
+
field :subscription_id, -> { String }, optional: true, nullable: false
|
|
35
|
+
|
|
36
|
+
field :subtotal, -> { Integer }, optional: false, nullable: false
|
|
37
|
+
|
|
38
|
+
field :tax, -> { Integer }, optional: false, nullable: false
|
|
39
|
+
|
|
40
|
+
field :total, -> { Integer }, optional: false, nullable: false
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class BillingUpcomingInvoicesResponseData < Internal::Types::Model
|
|
8
|
+
field :company_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :invoices, -> { Internal::Types::Array[Schematic::Types::BillingUpcomingInvoiceResponseData] }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :custom_plan_cta_url, -> { String }, optional: true, nullable: false
|
|
13
13
|
|
|
14
|
+
field :custom_plan_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :custom_plan_price_text, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :custom_plans_visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
@@ -15,6 +15,10 @@ module Schematic
|
|
|
15
15
|
|
|
16
16
|
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::CatalogCurrencyPricesResponseData] }, optional: false, nullable: false
|
|
17
17
|
|
|
18
|
+
field :custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
19
|
+
|
|
20
|
+
field :custom_plan_cta, -> { Schematic::Types::CatalogCustomPlanCtaResponseData }, optional: true, nullable: false
|
|
21
|
+
|
|
18
22
|
field :description, -> { String }, optional: false, nullable: false
|
|
19
23
|
|
|
20
24
|
field :entitlements, -> { Internal::Types::Array[Schematic::Types::CatalogPlanEntitlementResponseData] }, optional: false, nullable: false
|
|
@@ -13,6 +13,8 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
field :custom_plan_cta_url, -> { String }, optional: true, nullable: false
|
|
15
15
|
|
|
16
|
+
field :custom_plan_id, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
16
18
|
field :custom_plan_price_text, -> { String }, optional: true, nullable: false
|
|
17
19
|
|
|
18
20
|
field :custom_plans_visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
@@ -39,6 +39,12 @@ module Schematic
|
|
|
39
39
|
|
|
40
40
|
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
41
41
|
|
|
42
|
+
field :pause_behavior, -> { Schematic::Types::BillingSubscriptionPauseBehavior }, optional: true, nullable: false
|
|
43
|
+
|
|
44
|
+
field :pause_resumes_at, -> { Integer }, optional: true, nullable: false
|
|
45
|
+
|
|
46
|
+
field :paused_at, -> { String }, optional: true, nullable: false
|
|
47
|
+
|
|
42
48
|
field :period_end, -> { Integer }, optional: false, nullable: false
|
|
43
49
|
|
|
44
50
|
field :period_start, -> { Integer }, optional: false, nullable: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class CompanyBillingEntitySettingsResponseData < Internal::Types::Model
|
|
8
|
+
field :billing_date, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :children_may_change_plan, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :company_id, -> { String }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -25,8 +25,18 @@ module Schematic
|
|
|
25
25
|
|
|
26
26
|
field :latest_invoice, -> { Schematic::Types::InvoiceResponseData }, optional: true, nullable: false
|
|
27
27
|
|
|
28
|
+
field :pause_behavior, -> { Schematic::Types::BillingSubscriptionPauseBehavior }, optional: true, nullable: false
|
|
29
|
+
|
|
30
|
+
field :pause_resumes_at, -> { String }, optional: true, nullable: false
|
|
31
|
+
|
|
32
|
+
field :paused_at, -> { String }, optional: true, nullable: false
|
|
33
|
+
|
|
28
34
|
field :payment_method, -> { Schematic::Types::PaymentMethodResponseData }, optional: true, nullable: false
|
|
29
35
|
|
|
36
|
+
field :period_end, -> { String }, optional: true, nullable: false
|
|
37
|
+
|
|
38
|
+
field :period_start, -> { String }, optional: true, nullable: false
|
|
39
|
+
|
|
30
40
|
field :plan_name, -> { String }, optional: false, nullable: false
|
|
31
41
|
|
|
32
42
|
field :products, -> { Internal::Types::Array[Schematic::Types::BillingProductForSubscriptionResponseData] }, optional: false, nullable: false
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class CompanyBillingProfileContractResponseData < Internal::Types::Model
|
|
8
|
+
field :account_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :billing_customer_id, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :billing_details, -> { Schematic::Types::BillingInvoiceBillingDetailsResponseData }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :collection_method, -> { Schematic::Types::BillingCollectionMethod }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :collector, -> { Schematic::Types::Collector }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :company_id, -> { String }, optional: false, nullable: false
|
|
19
|
+
|
|
20
|
+
field :contract_document, -> { Schematic::Types::CompanyBillingProfileDocumentResponseData }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
23
|
+
|
|
24
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :days_until_due, -> { Integer }, optional: true, nullable: false
|
|
27
|
+
|
|
28
|
+
field :environment_id, -> { String }, optional: false, nullable: false
|
|
29
|
+
|
|
30
|
+
field :gating_days, -> { Integer }, optional: false, nullable: false
|
|
31
|
+
|
|
32
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
33
|
+
|
|
34
|
+
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
35
|
+
|
|
36
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
37
|
+
|
|
38
|
+
field :overdraft_limit, -> { Integer }, optional: true, nullable: false
|
|
39
|
+
|
|
40
|
+
field :payment_gating, -> { Schematic::Types::PaymentGating }, optional: false, nullable: false
|
|
41
|
+
|
|
42
|
+
field :payment_method_id, -> { String }, optional: true, nullable: false
|
|
43
|
+
|
|
44
|
+
field :postpaid, -> { Schematic::Types::ContractPostpaidResponseData }, optional: true, nullable: false
|
|
45
|
+
|
|
46
|
+
field :proration_behavior, -> { Schematic::Types::ProrationBehavior }, optional: true, nullable: false
|
|
47
|
+
|
|
48
|
+
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
49
|
+
|
|
50
|
+
field :purchase_order, -> { String }, optional: true, nullable: false
|
|
51
|
+
|
|
52
|
+
field :updated_at, -> { String }, optional: false, nullable: false
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class CompanyBillingProfileDocumentResponseData < Internal::Types::Model
|
|
8
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :size, -> { Integer }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :uploaded_at, -> { String }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -27,6 +27,8 @@ module Schematic
|
|
|
27
27
|
|
|
28
28
|
field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
|
|
29
29
|
|
|
30
|
+
field :model_rates, -> { Internal::Types::Array[Schematic::Types::CreditModelRate] }, optional: true, nullable: false
|
|
31
|
+
|
|
30
32
|
field :notes, -> { Internal::Types::Array[Schematic::Types::CompanyOverrideNoteResponseData] }, optional: false, nullable: false
|
|
31
33
|
|
|
32
34
|
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
@@ -23,8 +23,18 @@ module Schematic
|
|
|
23
23
|
|
|
24
24
|
field :latest_invoice, -> { Schematic::Types::InvoiceResponseData }, optional: true, nullable: false
|
|
25
25
|
|
|
26
|
+
field :pause_behavior, -> { Schematic::Types::BillingSubscriptionPauseBehavior }, optional: true, nullable: false
|
|
27
|
+
|
|
28
|
+
field :pause_resumes_at, -> { String }, optional: true, nullable: false
|
|
29
|
+
|
|
30
|
+
field :paused_at, -> { String }, optional: true, nullable: false
|
|
31
|
+
|
|
26
32
|
field :payment_method, -> { Schematic::Types::PaymentMethodResponseData }, optional: true, nullable: false
|
|
27
33
|
|
|
34
|
+
field :period_end, -> { String }, optional: true, nullable: false
|
|
35
|
+
|
|
36
|
+
field :period_start, -> { String }, optional: true, nullable: false
|
|
37
|
+
|
|
28
38
|
field :products, -> { Internal::Types::Array[Schematic::Types::BillingProductForSubscriptionResponseData] }, optional: false, nullable: false
|
|
29
39
|
|
|
30
40
|
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class CompanyTrialResponseData < Internal::Types::Model
|
|
8
|
+
field :company_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :end_behavior, -> { Schematic::Types::BillingSubscriptionTrialEndSetting }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :ended_at, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :ends_at, -> { String }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
19
|
+
|
|
20
|
+
field :plan_id, -> { String }, optional: false, nullable: false
|
|
21
|
+
|
|
22
|
+
field :plan_version_id, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :source, -> { Schematic::Types::TrialSource }, optional: false, nullable: false
|
|
25
|
+
|
|
26
|
+
field :started_at, -> { String }, optional: false, nullable: false
|
|
27
|
+
|
|
28
|
+
field :status, -> { Schematic::Types::CompanyTrialStatus }, optional: false, nullable: false
|
|
29
|
+
|
|
30
|
+
field :subscription_id, -> { String }, optional: true, nullable: false
|
|
31
|
+
|
|
32
|
+
field :updated_at, -> { String }, optional: false, nullable: false
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
module CompanyTrialStatus
|
|
8
|
+
extend Schematic::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
ACTIVE = "active"
|
|
11
|
+
CANCELED = "canceled"
|
|
12
|
+
CONVERTED = "converted"
|
|
13
|
+
EXPIRED = "expired"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class ContractBillingDetailsRequestBody < Internal::Types::Model
|
|
8
|
+
field :address, -> { Schematic::Types::CustomerBillingAddress }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :legal_name, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :tax_ids, -> { Internal::Types::Array[Schematic::Types::TaxIdInput] }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class ContractPostpaidCreditResponseData < Internal::Types::Model
|
|
8
|
+
field :counts_toward_limit, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :credit_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :debt, -> { Float }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :grant_cap, -> { Float }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :owed, -> { Integer }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :rate_per_unit, -> { String }, optional: true, nullable: false
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class ContractPostpaidResponseData < Internal::Types::Model
|
|
8
|
+
field :credits, -> { Internal::Types::Array[Schematic::Types::ContractPostpaidCreditResponseData] }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :owed, -> { Integer }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -21,6 +21,8 @@ module Schematic
|
|
|
21
21
|
|
|
22
22
|
field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
|
|
23
23
|
|
|
24
|
+
field :model_rates, -> { Internal::Types::Array[Schematic::Types::CreditModelRate] }, optional: true, nullable: false
|
|
25
|
+
|
|
24
26
|
field :monthly_metered_price_id, -> { String }, optional: true, nullable: false
|
|
25
27
|
|
|
26
28
|
field :monthly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
|
|
@@ -13,6 +13,8 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
|
|
15
15
|
|
|
16
|
+
field :model_rates, -> { Internal::Types::Array[Schematic::Types::CreditModelRate] }, optional: true, nullable: false
|
|
17
|
+
|
|
16
18
|
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
17
19
|
|
|
18
20
|
field :value_bool, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -9,6 +9,10 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :key, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :provider, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
12
16
|
field :quantity, -> { Float }, optional: false, nullable: false
|
|
13
17
|
|
|
14
18
|
field :rate, -> { Float }, optional: false, nullable: false
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class CreditLedgerExportMetadata < Internal::Types::Model
|
|
8
|
+
field :billing_credit_id, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :end_time, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :event_type, -> { Schematic::Types::CreditLedgerExportMetadataEventType }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :feature_id, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :notification_email_recipient_email_addresses, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :source_event_id, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :start_time, -> { String }, optional: true, nullable: false
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
module CreditLedgerExportMetadataEventType
|
|
8
|
+
extend Schematic::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
ADJUSTMENT = "adjustment"
|
|
11
|
+
CHARGE = "charge"
|
|
12
|
+
GRANT = "grant"
|
|
13
|
+
SETTLEMENT = "settlement"
|
|
14
|
+
TRANSFER = "transfer"
|
|
15
|
+
USAGE = "usage"
|
|
16
|
+
ZERO_OUT = "zero_out"
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class CreditModelRate < Internal::Types::Model
|
|
8
|
+
field :consumption_rate, -> { Float }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :model, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -9,6 +9,8 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :billing_cycle_anchor, -> { String }, optional: true, nullable: false
|
|
11
11
|
|
|
12
|
+
field :billing_entity_id, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
12
14
|
field :billing_start_date, -> { String }, optional: true, nullable: false
|
|
13
15
|
|
|
14
16
|
field :checkout_id, -> { String }, optional: true, nullable: false
|
|
@@ -13,6 +13,8 @@ module Schematic
|
|
|
13
13
|
|
|
14
14
|
member -> { Schematic::Types::CompanyFeatureUsageExportMetadata }, key: "COMPANY_FEATURE_USAGE"
|
|
15
15
|
|
|
16
|
+
member -> { Schematic::Types::CreditLedgerExportMetadata }, key: "CREDIT_LEDGER"
|
|
17
|
+
|
|
16
18
|
member -> { Schematic::Types::EventExportMetadata }, key: "EVENT"
|
|
17
19
|
end
|
|
18
20
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class GroupRolloutChangeResponseData < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class GroupRolloutChangesResponseData < Internal::Types::Model
|
|
8
|
+
field :credit_grants_added, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :credit_grants_changed, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :credit_grants_removed, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :entitlements_added, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :entitlements_changed, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :entitlements_removed, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
|
|
19
|
+
|
|
20
|
+
field :price_changed, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|