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
@@ -1,5 +1,5 @@
{
"cliVersion": "4.76.1",
"cliVersion": "5.6.0",
"generatorName": "fernapi/fern-ruby-sdk",
"generatorVersion": "1.1.13",
"generatorConfig": {
Expand All @@ -13,6 +13,6 @@
"webrick": ">= 1.0"
}
},
"originGitCommit": "65ef3b80b68cd7596daad7fa53232ea510ad01f2",
"originGitCommit": "4fd82021eff164a6f2484d4504850c46fe8f4a95",
"sdkVersion": "1.4.1"
}
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ GEM
rexml
hashdiff (1.2.1)
io-console (0.8.2)
json (2.19.4)
json (2.19.5)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
method_source (1.1.0)
Expand Down
31 changes: 27 additions & 4 deletions lib/schematic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
require_relative "schematic/accounts/types/list_account_members_response"
require_relative "schematic/accounts/types/get_account_member_response"
require_relative "schematic/accounts/types/list_api_keys_params"
require_relative "schematic/types/integration_state"
require_relative "schematic/types/integration_type"
require_relative "schematic/types/api_key_integration_response_data"
require_relative "schematic/types/api_key_scope"
require_relative "schematic/types/environment_type"
require_relative "schematic/types/environment_response_data"
Expand Down Expand Up @@ -201,6 +204,7 @@
require_relative "schematic/credits/types/count_credit_event_ledger_response"
require_relative "schematic/types/checkout_subscription"
require_relative "schematic/checkout/types/checkout_internal_response"
require_relative "schematic/types/credit_currency_price"
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"
Expand All @@ -211,7 +215,7 @@
require_relative "schematic/types/metric_period_month_reset"
require_relative "schematic/types/company_event_period_metrics_response_data"
require_relative "schematic/types/generic_preview_object"
require_relative "schematic/types/plan_credit_grant_view"
require_relative "schematic/types/company_plan_credit_grant_view"
require_relative "schematic/types/company_plan_with_billing_sub_view"
require_relative "schematic/types/comparable_operator"
require_relative "schematic/types/condition_type"
Expand Down Expand Up @@ -385,6 +389,7 @@
require_relative "schematic/entitlements/types/upsert_plan_entitlement_for_billing_product_response"
require_relative "schematic/entitlements/types/count_plan_entitlements_params"
require_relative "schematic/entitlements/types/count_plan_entitlements_response"
require_relative "schematic/types/plan_issue_response_data"
require_relative "schematic/types/skipped_entitlement_error_response_data"
require_relative "schematic/types/skipped_entitlement_response_data"
require_relative "schematic/types/duplicate_plan_entitlements_response_response_data"
Expand Down Expand Up @@ -413,7 +418,6 @@
require_relative "schematic/plans/types/count_plans_params"
require_relative "schematic/plans/types/count_plans_response"
require_relative "schematic/plans/types/list_plan_issues_params"
require_relative "schematic/types/plan_issue_response_data"
require_relative "schematic/plans/types/list_plan_issues_response"
require_relative "schematic/plans/types/delete_plan_version_params"
require_relative "schematic/plans/types/delete_plan_version_response"
Expand All @@ -435,6 +439,7 @@
require_relative "schematic/types/billing_credit_bundle_view"
require_relative "schematic/types/company_plan_invalid_reason"
require_relative "schematic/types/custom_plan_config"
require_relative "schematic/types/plan_credit_grant_view"
require_relative "schematic/types/company_plan_detail_response_data"
require_relative "schematic/types/compatible_plans"
require_relative "schematic/types/component_capabilities"
Expand Down Expand Up @@ -514,9 +519,22 @@
require_relative "schematic/insights/types/get_environment_trait_usage_time_series_params"
require_relative "schematic/types/environment_trait_usage_time_series_response_data"
require_relative "schematic/insights/types/get_environment_trait_usage_time_series_response"
require_relative "schematic/types/integration_type"
require_relative "schematic/types/integrations_response_data"
require_relative "schematic/integrationsapi/types/run_integration_response"
require_relative "schematic/integrationsapi/types/list_integrations_params"
require_relative "schematic/types/clerk_integration_config"
require_relative "schematic/types/integration_capabilities"
require_relative "schematic/types/orb_integration_config"
require_relative "schematic/types/stripe_integration_config"
require_relative "schematic/types/integration_config"
require_relative "schematic/types/integrations_list_response_data"
require_relative "schematic/integrationsapi/types/list_integrations_response"
require_relative "schematic/types/integration_webhook_url_response_data"
require_relative "schematic/integrationsapi/types/get_integration_webhook_url_response"
require_relative "schematic/integrationsapi/types/start_data_import_response"
require_relative "schematic/types/integrations_data_set_response_data"
require_relative "schematic/integrationsapi/types/load_sample_data_set_v_2_response"
require_relative "schematic/integrationsapi/types/uninstall_integration_response"
require_relative "schematic/types/plan_bundle_response_data"
require_relative "schematic/planbundle/types/create_plan_bundle_response"
require_relative "schematic/planbundle/types/update_plan_bundle_response"
Expand Down Expand Up @@ -589,11 +607,13 @@
require_relative "schematic/types/capture_raw_event"
require_relative "schematic/types/capture_raw_event_batch"
require_relative "schematic/types/update_add_on_request_body"
require_relative "schematic/types/update_auto_topup_override_request_body"
require_relative "schematic/types/update_credit_bundle_request_body"
require_relative "schematic/types/update_pay_in_advance_request_body"
require_relative "schematic/types/change_subscription_internal_request_body"
require_relative "schematic/types/change_subscription_request_body"
require_relative "schematic/types/check_flag_request_body"
require_relative "schematic/types/company_matching_criteria"
require_relative "schematic/types/company_membership_response_data"
require_relative "schematic/types/component_hydrate_response_data"
require_relative "schematic/types/condition_group_response_data"
Expand All @@ -608,10 +628,10 @@
require_relative "schematic/types/currency_price_request_body"
require_relative "schematic/types/create_entitlement_in_bundle_request_body"
require_relative "schematic/types/create_entitlement_req_common"
require_relative "schematic/types/event_body_track"
require_relative "schematic/types/event_body_flag_check"
require_relative "schematic/types/event_body_identify_company"
require_relative "schematic/types/event_body_identify"
require_relative "schematic/types/event_body_track"
require_relative "schematic/types/event_body"
require_relative "schematic/types/create_event_request_body"
require_relative "schematic/types/create_flag_request_body"
Expand All @@ -636,6 +656,7 @@
require_relative "schematic/types/flag_view"
require_relative "schematic/types/feature_view"
require_relative "schematic/types/feature_usage_legacy_response_data"
require_relative "schematic/types/integration_response_data"
require_relative "schematic/types/invoice_request_body"
require_relative "schematic/types/keys_request_body"
require_relative "schematic/types/plan_selection"
Expand Down Expand Up @@ -829,6 +850,8 @@
require_relative "schematic/insights/types/get_top_features_by_usage_request"
require_relative "schematic/insights/types/get_environment_trait_usage_time_series_request"
require_relative "schematic/integrationsapi/client"
require_relative "schematic/integrationsapi/types/list_integrations_request"
require_relative "schematic/integrationsapi/types/start_data_import_request_body"
require_relative "schematic/planbundle/client"
require_relative "schematic/planbundle/types/create_plan_bundle_request_body"
require_relative "schematic/planbundle/types/update_plan_bundle_request_body"
Expand Down
8 changes: 6 additions & 2 deletions lib/schematic/billing/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ def upsert_billing_product(request_options: {}, **params)
# @option params [Schematic::Types::BillingPriceUsageType, nil] :price_usage_type
# @option params [Schematic::Types::BillingProviderType, nil] :provider_type
# @option params [String, nil] :q
# @option params [Boolean, nil] :recurring_charges_only
# @option params [Boolean, nil] :with_one_time_charges
# @option params [Boolean, nil] :with_prices_only
# @option params [Boolean, nil] :with_zero_price
Expand All @@ -729,14 +730,15 @@ def upsert_billing_product(request_options: {}, **params)
# @return [Schematic::Billing::Types::ListBillingProductsResponse]
def list_billing_products(request_options: {}, **params)
params = Schematic::Internal::Types::Utils.normalize_keys(params)
query_param_names = %i[ids is_active name price_usage_type provider_type q with_one_time_charges with_prices_only with_zero_price without_linked_to_plan limit offset]
query_param_names = %i[ids is_active name price_usage_type provider_type q recurring_charges_only with_one_time_charges with_prices_only with_zero_price without_linked_to_plan limit offset]
query_params = {}
query_params["ids"] = params[:ids] if params.key?(:ids)
query_params["is_active"] = params[:is_active] if params.key?(:is_active)
query_params["name"] = params[:name] if params.key?(:name)
query_params["price_usage_type"] = params[:price_usage_type] if params.key?(:price_usage_type)
query_params["provider_type"] = params[:provider_type] if params.key?(:provider_type)
query_params["q"] = params[:q] if params.key?(:q)
query_params["recurring_charges_only"] = params[:recurring_charges_only] if params.key?(:recurring_charges_only)
query_params["with_one_time_charges"] = params[:with_one_time_charges] if params.key?(:with_one_time_charges)
query_params["with_prices_only"] = params[:with_prices_only] if params.key?(:with_prices_only)
query_params["with_zero_price"] = params[:with_zero_price] if params.key?(:with_zero_price)
Expand Down Expand Up @@ -779,6 +781,7 @@ def list_billing_products(request_options: {}, **params)
# @option params [Schematic::Types::BillingPriceUsageType, nil] :price_usage_type
# @option params [Schematic::Types::BillingProviderType, nil] :provider_type
# @option params [String, nil] :q
# @option params [Boolean, nil] :recurring_charges_only
# @option params [Boolean, nil] :with_one_time_charges
# @option params [Boolean, nil] :with_prices_only
# @option params [Boolean, nil] :with_zero_price
Expand All @@ -789,14 +792,15 @@ def list_billing_products(request_options: {}, **params)
# @return [Schematic::Billing::Types::CountBillingProductsResponse]
def count_billing_products(request_options: {}, **params)
params = Schematic::Internal::Types::Utils.normalize_keys(params)
query_param_names = %i[ids is_active name price_usage_type provider_type q with_one_time_charges with_prices_only with_zero_price without_linked_to_plan limit offset]
query_param_names = %i[ids is_active name price_usage_type provider_type q recurring_charges_only with_one_time_charges with_prices_only with_zero_price without_linked_to_plan limit offset]
query_params = {}
query_params["ids"] = params[:ids] if params.key?(:ids)
query_params["is_active"] = params[:is_active] if params.key?(:is_active)
query_params["name"] = params[:name] if params.key?(:name)
query_params["price_usage_type"] = params[:price_usage_type] if params.key?(:price_usage_type)
query_params["provider_type"] = params[:provider_type] if params.key?(:provider_type)
query_params["q"] = params[:q] if params.key?(:q)
query_params["recurring_charges_only"] = params[:recurring_charges_only] if params.key?(:recurring_charges_only)
query_params["with_one_time_charges"] = params[:with_one_time_charges] if params.key?(:with_one_time_charges)
query_params["with_prices_only"] = params[:with_prices_only] if params.key?(:with_prices_only)
query_params["with_zero_price"] = params[:with_zero_price] if params.key?(:with_zero_price)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class CountBillingProductsParams < Internal::Types::Model
field :price_usage_type, -> { Schematic::Types::BillingPriceUsageType }, optional: true, nullable: false
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
field :q, -> { String }, optional: true, nullable: false
field :recurring_charges_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_one_time_charges, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_prices_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_zero_price, -> { Internal::Types::Boolean }, optional: true, nullable: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class CountBillingProductsRequest < Internal::Types::Model
field :price_usage_type, -> { Schematic::Types::BillingPriceUsageType }, optional: true, nullable: false
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
field :q, -> { String }, optional: true, nullable: false
field :recurring_charges_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_one_time_charges, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_prices_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_zero_price, -> { Internal::Types::Boolean }, optional: true, nullable: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class ListBillingProductsParams < Internal::Types::Model
field :price_usage_type, -> { Schematic::Types::BillingPriceUsageType }, optional: true, nullable: false
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
field :q, -> { String }, optional: true, nullable: false
field :recurring_charges_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_one_time_charges, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_prices_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_zero_price, -> { Internal::Types::Boolean }, optional: true, nullable: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class ListBillingProductsRequest < Internal::Types::Model
field :price_usage_type, -> { Schematic::Types::BillingPriceUsageType }, optional: true, nullable: false
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: true, nullable: false
field :q, -> { String }, optional: true, nullable: false
field :recurring_charges_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_one_time_charges, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_prices_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
field :with_zero_price, -> { Internal::Types::Boolean }, optional: true, nullable: false
Expand Down
8 changes: 6 additions & 2 deletions lib/schematic/credits/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -863,19 +863,21 @@ def count_credit_ledger(request_options: {}, **params)
# @option params [String, nil] :plan_id
# @option params [String, nil] :plan_ids
# @option params [String, nil] :plan_version_id
# @option params [String, nil] :plan_version_ids
# @option params [Integer, nil] :limit
# @option params [Integer, nil] :offset
#
# @return [Schematic::Credits::Types::ListBillingPlanCreditGrantsResponse]
def list_billing_plan_credit_grants(request_options: {}, **params)
params = Schematic::Internal::Types::Utils.normalize_keys(params)
query_param_names = %i[credit_id ids plan_id plan_ids plan_version_id limit offset]
query_param_names = %i[credit_id ids plan_id plan_ids plan_version_id plan_version_ids limit offset]
query_params = {}
query_params["credit_id"] = params[:credit_id] if params.key?(:credit_id)
query_params["ids"] = params[:ids] if params.key?(:ids)
query_params["plan_id"] = params[:plan_id] if params.key?(:plan_id)
query_params["plan_ids"] = params[:plan_ids] if params.key?(:plan_ids)
query_params["plan_version_id"] = params[:plan_version_id] if params.key?(:plan_version_id)
query_params["plan_version_ids"] = params[:plan_version_ids] if params.key?(:plan_version_ids)
query_params["limit"] = params[:limit] if params.key?(:limit)
query_params["offset"] = params[:offset] if params.key?(:offset)
params.except(*query_param_names)
Expand Down Expand Up @@ -1049,19 +1051,21 @@ def delete_billing_plan_credit_grant(request_options: {}, **params)
# @option params [String, nil] :plan_id
# @option params [String, nil] :plan_ids
# @option params [String, nil] :plan_version_id
# @option params [String, nil] :plan_version_ids
# @option params [Integer, nil] :limit
# @option params [Integer, nil] :offset
#
# @return [Schematic::Credits::Types::CountBillingPlanCreditGrantsResponse]
def count_billing_plan_credit_grants(request_options: {}, **params)
params = Schematic::Internal::Types::Utils.normalize_keys(params)
query_param_names = %i[credit_id ids plan_id plan_ids plan_version_id limit offset]
query_param_names = %i[credit_id ids plan_id plan_ids plan_version_id plan_version_ids limit offset]
query_params = {}
query_params["credit_id"] = params[:credit_id] if params.key?(:credit_id)
query_params["ids"] = params[:ids] if params.key?(:ids)
query_params["plan_id"] = params[:plan_id] if params.key?(:plan_id)
query_params["plan_ids"] = params[:plan_ids] if params.key?(:plan_ids)
query_params["plan_version_id"] = params[:plan_version_id] if params.key?(:plan_version_id)
query_params["plan_version_ids"] = params[:plan_version_ids] if params.key?(:plan_version_ids)
query_params["limit"] = params[:limit] if params.key?(:limit)
query_params["offset"] = params[:offset] if params.key?(:offset)
params.except(*query_param_names)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class CountBillingPlanCreditGrantsParams < Internal::Types::Model
field :plan_id, -> { String }, optional: true, nullable: false
field :plan_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
field :plan_version_id, -> { String }, optional: true, nullable: false
field :plan_version_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class CountBillingPlanCreditGrantsRequest < Internal::Types::Model
field :plan_id, -> { String }, optional: true, nullable: false
field :plan_ids, -> { String }, optional: true, nullable: false
field :plan_version_id, -> { String }, optional: true, nullable: false
field :plan_version_ids, -> { String }, optional: true, nullable: false
field :limit, -> { Integer }, optional: true, nullable: false
field :offset, -> { Integer }, optional: true, nullable: false
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class ListBillingPlanCreditGrantsParams < Internal::Types::Model
field :plan_id, -> { String }, optional: true, nullable: false
field :plan_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
field :plan_version_id, -> { String }, optional: true, nullable: false
field :plan_version_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
end
end
end
Expand Down
Loading