diff --git a/.fern/metadata.json b/.fern/metadata.json index 7d3d867..98b6f0b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -13,6 +13,6 @@ "webrick": ">= 1.0" } }, - "originGitCommit": "26286134afce586aa5dbd02bffc9f25da6217032", - "sdkVersion": "1.4.6" + "originGitCommit": "deb8532a1f84f6daa08b5c611a66a5ec92f53f0e", + "sdkVersion": "1.4.7" } \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 0ce66c4..b6a2a93 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - schematichq (1.4.6) + schematichq (1.4.7) wasmtime (>= 19.0) websocket (>= 1.2) @@ -18,7 +18,7 @@ GEM rexml hashdiff (1.2.1) io-console (0.8.2) - json (2.19.9) + json (2.20.0) language_server-protocol (3.17.0.5) lint_roller (1.1.0) method_source (1.1.0) @@ -64,12 +64,12 @@ GEM unicode-display_width (3.2.0) unicode-emoji (~> 4.1) unicode-emoji (4.2.0) - wasmtime (45.0.0-aarch64-linux) - wasmtime (45.0.0-aarch64-linux-musl) - wasmtime (45.0.0-arm64-darwin) - wasmtime (45.0.0-x86_64-darwin) - wasmtime (45.0.0-x86_64-linux) - wasmtime (45.0.0-x86_64-linux-musl) + wasmtime (46.0.0-aarch64-linux) + wasmtime (46.0.0-aarch64-linux-musl) + wasmtime (46.0.0-arm64-darwin) + wasmtime (46.0.0-x86_64-darwin) + wasmtime (46.0.0-x86_64-linux) + wasmtime (46.0.0-x86_64-linux-musl) webmock (3.26.2) addressable (>= 2.8.0) crack (>= 0.3.2) diff --git a/lib/schematic.rb b/lib/schematic.rb index cae6cee..82f4591 100644 --- a/lib/schematic.rb +++ b/lib/schematic.rb @@ -329,6 +329,7 @@ require_relative "schematic/types/plan_change_action" require_relative "schematic/types/plan_change_base_plan_action" require_relative "schematic/companies/types/list_plan_changes_params" +require_relative "schematic/types/integration_response_data" require_relative "schematic/types/plan_change_subscription_action" require_relative "schematic/types/plan_snapshot_view" require_relative "schematic/types/plan_version_snapshot_view" @@ -550,7 +551,6 @@ require_relative "schematic/integrationsapi/types/get_integration_webhook_url_response" require_relative "schematic/types/company_matching_criteria" require_relative "schematic/types/integration_install_config" -require_relative "schematic/types/integration_response_data" require_relative "schematic/types/integration_install_response_data" require_relative "schematic/integrationsapi/types/install_integration_response" require_relative "schematic/integrationsapi/types/start_data_import_response" diff --git a/lib/schematic/checkout/types/checkout_data_request_body.rb b/lib/schematic/checkout/types/checkout_data_request_body.rb index aa7625e..368657a 100644 --- a/lib/schematic/checkout/types/checkout_data_request_body.rb +++ b/lib/schematic/checkout/types/checkout_data_request_body.rb @@ -5,6 +5,7 @@ module Checkout module Types class CheckoutDataRequestBody < Internal::Types::Model field :company_id, -> { String }, optional: false, nullable: false + field :currency, -> { String }, optional: true, nullable: false field :selected_plan_id, -> { String }, optional: true, nullable: false end end diff --git a/lib/schematic/client.rb b/lib/schematic/client.rb index cbf180d..3ffa35a 100644 --- a/lib/schematic/client.rb +++ b/lib/schematic/client.rb @@ -10,7 +10,7 @@ def initialize(api_key:, base_url: nil) @raw_client = Schematic::Internal::Http::RawClient.new( base_url: base_url || Schematic::Environment::DEFAULT, headers: { - "User-Agent" => "schematichq/1.4.6", + "User-Agent" => "schematichq/1.4.7", "X-Fern-Language" => "Ruby", "X-Schematic-Api-Key" => api_key.to_s } diff --git a/lib/schematic/plans/types/publish_plan_version_request_body.rb b/lib/schematic/plans/types/publish_plan_version_request_body.rb index a62d8a2..42f4fb8 100644 --- a/lib/schematic/plans/types/publish_plan_version_request_body.rb +++ b/lib/schematic/plans/types/publish_plan_version_request_body.rb @@ -6,6 +6,7 @@ module Types class PublishPlanVersionRequestBody < Internal::Types::Model field :plan_id, -> { String }, optional: false, nullable: false field :activation_strategy, -> { Schematic::Types::CustomPlanActivationStrategy }, optional: true, nullable: false + field :coupon_external_id, -> { String }, optional: true, nullable: false field :customer_email, -> { String }, optional: true, nullable: false field :days_until_due, -> { Integer }, optional: true, nullable: false field :excluded_company_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false diff --git a/lib/schematic/types/plan_change_response_data.rb b/lib/schematic/types/plan_change_response_data.rb index 4599a82..d25d025 100644 --- a/lib/schematic/types/plan_change_response_data.rb +++ b/lib/schematic/types/plan_change_response_data.rb @@ -17,6 +17,7 @@ class PlanChangeResponseData < Internal::Types::Model field :created_at, -> { String }, optional: false, nullable: false field :environment_id, -> { String }, optional: false, nullable: false field :id, -> { String }, optional: false, nullable: false + field :integration, -> { Schematic::Types::IntegrationResponseData }, optional: true, nullable: false field :is_version_upgrade, -> { Internal::Types::Boolean }, optional: false, nullable: false field :previous_base_plan, -> { Schematic::Types::PlanSnapshotView }, optional: true, nullable: false field :previous_base_plan_version, -> { Schematic::Types::PlanVersionSnapshotView }, optional: true, nullable: false diff --git a/lib/schematic/types/rules_engine_schema_version.rb b/lib/schematic/types/rules_engine_schema_version.rb index 3b67ae6..ed490c8 100644 --- a/lib/schematic/types/rules_engine_schema_version.rb +++ b/lib/schematic/types/rules_engine_schema_version.rb @@ -5,7 +5,7 @@ module Types module RulesEngineSchemaVersion extend Schematic::Internal::Types::Enum - V_97288_F_60 = "v97288f60" + V_5_B_3_E_7220 = "v5b3e7220" PLACEHOLDER_FOR_FERN_COMPATIBILITY = "placeholder-for-fern-compatibility" end end diff --git a/lib/schematic/version.rb b/lib/schematic/version.rb index b2a5626..dc70e40 100644 --- a/lib/schematic/version.rb +++ b/lib/schematic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Schematic - VERSION = "1.4.6" + VERSION = "1.4.7" end diff --git a/reference.md b/reference.md index 1254b06..430093f 100644 --- a/reference.md +++ b/reference.md @@ -6490,6 +6490,14 @@ client.checkout.get_checkout_data(company_id: "company_id")