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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class GroupRolloutCompanyResponseData < Internal::Types::Model
|
|
8
|
+
field :company, -> { Schematic::Types::CompanyResponseData }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :plan_id, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class GroupRolloutCompanyResultResponseData < Internal::Types::Model
|
|
8
|
+
field :company_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :error, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :plan_id, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :plan_version_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :status, -> { String }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class GroupRolloutPreviewResponseData < Internal::Types::Model
|
|
8
|
+
field :changes, -> { Schematic::Types::GroupRolloutChangesResponseData }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :companies, -> { Internal::Types::Array[Schematic::Types::GroupRolloutCompanyResponseData] }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :from_plan_version_id, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :payer_company_id, -> { String }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :to_plan_version_id, -> { String }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class GroupRolloutResponseData < Internal::Types::Model
|
|
8
|
+
field :companies, -> { Internal::Types::Array[Schematic::Types::GroupRolloutCompanyResultResponseData] }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :from_plan_version_id, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :payer_company_id, -> { String }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :plan_id, -> { String }, optional: false, nullable: false
|
|
19
|
+
|
|
20
|
+
field :to_plan_version_id, -> { String }, optional: false, nullable: false
|
|
21
|
+
|
|
22
|
+
field :updated_at, -> { String }, optional: false, nullable: false
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class GroupRolloutVersionsRequestBody < Internal::Types::Model
|
|
8
|
+
field :from_plan_version_id, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :to_plan_version_id, -> { String }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -9,6 +9,8 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :add_on_selections, -> { Internal::Types::Array[Schematic::Types::PlanSelection] }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
+
field :align_with_billing_entity, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
13
|
+
|
|
12
14
|
field :base_plan_id, -> { String }, optional: true, nullable: false
|
|
13
15
|
|
|
14
16
|
field :base_plan_price_id, -> { String }, optional: true, nullable: false
|
|
@@ -21,6 +23,8 @@ module Schematic
|
|
|
21
23
|
|
|
22
24
|
field :billing_entity_id, -> { String }, optional: true, nullable: false
|
|
23
25
|
|
|
26
|
+
field :billing_period, -> { Schematic::Types::PlanPriceCadence }, optional: true, nullable: false
|
|
27
|
+
|
|
24
28
|
field :cancel_immediately, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
25
29
|
|
|
26
30
|
field :collection_method, -> { Schematic::Types::BillingCollectionMethod }, optional: true, nullable: false
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :problems, -> { Internal::Types::Array[Schematic::Types::CheckoutProblemResponseData] }, optional: false, nullable: false
|
|
13
13
|
|
|
14
|
+
field :scheduled_change_at, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
15
17
|
end
|
|
16
18
|
end
|
|
@@ -8,6 +8,7 @@ module Schematic
|
|
|
8
8
|
extend Schematic::Internal::Types::Enum
|
|
9
9
|
|
|
10
10
|
AMBIGUOUS_SUBSCRIPTION_ITEM = "ambiguous_subscription_item"
|
|
11
|
+
MIXED_BILLING_INTERVALS = "mixed_billing_intervals"
|
|
11
12
|
MULTIPLE_SUBSCRIPTIONS = "multiple_subscriptions"
|
|
12
13
|
NO_PRICE_FOR_INTERVAL = "no_price_for_interval"
|
|
13
14
|
NOT_ON_ORIGIN_VERSION = "not_on_origin_version"
|
|
@@ -16,12 +16,14 @@ module Schematic
|
|
|
16
16
|
INVOICE_PAST_DUE = "invoice_past_due"
|
|
17
17
|
MANAGE_PLAN = "manage_plan"
|
|
18
18
|
MIGRATION = "migration"
|
|
19
|
+
PAST_DUE_DEFAULT_PLAN = "past_due_default_plan"
|
|
19
20
|
PLAN_BILLING_PRODUCT_CHANGED = "plan_billing_product_changed"
|
|
20
21
|
PLAN_DELETED = "plan_deleted"
|
|
21
22
|
PLAN_TRAIT_CHANGE = "plan_trait_change"
|
|
22
23
|
PLAN_VERSION_MIGRATION = "plan_version_migration"
|
|
23
24
|
QUICKSTART = "quickstart"
|
|
24
25
|
SUBSCRIPTION_CHANGE = "subscription_change"
|
|
26
|
+
TRIAL = "trial"
|
|
25
27
|
end
|
|
26
28
|
end
|
|
27
29
|
end
|
|
@@ -25,6 +25,8 @@ module Schematic
|
|
|
25
25
|
|
|
26
26
|
field :base_plan_version, -> { Schematic::Types::PlanVersionSnapshotView }, optional: true, nullable: false
|
|
27
27
|
|
|
28
|
+
field :billing_interval, -> { String }, optional: true, nullable: false
|
|
29
|
+
|
|
28
30
|
field :company, -> { Schematic::Types::CompanyResponseData }, optional: true, nullable: false
|
|
29
31
|
|
|
30
32
|
field :company_id, -> { String }, optional: false, nullable: false
|
|
@@ -45,6 +47,8 @@ module Schematic
|
|
|
45
47
|
|
|
46
48
|
field :previous_base_plan_version, -> { Schematic::Types::PlanVersionSnapshotView }, optional: true, nullable: false
|
|
47
49
|
|
|
50
|
+
field :previous_billing_interval, -> { String }, optional: true, nullable: false
|
|
51
|
+
|
|
48
52
|
field :request_id, -> { String }, optional: true, nullable: false
|
|
49
53
|
|
|
50
54
|
field :subscription_change_action, -> { Schematic::Types::PlanChangeSubscriptionAction }, optional: true, nullable: false
|
|
@@ -33,6 +33,8 @@ module Schematic
|
|
|
33
33
|
|
|
34
34
|
field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
|
|
35
35
|
|
|
36
|
+
field :model_rates, -> { Internal::Types::Array[Schematic::Types::CreditModelRate] }, optional: true, nullable: false
|
|
37
|
+
|
|
36
38
|
field :overage_billing_cadence, -> { Schematic::Types::BillingArrearsCadence }, optional: true, nullable: false
|
|
37
39
|
|
|
38
40
|
field :overage_invoice_anchor, -> { Schematic::Types::BillingArrearsAnchor }, optional: true, nullable: false
|
|
@@ -9,8 +9,12 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :address, -> { Schematic::Types::CustomerBillingAddress }, optional: true, nullable: false
|
|
11
11
|
|
|
12
|
+
field :align_with_billing_entity, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
13
|
+
|
|
12
14
|
field :billing_cycle_anchor, -> { String }, optional: true, nullable: false
|
|
13
15
|
|
|
16
|
+
field :billing_entity_id, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
14
18
|
field :billing_start_date, -> { String }, optional: true, nullable: false
|
|
15
19
|
|
|
16
20
|
field :collection_method, -> { Schematic::Types::BillingCollectionMethod }, optional: true, nullable: false
|
|
@@ -46,6 +50,10 @@ module Schematic
|
|
|
46
50
|
field :send_invoice, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
47
51
|
|
|
48
52
|
field :tax_id, -> { Schematic::Types::TaxIdInput }, optional: true, nullable: false
|
|
53
|
+
|
|
54
|
+
field :trial_end, -> { String }, optional: true, nullable: false
|
|
55
|
+
|
|
56
|
+
field :trial_end_behavior, -> { Schematic::Types::BillingSubscriptionTrialEndSetting }, optional: true, nullable: false
|
|
49
57
|
end
|
|
50
58
|
end
|
|
51
59
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
class PublishPreviewIntervalChangeResponseData < Internal::Types::Model
|
|
8
|
+
field :from, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :to, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -7,6 +7,10 @@ module Schematic
|
|
|
7
7
|
class PublishPreviewResponseData < Internal::Types::Model
|
|
8
8
|
field :billing_email, -> { String }, optional: true, nullable: false
|
|
9
9
|
|
|
10
|
+
field :billing_entity_id, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :billing_entity_name, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
10
14
|
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
11
15
|
|
|
12
16
|
field :current_period_end, -> { String }, optional: true, nullable: false
|
|
@@ -27,6 +31,8 @@ module Schematic
|
|
|
27
31
|
|
|
28
32
|
field :immediate_invoice_amount, -> { Integer }, optional: true, nullable: false
|
|
29
33
|
|
|
34
|
+
field :interval_change, -> { Schematic::Types::PublishPreviewIntervalChangeResponseData }, optional: true, nullable: false
|
|
35
|
+
|
|
30
36
|
field :lands_on, -> { Schematic::Types::AmendmentProrationLandsOn }, optional: false, nullable: false
|
|
31
37
|
|
|
32
38
|
field :new_recurring_amount, -> { Integer }, optional: true, nullable: false
|
|
@@ -19,8 +19,12 @@ module Schematic
|
|
|
19
19
|
|
|
20
20
|
field :interval, -> { String }, optional: false, nullable: false
|
|
21
21
|
|
|
22
|
+
field :interval_count, -> { Integer }, optional: false, nullable: false
|
|
23
|
+
|
|
22
24
|
field :scheduled_interval, -> { String }, optional: true, nullable: false
|
|
23
25
|
|
|
26
|
+
field :scheduled_interval_count, -> { Integer }, optional: true, nullable: false
|
|
27
|
+
|
|
24
28
|
field :scheduled_price, -> { Integer }, optional: true, nullable: false
|
|
25
29
|
|
|
26
30
|
field :to_plan_id, -> { String }, optional: false, nullable: false
|
|
@@ -23,6 +23,8 @@ module Schematic
|
|
|
23
23
|
|
|
24
24
|
field :onboard_url, -> { String }, optional: true, nullable: false
|
|
25
25
|
|
|
26
|
+
field :payments_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
27
|
+
|
|
26
28
|
field :return_to, -> { String }, optional: true, nullable: false
|
|
27
29
|
end
|
|
28
30
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../schematic"
|
|
4
|
+
|
|
5
|
+
module Schematic
|
|
6
|
+
module Types
|
|
7
|
+
module TrialSource
|
|
8
|
+
extend Schematic::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
API = "api"
|
|
11
|
+
CUSTOM_PLAN = "custom_plan"
|
|
12
|
+
SUBSCRIPTION = "subscription"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -11,6 +11,8 @@ module Schematic
|
|
|
11
11
|
|
|
12
12
|
field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
|
|
13
13
|
|
|
14
|
+
field :model_rates, -> { Internal::Types::Array[Schematic::Types::CreditModelRate] }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :value_bool, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -15,6 +15,8 @@ module Schematic
|
|
|
15
15
|
|
|
16
16
|
field :scheduled_interval, -> { String }, optional: true, nullable: false
|
|
17
17
|
|
|
18
|
+
field :scheduled_interval_count, -> { Integer }, optional: true, nullable: false
|
|
19
|
+
|
|
18
20
|
field :scheduled_price, -> { Integer }, optional: true, nullable: false
|
|
19
21
|
|
|
20
22
|
field :to_plan, -> { Schematic::Types::PlanSnapshotView }, optional: true, nullable: false
|
data/lib/schematic/version.rb
CHANGED
|
@@ -67,7 +67,7 @@ module Schematic
|
|
|
67
67
|
500 => Schematic::Types::ApiError
|
|
68
68
|
}
|
|
69
69
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
70
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
70
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -109,7 +109,7 @@ module Schematic
|
|
|
109
109
|
500 => Schematic::Types::ApiError
|
|
110
110
|
}
|
|
111
111
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
112
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
112
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
@@ -170,7 +170,7 @@ module Schematic
|
|
|
170
170
|
500 => Schematic::Types::ApiError
|
|
171
171
|
}
|
|
172
172
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
173
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
173
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
|
|
@@ -225,7 +225,7 @@ module Schematic
|
|
|
225
225
|
500 => Schematic::Types::ApiError
|
|
226
226
|
}
|
|
227
227
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
228
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
228
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
229
229
|
end
|
|
230
230
|
end
|
|
231
231
|
|
|
@@ -272,7 +272,7 @@ module Schematic
|
|
|
272
272
|
500 => Schematic::Types::ApiError
|
|
273
273
|
}
|
|
274
274
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
275
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
275
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
276
276
|
end
|
|
277
277
|
end
|
|
278
278
|
|
|
@@ -314,7 +314,7 @@ module Schematic
|
|
|
314
314
|
500 => Schematic::Types::ApiError
|
|
315
315
|
}
|
|
316
316
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
317
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
317
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
318
318
|
end
|
|
319
319
|
end
|
|
320
320
|
|
|
@@ -362,7 +362,7 @@ module Schematic
|
|
|
362
362
|
500 => Schematic::Types::ApiError
|
|
363
363
|
}
|
|
364
364
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
365
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
365
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
366
366
|
end
|
|
367
367
|
end
|
|
368
368
|
|
|
@@ -405,7 +405,7 @@ module Schematic
|
|
|
405
405
|
500 => Schematic::Types::ApiError
|
|
406
406
|
}
|
|
407
407
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
408
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
408
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
409
409
|
end
|
|
410
410
|
end
|
|
411
411
|
|
|
@@ -456,7 +456,7 @@ module Schematic
|
|
|
456
456
|
500 => Schematic::Types::ApiError
|
|
457
457
|
}
|
|
458
458
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
459
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
459
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
460
460
|
end
|
|
461
461
|
end
|
|
462
462
|
|
|
@@ -511,7 +511,7 @@ module Schematic
|
|
|
511
511
|
500 => Schematic::Types::ApiError
|
|
512
512
|
}
|
|
513
513
|
error_body = Schematic::Errors::ResponseError.load_error_body(code, response.body, error_types)
|
|
514
|
-
raise error_class.new(response.body, code: code, body: error_body)
|
|
514
|
+
raise error_class.new(response.body, code: code, body: error_body, headers: response.to_hash)
|
|
515
515
|
end
|
|
516
516
|
end
|
|
517
517
|
end
|