diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f14b480a..aaf968a1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.2" + ".": "0.1.0-alpha.3" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d485b474..ac3b3020 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.1.0-alpha.3 (2025-02-06) + +Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.2...v0.1.0-alpha.3) + +### Bug Fixes + +* sorbet request method signatures should support default values ([#8](https://github.com/orbcorp/orb-ruby/issues/8)) ([8c16b32](https://github.com/orbcorp/orb-ruby/commit/8c16b3236ef57d2dfec07abc397460a0f8a4abb9)) + + +### Chores + +* **internal:** version bump ([#6](https://github.com/orbcorp/orb-ruby/issues/6)) ([c9eff92](https://github.com/orbcorp/orb-ruby/commit/c9eff92e7d797af0922215f92007a5eeefc4219f)) + ## 0.1.0-alpha.2 (2025-02-06) Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.1...v0.1.0-alpha.2) diff --git a/Gemfile.lock b/Gemfile.lock index c0636800..4d539833 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.1) + orb (0.1.0.pre.alpha.2) connection_pool GEM diff --git a/lib/orb/base_client.rb b/lib/orb/base_client.rb index f920237a..679c3fc8 100644 --- a/lib/orb/base_client.rb +++ b/lib/orb/base_client.rb @@ -143,7 +143,7 @@ def initialize( end timeout = opts.fetch(:timeout, @timeout).to_f.clamp((0..)) - unless headers.key?("x-stainless-read-timeout") or timeout.zero? + unless headers.key?("x-stainless-read-timeout") || timeout.zero? headers["x-stainless-read-timeout"] = timeout.to_s end diff --git a/lib/orb/resources/customers/credits/ledger.rb b/lib/orb/resources/customers/credits/ledger.rb index 0d013480..8e77771a 100644 --- a/lib/orb/resources/customers/credits/ledger.rb +++ b/lib/orb/resources/customers/credits/ledger.rb @@ -248,6 +248,14 @@ def list(customer_id, params = {}) # # @option params [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType] :entry_type # + # @option params [Time, nil] :expiry_date An ISO 8601 format date that identifies the origination credit block to expire + # + # @option params [Date] :target_expiry_date A future date (specified in YYYY-MM-DD format) used for expiration change, + # denoting when credits transferred (as part of a partial block expiration) should + # expire. + # + # @option params [String] :block_id The ID of the block to reverse a decrement from. + # # @option params [String, nil] :currency The currency or custom pricing unit to use for this ledger entry. If this is a # real-world currency, it must match the customer's invoicing currency. # @@ -258,8 +266,6 @@ def list(customer_id, params = {}) # @option params [Time, nil] :effective_date An ISO 8601 format date that denotes when this credit balance should become # available for use. # - # @option params [Time, nil] :expiry_date An ISO 8601 format date that identifies the origination credit block to expire - # # @option params [Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, nil] :invoice_settings Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify # per_unit_cost_basis, as the calculation of the invoice total is done on that @@ -272,12 +278,6 @@ def list(customer_id, params = {}) # @option params [String, nil] :per_unit_cost_basis Can only be specified when entry_type=increment. How much, in the customer's # currency, a customer paid for a single credit in this block # - # @option params [Date] :target_expiry_date A future date (specified in YYYY-MM-DD format) used for expiration change, - # denoting when credits transferred (as part of a partial block expiration) should - # expire. - # - # @option params [String] :block_id The ID of the block to reverse a decrement from. - # # @option params [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason, nil] :void_reason Can only be specified when `entry_type=void`. The reason for the void. # # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options @@ -415,6 +415,14 @@ def create_entry(customer_id, params) # # @option params [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType] :entry_type # + # @option params [Time, nil] :expiry_date An ISO 8601 format date that identifies the origination credit block to expire + # + # @option params [Date] :target_expiry_date A future date (specified in YYYY-MM-DD format) used for expiration change, + # denoting when credits transferred (as part of a partial block expiration) should + # expire. + # + # @option params [String] :block_id The ID of the block to reverse a decrement from. + # # @option params [String, nil] :currency The currency or custom pricing unit to use for this ledger entry. If this is a # real-world currency, it must match the customer's invoicing currency. # @@ -425,8 +433,6 @@ def create_entry(customer_id, params) # @option params [Time, nil] :effective_date An ISO 8601 format date that denotes when this credit balance should become # available for use. # - # @option params [Time, nil] :expiry_date An ISO 8601 format date that identifies the origination credit block to expire - # # @option params [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, nil] :invoice_settings Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify # per_unit_cost_basis, as the calculation of the invoice total is done on that @@ -439,12 +445,6 @@ def create_entry(customer_id, params) # @option params [String, nil] :per_unit_cost_basis Can only be specified when entry_type=increment. How much, in the customer's # currency, a customer paid for a single credit in this block # - # @option params [Date] :target_expiry_date A future date (specified in YYYY-MM-DD format) used for expiration change, - # denoting when credits transferred (as part of a partial block expiration) should - # expire. - # - # @option params [String] :block_id The ID of the block to reverse a decrement from. - # # @option params [Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason, nil] :void_reason Can only be specified when `entry_type=void`. The reason for the void. # # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options diff --git a/lib/orb/resources/prices.rb b/lib/orb/resources/prices.rb index 7b27c09a..71042afb 100644 --- a/lib/orb/resources/prices.rb +++ b/lib/orb/resources/prices.rb @@ -31,31 +31,6 @@ class Prices # # @option params [Orb::Models::PriceCreateParams::UnitConfig] :unit_config # - # @option params [String, nil] :billable_metric_id The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @option params [Boolean, nil] :billed_in_advance If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @option params [Orb::Models::PriceCreateParams::BillingCycleConfiguration, nil] :billing_cycle_configuration For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @option params [Float, nil] :conversion_rate The per unit conversion rate of the price currency to the invoicing currency. - # - # @option params [String, nil] :external_price_id An alias for the price. - # - # @option params [Float, nil] :fixed_price_quantity If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @option params [String, nil] :invoice_grouping_key The property used to group this price on an invoice - # - # @option params [Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, nil] :invoicing_cycle_configuration Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @option params [Hash{Symbol=>String, nil}, nil] :metadata User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # # @option params [Orb::Models::PriceCreateParams::PackageConfig] :package_config # # @option params [Orb::Models::PriceCreateParams::MatrixConfig] :matrix_config @@ -108,6 +83,31 @@ class Prices # # @option params [Hash{Symbol=>Object}] :scalable_matrix_with_tiered_pricing_config # + # @option params [String, nil] :billable_metric_id The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @option params [Boolean, nil] :billed_in_advance If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @option params [Orb::Models::PriceCreateParams::BillingCycleConfiguration, nil] :billing_cycle_configuration For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @option params [Float, nil] :conversion_rate The per unit conversion rate of the price currency to the invoicing currency. + # + # @option params [String, nil] :external_price_id An alias for the price. + # + # @option params [Float, nil] :fixed_price_quantity If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @option params [String, nil] :invoice_grouping_key The property used to group this price on an invoice + # + # @option params [Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, nil] :invoicing_cycle_configuration Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @option params [Hash{Symbol=>String, nil}, nil] :metadata User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options # # @return [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice] diff --git a/lib/orb/version.rb b/lib/orb/version.rb index b9454eab..2567aacb 100644 --- a/lib/orb/version.rb +++ b/lib/orb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Orb - VERSION = "0.1.0-alpha.2" + VERSION = "0.1.0-alpha.3" end diff --git a/rbi/lib/orb/resources/alerts.rbi b/rbi/lib/orb/resources/alerts.rbi index 1d3fd356..0dfd03ae 100644 --- a/rbi/lib/orb/resources/alerts.rbi +++ b/rbi/lib/orb/resources/alerts.rbi @@ -30,15 +30,15 @@ module Orb ).returns(Orb::Page[Orb::Models::Alert]) end def list( - created_at_gt:, - created_at_gte:, - created_at_lt:, - created_at_lte:, - cursor:, - customer_id:, - external_customer_id:, - limit:, - subscription_id:, + created_at_gt: nil, + created_at_gte: nil, + created_at_lt: nil, + created_at_lte: nil, + cursor: nil, + customer_id: nil, + external_customer_id: nil, + limit: nil, + subscription_id: nil, request_options: {} ); end @@ -51,7 +51,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Alert) end - def create_for_customer(customer_id, currency:, type:, thresholds:, request_options: {}); end + def create_for_customer(customer_id, currency:, type:, thresholds: nil, request_options: {}); end sig do params( @@ -66,7 +66,7 @@ module Orb external_customer_id, currency:, type:, - thresholds:, + thresholds: nil, request_options: {} ) end @@ -80,7 +80,8 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Alert) end - def create_for_subscription(subscription_id, thresholds:, type:, metric_id:, request_options: {}); end + def create_for_subscription(subscription_id, thresholds:, type:, metric_id: nil, request_options: {}) + end sig do params( @@ -89,7 +90,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Alert) end - def disable(alert_configuration_id, subscription_id:, request_options: {}); end + def disable(alert_configuration_id, subscription_id: nil, request_options: {}); end sig do params( @@ -98,7 +99,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Alert) end - def enable(alert_configuration_id, subscription_id:, request_options: {}); end + def enable(alert_configuration_id, subscription_id: nil, request_options: {}); end sig { params(client: Orb::Client).void } def initialize(client:); end diff --git a/rbi/lib/orb/resources/coupons.rbi b/rbi/lib/orb/resources/coupons.rbi index db6bdaed..beed0e9c 100644 --- a/rbi/lib/orb/resources/coupons.rbi +++ b/rbi/lib/orb/resources/coupons.rbi @@ -15,7 +15,14 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Coupon) end - def create(discount:, redemption_code:, duration_in_months:, max_redemptions:, request_options: {}); end + def create( + discount:, + redemption_code:, + duration_in_months: nil, + max_redemptions: nil, + request_options: {} + ) + end sig do params( @@ -26,7 +33,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Page[Orb::Models::Coupon]) end - def list(cursor:, limit:, redemption_code:, show_archived:, request_options: {}); end + def list(cursor: nil, limit: nil, redemption_code: nil, show_archived: nil, request_options: {}); end sig { params(coupon_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Coupon) } def archive(coupon_id, request_options: {}); end diff --git a/rbi/lib/orb/resources/coupons/subscriptions.rbi b/rbi/lib/orb/resources/coupons/subscriptions.rbi index 028094b5..d119321f 100644 --- a/rbi/lib/orb/resources/coupons/subscriptions.rbi +++ b/rbi/lib/orb/resources/coupons/subscriptions.rbi @@ -12,7 +12,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Page[Orb::Models::Subscription]) end - def list(coupon_id, cursor:, limit:, request_options: {}); end + def list(coupon_id, cursor: nil, limit: nil, request_options: {}); end sig { params(client: Orb::Client).void } def initialize(client:); end diff --git a/rbi/lib/orb/resources/credit_notes.rbi b/rbi/lib/orb/resources/credit_notes.rbi index 852daaa3..28acde84 100644 --- a/rbi/lib/orb/resources/credit_notes.rbi +++ b/rbi/lib/orb/resources/credit_notes.rbi @@ -11,7 +11,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::CreditNote) end - def create(line_items:, memo:, reason:, request_options: {}); end + def create(line_items:, memo: nil, reason: nil, request_options: {}); end sig do params( @@ -20,7 +20,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Page[Orb::Models::CreditNote]) end - def list(cursor:, limit:, request_options: {}); end + def list(cursor: nil, limit: nil, request_options: {}); end sig do params(credit_note_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::CreditNote) diff --git a/rbi/lib/orb/resources/customers.rbi b/rbi/lib/orb/resources/customers.rbi index 170e3a66..a3bcd08b 100644 --- a/rbi/lib/orb/resources/customers.rbi +++ b/rbi/lib/orb/resources/customers.rbi @@ -37,21 +37,21 @@ module Orb def create( email:, name:, - accounting_sync_configuration:, - additional_emails:, - auto_collection:, - billing_address:, - currency:, - email_delivery:, - external_customer_id:, - metadata:, - payment_provider:, - payment_provider_id:, - reporting_configuration:, - shipping_address:, - tax_configuration:, - tax_id:, - timezone:, + accounting_sync_configuration: nil, + additional_emails: nil, + auto_collection: nil, + billing_address: nil, + currency: nil, + email_delivery: nil, + external_customer_id: nil, + metadata: nil, + payment_provider: nil, + payment_provider_id: nil, + reporting_configuration: nil, + shipping_address: nil, + tax_configuration: nil, + tax_id: nil, + timezone: nil, request_options: {} ); end @@ -79,22 +79,22 @@ module Orb end def update( customer_id, - accounting_sync_configuration:, - additional_emails:, - auto_collection:, - billing_address:, - currency:, - email:, - email_delivery:, - external_customer_id:, - metadata:, - name:, - payment_provider:, - payment_provider_id:, - reporting_configuration:, - shipping_address:, - tax_configuration:, - tax_id:, + accounting_sync_configuration: nil, + additional_emails: nil, + auto_collection: nil, + billing_address: nil, + currency: nil, + email: nil, + email_delivery: nil, + external_customer_id: nil, + metadata: nil, + name: nil, + payment_provider: nil, + payment_provider_id: nil, + reporting_configuration: nil, + shipping_address: nil, + tax_configuration: nil, + tax_id: nil, request_options: {} ); end @@ -110,15 +110,14 @@ module Orb ).returns(Orb::Page[Orb::Models::Customer]) end def list( - created_at_gt:, - created_at_gte:, - created_at_lt:, - created_at_lte:, - cursor:, - limit:, + created_at_gt: nil, + created_at_gte: nil, + created_at_lt: nil, + created_at_lte: nil, + cursor: nil, + limit: nil, request_options: {} - ) - end + ); end sig { params(customer_id: String, request_options: Orb::RequestOpts).void } def delete(customer_id, request_options: {}); end @@ -161,22 +160,22 @@ module Orb end def update_by_external_id( id, - accounting_sync_configuration:, - additional_emails:, - auto_collection:, - billing_address:, - currency:, - email:, - email_delivery:, - external_customer_id:, - metadata:, - name:, - payment_provider:, - payment_provider_id:, - reporting_configuration:, - shipping_address:, - tax_configuration:, - tax_id:, + accounting_sync_configuration: nil, + additional_emails: nil, + auto_collection: nil, + billing_address: nil, + currency: nil, + email: nil, + email_delivery: nil, + external_customer_id: nil, + metadata: nil, + name: nil, + payment_provider: nil, + payment_provider_id: nil, + reporting_configuration: nil, + shipping_address: nil, + tax_configuration: nil, + tax_id: nil, request_options: {} ); end diff --git a/rbi/lib/orb/resources/customers/balance_transactions.rbi b/rbi/lib/orb/resources/customers/balance_transactions.rbi index 15edbb2f..5eb635ce 100644 --- a/rbi/lib/orb/resources/customers/balance_transactions.rbi +++ b/rbi/lib/orb/resources/customers/balance_transactions.rbi @@ -13,7 +13,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Customers::BalanceTransactionCreateResponse) end - def create(customer_id, amount:, type:, description:, request_options: {}); end + def create(customer_id, amount:, type:, description: nil, request_options: {}); end sig do params( @@ -29,12 +29,12 @@ module Orb end def list( customer_id, - cursor:, - limit:, - operation_time_gt:, - operation_time_gte:, - operation_time_lt:, - operation_time_lte:, + cursor: nil, + limit: nil, + operation_time_gt: nil, + operation_time_gte: nil, + operation_time_lt: nil, + operation_time_lte: nil, request_options: {} ); end diff --git a/rbi/lib/orb/resources/customers/costs.rbi b/rbi/lib/orb/resources/customers/costs.rbi index 31dc72dc..f72286af 100644 --- a/rbi/lib/orb/resources/customers/costs.rbi +++ b/rbi/lib/orb/resources/customers/costs.rbi @@ -14,7 +14,14 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Customers::CostListResponse) end - def list(customer_id, currency:, timeframe_end:, timeframe_start:, view_mode:, request_options: {}) + def list( + customer_id, + currency: nil, + timeframe_end: nil, + timeframe_start: nil, + view_mode: nil, + request_options: {} + ) end sig do @@ -29,13 +36,12 @@ module Orb end def list_by_external_id( external_customer_id, - currency:, - timeframe_end:, - timeframe_start:, - view_mode:, + currency: nil, + timeframe_end: nil, + timeframe_start: nil, + view_mode: nil, request_options: {} - ) - end + ); end sig { params(client: Orb::Client).void } def initialize(client:); end diff --git a/rbi/lib/orb/resources/customers/credits.rbi b/rbi/lib/orb/resources/customers/credits.rbi index dcf3a1d4..9aa5b981 100644 --- a/rbi/lib/orb/resources/customers/credits.rbi +++ b/rbi/lib/orb/resources/customers/credits.rbi @@ -20,7 +20,15 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Page[Orb::Models::Customers::CreditListResponse]) end - def list(customer_id, currency:, cursor:, include_all_blocks:, limit:, request_options: {}); end + def list( + customer_id, + currency: nil, + cursor: nil, + include_all_blocks: nil, + limit: nil, + request_options: {} + ) + end sig do params( @@ -34,10 +42,10 @@ module Orb end def list_by_external_id( external_customer_id, - currency:, - cursor:, - include_all_blocks:, - limit:, + currency: nil, + cursor: nil, + include_all_blocks: nil, + limit: nil, request_options: {} ) end diff --git a/rbi/lib/orb/resources/customers/credits/ledger.rbi b/rbi/lib/orb/resources/customers/credits/ledger.rbi index 5365b1a9..513ebcc1 100644 --- a/rbi/lib/orb/resources/customers/credits/ledger.rbi +++ b/rbi/lib/orb/resources/customers/credits/ledger.rbi @@ -23,16 +23,16 @@ module Orb end def list( customer_id, - created_at_gt:, - created_at_gte:, - created_at_lt:, - created_at_lte:, - currency:, - cursor:, - entry_status:, - entry_type:, - limit:, - minimum_amount:, + created_at_gt: nil, + created_at_gte: nil, + created_at_lt: nil, + created_at_lte: nil, + currency: nil, + cursor: nil, + entry_status: nil, + entry_type: nil, + limit: nil, + minimum_amount: nil, request_options: {} ); end @@ -41,15 +41,15 @@ module Orb customer_id: String, amount: Float, entry_type: Symbol, + expiry_date: T.nilable(Time), + target_expiry_date: Date, + block_id: String, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - target_expiry_date: Date, - block_id: String, void_reason: T.nilable(Symbol), request_options: Orb::RequestOpts ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Variants) @@ -58,16 +58,16 @@ module Orb customer_id, amount:, entry_type:, - currency:, - description:, - effective_date:, expiry_date:, - invoice_settings:, - metadata:, - per_unit_cost_basis:, target_expiry_date:, block_id:, - void_reason:, + currency: nil, + description: nil, + effective_date: nil, + invoice_settings: nil, + metadata: nil, + per_unit_cost_basis: nil, + void_reason: nil, request_options: {} ); end @@ -76,15 +76,15 @@ module Orb external_customer_id: String, amount: Float, entry_type: Symbol, + expiry_date: T.nilable(Time), + target_expiry_date: Date, + block_id: String, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - target_expiry_date: Date, - block_id: String, void_reason: T.nilable(Symbol), request_options: Orb::RequestOpts ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Variants) @@ -93,16 +93,16 @@ module Orb external_customer_id, amount:, entry_type:, - currency:, - description:, - effective_date:, expiry_date:, - invoice_settings:, - metadata:, - per_unit_cost_basis:, target_expiry_date:, block_id:, - void_reason:, + currency: nil, + description: nil, + effective_date: nil, + invoice_settings: nil, + metadata: nil, + per_unit_cost_basis: nil, + void_reason: nil, request_options: {} ); end @@ -124,16 +124,16 @@ module Orb end def list_by_external_id( external_customer_id, - created_at_gt:, - created_at_gte:, - created_at_lt:, - created_at_lte:, - currency:, - cursor:, - entry_status:, - entry_type:, - limit:, - minimum_amount:, + created_at_gt: nil, + created_at_gte: nil, + created_at_lt: nil, + created_at_lte: nil, + currency: nil, + cursor: nil, + entry_status: nil, + entry_type: nil, + limit: nil, + minimum_amount: nil, request_options: {} ); end diff --git a/rbi/lib/orb/resources/customers/credits/top_ups.rbi b/rbi/lib/orb/resources/customers/credits/top_ups.rbi index 9bf87be1..5a96870d 100644 --- a/rbi/lib/orb/resources/customers/credits/top_ups.rbi +++ b/rbi/lib/orb/resources/customers/credits/top_ups.rbi @@ -25,8 +25,8 @@ module Orb invoice_settings:, per_unit_cost_basis:, threshold:, - expires_after:, - expires_after_unit:, + expires_after: nil, + expires_after_unit: nil, request_options: {} ); end @@ -38,7 +38,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse]) end - def list(customer_id, cursor:, limit:, request_options: {}); end + def list(customer_id, cursor: nil, limit: nil, request_options: {}); end sig { params(top_up_id: String, customer_id: String, request_options: Orb::RequestOpts).void } def delete(top_up_id, customer_id:, request_options: {}); end @@ -63,8 +63,8 @@ module Orb invoice_settings:, per_unit_cost_basis:, threshold:, - expires_after:, - expires_after_unit:, + expires_after: nil, + expires_after_unit: nil, request_options: {} ); end @@ -81,7 +81,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse]) end - def list_by_external_id(external_customer_id, cursor:, limit:, request_options: {}); end + def list_by_external_id(external_customer_id, cursor: nil, limit: nil, request_options: {}); end sig { params(client: Orb::Client).void } def initialize(client:); end diff --git a/rbi/lib/orb/resources/dimensional_price_groups.rbi b/rbi/lib/orb/resources/dimensional_price_groups.rbi index 66ae3ba8..f961e2b5 100644 --- a/rbi/lib/orb/resources/dimensional_price_groups.rbi +++ b/rbi/lib/orb/resources/dimensional_price_groups.rbi @@ -20,8 +20,8 @@ module Orb billable_metric_id:, dimensions:, name:, - external_dimensional_price_group_id:, - metadata:, + external_dimensional_price_group_id: nil, + metadata: nil, request_options: {} ); end @@ -40,7 +40,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Page[Orb::Models::DimensionalPriceGroup]) end - def list(cursor:, limit:, request_options: {}); end + def list(cursor: nil, limit: nil, request_options: {}); end sig { params(client: Orb::Client).void } def initialize(client:); end diff --git a/rbi/lib/orb/resources/events.rbi b/rbi/lib/orb/resources/events.rbi index 800a4291..e581d2ee 100644 --- a/rbi/lib/orb/resources/events.rbi +++ b/rbi/lib/orb/resources/events.rbi @@ -25,11 +25,10 @@ module Orb event_name:, properties:, timestamp:, - customer_id:, - external_customer_id:, + customer_id: nil, + external_customer_id: nil, request_options: {} - ) - end + ); end sig do params( @@ -47,7 +46,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::EventIngestResponse) end - def ingest(events:, backfill_id:, debug:, request_options: {}); end + def ingest(events:, backfill_id: nil, debug: nil, request_options: {}); end sig do params( @@ -57,7 +56,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::EventSearchResponse) end - def search(event_ids:, timeframe_end:, timeframe_start:, request_options: {}); end + def search(event_ids:, timeframe_end: nil, timeframe_start: nil, request_options: {}); end sig { params(client: Orb::Client).void } def initialize(client:); end diff --git a/rbi/lib/orb/resources/events/backfills.rbi b/rbi/lib/orb/resources/events/backfills.rbi index d5732a17..34b33b65 100644 --- a/rbi/lib/orb/resources/events/backfills.rbi +++ b/rbi/lib/orb/resources/events/backfills.rbi @@ -19,11 +19,11 @@ module Orb def create( timeframe_end:, timeframe_start:, - close_time:, - customer_id:, - deprecation_filter:, - external_customer_id:, - replace_existing_events:, + close_time: nil, + customer_id: nil, + deprecation_filter: nil, + external_customer_id: nil, + replace_existing_events: nil, request_options: {} ); end @@ -34,7 +34,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Page[Orb::Models::Events::BackfillListResponse]) end - def list(cursor:, limit:, request_options: {}); end + def list(cursor: nil, limit: nil, request_options: {}); end sig do params( diff --git a/rbi/lib/orb/resources/events/volume.rbi b/rbi/lib/orb/resources/events/volume.rbi index 555a6f58..b4db572c 100644 --- a/rbi/lib/orb/resources/events/volume.rbi +++ b/rbi/lib/orb/resources/events/volume.rbi @@ -13,7 +13,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Events::EventVolumes) end - def list(timeframe_start:, cursor:, limit:, timeframe_end:, request_options: {}); end + def list(timeframe_start:, cursor: nil, limit: nil, timeframe_end: nil, request_options: {}); end sig { params(client: Orb::Client).void } def initialize(client:); end diff --git a/rbi/lib/orb/resources/invoices.rbi b/rbi/lib/orb/resources/invoices.rbi index 82ee22a4..ab4f2da8 100644 --- a/rbi/lib/orb/resources/invoices.rbi +++ b/rbi/lib/orb/resources/invoices.rbi @@ -23,12 +23,12 @@ module Orb invoice_date:, line_items:, net_terms:, - customer_id:, - discount:, - external_customer_id:, - memo:, - metadata:, - will_auto_issue:, + customer_id: nil, + discount: nil, + external_customer_id: nil, + memo: nil, + metadata: nil, + will_auto_issue: nil, request_options: {} ); end @@ -39,7 +39,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Invoice) end - def update(invoice_id, metadata:, request_options: {}); end + def update(invoice_id, metadata: nil, request_options: {}); end sig do params( @@ -66,25 +66,25 @@ module Orb ).returns(Orb::Page[Orb::Models::Invoice]) end def list( - amount:, - amount_gt:, - amount_lt:, - cursor:, - customer_id:, - date_type:, - due_date:, - due_date_window:, - due_date_gt:, - due_date_lt:, - external_customer_id:, - invoice_date_gt:, - invoice_date_gte:, - invoice_date_lt:, - invoice_date_lte:, - is_recurring:, - limit:, - status:, - subscription_id:, + amount: nil, + amount_gt: nil, + amount_lt: nil, + cursor: nil, + customer_id: nil, + date_type: nil, + due_date: nil, + due_date_window: nil, + due_date_gt: nil, + due_date_lt: nil, + external_customer_id: nil, + invoice_date_gt: nil, + invoice_date_gte: nil, + invoice_date_lt: nil, + invoice_date_lte: nil, + is_recurring: nil, + limit: nil, + status: nil, + subscription_id: nil, request_options: {} ); end @@ -106,7 +106,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Invoice) end - def issue(invoice_id, synchronous:, request_options: {}); end + def issue(invoice_id, synchronous: nil, request_options: {}); end sig do params( @@ -117,7 +117,8 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Invoice) end - def mark_paid(invoice_id, payment_received_date:, external_id:, notes:, request_options: {}); end + def mark_paid(invoice_id, payment_received_date:, external_id: nil, notes: nil, request_options: {}) + end sig { params(invoice_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Invoice) } def pay(invoice_id, request_options: {}); end diff --git a/rbi/lib/orb/resources/items.rbi b/rbi/lib/orb/resources/items.rbi index d7c427cd..08a511f2 100644 --- a/rbi/lib/orb/resources/items.rbi +++ b/rbi/lib/orb/resources/items.rbi @@ -14,7 +14,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Item) end - def update(item_id, external_connections:, name:, request_options: {}); end + def update(item_id, external_connections: nil, name: nil, request_options: {}); end sig do params( @@ -23,7 +23,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Page[Orb::Models::Item]) end - def list(cursor:, limit:, request_options: {}); end + def list(cursor: nil, limit: nil, request_options: {}); end sig { params(item_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Item) } def fetch(item_id, request_options: {}); end diff --git a/rbi/lib/orb/resources/metrics.rbi b/rbi/lib/orb/resources/metrics.rbi index caf64c3b..374d4d90 100644 --- a/rbi/lib/orb/resources/metrics.rbi +++ b/rbi/lib/orb/resources/metrics.rbi @@ -13,7 +13,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::BillableMetric) end - def create(description:, item_id:, name:, sql:, metadata:, request_options: {}); end + def create(description:, item_id:, name:, sql:, metadata: nil, request_options: {}); end sig do params( @@ -22,7 +22,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::BillableMetric) end - def update(metric_id, metadata:, request_options: {}); end + def update(metric_id, metadata: nil, request_options: {}); end sig do params( @@ -36,15 +36,14 @@ module Orb ).returns(Orb::Page[Orb::Models::BillableMetric]) end def list( - created_at_gt:, - created_at_gte:, - created_at_lt:, - created_at_lte:, - cursor:, - limit:, + created_at_gt: nil, + created_at_gte: nil, + created_at_lt: nil, + created_at_lte: nil, + cursor: nil, + limit: nil, request_options: {} - ) - end + ); end sig do params(metric_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::BillableMetric) diff --git a/rbi/lib/orb/resources/plans.rbi b/rbi/lib/orb/resources/plans.rbi index f83a1172..9c54786f 100644 --- a/rbi/lib/orb/resources/plans.rbi +++ b/rbi/lib/orb/resources/plans.rbi @@ -23,11 +23,11 @@ module Orb currency:, name:, prices:, - default_invoice_memo:, - external_plan_id:, - metadata:, - net_terms:, - status:, + default_invoice_memo: nil, + external_plan_id: nil, + metadata: nil, + net_terms: nil, + status: nil, request_options: {} ); end @@ -39,7 +39,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Plan) end - def update(plan_id, external_plan_id:, metadata:, request_options: {}); end + def update(plan_id, external_plan_id: nil, metadata: nil, request_options: {}); end sig do params( @@ -54,13 +54,13 @@ module Orb ).returns(Orb::Page[Orb::Models::Plan]) end def list( - created_at_gt:, - created_at_gte:, - created_at_lt:, - created_at_lte:, - cursor:, - limit:, - status:, + created_at_gt: nil, + created_at_gte: nil, + created_at_lt: nil, + created_at_lte: nil, + cursor: nil, + limit: nil, + status: nil, request_options: {} ); end diff --git a/rbi/lib/orb/resources/plans/external_plan_id.rbi b/rbi/lib/orb/resources/plans/external_plan_id.rbi index 8b8c3606..ae2dbf50 100644 --- a/rbi/lib/orb/resources/plans/external_plan_id.rbi +++ b/rbi/lib/orb/resources/plans/external_plan_id.rbi @@ -12,7 +12,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Plan) end - def update(other_external_plan_id, external_plan_id:, metadata:, request_options: {}); end + def update(other_external_plan_id, external_plan_id: nil, metadata: nil, request_options: {}); end sig { params(external_plan_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Plan) } def fetch(external_plan_id, request_options: {}); end diff --git a/rbi/lib/orb/resources/prices.rbi b/rbi/lib/orb/resources/prices.rbi index 3625bfca..76942859 100644 --- a/rbi/lib/orb/resources/prices.rbi +++ b/rbi/lib/orb/resources/prices.rbi @@ -14,15 +14,6 @@ module Orb model_type: Symbol, name: String, unit_config: Orb::Models::PriceCreateParams::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), package_config: Orb::Models::PriceCreateParams::PackageConfig, matrix_config: Orb::Models::PriceCreateParams::MatrixConfig, matrix_with_allocation_config: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, @@ -49,6 +40,15 @@ module Orb grouped_tiered_package_config: T::Hash[Symbol, T.anything], scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), request_options: Orb::RequestOpts ).returns(Orb::Models::Price::Variants) end @@ -59,15 +59,6 @@ module Orb model_type:, name:, unit_config:, - billable_metric_id:, - billed_in_advance:, - billing_cycle_configuration:, - conversion_rate:, - external_price_id:, - fixed_price_quantity:, - invoice_grouping_key:, - invoicing_cycle_configuration:, - metadata:, package_config:, matrix_config:, matrix_with_allocation_config:, @@ -94,6 +85,15 @@ module Orb grouped_tiered_package_config:, scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, + billable_metric_id: nil, + billed_in_advance: nil, + billing_cycle_configuration: nil, + conversion_rate: nil, + external_price_id: nil, + fixed_price_quantity: nil, + invoice_grouping_key: nil, + invoicing_cycle_configuration: nil, + metadata: nil, request_options: {} ); end @@ -104,7 +104,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Price::Variants) end - def update(price_id, metadata:, request_options: {}); end + def update(price_id, metadata: nil, request_options: {}); end sig do params( @@ -113,7 +113,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Page[Orb::Models::Price::Variants]) end - def list(cursor:, limit:, request_options: {}); end + def list(cursor: nil, limit: nil, request_options: {}); end sig do params( @@ -131,10 +131,10 @@ module Orb price_id, timeframe_end:, timeframe_start:, - customer_id:, - external_customer_id:, - filter:, - grouping_keys:, + customer_id: nil, + external_customer_id: nil, + filter: nil, + grouping_keys: nil, request_options: {} ); end diff --git a/rbi/lib/orb/resources/prices/external_price_id.rbi b/rbi/lib/orb/resources/prices/external_price_id.rbi index 10f9e822..dd7f9333 100644 --- a/rbi/lib/orb/resources/prices/external_price_id.rbi +++ b/rbi/lib/orb/resources/prices/external_price_id.rbi @@ -11,7 +11,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::Price::Variants) end - def update(external_price_id, metadata:, request_options: {}); end + def update(external_price_id, metadata: nil, request_options: {}); end sig do params( diff --git a/rbi/lib/orb/resources/subscriptions.rbi b/rbi/lib/orb/resources/subscriptions.rbi index 08e9d7c2..0fff1f35 100644 --- a/rbi/lib/orb/resources/subscriptions.rbi +++ b/rbi/lib/orb/resources/subscriptions.rbi @@ -39,36 +39,36 @@ module Orb ).returns(Orb::Models::SubscriptionCreateResponse) end def create( - add_adjustments:, - add_prices:, - align_billing_with_subscription_start_date:, - auto_collection:, - aws_region:, - billing_cycle_anchor_configuration:, - coupon_redemption_code:, - credits_overage_rate:, - customer_id:, - default_invoice_memo:, - end_date:, - external_customer_id:, - external_marketplace:, - external_marketplace_reporting_id:, - external_plan_id:, - filter:, - initial_phase_order:, - invoicing_threshold:, - metadata:, - net_terms:, - per_credit_overage_amount:, - plan_id:, - plan_version_number:, - price_overrides:, - remove_adjustments:, - remove_prices:, - replace_adjustments:, - replace_prices:, - start_date:, - trial_duration_days:, + add_adjustments: nil, + add_prices: nil, + align_billing_with_subscription_start_date: nil, + auto_collection: nil, + aws_region: nil, + billing_cycle_anchor_configuration: nil, + coupon_redemption_code: nil, + credits_overage_rate: nil, + customer_id: nil, + default_invoice_memo: nil, + end_date: nil, + external_customer_id: nil, + external_marketplace: nil, + external_marketplace_reporting_id: nil, + external_plan_id: nil, + filter: nil, + initial_phase_order: nil, + invoicing_threshold: nil, + metadata: nil, + net_terms: nil, + per_credit_overage_amount: nil, + plan_id: nil, + plan_version_number: nil, + price_overrides: nil, + remove_adjustments: nil, + remove_prices: nil, + replace_adjustments: nil, + replace_prices: nil, + start_date: nil, + trial_duration_days: nil, request_options: {} ); end @@ -85,11 +85,11 @@ module Orb end def update( subscription_id, - auto_collection:, - default_invoice_memo:, - invoicing_threshold:, - metadata:, - net_terms:, + auto_collection: nil, + default_invoice_memo: nil, + invoicing_threshold: nil, + metadata: nil, + net_terms: nil, request_options: {} ); end @@ -108,15 +108,15 @@ module Orb ).returns(Orb::Page[Orb::Models::Subscription]) end def list( - created_at_gt:, - created_at_gte:, - created_at_lt:, - created_at_lte:, - cursor:, - customer_id:, - external_customer_id:, - limit:, - status:, + created_at_gt: nil, + created_at_gte: nil, + created_at_lt: nil, + created_at_lte: nil, + cursor: nil, + customer_id: nil, + external_customer_id: nil, + limit: nil, + status: nil, request_options: {} ); end @@ -128,7 +128,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::SubscriptionCancelResponse) end - def cancel(subscription_id, cancel_option:, cancellation_date:, request_options: {}); end + def cancel(subscription_id, cancel_option:, cancellation_date: nil, request_options: {}); end sig do params(subscription_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Subscription) @@ -147,13 +147,12 @@ module Orb end def fetch_costs( subscription_id, - currency:, - timeframe_end:, - timeframe_start:, - view_mode:, + currency: nil, + timeframe_end: nil, + timeframe_start: nil, + view_mode: nil, request_options: {} - ) - end + ); end sig do params( @@ -169,12 +168,12 @@ module Orb end def fetch_schedule( subscription_id, - cursor:, - limit:, - start_date_gt:, - start_date_gte:, - start_date_lt:, - start_date_lte:, + cursor: nil, + limit: nil, + start_date_gt: nil, + start_date_gte: nil, + start_date_lt: nil, + start_date_lte: nil, request_options: {} ); end @@ -196,16 +195,16 @@ module Orb end def fetch_usage( subscription_id, - billable_metric_id:, - first_dimension_key:, - first_dimension_value:, - granularity:, - group_by:, - second_dimension_key:, - second_dimension_value:, - timeframe_end:, - timeframe_start:, - view_mode:, + billable_metric_id: nil, + first_dimension_key: nil, + first_dimension_value: nil, + granularity: nil, + group_by: nil, + second_dimension_key: nil, + second_dimension_value: nil, + timeframe_end: nil, + timeframe_start: nil, + view_mode: nil, request_options: {} ); end @@ -221,10 +220,10 @@ module Orb end def price_intervals( subscription_id, - add:, - add_adjustments:, - edit:, - edit_adjustments:, + add: nil, + add_adjustments: nil, + edit: nil, + edit_adjustments: nil, request_options: {} ) end @@ -263,30 +262,30 @@ module Orb def schedule_plan_change( subscription_id, change_option:, - add_adjustments:, - add_prices:, - align_billing_with_plan_change_date:, - auto_collection:, - billing_cycle_alignment:, - billing_cycle_anchor_configuration:, - change_date:, - coupon_redemption_code:, - credits_overage_rate:, - default_invoice_memo:, - external_plan_id:, - filter:, - initial_phase_order:, - invoicing_threshold:, - net_terms:, - per_credit_overage_amount:, - plan_id:, - plan_version_number:, - price_overrides:, - remove_adjustments:, - remove_prices:, - replace_adjustments:, - replace_prices:, - trial_duration_days:, + add_adjustments: nil, + add_prices: nil, + align_billing_with_plan_change_date: nil, + auto_collection: nil, + billing_cycle_alignment: nil, + billing_cycle_anchor_configuration: nil, + change_date: nil, + coupon_redemption_code: nil, + credits_overage_rate: nil, + default_invoice_memo: nil, + external_plan_id: nil, + filter: nil, + initial_phase_order: nil, + invoicing_threshold: nil, + net_terms: nil, + per_credit_overage_amount: nil, + plan_id: nil, + plan_version_number: nil, + price_overrides: nil, + remove_adjustments: nil, + remove_prices: nil, + replace_adjustments: nil, + replace_prices: nil, + trial_duration_days: nil, request_options: {} ); end @@ -297,7 +296,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::SubscriptionTriggerPhaseResponse) end - def trigger_phase(subscription_id, effective_date:, request_options: {}); end + def trigger_phase(subscription_id, effective_date: nil, request_options: {}); end sig do params( @@ -338,8 +337,8 @@ module Orb subscription_id, price_id:, quantity:, - change_option:, - effective_date:, + change_option: nil, + effective_date: nil, request_options: {} ) end @@ -352,7 +351,7 @@ module Orb request_options: Orb::RequestOpts ).returns(Orb::Models::SubscriptionUpdateTrialResponse) end - def update_trial(subscription_id, trial_end_date:, shift:, request_options: {}); end + def update_trial(subscription_id, trial_end_date:, shift: nil, request_options: {}); end sig { params(client: Orb::Client).void } def initialize(client:); end diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index 58a3f3d4..3e62b13f 100644 --- a/rbi/lib/orb/version.rbi +++ b/rbi/lib/orb/version.rbi @@ -1,5 +1,5 @@ # typed: strong module Orb - VERSION = "0.1.0-alpha.1" + VERSION = "0.1.0-alpha.2" end diff --git a/sig/orb/resources/customers/credits/ledger.rbs b/sig/orb/resources/customers/credits/ledger.rbs index 50fc2c24..ff5c5acf 100644 --- a/sig/orb/resources/customers/credits/ledger.rbs +++ b/sig/orb/resources/customers/credits/ledger.rbs @@ -34,15 +34,15 @@ module Orb String customer_id, amount: Float, entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type, + expiry_date: Time?, + target_expiry_date: Date, + block_id: String, currency: String?, description: String?, effective_date: Time?, - expiry_date: Time?, invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, metadata: Hash[Symbol, String?]?, per_unit_cost_basis: String?, - target_expiry_date: Date, - block_id: String, void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason?, request_options: Orb::request_opts ) -> Orb::Models::Customers::Credits::ledger_create_entry_response @@ -57,15 +57,15 @@ module Orb String external_customer_id, amount: Float, entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type, + expiry_date: Time?, + target_expiry_date: Date, + block_id: String, currency: String?, description: String?, effective_date: Time?, - expiry_date: Time?, invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, metadata: Hash[Symbol, String?]?, per_unit_cost_basis: String?, - target_expiry_date: Date, - block_id: String, void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason?, request_options: Orb::request_opts ) -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_response diff --git a/sig/orb/resources/prices.rbs b/sig/orb/resources/prices.rbs index 948071eb..48904f6c 100644 --- a/sig/orb/resources/prices.rbs +++ b/sig/orb/resources/prices.rbs @@ -14,15 +14,6 @@ module Orb model_type: Orb::Models::PriceCreateParams::model_type, name: String, unit_config: Orb::Models::PriceCreateParams::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, package_config: Orb::Models::PriceCreateParams::PackageConfig, matrix_config: Orb::Models::PriceCreateParams::MatrixConfig, matrix_with_allocation_config: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, @@ -49,6 +40,15 @@ module Orb grouped_tiered_package_config: Hash[Symbol, top], scalable_matrix_with_unit_pricing_config: Hash[Symbol, top], scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top], + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, + conversion_rate: Float?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, + metadata: Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> Orb::Models::price diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index 7968b18d..ea7edf9a 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.1" + VERSION: "0.1.0-alpha.2" end