Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"webrick": ">= 1.0"
}
},
"originGitCommit": "a0658700ca9b3d362ce6594c0740c41d9286e429",
"sdkVersion": "1.4.1"
"originGitCommit": "3dc12b536625ca1efbb649f6c55df7da258c7e05",
"sdkVersion": "1.4.2"
}
10 changes: 10 additions & 0 deletions .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ lib/schematichq.rb
scripts/
test/custom.test.rb
testapp/
.fern/replay.lock
.fern/replay.yml
.gitattributes
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.fern/replay.lock linguist-generated=true
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
schematichq (1.4.1)
schematichq (1.4.2)
wasmtime (>= 19.0)
websocket (>= 1.2)

Expand Down
1 change: 1 addition & 0 deletions lib/schematic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
require_relative "schematic/types/billing_credit_view"
require_relative "schematic/types/billing_linked_resource_response_data"
require_relative "schematic/types/billing_product_for_subscription_response_data"
require_relative "schematic/types/billing_strategy"
require_relative "schematic/types/billing_subscription_discount_view"
require_relative "schematic/types/billing_subscription_view"
require_relative "schematic/types/charge_type"
Expand Down
2 changes: 1 addition & 1 deletion lib/schematic/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
"User-Agent" => "schematichq/1.4.2",
"X-Fern-Language" => "Ruby",
"X-Schematic-Api-Key" => api_key.to_s
}
Expand Down
1 change: 1 addition & 0 deletions lib/schematic/types/billing_product_plan_response_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Types
class BillingProductPlanResponseData < Internal::Types::Model
field :account_id, -> { String }, optional: false, nullable: false
field :billing_product_id, -> { String }, optional: false, nullable: false
field :billing_strategy, -> { Schematic::Types::BillingStrategy }, optional: false, nullable: false
field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
field :controlled_by, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
field :environment_id, -> { String }, optional: false, nullable: false
Expand Down
13 changes: 13 additions & 0 deletions lib/schematic/types/billing_strategy.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

module Schematic
module Types
module BillingStrategy
extend Schematic::Internal::Types::Enum

SCHEMATIC_MANAGED = "schematic_managed"
PROVIDER_MANAGED = "provider_managed"
NO_BILLING = "no_billing"
end
end
end
1 change: 1 addition & 0 deletions lib/schematic/types/charge_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module ChargeType
extend Schematic::Internal::Types::Enum

FREE = "free"
NONE = "none"
ONE_TIME = "one_time"
RECURRING = "recurring"
end
Expand Down
1 change: 1 addition & 0 deletions lib/schematic/types/company_plan_detail_response_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class CompanyPlanDetailResponseData < Internal::Types::Model
field :audience_type, -> { String }, optional: true, nullable: false
field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
field :billing_product, -> { Schematic::Types::BillingProductDetailResponseData }, optional: true, nullable: false
field :billing_strategy, -> { Schematic::Types::BillingStrategy }, optional: false, nullable: false
field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
field :company_can_trial, -> { Internal::Types::Boolean }, optional: false, nullable: false
field :company_count, -> { Integer }, optional: false, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/schematic/types/create_event_request_body.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
module Schematic
module Types
class CreateEventRequestBody < Internal::Types::Model
field :backfill, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :body, -> { Schematic::Types::EventBody }, optional: true, nullable: false
field :event_type, -> { Schematic::Types::EventType }, optional: false, nullable: false
field :idempotency_key, -> { String }, optional: true, nullable: false
field :sent_at, -> { String }, optional: true, nullable: false
field :trusted_client_clock, -> { Internal::Types::Boolean }, optional: true, nullable: false
end
end
end
2 changes: 2 additions & 0 deletions lib/schematic/types/data_event_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ module Schematic
module Types
class DataEventPayload < Internal::Types::Model
field :api_key, -> { String }, optional: false, nullable: false
field :backfill, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :body, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
field :idempotency_key, -> { String }, optional: true, nullable: false
field :sent_at, -> { String }, optional: true, nullable: false
field :trusted_client_clock, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :type, -> { Schematic::Types::EventType }, optional: false, nullable: false
end
end
Expand Down
1 change: 1 addition & 0 deletions lib/schematic/types/plan_detail_response_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class PlanDetailResponseData < Internal::Types::Model
field :audience_type, -> { String }, optional: true, nullable: false
field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
field :billing_product, -> { Schematic::Types::BillingProductDetailResponseData }, optional: true, nullable: false
field :billing_strategy, -> { Schematic::Types::BillingStrategy }, optional: false, nullable: false
field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
field :company_count, -> { Integer }, optional: false, nullable: false
field :company_id, -> { String }, optional: true, nullable: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class PlanGroupPlanDetailResponseData < Internal::Types::Model
field :audience_type, -> { String }, optional: true, nullable: false
field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
field :billing_product, -> { Schematic::Types::BillingProductDetailResponseData }, optional: true, nullable: false
field :billing_strategy, -> { Schematic::Types::BillingStrategy }, optional: false, nullable: false
field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
field :company_count, -> { Integer }, optional: false, nullable: false
field :company_id, -> { String }, optional: true, nullable: false
Expand Down
1 change: 1 addition & 0 deletions lib/schematic/types/plan_view_public_response_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class PlanViewPublicResponseData < Internal::Types::Model
field :audience_type, -> { String }, optional: true, nullable: false
field :billing_linked_resource, -> { Schematic::Types::BillingLinkedResourceResponseData }, optional: true, nullable: false
field :billing_product, -> { Schematic::Types::BillingProductDetailResponseData }, optional: true, nullable: false
field :billing_strategy, -> { Schematic::Types::BillingStrategy }, optional: false, nullable: false
field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
field :company_count, -> { Integer }, optional: false, nullable: false
field :company_id, -> { String }, optional: true, nullable: false
Expand Down
1 change: 1 addition & 0 deletions lib/schematic/types/upsert_billing_product_request_body.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Schematic
module Types
class UpsertBillingProductRequestBody < Internal::Types::Model
field :billing_product_id, -> { String }, optional: true, nullable: false
field :billing_strategy, -> { Schematic::Types::BillingStrategy }, optional: true, nullable: false
field :charge_type, -> { Schematic::Types::ChargeType }, optional: false, nullable: false
field :currency, -> { String }, optional: true, nullable: false
field :currency_prices, -> { Internal::Types::Array[Schematic::Types::PlanCurrencyPriceRequestBody] }, optional: true, nullable: false
Expand Down
2 changes: 1 addition & 1 deletion lib/schematic/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Schematic
VERSION = "1.4.1"
VERSION = "1.4.2"
end