diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04343e0e..32e3f314 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,10 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - bundler-cache: true + bundler-cache: false ruby-version: '3.1' + - run: |- + bundle install - name: Run lints run: ./scripts/lint @@ -33,8 +35,10 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - bundler-cache: true + bundler-cache: false ruby-version: '3.1' + - run: |- + bundle install - name: Run tests run: ./scripts/test diff --git a/.github/workflows/publish-gem.yml b/.github/workflows/publish-gem.yml index abfe2826..08bc8c76 100644 --- a/.github/workflows/publish-gem.yml +++ b/.github/workflows/publish-gem.yml @@ -20,6 +20,8 @@ jobs: with: bundler-cache: false ruby-version: '3.1' + - run: |- + bundle install - name: Publish to RubyGems.org run: | diff --git a/.release-please-manifest.json b/.release-please-manifest.json index aaf968a1..b56c3d0b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.3" + ".": "0.1.0-alpha.4" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index ac3b3020..6b45a66b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 0.1.0-alpha.4 (2025-02-06) + +Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.3...v0.1.0-alpha.4) + +### Features + +* inline sorbet type aliases ([#11](https://github.com/orbcorp/orb-ruby/issues/11)) ([6a9e53b](https://github.com/orbcorp/orb-ruby/commit/6a9e53bc2ca595dc364d24344fd4699943185320)) + + +### Bug Fixes + +* temporarily run CI without bundler cache ([#13](https://github.com/orbcorp/orb-ruby/issues/13)) ([ea23c80](https://github.com/orbcorp/orb-ruby/commit/ea23c80e845b00492b113262bfe1d0e1cc0d0e89)) + + +### Chores + +* formatting change for `*.rbi` files ([#12](https://github.com/orbcorp/orb-ruby/issues/12)) ([cf7f557](https://github.com/orbcorp/orb-ruby/commit/cf7f557bf34c636a7df13c9d38c7be4f1895c24f)) +* **internal:** version bump ([#9](https://github.com/orbcorp/orb-ruby/issues/9)) ([87701c3](https://github.com/orbcorp/orb-ruby/commit/87701c374f150d57cc7db255d2b2fed4fe952138)) + ## 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) diff --git a/Gemfile.lock b/Gemfile.lock index 4d539833..5e78dd5c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.2) + orb (0.1.0.pre.alpha.3) connection_pool GEM @@ -80,9 +80,9 @@ GEM parser (>= 3.3.1.0) ruby-progressbar (1.13.0) securerandom (0.4.1) - sorbet (0.5.11802) - sorbet-static (= 0.5.11802) - sorbet-static (0.5.11802-x86_64-linux) + sorbet (0.5.11805) + sorbet-static (= 0.5.11805) + sorbet-static (0.5.11805-x86_64-linux) steep (1.9.4) activesupport (>= 5.1) concurrent-ruby (>= 1.1.10) diff --git a/lib/orb/extern.rb b/lib/orb/extern.rb index f66913f8..49027e04 100644 --- a/lib/orb/extern.rb +++ b/lib/orb/extern.rb @@ -6,10 +6,5 @@ module Orb # @abstract # module Extern - # @private - # - # @param blk [Proc] - # - def sorbet!(&blk); end end end diff --git a/lib/orb/resources/alerts.rb b/lib/orb/resources/alerts.rb index 38b9e33b..ddcb27f5 100644 --- a/lib/orb/resources/alerts.rb +++ b/lib/orb/resources/alerts.rb @@ -9,7 +9,7 @@ class Alerts # # @param params [Orb::Models::AlertRetrieveParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Alert] # @@ -30,7 +30,7 @@ def retrieve(alert_id, params = {}) # # @option params [Array] :thresholds The thresholds that define the values at which the alert will be triggered. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Alert] # @@ -78,7 +78,7 @@ def update(alert_configuration_id, params) # # @option params [String, nil] :subscription_id Fetch alerts scoped to this subscription_id # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -113,7 +113,7 @@ def list(params = {}) # # @option params [Array, nil] :thresholds The thresholds that define the values at which the alert will be triggered. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Alert] # @@ -147,7 +147,7 @@ def create_for_customer(customer_id, params) # # @option params [Array, nil] :thresholds The thresholds that define the values at which the alert will be triggered. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Alert] # @@ -184,7 +184,7 @@ def create_for_external_customer(external_customer_id, params) # # @option params [String, nil] :metric_id The metric to track usage for. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Alert] # @@ -209,7 +209,7 @@ def create_for_subscription(subscription_id, params) # # @option params [String, nil] :subscription_id Used to update the status of a plan alert scoped to this subscription_id # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Alert] # @@ -234,7 +234,7 @@ def disable(alert_configuration_id, params = {}) # # @option params [String, nil] :subscription_id Used to update the status of a plan alert scoped to this subscription_id # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Alert] # diff --git a/lib/orb/resources/coupons.rb b/lib/orb/resources/coupons.rb index 82760f3b..4c686392 100644 --- a/lib/orb/resources/coupons.rb +++ b/lib/orb/resources/coupons.rb @@ -21,7 +21,7 @@ class Coupons # @option params [Integer, nil] :max_redemptions The maximum number of redemptions allowed for this coupon before it is # exhausted;`null` here means "unlimited". # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Coupon] # @@ -55,7 +55,7 @@ def create(params) # @option params [Boolean, nil] :show_archived Show archived coupons as well (by default, this endpoint only returns active # coupons). # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -79,7 +79,7 @@ def list(params = {}) # # @param params [Orb::Models::CouponArchiveParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Coupon] # @@ -100,7 +100,7 @@ def archive(coupon_id, params = {}) # # @param params [Orb::Models::CouponFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Coupon] # diff --git a/lib/orb/resources/coupons/subscriptions.rb b/lib/orb/resources/coupons/subscriptions.rb index 3dc12c7d..5b043e53 100644 --- a/lib/orb/resources/coupons/subscriptions.rb +++ b/lib/orb/resources/coupons/subscriptions.rb @@ -18,7 +18,7 @@ class Subscriptions # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # diff --git a/lib/orb/resources/credit_notes.rb b/lib/orb/resources/credit_notes.rb index 5493dc54..c878be10 100644 --- a/lib/orb/resources/credit_notes.rb +++ b/lib/orb/resources/credit_notes.rb @@ -14,7 +14,7 @@ class CreditNotes # # @option params [Symbol, Orb::Models::CreditNoteCreateParams::Reason, nil] :reason An optional reason for the credit note. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::CreditNote] # @@ -40,7 +40,7 @@ def create(params) # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -63,7 +63,7 @@ def list(params = {}) # # @param params [Orb::Models::CreditNoteFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::CreditNote] # diff --git a/lib/orb/resources/customers.rb b/lib/orb/resources/customers.rb index 18acc9ac..f090a2da 100644 --- a/lib/orb/resources/customers.rb +++ b/lib/orb/resources/customers.rb @@ -180,7 +180,7 @@ class Customers # `"America/Los_Angeles"`. This defaults to your account's timezone if not set. # This cannot be changed after customer creation. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customer] # @@ -355,7 +355,7 @@ def create(params) # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customer] # @@ -392,7 +392,7 @@ def update(customer_id, params = {}) # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -428,7 +428,7 @@ def list(params = {}) # # @param params [Orb::Models::CustomerDeleteParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [nil] # @@ -452,7 +452,7 @@ def delete(customer_id, params = {}) # # @param params [Orb::Models::CustomerFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customer] # @@ -475,7 +475,7 @@ def fetch(customer_id, params = {}) # # @param params [Orb::Models::CustomerFetchByExternalIDParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customer] # @@ -499,7 +499,7 @@ def fetch_by_external_id(external_customer_id, params = {}) # # @param params [Orb::Models::CustomerSyncPaymentMethodsFromGatewayParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [nil] # @@ -526,7 +526,7 @@ def sync_payment_methods_from_gateway(external_customer_id, params = {}) # # @param params [Orb::Models::CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [nil] # @@ -698,7 +698,7 @@ def sync_payment_methods_from_gateway_by_external_customer_id(customer_id, param # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customer] # diff --git a/lib/orb/resources/customers/balance_transactions.rb b/lib/orb/resources/customers/balance_transactions.rb index 5cbcb750..1bd48adf 100644 --- a/lib/orb/resources/customers/balance_transactions.rb +++ b/lib/orb/resources/customers/balance_transactions.rb @@ -17,7 +17,7 @@ class BalanceTransactions # # @option params [String, nil] :description An optional description that can be specified around this entry. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customers::BalanceTransactionCreateResponse] # @@ -78,7 +78,7 @@ def create(customer_id, params) # # @option params [Time, nil] :operation_time_lte # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # diff --git a/lib/orb/resources/customers/costs.rb b/lib/orb/resources/customers/costs.rb index 160254a8..7ec79799 100644 --- a/lib/orb/resources/customers/costs.rb +++ b/lib/orb/resources/customers/costs.rb @@ -137,7 +137,7 @@ class Costs # discounts, it's strongly recommended that you use the default cumulative # behavior. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customers::CostListResponse] # @@ -285,7 +285,7 @@ def list(customer_id, params = {}) # discounts, it's strongly recommended that you use the default cumulative # behavior. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customers::CostListByExternalIDResponse] # diff --git a/lib/orb/resources/customers/credits.rb b/lib/orb/resources/customers/credits.rb index fa214b4b..eb84ece4 100644 --- a/lib/orb/resources/customers/credits.rb +++ b/lib/orb/resources/customers/credits.rb @@ -32,7 +32,7 @@ class Credits # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -70,7 +70,7 @@ def list(customer_id, params = {}) # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # diff --git a/lib/orb/resources/customers/credits/ledger.rb b/lib/orb/resources/customers/credits/ledger.rb index 8e77771a..61ffcf4c 100644 --- a/lib/orb/resources/customers/credits/ledger.rb +++ b/lib/orb/resources/customers/credits/ledger.rb @@ -112,7 +112,7 @@ class Ledger # # @option params [String, nil] :minimum_amount # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -280,7 +280,7 @@ def list(customer_id, params = {}) # # @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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry] # @@ -447,7 +447,7 @@ def create_entry(customer_id, params) # # @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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry] # @@ -569,7 +569,7 @@ def create_entry_by_external_id(external_customer_id, params) # # @option params [String, nil] :minimum_amount # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # diff --git a/lib/orb/resources/customers/credits/top_ups.rb b/lib/orb/resources/customers/credits/top_ups.rb index 392c34a9..5b5bd93a 100644 --- a/lib/orb/resources/customers/credits/top_ups.rb +++ b/lib/orb/resources/customers/credits/top_ups.rb @@ -34,7 +34,7 @@ class TopUps # # @option params [Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit, nil] :expires_after_unit The unit of expires_after. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customers::Credits::TopUpCreateResponse] # @@ -60,7 +60,7 @@ def create(customer_id, params) # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -84,7 +84,7 @@ def list(customer_id, params = {}) # # @option params [String] :customer_id # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [nil] # @@ -130,7 +130,7 @@ def delete(top_up_id, params) # # @option params [Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit, nil] :expires_after_unit The unit of expires_after. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse] # @@ -153,7 +153,7 @@ def create_by_external_id(external_customer_id, params) # # @option params [String] :external_customer_id # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [nil] # @@ -185,7 +185,7 @@ def delete_by_external_id(top_up_id, params) # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # diff --git a/lib/orb/resources/dimensional_price_groups.rb b/lib/orb/resources/dimensional_price_groups.rb index c50e8007..45589668 100644 --- a/lib/orb/resources/dimensional_price_groups.rb +++ b/lib/orb/resources/dimensional_price_groups.rb @@ -29,7 +29,7 @@ class DimensionalPriceGroups # 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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::DimensionalPriceGroup] # @@ -50,7 +50,7 @@ def create(params) # # @param params [Orb::Models::DimensionalPriceGroupRetrieveParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::DimensionalPriceGroup] # @@ -72,7 +72,7 @@ def retrieve(dimensional_price_group_id, params = {}) # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # diff --git a/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb b/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb index a4ad4400..ddcab2a5 100644 --- a/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +++ b/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb @@ -10,7 +10,7 @@ class ExternalDimensionalPriceGroupID # # @param params [Orb::Models::DimensionalPriceGroups::ExternalDimensionalPriceGroupIDRetrieveParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::DimensionalPriceGroup] # diff --git a/lib/orb/resources/events.rb b/lib/orb/resources/events.rb index aafa3f5d..eb55655f 100644 --- a/lib/orb/resources/events.rb +++ b/lib/orb/resources/events.rb @@ -73,7 +73,7 @@ class Events # @option params [String, nil] :external_customer_id An alias for the Orb customer, whose mapping is specified when creating the # customer # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::EventUpdateResponse] # @@ -133,7 +133,7 @@ def update(event_id, params) # # @param params [Orb::Models::EventDeprecateParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::EventDeprecateResponse] # @@ -359,7 +359,7 @@ def deprecate(event_id, params = {}) # @option params [Boolean] :debug Query param: Flag to enable additional debug information in the endpoint # response # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::EventIngestResponse] # @@ -405,7 +405,7 @@ def ingest(params) # @option params [Time, nil] :timeframe_start The start of the timeframe, inclusive, in which to search events. If not # specified, the one week ago is used. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::EventSearchResponse] # diff --git a/lib/orb/resources/events/backfills.rb b/lib/orb/resources/events/backfills.rb index b77c0763..ce699ffa 100644 --- a/lib/orb/resources/events/backfills.rb +++ b/lib/orb/resources/events/backfills.rb @@ -65,7 +65,7 @@ class Backfills # @option params [Boolean] :replace_existing_events If true, replaces all existing events in the timeframe with the newly ingested # events. If false, adds the newly ingested events to the existing events. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Events::BackfillCreateResponse] # @@ -95,7 +95,7 @@ def create(params) # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -120,7 +120,7 @@ def list(params = {}) # # @param params [Orb::Models::Events::BackfillCloseParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Events::BackfillCloseResponse] # @@ -139,7 +139,7 @@ def close(backfill_id, params = {}) # # @param params [Orb::Models::Events::BackfillFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Events::BackfillFetchResponse] # @@ -164,7 +164,7 @@ def fetch(backfill_id, params = {}) # # @param params [Orb::Models::Events::BackfillRevertParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Events::BackfillRevertResponse] # diff --git a/lib/orb/resources/events/volume.rb b/lib/orb/resources/events/volume.rb index 2fee7910..a5050a27 100644 --- a/lib/orb/resources/events/volume.rb +++ b/lib/orb/resources/events/volume.rb @@ -35,7 +35,7 @@ class Volume # time.If the specified time isn't hour-aligned, the response includes the event # volumecount for the hour the time falls in. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Events::EventVolumes] # diff --git a/lib/orb/resources/invoice_line_items.rb b/lib/orb/resources/invoice_line_items.rb index 8de06d0f..d8c41dd9 100644 --- a/lib/orb/resources/invoice_line_items.rb +++ b/lib/orb/resources/invoice_line_items.rb @@ -21,7 +21,7 @@ class InvoiceLineItems # # @option params [Date] :start_date A date string to specify the line item's start date in the customer's timezone. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::InvoiceLineItemCreateResponse] # diff --git a/lib/orb/resources/invoices.rb b/lib/orb/resources/invoices.rb index 36e58ebf..77432d19 100644 --- a/lib/orb/resources/invoices.rb +++ b/lib/orb/resources/invoices.rb @@ -37,7 +37,7 @@ class Invoices # @option params [Boolean] :will_auto_issue When true, this invoice will automatically be issued upon creation. When false, # the resulting invoice will require manual review to issue. Defaulted to false. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Invoice] # @@ -66,7 +66,7 @@ def create(params) # 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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Invoice] # @@ -139,7 +139,7 @@ def update(invoice_id, params = {}) # # @option params [String, nil] :subscription_id # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -162,7 +162,7 @@ def list(params = {}) # # @param params [Orb::Models::InvoiceFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Invoice] # @@ -183,7 +183,7 @@ def fetch(invoice_id, params = {}) # # @option params [String] :subscription_id # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::InvoiceFetchUpcomingResponse] # @@ -215,7 +215,7 @@ def fetch_upcoming(params) # provider, a successful response from this endpoint guarantees the invoice is # present in the provider. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Invoice] # @@ -243,7 +243,7 @@ def issue(invoice_id, params = {}) # # @option params [String, nil] :notes An optional note to associate with the payment. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Invoice] # @@ -265,7 +265,7 @@ def mark_paid(invoice_id, params) # # @param params [Orb::Models::InvoicePayParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Invoice] # @@ -290,7 +290,7 @@ def pay(invoice_id, params = {}) # # @param params [Orb::Models::InvoiceVoidParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Invoice] # diff --git a/lib/orb/resources/items.rb b/lib/orb/resources/items.rb index 72dd98b6..a1ae12c2 100644 --- a/lib/orb/resources/items.rb +++ b/lib/orb/resources/items.rb @@ -9,7 +9,7 @@ class Items # # @option params [String] :name The name of the item. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Item] # @@ -34,7 +34,7 @@ def create(params) # # @option params [String, nil] :name # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Item] # @@ -59,7 +59,7 @@ def update(item_id, params = {}) # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -81,7 +81,7 @@ def list(params = {}) # # @param params [Orb::Models::ItemFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Item] # diff --git a/lib/orb/resources/metrics.rb b/lib/orb/resources/metrics.rb index 3244aa3b..ca842ad7 100644 --- a/lib/orb/resources/metrics.rb +++ b/lib/orb/resources/metrics.rb @@ -21,7 +21,7 @@ class Metrics # 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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::BillableMetric] # @@ -48,7 +48,7 @@ def create(params) # 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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::BillableMetric] # @@ -82,7 +82,7 @@ def update(metric_id, params = {}) # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -105,7 +105,7 @@ def list(params = {}) # # @param params [Orb::Models::MetricFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::BillableMetric] # diff --git a/lib/orb/resources/plans.rb b/lib/orb/resources/plans.rb index 2ca6c7c6..3fa38e30 100644 --- a/lib/orb/resources/plans.rb +++ b/lib/orb/resources/plans.rb @@ -33,7 +33,7 @@ class Plans # @option params [Symbol, Orb::Models::PlanCreateParams::Status] :status The status of the plan to create (either active or draft). If not specified, # this defaults to active. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Plan] # @@ -65,7 +65,7 @@ def create(params) # 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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Plan] # @@ -103,7 +103,7 @@ def update(plan_id, params = {}) # # @option params [Symbol, Orb::Models::PlanListParams::Status] :status The plan status to filter to ('active', 'archived', or 'draft'). # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -141,7 +141,7 @@ def list(params = {}) # # @param params [Orb::Models::PlanFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Plan] # diff --git a/lib/orb/resources/plans/external_plan_id.rb b/lib/orb/resources/plans/external_plan_id.rb index d50c45d7..7039999a 100644 --- a/lib/orb/resources/plans/external_plan_id.rb +++ b/lib/orb/resources/plans/external_plan_id.rb @@ -21,7 +21,7 @@ class ExternalPlanID # 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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Plan] # @@ -57,7 +57,7 @@ def update(other_external_plan_id, params = {}) # # @param params [Orb::Models::Plans::ExternalPlanIDFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Plan] # diff --git a/lib/orb/resources/prices.rb b/lib/orb/resources/prices.rb index 71042afb..5f33563d 100644 --- a/lib/orb/resources/prices.rb +++ b/lib/orb/resources/prices.rb @@ -108,7 +108,7 @@ class Prices # 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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :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] # @@ -135,7 +135,7 @@ def create(params) # 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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :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] # @@ -160,7 +160,7 @@ def update(price_id, params = {}) # # @option params [Integer] :limit The number of items to fetch. Defaults to 20. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -218,7 +218,7 @@ def list(params = {}) # [computed properties](/extensibility/advanced-metrics#computed-properties)) used # to group the underlying billable metric # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::PriceEvaluateResponse] # @@ -239,7 +239,7 @@ def evaluate(price_id, params) # # @param params [Orb::Models::PriceFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :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/resources/prices/external_price_id.rb b/lib/orb/resources/prices/external_price_id.rb index e9ca8309..06d0d0c9 100644 --- a/lib/orb/resources/prices/external_price_id.rb +++ b/lib/orb/resources/prices/external_price_id.rb @@ -16,7 +16,7 @@ class ExternalPriceID # 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 + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :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] # @@ -39,7 +39,7 @@ def update(external_price_id, params = {}) # # @param params [Orb::Models::Prices::ExternalPriceIDFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :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/resources/subscriptions.rb b/lib/orb/resources/subscriptions.rb index 558a8623..0f9e7cb1 100644 --- a/lib/orb/resources/subscriptions.rb +++ b/lib/orb/resources/subscriptions.rb @@ -348,7 +348,7 @@ class Subscriptions # value specified in the plan. If `0` is provided, the trial on the plan will be # skipped. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionCreateResponse] # @@ -391,7 +391,7 @@ def create(params = {}) # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Subscription] # @@ -437,7 +437,7 @@ def update(subscription_id, params = {}) # # @option params [Symbol, Orb::Models::SubscriptionListParams::Status, nil] :status # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -524,7 +524,7 @@ def list(params = {}) # @option params [Time, nil] :cancellation_date The date that the cancellation should take effect. This parameter can only be # passed if the `cancel_option` is `requested_date`. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionCancelResponse] # @@ -546,7 +546,7 @@ def cancel(subscription_id, params) # # @param params [Orb::Models::SubscriptionFetchParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::Subscription] # @@ -585,7 +585,7 @@ def fetch(subscription_id, params = {}) # discounts, it's strongly recommended that you use the default cumulative # behavior. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionFetchCostsResponse] # @@ -622,7 +622,7 @@ def fetch_costs(subscription_id, params = {}) # # @option params [Time, nil] :start_date_lte # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Page] # @@ -862,7 +862,7 @@ def fetch_schedule(subscription_id, params = {}) # discounts, it's strongly recommended that you use the default cumulative # behavior. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] # @@ -962,7 +962,7 @@ def fetch_usage(subscription_id, params = {}) # # @option params [Array] :edit_adjustments A list of adjustments to edit on the subscription. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionPriceIntervalsResponse] # @@ -1243,7 +1243,7 @@ def price_intervals(subscription_id, params = {}) # value specified in the plan. If `0` is provided, the trial on the plan will be # skipped. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionSchedulePlanChangeResponse] # @@ -1268,7 +1268,7 @@ def schedule_plan_change(subscription_id, params) # @option params [Date, nil] :effective_date The date on which the phase change should take effect. If not provided, defaults # to today in the customer's timezone. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionTriggerPhaseResponse] # @@ -1294,7 +1294,7 @@ def trigger_phase(subscription_id, params = {}) # # @param params [Orb::Models::SubscriptionUnscheduleCancellationParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionUnscheduleCancellationResponse] # @@ -1319,7 +1319,7 @@ def unschedule_cancellation(subscription_id, params = {}) # # @option params [String] :price_id Price for which the updates should be cleared. Must be a fixed fee. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse] # @@ -1341,7 +1341,7 @@ def unschedule_fixed_fee_quantity_updates(subscription_id, params) # # @param params [Orb::Models::SubscriptionUnschedulePendingPlanChangesParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse] # @@ -1385,7 +1385,7 @@ def unschedule_pending_plan_changes(subscription_id, params = {}) # customer's timezone. Ifthis parameter is not passed in, the quantity change is # effective according to `change_option`. # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse] # @@ -1429,7 +1429,7 @@ def update_fixed_fee_quantity(subscription_id, params) # @option params [Boolean] :shift If true, shifts subsequent price and adjustment intervals (preserving their # durations, but adjusting their absolute dates). # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::SubscriptionUpdateTrialResponse] # diff --git a/lib/orb/resources/top_level.rb b/lib/orb/resources/top_level.rb index 16431906..79d5f884 100644 --- a/lib/orb/resources/top_level.rb +++ b/lib/orb/resources/top_level.rb @@ -12,7 +12,7 @@ class TopLevel # # @param params [Orb::Models::TopLevelPingParams, Hash{Symbol=>Object}] . # - # @option params [Orb::RequestOptions, Hash{Symbol=>Object}] :request_options + # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options # # @return [Orb::Models::TopLevelPingResponse] # diff --git a/lib/orb/version.rb b/lib/orb/version.rb index 2567aacb..004089d6 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.3" + VERSION = "0.1.0-alpha.4" end diff --git a/rbi/lib/orb/base_client.rbi b/rbi/lib/orb/base_client.rbi index 62ffa02d..ac35cf15 100644 --- a/rbi/lib/orb/base_client.rbi +++ b/rbi/lib/orb/base_client.rbi @@ -14,13 +14,7 @@ module Orb unwrap: T.nilable(Symbol), page: T.nilable(T::Class[Orb::BaseModel]), model: T.nilable(Orb::Converter::Input), - options: T.nilable( - T.any( - Orb::RequestOptions, - Orb::RequestOptions::Shape, - T::Hash[Symbol, T.anything] - ) - ) + options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) } end @@ -38,7 +32,8 @@ module Orb MAX_REDIRECTS = 20 sig { params(req: Orb::BaseClient::RequestShape).void } - def self.validate!(req); end + def self.validate!(req) + end # @private # @@ -64,27 +59,33 @@ module Orb max_retry_delay: 0.0, headers: {}, idempotency_header: nil - ); end + ) + end sig { overridable.returns(T::Hash[String, String]) } - private def auth_headers; end + private def auth_headers + end sig { returns(String) } - private def generate_idempotency_key; end + private def generate_idempotency_key + end sig do params( req: Orb::BaseClient::RequestShape, - opts: Orb::RequestOptions::Shape + opts: T::Hash[Symbol, T.anything] ).returns(Orb::BaseClient::NormalizedRequestShape) end - private def build_request(req, opts); end + private def build_request(req, opts) + end sig { params(status: Integer, headers: T::Hash[String, String]).returns(T::Boolean) } - private def should_retry?(status, headers:); end + private def should_retry?(status, headers:) + end sig { params(headers: T::Hash[String, String], retry_count: Integer).returns(Float) } - private def retry_delay(headers, retry_count:); end + private def retry_delay(headers, retry_count:) + end sig do params( @@ -93,7 +94,8 @@ module Orb location_header: String ).returns(Orb::BaseClient::NormalizedRequestShape) end - private def follow_redirect(request, status:, location_header:); end + private def follow_redirect(request, status:, location_header:) + end sig do params( @@ -103,10 +105,12 @@ module Orb send_retry_header: T::Boolean ).returns(Net::HTTPResponse) end - private def send_request(request, redirect_count:, retry_count:, send_retry_header:); end + private def send_request(request, redirect_count:, retry_count:, send_retry_header:) + end sig { params(req: Orb::BaseClient::RequestShape, response: NilClass).returns(T.anything) } - private def parse_response(req, response); end + private def parse_response(req, response) + end sig do params( @@ -118,13 +122,7 @@ module Orb unwrap: T.nilable(Symbol), page: T.nilable(T::Class[Orb::BaseModel]), model: T.nilable(Orb::Converter::Input), - options: T.nilable( - T.any( - Orb::RequestOptions, - Orb::RequestOptions::Shape, - T::Hash[Symbol, T.anything] - ) - ) + options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(T.anything) end def request( @@ -141,6 +139,7 @@ module Orb end sig { returns(String) } - def inspect; end + def inspect + end end end diff --git a/rbi/lib/orb/base_model.rbi b/rbi/lib/orb/base_model.rbi index 7882c1de..ade9e0a2 100644 --- a/rbi/lib/orb/base_model.rbi +++ b/rbi/lib/orb/base_model.rbi @@ -7,10 +7,12 @@ module Orb Input = T.type_alias { T.any(Orb::Converter, T::Class[T.anything]) } sig { overridable.params(value: T.anything).returns(T.anything) } - def coerce(value); end + def coerce(value) + end sig { overridable.params(value: T.anything).returns(T.anything) } - def dump(value); end + def dump(value) + end sig do overridable.params(value: T.anything).returns( @@ -20,7 +22,8 @@ module Orb ) ) end - def try_strict_coerce(value); end + def try_strict_coerce(value) + end sig do params( @@ -35,16 +38,20 @@ module Orb ) ).returns(T.proc.returns(T.anything).void) end - def self.type_info(spec); end + def self.type_info(spec) + end sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } - def self.coerce(target, value); end + def self.coerce(target, value) + end sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } - def self.dump(target, value); end + def self.dump(target, value) + end sig { params(target: Orb::Converter::Input, value: T.anything).returns(T.anything) } - def self.try_strict_coerce(target, value); end + def self.try_strict_coerce(target, value) + end end class Unknown @@ -53,16 +60,20 @@ module Orb extend Orb::Converter sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other); end + def self.===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other); end + def self.==(other) + end sig { override.params(value: T.anything).returns(T.anything) } - def self.coerce(value); end + def self.coerce(value) + end sig { override.params(value: T.anything).returns(T.anything) } - def self.dump(value); end + def self.dump(value) + end sig do override.params(value: T.anything).returns( @@ -72,7 +83,8 @@ module Orb ) ) end - def self.try_strict_coerce(value); end + def self.try_strict_coerce(value) + end end class BooleanModel @@ -81,16 +93,20 @@ module Orb extend Orb::Converter sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other); end + def self.===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other); end + def self.==(other) + end sig { override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) } - def self.coerce(value); end + def self.coerce(value) + end sig { override.params(value: T.any(T::Boolean, T.anything)).returns(T.any(T::Boolean, T.anything)) } - def self.dump(value); end + def self.dump(value) + end sig do override.params(value: T.anything).returns( @@ -100,7 +116,8 @@ module Orb ) ) end - def self.try_strict_coerce(value); end + def self.try_strict_coerce(value) + end end class Enum @@ -109,22 +126,28 @@ module Orb extend Orb::Converter sig { overridable.returns(T::Array[T.any(NilClass, T::Boolean, Integer, Float, Symbol)]) } - def self.values; end + def self.values + end sig { void } - private_class_method def self.finalize!; end + private_class_method def self.finalize! + end sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other); end + def self.===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other); end + def self.==(other) + end sig { override.params(value: T.any(String, Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } - def self.coerce(value); end + def self.coerce(value) + end sig { override.params(value: T.any(Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } - def self.dump(value); end + def self.dump(value) + end sig do override.params(value: T.anything).returns( @@ -134,7 +157,8 @@ module Orb ) ) end - def self.try_strict_coerce(value); end + def self.try_strict_coerce(value) + end end class Union @@ -144,13 +168,16 @@ module Orb extend Orb::Converter sig { returns(T::Array[[T.nilable(Symbol), Proc]]) } - private_class_method def self.known_variants; end + private_class_method def self.known_variants + end sig { overridable.returns(T::Array[[T.nilable(Symbol), T.anything]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end sig { params(property: Symbol).void } - private_class_method def self.discriminator(property); end + private_class_method def self.discriminator(property) + end sig do params( @@ -163,22 +190,28 @@ module Orb spec: T.any(T::Hash[Symbol, T.anything], T.proc.returns(Orb::Converter::Input), Orb::Converter::Input) ).void end - private_class_method def self.variant(key, spec = nil); end + private_class_method def self.variant(key, spec = nil) + end sig { params(value: T.anything).returns(T.nilable(Orb::Converter::Input)) } - private_class_method def self.resolve_variant(value); end + private_class_method def self.resolve_variant(value) + end sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other); end + def self.===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other); end + def self.==(other) + end sig { override.params(value: T.anything).returns(T.anything) } - def self.coerce(value); end + def self.coerce(value) + end sig { override.params(value: T.anything).returns(T.anything) } - def self.dump(value); end + def self.dump(value) + end sig do override.params(value: T.anything).returns( @@ -188,7 +221,8 @@ module Orb ) ) end - def self.try_strict_coerce(value); end + def self.try_strict_coerce(value) + end end class ArrayOf @@ -197,10 +231,12 @@ module Orb include Orb::Converter sig { params(other: T.anything).returns(T::Boolean) } - def ===(other); end + def ===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def ==(other); end + def ==(other) + end sig do override.params( @@ -210,7 +246,8 @@ module Orb ) ).returns(T.any(T::Array[T.anything], T.anything)) end - def coerce(value); end + def coerce(value) + end sig do override.params( @@ -220,7 +257,8 @@ module Orb ) ).returns(T.any(T::Array[T.anything], T.anything)) end - def dump(value); end + def dump(value) + end sig do override.params(value: T.anything).returns( @@ -230,10 +268,12 @@ module Orb ) ) end - def try_strict_coerce(value); end + def try_strict_coerce(value) + end sig { returns(Orb::Converter::Input) } - protected def item_type; end + protected def item_type + end sig do params( @@ -245,7 +285,8 @@ module Orb spec: T::Hash[Symbol, T.anything] ).void end - def initialize(type_info, spec = {}); end + def initialize(type_info, spec = {}) + end end class HashOf @@ -254,10 +295,12 @@ module Orb include Orb::Converter sig { params(other: T.anything).returns(T::Boolean) } - def ===(other); end + def ===(other) + end sig { params(other: T.anything).returns(T::Boolean) } - def ==(other); end + def ==(other) + end sig do override.params( @@ -267,7 +310,8 @@ module Orb ) ).returns(T.any(T::Hash[Symbol, T.anything], T.anything)) end - def coerce(value); end + def coerce(value) + end sig do override.params( @@ -277,7 +321,8 @@ module Orb ) ).returns(T.any(T::Hash[Symbol, T.anything], T.anything)) end - def dump(value); end + def dump(value) + end sig do override.params(value: T.anything).returns( @@ -287,10 +332,12 @@ module Orb ) ) end - def try_strict_coerce(value); end + def try_strict_coerce(value) + end sig { returns(Orb::Converter::Input) } - protected def item_type; end + protected def item_type + end sig do params( @@ -302,7 +349,8 @@ module Orb spec: T::Hash[Symbol, T.anything] ).void end - def initialize(type_info, spec = {}); end + def initialize(type_info, spec = {}) + end end class BaseModel @@ -319,13 +367,16 @@ module Orb T.all(Orb::BaseModel::KnownFieldShape, {type_fn: T.proc.returns(Orb::Converter::Input)})] ) end - def self.known_fields; end + def self.known_fields + end sig { returns(T::Hash[Symbol, T.all(Orb::BaseModel::KnownFieldShape, {type: Orb::Converter::Input})]) } - def self.fields; end + def self.fields + end sig { returns(T::Hash[Symbol, T.proc.returns(T::Class[T.anything])]) } - def self.defaults; end + def self.defaults + end sig do params( @@ -345,7 +396,8 @@ module Orb spec: T::Hash[Symbol, T.anything] ).void end - private_class_method def self.add_field(name_sym, required:, type_info:, spec:); end + private_class_method def self.add_field(name_sym, required:, type_info:, spec:) + end sig do params( @@ -358,7 +410,8 @@ module Orb spec: T::Hash[Symbol, T.anything] ).void end - def self.required(name_sym, type_info, spec = {}); end + def self.required(name_sym, type_info, spec = {}) + end sig do params( @@ -371,16 +424,20 @@ module Orb spec: T::Hash[Symbol, T.anything] ).void end - def self.optional(name_sym, type_info, spec = {}); end + def self.optional(name_sym, type_info, spec = {}) + end sig { params(blk: T.proc.void).void } - private_class_method def self.request_only(&blk); end + private_class_method def self.request_only(&blk) + end sig { params(blk: T.proc.void).void } - private_class_method def self.response_only(&blk); end + private_class_method def self.response_only(&blk) + end sig { params(other: T.anything).returns(T::Boolean) } - def ==(other); end + def ==(other) + end sig do override.params( @@ -391,7 +448,8 @@ module Orb ) ).returns(T.any(T.attached_class, T.anything)) end - def self.coerce(value); end + def self.coerce(value) + end sig do override.params( @@ -401,7 +459,8 @@ module Orb ) ).returns(T.any(T::Hash[T.anything, T.anything], T.anything)) end - def self.dump(value); end + def self.dump(value) + end sig do override.params(value: T.anything).returns( @@ -411,26 +470,33 @@ module Orb ) ) end - def self.try_strict_coerce(value); end + def self.try_strict_coerce(value) + end sig { params(key: Symbol).returns(T.nilable(T.anything)) } - def [](key); end + def [](key) + end - sig { returns(T::Hash[Symbol, T.anything]) } - def to_h; end + sig { overridable.returns(T::Hash[Symbol, T.anything]) } + def to_h + end alias_method :to_hash, :to_h sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.anything]) } - def deconstruct_keys(keys); end + def deconstruct_keys(keys) + end sig { params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).void } - def initialize(data = {}); end + def initialize(data = {}) + end sig { returns(String) } - def to_s; end + def to_s + end sig { returns(String) } - def inspect; end + def inspect + end end end diff --git a/rbi/lib/orb/base_page.rbi b/rbi/lib/orb/base_page.rbi index bbe69937..66999730 100644 --- a/rbi/lib/orb/base_page.rbi +++ b/rbi/lib/orb/base_page.rbi @@ -7,16 +7,20 @@ module Orb Elem = type_member(:out) sig { overridable.returns(T::Boolean) } - def next_page?; end + def next_page? + end sig { overridable.returns(T.self_type) } - def next_page; end + def next_page + end sig { overridable.params(blk: T.proc.params(arg0: Elem).void).void } - def auto_paging_each(&blk); end + def auto_paging_each(&blk) + end sig { returns(T::Enumerable[Elem]) } - def to_enum; end + def to_enum + end alias_method :enum_for, :to_enum @@ -28,6 +32,7 @@ module Orb unwrapped: T.anything ).void end - def initialize(client:, req:, headers:, unwrapped:); end + def initialize(client:, req:, headers:, unwrapped:) + end end end diff --git a/rbi/lib/orb/client.rbi b/rbi/lib/orb/client.rbi index d21ddaa6..e8fdf3a4 100644 --- a/rbi/lib/orb/client.rbi +++ b/rbi/lib/orb/client.rbi @@ -56,7 +56,8 @@ module Orb attr_reader :dimensional_price_groups sig { returns(T::Hash[String, String]) } - private def auth_headers; end + private def auth_headers + end sig do params( @@ -77,6 +78,7 @@ module Orb initial_retry_delay: DEFAULT_INITIAL_RETRY_DELAY, max_retry_delay: DEFAULT_MAX_RETRY_DELAY, idempotency_header: "Idempotency-Key" - ); end + ) + end end end diff --git a/rbi/lib/orb/errors.rbi b/rbi/lib/orb/errors.rbi index a5005674..0b1cdf27 100644 --- a/rbi/lib/orb/errors.rbi +++ b/rbi/lib/orb/errors.rbi @@ -29,7 +29,8 @@ module Orb message: T.nilable(String) ).void end - def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil); end + def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil) + end end class APIConnectionError < Orb::APIError @@ -78,7 +79,8 @@ module Orb response: NilClass ).returns(T.attached_class) end - def self.for(url:, status:, body:, request:, response:); end + def self.for(url:, status:, body:, request:, response:) + end sig { returns(Integer) } attr_reader :status @@ -93,7 +95,8 @@ module Orb message: T.nilable(String) ).void end - def initialize(url:, status:, body:, request:, response:, message: nil); end + def initialize(url:, status:, body:, request:, response:, message: nil) + end end class BadRequestError < Orb::APIStatusError diff --git a/rbi/lib/orb/extern.rbi b/rbi/lib/orb/extern.rbi index b2d140da..648b37ab 100644 --- a/rbi/lib/orb/extern.rbi +++ b/rbi/lib/orb/extern.rbi @@ -3,8 +3,5 @@ module Orb module Extern abstract! - - sig { params(blk: T.proc.void).void } - def sorbet!(&blk); end end end diff --git a/rbi/lib/orb/models/alert.rbi b/rbi/lib/orb/models/alert.rbi index d89ecb60..3e9ce6e8 100644 --- a/rbi/lib/orb/models/alert.rbi +++ b/rbi/lib/orb/models/alert.rbi @@ -3,21 +3,6 @@ module Orb module Models class Alert < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - created_at: Time, - currency: T.nilable(String), - customer: T.nilable(Orb::Models::Alert::Customer), - enabled: T::Boolean, - metric: T.nilable(Orb::Models::Alert::Metric), - plan: T.nilable(Orb::Models::Alert::Plan), - subscription: T.nilable(Orb::Models::Alert::Subscription), - thresholds: T.nilable(T::Array[Orb::Models::Alert::Threshold]), - type: Symbol - } - end - sig { returns(String) } attr_accessor :id @@ -76,12 +61,26 @@ module Orb ) end - sig { returns(Orb::Models::Alert::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + created_at: Time, + currency: T.nilable(String), + customer: T.nilable(Orb::Models::Alert::Customer), + enabled: T::Boolean, + metric: T.nilable(Orb::Models::Alert::Metric), + plan: T.nilable(Orb::Models::Alert::Plan), + subscription: T.nilable(Orb::Models::Alert::Subscription), + thresholds: T.nilable(T::Array[Orb::Models::Alert::Threshold]), + type: Symbol + } + ) + end + def to_hash + end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -89,35 +88,28 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig { returns(Orb::Models::Alert::Customer::Shape) } - def to_h; end + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash + end end class Metric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Alert::Metric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class Plan < Orb::BaseModel - Shape = T.type_alias do - { - id: T.nilable(String), - external_plan_id: T.nilable(String), - name: T.nilable(String), - plan_version: String - } - end - sig { returns(T.nilable(String)) } attr_accessor :id @@ -138,36 +130,47 @@ module Orb plan_version: String ).void end - def initialize(id:, external_plan_id:, name:, plan_version:); end + def initialize(id:, external_plan_id:, name:, plan_version:) + end - sig { returns(Orb::Models::Alert::Plan::Shape) } - def to_h; end + sig do + override.returns( + { + id: T.nilable(String), + external_plan_id: T.nilable(String), + name: T.nilable(String), + plan_version: String + } + ) + end + def to_hash + end end class Subscription < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Alert::Subscription::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class Threshold < Orb::BaseModel - Shape = T.type_alias { {value: Float} } - sig { returns(Float) } attr_accessor :value sig { params(value: Float).void } - def initialize(value:); end + def initialize(value:) + end - sig { returns(Orb::Models::Alert::Threshold::Shape) } - def to_h; end + sig { override.returns({value: Float}) } + def to_hash + end end class Type < Orb::Enum @@ -180,7 +183,8 @@ module Orb CREDIT_BALANCE_RECOVERED = :credit_balance_recovered sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/alert_create_for_customer_params.rbi b/rbi/lib/orb/models/alert_create_for_customer_params.rbi index 0d31172b..fa8c03c7 100644 --- a/rbi/lib/orb/models/alert_create_for_customer_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_customer_params.rbi @@ -6,17 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :currency @@ -31,13 +20,24 @@ module Orb currency: String, type: Symbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(currency:, type:, thresholds: nil, request_options: {}); end + def initialize(currency:, type:, thresholds: nil, request_options: {}) + end - sig { returns(Orb::Models::AlertCreateForCustomerParams::Shape) } - def to_h; end + sig do + override.returns( + { + currency: String, + type: Symbol, + thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class Type < Orb::Enum abstract! @@ -49,20 +49,21 @@ module Orb CREDIT_BALANCE_RECOVERED = :credit_balance_recovered sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Threshold < Orb::BaseModel - Shape = T.type_alias { {value: Float} } - sig { returns(Float) } attr_accessor :value sig { params(value: Float).void } - def initialize(value:); end + def initialize(value:) + end - sig { returns(Orb::Models::AlertCreateForCustomerParams::Threshold::Shape) } - def to_h; end + sig { override.returns({value: Float}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi b/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi index dd4ee7f6..223b56a5 100644 --- a/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi @@ -6,17 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :currency @@ -31,13 +20,24 @@ module Orb currency: String, type: Symbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(currency:, type:, thresholds: nil, request_options: {}); end + def initialize(currency:, type:, thresholds: nil, request_options: {}) + end - sig { returns(Orb::Models::AlertCreateForExternalCustomerParams::Shape) } - def to_h; end + sig do + override.returns( + { + currency: String, + type: Symbol, + thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class Type < Orb::Enum abstract! @@ -49,20 +49,21 @@ module Orb CREDIT_BALANCE_RECOVERED = :credit_balance_recovered sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Threshold < Orb::BaseModel - Shape = T.type_alias { {value: Float} } - sig { returns(Float) } attr_accessor :value sig { params(value: Float).void } - def initialize(value:); end + def initialize(value:) + end - sig { returns(Orb::Models::AlertCreateForExternalCustomerParams::Threshold::Shape) } - def to_h; end + sig { override.returns({value: Float}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/alert_create_for_subscription_params.rbi b/rbi/lib/orb/models/alert_create_for_subscription_params.rbi index 00f51f88..50d9d32f 100644 --- a/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_subscription_params.rbi @@ -6,17 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Symbol, - metric_id: T.nilable(String) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) } attr_accessor :thresholds @@ -31,25 +20,36 @@ module Orb thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], type: Symbol, metric_id: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(thresholds:, type:, metric_id: nil, request_options: {}); end + def initialize(thresholds:, type:, metric_id: nil, request_options: {}) + end - sig { returns(Orb::Models::AlertCreateForSubscriptionParams::Shape) } - def to_h; end + sig do + override.returns( + { + thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], + type: Symbol, + metric_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class Threshold < Orb::BaseModel - Shape = T.type_alias { {value: Float} } - sig { returns(Float) } attr_accessor :value sig { params(value: Float).void } - def initialize(value:); end + def initialize(value:) + end - sig { returns(Orb::Models::AlertCreateForSubscriptionParams::Threshold::Shape) } - def to_h; end + sig { override.returns({value: Float}) } + def to_hash + end end class Type < Orb::Enum @@ -62,7 +62,8 @@ module Orb CREDIT_BALANCE_RECOVERED = :credit_balance_recovered sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/alert_disable_params.rbi b/rbi/lib/orb/models/alert_disable_params.rbi index ab9dd203..d24293f3 100644 --- a/rbi/lib/orb/models/alert_disable_params.rbi +++ b/rbi/lib/orb/models/alert_disable_params.rbi @@ -6,16 +6,21 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({subscription_id: T.nilable(String)}, Orb::RequestParameters::Shape) } - sig { returns(T.nilable(String)) } attr_accessor :subscription_id - sig { params(subscription_id: T.nilable(String), request_options: Orb::RequestOpts).void } - def initialize(subscription_id: nil, request_options: {}); end + sig do + params( + subscription_id: T.nilable(String), + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(subscription_id: nil, request_options: {}) + end - sig { returns(Orb::Models::AlertDisableParams::Shape) } - def to_h; end + sig { override.returns({subscription_id: T.nilable(String), request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/alert_enable_params.rbi b/rbi/lib/orb/models/alert_enable_params.rbi index 5bc30bbf..5e2e26a4 100644 --- a/rbi/lib/orb/models/alert_enable_params.rbi +++ b/rbi/lib/orb/models/alert_enable_params.rbi @@ -6,16 +6,21 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({subscription_id: T.nilable(String)}, Orb::RequestParameters::Shape) } - sig { returns(T.nilable(String)) } attr_accessor :subscription_id - sig { params(subscription_id: T.nilable(String), request_options: Orb::RequestOpts).void } - def initialize(subscription_id: nil, request_options: {}); end + sig do + params( + subscription_id: T.nilable(String), + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(subscription_id: nil, request_options: {}) + end - sig { returns(Orb::Models::AlertEnableParams::Shape) } - def to_h; end + sig { override.returns({subscription_id: T.nilable(String), request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/alert_list_params.rbi b/rbi/lib/orb/models/alert_list_params.rbi index dae12bf8..7e806f10 100644 --- a/rbi/lib/orb/models/alert_list_params.rbi +++ b/rbi/lib/orb/models/alert_list_params.rbi @@ -6,23 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - customer_id: T.nilable(String), - external_customer_id: T.nilable(String), - limit: Integer, - subscription_id: T.nilable(String) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -64,7 +47,7 @@ module Orb external_customer_id: T.nilable(String), limit: Integer, subscription_id: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -78,10 +61,27 @@ module Orb limit: nil, subscription_id: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::AlertListParams::Shape) } - def to_h; end + sig do + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + customer_id: T.nilable(String), + external_customer_id: T.nilable(String), + limit: Integer, + subscription_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/alert_retrieve_params.rbi b/rbi/lib/orb/models/alert_retrieve_params.rbi index debc2871..4738643b 100644 --- a/rbi/lib/orb/models/alert_retrieve_params.rbi +++ b/rbi/lib/orb/models/alert_retrieve_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::AlertRetrieveParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/alert_update_params.rbi b/rbi/lib/orb/models/alert_update_params.rbi index 001d0b64..c51a1647 100644 --- a/rbi/lib/orb/models/alert_update_params.rbi +++ b/rbi/lib/orb/models/alert_update_params.rbi @@ -6,38 +6,40 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - {thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold]}, - Orb::RequestParameters::Shape - ) - end - sig { returns(T::Array[Orb::Models::AlertUpdateParams::Threshold]) } attr_accessor :thresholds sig do params( thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(thresholds:, request_options: {}); end + def initialize(thresholds:, request_options: {}) + end - sig { returns(Orb::Models::AlertUpdateParams::Shape) } - def to_h; end + sig do + override.returns( + { + thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class Threshold < Orb::BaseModel - Shape = T.type_alias { {value: Float} } - sig { returns(Float) } attr_accessor :value sig { params(value: Float).void } - def initialize(value:); end + def initialize(value:) + end - sig { returns(Orb::Models::AlertUpdateParams::Threshold::Shape) } - def to_h; end + sig { override.returns({value: Float}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/amount_discount.rbi b/rbi/lib/orb/models/amount_discount.rbi index db8d806a..6182c84d 100644 --- a/rbi/lib/orb/models/amount_discount.rbi +++ b/rbi/lib/orb/models/amount_discount.rbi @@ -3,15 +3,6 @@ module Orb module Models class AmountDiscount < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -32,10 +23,21 @@ module Orb reason: T.nilable(String) ).void end - def initialize(amount_discount:, applies_to_price_ids:, discount_type:, reason: nil); end + def initialize(amount_discount:, applies_to_price_ids:, discount_type:, reason: nil) + end - sig { returns(Orb::Models::AmountDiscount::Shape) } - def to_h; end + sig do + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + reason: T.nilable(String) + } + ) + end + def to_hash + end class DiscountType < Orb::Enum abstract! @@ -43,7 +45,8 @@ module Orb AMOUNT = :amount sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/billable_metric.rbi b/rbi/lib/orb/models/billable_metric.rbi index 51b29a9a..95489b40 100644 --- a/rbi/lib/orb/models/billable_metric.rbi +++ b/rbi/lib/orb/models/billable_metric.rbi @@ -3,17 +3,6 @@ module Orb module Models class BillableMetric < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - description: T.nilable(String), - item: Orb::Models::Item, - metadata: T::Hash[Symbol, String], - name: String, - status: Symbol - } - end - sig { returns(String) } attr_accessor :id @@ -42,10 +31,23 @@ module Orb status: Symbol ).void end - def initialize(id:, description:, item:, metadata:, name:, status:); end + def initialize(id:, description:, item:, metadata:, name:, status:) + end - sig { returns(Orb::Models::BillableMetric::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + description: T.nilable(String), + item: Orb::Models::Item, + metadata: T::Hash[Symbol, String], + name: String, + status: Symbol + } + ) + end + def to_hash + end class Status < Orb::Enum abstract! @@ -55,7 +57,8 @@ module Orb ARCHIVED = :archived sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/billing_cycle_relative_date.rbi b/rbi/lib/orb/models/billing_cycle_relative_date.rbi index ef7cc325..6a70378b 100644 --- a/rbi/lib/orb/models/billing_cycle_relative_date.rbi +++ b/rbi/lib/orb/models/billing_cycle_relative_date.rbi @@ -9,7 +9,8 @@ module Orb END_OF_TERM = :end_of_term sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/coupon.rbi b/rbi/lib/orb/models/coupon.rbi index 4de52d15..b42990e3 100644 --- a/rbi/lib/orb/models/coupon.rbi +++ b/rbi/lib/orb/models/coupon.rbi @@ -3,25 +3,13 @@ module Orb module Models class Coupon < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - archived_at: T.nilable(Time), - discount: Orb::Models::Coupon::Discount::Variants, - duration_in_months: T.nilable(Integer), - max_redemptions: T.nilable(Integer), - redemption_code: String, - times_redeemed: Integer - } - end - sig { returns(String) } attr_accessor :id sig { returns(T.nilable(Time)) } attr_accessor :archived_at - sig { returns(Orb::Models::Coupon::Discount::Variants) } + sig { returns(T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)) } attr_accessor :discount sig { returns(T.nilable(Integer)) } @@ -40,7 +28,7 @@ module Orb params( id: String, archived_at: T.nilable(Time), - discount: Orb::Models::Coupon::Discount::Variants, + discount: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount), duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), redemption_code: String, @@ -58,18 +46,30 @@ module Orb ) end - sig { returns(Orb::Models::Coupon::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + archived_at: T.nilable(Time), + discount: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount), + duration_in_months: T.nilable(Integer), + max_redemptions: T.nilable(Integer), + redemption_code: String, + times_redeemed: Integer + } + ) + end + def to_hash + end class Discount < Orb::Union abstract! - Variants = T.type_alias { T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount) } - sig do override.returns([[Symbol, Orb::Models::PercentageDiscount], [Symbol, Orb::Models::AmountDiscount]]) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/coupon_archive_params.rbi b/rbi/lib/orb/models/coupon_archive_params.rbi index 2a178678..8928a8e3 100644 --- a/rbi/lib/orb/models/coupon_archive_params.rbi +++ b/rbi/lib/orb/models/coupon_archive_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::CouponArchiveParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/coupon_create_params.rbi b/rbi/lib/orb/models/coupon_create_params.rbi index 2f2838c0..ee5e02e5 100644 --- a/rbi/lib/orb/models/coupon_create_params.rbi +++ b/rbi/lib/orb/models/coupon_create_params.rbi @@ -6,19 +6,14 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - discount: Orb::Models::CouponCreateParams::Discount::Variants, - redemption_code: String, - duration_in_months: T.nilable(Integer), - max_redemptions: T.nilable(Integer) - }, - Orb::RequestParameters::Shape + sig do + returns( + T.any( + Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount + ) ) end - - sig { returns(Orb::Models::CouponCreateParams::Discount::Variants) } attr_accessor :discount sig { returns(String) } @@ -32,11 +27,14 @@ module Orb sig do params( - discount: Orb::Models::CouponCreateParams::Discount::Variants, + discount: T.any( + Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount + ), redemption_code: String, duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -48,22 +46,27 @@ module Orb ) end - sig { returns(Orb::Models::CouponCreateParams::Shape) } - def to_h; end + sig do + override.returns( + { + discount: T.any( + Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount + ), + redemption_code: String, + duration_in_months: T.nilable(Integer), + max_redemptions: T.nilable(Integer), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class Discount < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, - Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount - ) - end - class NewCouponPercentageDiscount < Orb::BaseModel - Shape = T.type_alias { {discount_type: Symbol, percentage_discount: Float} } - sig { returns(Symbol) } attr_accessor :discount_type @@ -71,15 +74,15 @@ module Orb attr_accessor :percentage_discount sig { params(percentage_discount: Float, discount_type: Symbol).void } - def initialize(percentage_discount:, discount_type: :percentage); end + def initialize(percentage_discount:, discount_type: :percentage) + end - sig { returns(Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount::Shape) } - def to_h; end + sig { override.returns({discount_type: Symbol, percentage_discount: Float}) } + def to_hash + end end class NewCouponAmountDiscount < Orb::BaseModel - Shape = T.type_alias { {amount_discount: String, discount_type: Symbol} } - sig { returns(String) } attr_accessor :amount_discount @@ -87,10 +90,12 @@ module Orb attr_accessor :discount_type sig { params(amount_discount: String, discount_type: Symbol).void } - def initialize(amount_discount:, discount_type: :amount); end + def initialize(amount_discount:, discount_type: :amount) + end - sig { returns(Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount::Shape) } - def to_h; end + sig { override.returns({amount_discount: String, discount_type: Symbol}) } + def to_hash + end end sig do @@ -101,7 +106,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/coupon_fetch_params.rbi b/rbi/lib/orb/models/coupon_fetch_params.rbi index aef20f4c..1ffa8fde 100644 --- a/rbi/lib/orb/models/coupon_fetch_params.rbi +++ b/rbi/lib/orb/models/coupon_fetch_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::CouponFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/coupon_list_params.rbi b/rbi/lib/orb/models/coupon_list_params.rbi index 67dca1a5..e281fbf3 100644 --- a/rbi/lib/orb/models/coupon_list_params.rbi +++ b/rbi/lib/orb/models/coupon_list_params.rbi @@ -6,18 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - cursor: T.nilable(String), - limit: Integer, - redemption_code: T.nilable(String), - show_archived: T.nilable(T::Boolean) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -39,14 +27,25 @@ module Orb limit: Integer, redemption_code: T.nilable(String), show_archived: T.nilable(T::Boolean), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize(cursor: nil, limit: nil, redemption_code: nil, show_archived: nil, request_options: {}) end - sig { returns(Orb::Models::CouponListParams::Shape) } - def to_h; end + sig do + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + redemption_code: T.nilable(String), + show_archived: T.nilable(T::Boolean), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/coupons/subscription_list_params.rbi b/rbi/lib/orb/models/coupons/subscription_list_params.rbi index 8642a6a1..188d04e4 100644 --- a/rbi/lib/orb/models/coupons/subscription_list_params.rbi +++ b/rbi/lib/orb/models/coupons/subscription_list_params.rbi @@ -7,10 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({cursor: T.nilable(String), limit: Integer}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -20,11 +16,21 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit - sig { params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts).void } - def initialize(cursor: nil, limit: nil, request_options: {}); end + sig do + params( + cursor: T.nilable(String), + limit: Integer, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(cursor: nil, limit: nil, request_options: {}) + end - sig { returns(Orb::Models::Coupons::SubscriptionListParams::Shape) } - def to_h; end + sig do + override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/credit_note.rbi b/rbi/lib/orb/models/credit_note.rbi index 5fa671cd..e92bfe0f 100644 --- a/rbi/lib/orb/models/credit_note.rbi +++ b/rbi/lib/orb/models/credit_note.rbi @@ -3,27 +3,6 @@ module Orb module Models class CreditNote < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - created_at: Time, - credit_note_number: String, - credit_note_pdf: T.nilable(String), - customer: Orb::Models::CreditNote::Customer, - invoice_id: String, - line_items: T::Array[Orb::Models::CreditNote::LineItem], - maximum_amount_adjustment: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment), - memo: T.nilable(String), - minimum_amount_refunded: T.nilable(String), - reason: T.nilable(Symbol), - subtotal: String, - total: String, - type: Symbol, - voided_at: T.nilable(Time), - discounts: T::Array[Orb::Models::CreditNote::Discount] - } - end - sig { returns(String) } attr_accessor :id @@ -112,14 +91,35 @@ module Orb type:, voided_at:, discounts: nil - ); end + ) + end - sig { returns(Orb::Models::CreditNote::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + created_at: Time, + credit_note_number: String, + credit_note_pdf: T.nilable(String), + customer: Orb::Models::CreditNote::Customer, + invoice_id: String, + line_items: T::Array[Orb::Models::CreditNote::LineItem], + maximum_amount_adjustment: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment), + memo: T.nilable(String), + minimum_amount_refunded: T.nilable(String), + reason: T.nilable(Symbol), + subtotal: String, + total: String, + type: Symbol, + voided_at: T.nilable(Time), + discounts: T::Array[Orb::Models::CreditNote::Discount] + } + ) + end + def to_hash + end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -127,25 +127,15 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig { returns(Orb::Models::CreditNote::Customer::Shape) } - def to_h; end + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash + end end class LineItem < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: String, - name: String, - quantity: T.nilable(Float), - subtotal: String, - tax_amounts: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount], - discounts: T::Array[Orb::Models::CreditNote::LineItem::Discount] - } - end - sig { returns(String) } attr_accessor :id @@ -181,16 +171,26 @@ module Orb discounts: T::Array[Orb::Models::CreditNote::LineItem::Discount] ).void end - def initialize(id:, amount:, name:, quantity:, subtotal:, tax_amounts:, discounts: nil); end + def initialize(id:, amount:, name:, quantity:, subtotal:, tax_amounts:, discounts: nil) + end - sig { returns(Orb::Models::CreditNote::LineItem::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + amount: String, + name: String, + quantity: T.nilable(Float), + subtotal: String, + tax_amounts: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount], + discounts: T::Array[Orb::Models::CreditNote::LineItem::Discount] + } + ) + end + def to_hash + end class TaxAmount < Orb::BaseModel - Shape = T.type_alias do - {amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)} - end - sig { returns(String) } attr_accessor :amount @@ -203,25 +203,23 @@ module Orb sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)).void end - def initialize(amount:, tax_rate_description:, tax_rate_percentage:); end + def initialize(amount:, tax_rate_description:, tax_rate_percentage:) + end - sig { returns(Orb::Models::CreditNote::LineItem::TaxAmount::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + tax_rate_description: String, + tax_rate_percentage: T.nilable(String) + } + ) + end + def to_hash + end end class Discount < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount_applied: String, - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - percentage_discount: Float, - amount_discount: T.nilable(String), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -262,10 +260,24 @@ module Orb percentage_discount:, amount_discount: nil, reason: nil - ); end + ) + end - sig { returns(Orb::Models::CreditNote::LineItem::Discount::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + amount_applied: String, + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + percentage_discount: Float, + amount_discount: T.nilable(String), + reason: T.nilable(String) + } + ) + end + def to_hash + end class DiscountType < Orb::Enum abstract! @@ -274,22 +286,13 @@ module Orb AMOUNT = :amount sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class MaximumAmountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - amount_applied: String, - discount_type: Symbol, - percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :amount_applied @@ -323,8 +326,19 @@ module Orb ) end - sig { returns(Orb::Models::CreditNote::MaximumAmountAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + amount_applied: String, + discount_type: Symbol, + percentage_discount: Float, + applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]), + reason: T.nilable(String) + } + ) + end + def to_hash + end class DiscountType < Orb::Enum abstract! @@ -332,12 +346,11 @@ module Orb PERCENTAGE = :percentage sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class AppliesToPrice < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -345,10 +358,12 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end end @@ -361,7 +376,8 @@ module Orb PRODUCT_UNSATISFACTORY = T.let(:"Product unsatisfactory", T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Type < Orb::Enum @@ -371,20 +387,11 @@ module Orb ADJUSTMENT = :adjustment sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Discount < Orb::BaseModel - Shape = T.type_alias do - { - amount_applied: String, - discount_type: Symbol, - percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :amount_applied @@ -418,8 +425,19 @@ module Orb ) end - sig { returns(Orb::Models::CreditNote::Discount::Shape) } - def to_h; end + sig do + override.returns( + { + amount_applied: String, + discount_type: Symbol, + percentage_discount: Float, + applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]), + reason: T.nilable(String) + } + ) + end + def to_hash + end class DiscountType < Orb::Enum abstract! @@ -427,12 +445,11 @@ module Orb PERCENTAGE = :percentage sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class AppliesToPrice < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -440,10 +457,12 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::CreditNote::Discount::AppliesToPrice::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/credit_note_create_params.rbi b/rbi/lib/orb/models/credit_note_create_params.rbi index df4f7c40..726ed4ba 100644 --- a/rbi/lib/orb/models/credit_note_create_params.rbi +++ b/rbi/lib/orb/models/credit_note_create_params.rbi @@ -6,17 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], - memo: T.nilable(String), - reason: T.nilable(Symbol) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) } attr_accessor :line_items @@ -31,17 +20,26 @@ module Orb line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], memo: T.nilable(String), reason: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(line_items:, memo: nil, reason: nil, request_options: {}); end + def initialize(line_items:, memo: nil, reason: nil, request_options: {}) + end - sig { returns(Orb::Models::CreditNoteCreateParams::Shape) } - def to_h; end + sig do + override.returns( + { + line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], + memo: T.nilable(String), + reason: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class LineItem < Orb::BaseModel - Shape = T.type_alias { {amount: String, invoice_line_item_id: String} } - sig { returns(String) } attr_accessor :amount @@ -49,10 +47,12 @@ module Orb attr_accessor :invoice_line_item_id sig { params(amount: String, invoice_line_item_id: String).void } - def initialize(amount:, invoice_line_item_id:); end + def initialize(amount:, invoice_line_item_id:) + end - sig { returns(Orb::Models::CreditNoteCreateParams::LineItem::Shape) } - def to_h; end + sig { override.returns({amount: String, invoice_line_item_id: String}) } + def to_hash + end end class Reason < Orb::Enum @@ -64,7 +64,8 @@ module Orb PRODUCT_UNSATISFACTORY = T.let(:product_unsatisfactory, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/credit_note_fetch_params.rbi b/rbi/lib/orb/models/credit_note_fetch_params.rbi index 02c3b731..64fb73ae 100644 --- a/rbi/lib/orb/models/credit_note_fetch_params.rbi +++ b/rbi/lib/orb/models/credit_note_fetch_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::CreditNoteFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/credit_note_list_params.rbi b/rbi/lib/orb/models/credit_note_list_params.rbi index 16847da5..23b87acb 100644 --- a/rbi/lib/orb/models/credit_note_list_params.rbi +++ b/rbi/lib/orb/models/credit_note_list_params.rbi @@ -6,10 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({cursor: T.nilable(String), limit: Integer}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -19,11 +15,21 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit - sig { params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts).void } - def initialize(cursor: nil, limit: nil, request_options: {}); end + sig do + params( + cursor: T.nilable(String), + limit: Integer, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(cursor: nil, limit: nil, request_options: {}) + end - sig { returns(Orb::Models::CreditNoteListParams::Shape) } - def to_h; end + sig do + override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customer.rbi b/rbi/lib/orb/models/customer.rbi index 3d5118be..5466186f 100644 --- a/rbi/lib/orb/models/customer.rbi +++ b/rbi/lib/orb/models/customer.rbi @@ -3,32 +3,6 @@ module Orb module Models class Customer < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - additional_emails: T::Array[String], - auto_collection: T::Boolean, - balance: String, - billing_address: T.nilable(Orb::Models::Customer::BillingAddress), - created_at: Time, - currency: T.nilable(String), - email: String, - email_delivery: T::Boolean, - exempt_from_automated_tax: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - metadata: T::Hash[Symbol, String], - name: String, - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - portal_url: T.nilable(String), - shipping_address: T.nilable(Orb::Models::Customer::ShippingAddress), - tax_id: T.nilable(Orb::Models::Customer::TaxID), - timezone: String, - accounting_sync_configuration: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration), - reporting_configuration: T.nilable(Orb::Models::Customer::ReportingConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -139,23 +113,40 @@ module Orb timezone:, accounting_sync_configuration: nil, reporting_configuration: nil - ); end - - sig { returns(Orb::Models::Customer::Shape) } - def to_h; end + ) + end - class BillingAddress < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) + id: String, + additional_emails: T::Array[String], + auto_collection: T::Boolean, + balance: String, + billing_address: T.nilable(Orb::Models::Customer::BillingAddress), + created_at: Time, + currency: T.nilable(String), + email: String, + email_delivery: T::Boolean, + exempt_from_automated_tax: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + metadata: T::Hash[Symbol, String], + name: String, + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + portal_url: T.nilable(String), + shipping_address: T.nilable(Orb::Models::Customer::ShippingAddress), + tax_id: T.nilable(Orb::Models::Customer::TaxID), + timezone: String, + accounting_sync_configuration: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration), + reporting_configuration: T.nilable(Orb::Models::Customer::ReportingConfiguration) } - end + ) + end + def to_hash + end + class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } attr_accessor :city @@ -184,10 +175,23 @@ module Orb state: T.nilable(String) ).void end - def initialize(city:, country:, line1:, line2:, postal_code:, state:); end + def initialize(city:, country:, line1:, line2:, postal_code:, state:) + end - sig { returns(Orb::Models::Customer::BillingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class PaymentProvider < Orb::Enum @@ -200,21 +204,11 @@ module Orb NETSUITE = T.let(:netsuite, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class ShippingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -243,15 +237,26 @@ module Orb state: T.nilable(String) ).void end - def initialize(city:, country:, line1:, line2:, postal_code:, state:); end + def initialize(city:, country:, line1:, line2:, postal_code:, state:) + end - sig { returns(Orb::Models::Customer::ShippingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class TaxID < Orb::BaseModel - Shape = T.type_alias { {country: Symbol, type: Symbol, value: String} } - sig { returns(Symbol) } attr_accessor :country @@ -262,10 +267,12 @@ module Orb attr_accessor :value sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:); end + def initialize(country:, type:, value:) + end - sig { returns(Orb::Models::Customer::TaxID::Shape) } - def to_h; end + sig { override.returns({country: Symbol, type: Symbol, value: String}) } + def to_hash + end class Country < Orb::Enum abstract! @@ -350,7 +357,8 @@ module Orb ZA = :ZA sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Type < Orb::Enum @@ -429,18 +437,12 @@ module Orb ZA_VAT = :za_vat sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class AccountingSyncConfiguration < Orb::BaseModel - Shape = T.type_alias do - { - accounting_providers: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], - excluded: T::Boolean - } - end - sig { returns(T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) } attr_accessor :accounting_providers @@ -453,14 +455,20 @@ module Orb excluded: T::Boolean ).void end - def initialize(accounting_providers:, excluded:); end + def initialize(accounting_providers:, excluded:) + end - sig { returns(Orb::Models::Customer::AccountingSyncConfiguration::Shape) } - def to_h; end + sig do + override.returns( + { + accounting_providers: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], excluded: T::Boolean + } + ) + end + def to_hash + end class AccountingProvider < Orb::BaseModel - Shape = T.type_alias { {external_provider_id: T.nilable(String), provider_type: Symbol} } - sig { returns(T.nilable(String)) } attr_accessor :external_provider_id @@ -468,10 +476,12 @@ module Orb attr_accessor :provider_type sig { params(external_provider_id: T.nilable(String), provider_type: Symbol).void } - def initialize(external_provider_id:, provider_type:); end + def initialize(external_provider_id:, provider_type:) + end - sig { returns(Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::Shape) } - def to_h; end + sig { override.returns({external_provider_id: T.nilable(String), provider_type: Symbol}) } + def to_hash + end class ProviderType < Orb::Enum abstract! @@ -480,22 +490,23 @@ module Orb NETSUITE = :netsuite sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class ReportingConfiguration < Orb::BaseModel - Shape = T.type_alias { {exempt: T::Boolean} } - sig { returns(T::Boolean) } attr_accessor :exempt sig { params(exempt: T::Boolean).void } - def initialize(exempt:); end + def initialize(exempt:) + end - sig { returns(Orb::Models::Customer::ReportingConfiguration::Shape) } - def to_h; end + sig { override.returns({exempt: T::Boolean}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customer_create_params.rbi b/rbi/lib/orb/models/customer_create_params.rbi index 4a941ad2..24ffbedd 100644 --- a/rbi/lib/orb/models/customer_create_params.rbi +++ b/rbi/lib/orb/models/customer_create_params.rbi @@ -6,31 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - email: String, - name: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration), - additional_emails: T.nilable(T::Array[String]), - auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress), - currency: T.nilable(String), - email_delivery: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), - tax_configuration: T.nilable(Orb::Models::CustomerCreateParams::TaxConfiguration::Variants), - tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), - timezone: T.nilable(String) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :email @@ -73,7 +48,16 @@ module Orb sig { returns(T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) } attr_accessor :shipping_address - sig { returns(T.nilable(Orb::Models::CustomerCreateParams::TaxConfiguration::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ) + ) + end attr_accessor :tax_configuration sig { returns(T.nilable(Orb::Models::CustomerCreateParams::TaxID)) } @@ -98,10 +82,14 @@ module Orb payment_provider_id: T.nilable(String), reporting_configuration: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration), shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), - tax_configuration: T.nilable(Orb::Models::CustomerCreateParams::TaxConfiguration::Variants), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), timezone: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -123,18 +111,41 @@ module Orb tax_id: nil, timezone: nil, request_options: {} - ); end - - sig { returns(Orb::Models::CustomerCreateParams::Shape) } - def to_h; end + ) + end - class AccountingSyncConfiguration < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) + email: String, + name: String, + accounting_sync_configuration: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration), + additional_emails: T.nilable(T::Array[String]), + auto_collection: T.nilable(T::Boolean), + billing_address: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress), + currency: T.nilable(String), + email_delivery: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + reporting_configuration: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration), + shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), + tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), + timezone: T.nilable(String), + request_options: Orb::RequestOptions } - end + ) + end + def to_hash + end + class AccountingSyncConfiguration < Orb::BaseModel sig do returns(T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider])) end @@ -149,14 +160,20 @@ module Orb excluded: T.nilable(T::Boolean) ).void end - def initialize(accounting_providers: nil, excluded: nil); end + def initialize(accounting_providers: nil, excluded: nil) + end - sig { returns(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::Shape) } - def to_h; end + sig do + override.returns( + { + accounting_providers: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) + } + ) + end + def to_hash + end class AccountingProvider < Orb::BaseModel - Shape = T.type_alias { {external_provider_id: String, provider_type: String} } - sig { returns(String) } attr_accessor :external_provider_id @@ -164,27 +181,16 @@ module Orb attr_accessor :provider_type sig { params(external_provider_id: String, provider_type: String).void } - def initialize(external_provider_id:, provider_type:); end + def initialize(external_provider_id:, provider_type:) + end - sig do - returns(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider::Shape) + sig { override.returns({external_provider_id: String, provider_type: String}) } + def to_hash end - def to_h; end end end class BillingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -213,10 +219,23 @@ module Orb state: T.nilable(String) ).void end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end + def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + end - sig { returns(Orb::Models::CustomerCreateParams::BillingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class PaymentProvider < Orb::Enum @@ -229,34 +248,24 @@ module Orb NETSUITE = T.let(:netsuite, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class ReportingConfiguration < Orb::BaseModel - Shape = T.type_alias { {exempt: T::Boolean} } - sig { returns(T::Boolean) } attr_accessor :exempt sig { params(exempt: T::Boolean).void } - def initialize(exempt:); end + def initialize(exempt:) + end - sig { returns(Orb::Models::CustomerCreateParams::ReportingConfiguration::Shape) } - def to_h; end + sig { override.returns({exempt: T::Boolean}) } + def to_hash + end end class ShippingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -285,27 +294,29 @@ module Orb state: T.nilable(String) ).void end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end + def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + end - sig { returns(Orb::Models::CustomerCreateParams::ShippingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class TaxConfiguration < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration - ) - end - class NewAvalaraTaxConfiguration < Orb::BaseModel - Shape = T.type_alias do - {tax_exempt: T::Boolean, tax_provider: Symbol, tax_exemption_code: T.nilable(String)} - end - sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -318,17 +329,23 @@ module Orb sig do params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol).void end - def initialize(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara); end + def initialize(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara) + end sig do - returns(Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration::Shape) + override.returns( + { + tax_exempt: T::Boolean, + tax_provider: Symbol, + tax_exemption_code: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class NewTaxJarConfiguration < Orb::BaseModel - Shape = T.type_alias { {tax_exempt: T::Boolean, tax_provider: Symbol} } - sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -336,10 +353,12 @@ module Orb attr_accessor :tax_provider sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).void } - def initialize(tax_exempt:, tax_provider: :taxjar); end + def initialize(tax_exempt:, tax_provider: :taxjar) + end - sig { returns(Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration::Shape) } - def to_h; end + sig { override.returns({tax_exempt: T::Boolean, tax_provider: Symbol}) } + def to_hash + end end sig do @@ -350,12 +369,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class TaxID < Orb::BaseModel - Shape = T.type_alias { {country: Symbol, type: Symbol, value: String} } - sig { returns(Symbol) } attr_accessor :country @@ -366,10 +384,12 @@ module Orb attr_accessor :value sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:); end + def initialize(country:, type:, value:) + end - sig { returns(Orb::Models::CustomerCreateParams::TaxID::Shape) } - def to_h; end + sig { override.returns({country: Symbol, type: Symbol, value: String}) } + def to_hash + end class Country < Orb::Enum abstract! @@ -454,7 +474,8 @@ module Orb ZA = :ZA sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Type < Orb::Enum @@ -533,7 +554,8 @@ module Orb ZA_VAT = :za_vat sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customer_delete_params.rbi b/rbi/lib/orb/models/customer_delete_params.rbi index cfb26d14..fb2de402 100644 --- a/rbi/lib/orb/models/customer_delete_params.rbi +++ b/rbi/lib/orb/models/customer_delete_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::CustomerDeleteParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi b/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi index be82fb7e..15aaf5b2 100644 --- a/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::CustomerFetchByExternalIDParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customer_fetch_params.rbi b/rbi/lib/orb/models/customer_fetch_params.rbi index 65f566a2..b074cc28 100644 --- a/rbi/lib/orb/models/customer_fetch_params.rbi +++ b/rbi/lib/orb/models/customer_fetch_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::CustomerFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customer_list_params.rbi b/rbi/lib/orb/models/customer_list_params.rbi index 3208a7d2..5fef1f7b 100644 --- a/rbi/lib/orb/models/customer_list_params.rbi +++ b/rbi/lib/orb/models/customer_list_params.rbi @@ -6,20 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - limit: Integer - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -49,7 +35,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -60,10 +46,24 @@ module Orb cursor: nil, limit: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::CustomerListParams::Shape) } - def to_h; end + sig do + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi index 31aba563..c204d9e3 100644 --- a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +++ b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi index a92d7b66..f1ac0743 100644 --- a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +++ b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::CustomerSyncPaymentMethodsFromGatewayParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customer_update_by_external_id_params.rbi b/rbi/lib/orb/models/customer_update_by_external_id_params.rbi index 57f8a215..2920c758 100644 --- a/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customer_update_by_external_id_params.rbi @@ -6,33 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration), - additional_emails: T.nilable(T::Array[String]), - auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress), - currency: T.nilable(String), - email: T.nilable(String), - email_delivery: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - name: T.nilable(String), - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), - tax_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Variants), - tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) } attr_accessor :accounting_sync_configuration @@ -75,7 +48,15 @@ module Orb sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) } attr_accessor :shipping_address - sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + ) + ) + ) + end attr_accessor :tax_configuration sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) } @@ -97,9 +78,13 @@ module Orb payment_provider_id: T.nilable(String), reporting_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration), shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), - tax_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Variants), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -120,18 +105,43 @@ module Orb tax_configuration: nil, tax_id: nil, request_options: {} - ); end - - sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::Shape) } - def to_h; end + ) + end - class AccountingSyncConfiguration < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) + accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration), + additional_emails: T.nilable(T::Array[String]), + auto_collection: T.nilable(T::Boolean), + billing_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress), + currency: T.nilable(String), + email: T.nilable(String), + email_delivery: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + name: T.nilable(String), + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + reporting_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration), + shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), + tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), + request_options: Orb::RequestOptions } - end + ) + end + def to_hash + end + class AccountingSyncConfiguration < Orb::BaseModel sig do returns(T.nilable(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider])) end @@ -146,14 +156,20 @@ module Orb excluded: T.nilable(T::Boolean) ).void end - def initialize(accounting_providers: nil, excluded: nil); end + def initialize(accounting_providers: nil, excluded: nil) + end - sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::Shape) } - def to_h; end + sig do + override.returns( + { + accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) + } + ) + end + def to_hash + end class AccountingProvider < Orb::BaseModel - Shape = T.type_alias { {external_provider_id: String, provider_type: String} } - sig { returns(String) } attr_accessor :external_provider_id @@ -161,27 +177,16 @@ module Orb attr_accessor :provider_type sig { params(external_provider_id: String, provider_type: String).void } - def initialize(external_provider_id:, provider_type:); end + def initialize(external_provider_id:, provider_type:) + end - sig do - returns(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider::Shape) + sig { override.returns({external_provider_id: String, provider_type: String}) } + def to_hash end - def to_h; end end end class BillingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -210,10 +215,23 @@ module Orb state: T.nilable(String) ).void end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end + def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + end - sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class PaymentProvider < Orb::Enum @@ -226,34 +244,24 @@ module Orb NETSUITE = T.let(:netsuite, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class ReportingConfiguration < Orb::BaseModel - Shape = T.type_alias { {exempt: T::Boolean} } - sig { returns(T::Boolean) } attr_accessor :exempt sig { params(exempt: T::Boolean).void } - def initialize(exempt:); end + def initialize(exempt:) + end - sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration::Shape) } - def to_h; end + sig { override.returns({exempt: T::Boolean}) } + def to_hash + end end class ShippingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -282,27 +290,29 @@ module Orb state: T.nilable(String) ).void end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end + def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + end - sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class TaxConfiguration < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration - ) - end - class NewAvalaraTaxConfiguration < Orb::BaseModel - Shape = T.type_alias do - {tax_exempt: T::Boolean, tax_provider: Symbol, tax_exemption_code: T.nilable(String)} - end - sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -315,17 +325,23 @@ module Orb sig do params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol).void end - def initialize(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara); end + def initialize(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara) + end sig do - returns(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration::Shape) + override.returns( + { + tax_exempt: T::Boolean, + tax_provider: Symbol, + tax_exemption_code: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class NewTaxJarConfiguration < Orb::BaseModel - Shape = T.type_alias { {tax_exempt: T::Boolean, tax_provider: Symbol} } - sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -333,12 +349,12 @@ module Orb attr_accessor :tax_provider sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).void } - def initialize(tax_exempt:, tax_provider: :taxjar); end + def initialize(tax_exempt:, tax_provider: :taxjar) + end - sig do - returns(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration::Shape) + sig { override.returns({tax_exempt: T::Boolean, tax_provider: Symbol}) } + def to_hash end - def to_h; end end sig do @@ -355,12 +371,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class TaxID < Orb::BaseModel - Shape = T.type_alias { {country: Symbol, type: Symbol, value: String} } - sig { returns(Symbol) } attr_accessor :country @@ -371,10 +386,12 @@ module Orb attr_accessor :value sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:); end + def initialize(country:, type:, value:) + end - sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Shape) } - def to_h; end + sig { override.returns({country: Symbol, type: Symbol, value: String}) } + def to_hash + end class Country < Orb::Enum abstract! @@ -459,7 +476,8 @@ module Orb ZA = :ZA sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Type < Orb::Enum @@ -538,7 +556,8 @@ module Orb ZA_VAT = :za_vat sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customer_update_params.rbi b/rbi/lib/orb/models/customer_update_params.rbi index 7abe8618..f0584f16 100644 --- a/rbi/lib/orb/models/customer_update_params.rbi +++ b/rbi/lib/orb/models/customer_update_params.rbi @@ -6,30 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration), - additional_emails: T.nilable(T::Array[String]), - auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress), - currency: T.nilable(String), - email: T.nilable(String), - email_delivery: T.nilable(T::Boolean), - external_customer_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - name: T.nilable(String), - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), - tax_configuration: T.nilable(Orb::Models::CustomerUpdateParams::TaxConfiguration::Variants), - tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) } attr_accessor :accounting_sync_configuration @@ -72,7 +48,16 @@ module Orb sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) } attr_accessor :shipping_address - sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::TaxConfiguration::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ) + ) + end attr_accessor :tax_configuration sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) } @@ -94,9 +79,13 @@ module Orb payment_provider_id: T.nilable(String), reporting_configuration: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration), shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), - tax_configuration: T.nilable(Orb::Models::CustomerUpdateParams::TaxConfiguration::Variants), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -117,18 +106,43 @@ module Orb tax_configuration: nil, tax_id: nil, request_options: {} - ); end - - sig { returns(Orb::Models::CustomerUpdateParams::Shape) } - def to_h; end + ) + end - class AccountingSyncConfiguration < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) + accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration), + additional_emails: T.nilable(T::Array[String]), + auto_collection: T.nilable(T::Boolean), + billing_address: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress), + currency: T.nilable(String), + email: T.nilable(String), + email_delivery: T.nilable(T::Boolean), + external_customer_id: T.nilable(String), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + name: T.nilable(String), + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + reporting_configuration: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration), + shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), + tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), + request_options: Orb::RequestOptions } - end + ) + end + def to_hash + end + class AccountingSyncConfiguration < Orb::BaseModel sig do returns(T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider])) end @@ -143,14 +157,20 @@ module Orb excluded: T.nilable(T::Boolean) ).void end - def initialize(accounting_providers: nil, excluded: nil); end + def initialize(accounting_providers: nil, excluded: nil) + end - sig { returns(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::Shape) } - def to_h; end + sig do + override.returns( + { + accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]), excluded: T.nilable(T::Boolean) + } + ) + end + def to_hash + end class AccountingProvider < Orb::BaseModel - Shape = T.type_alias { {external_provider_id: String, provider_type: String} } - sig { returns(String) } attr_accessor :external_provider_id @@ -158,27 +178,16 @@ module Orb attr_accessor :provider_type sig { params(external_provider_id: String, provider_type: String).void } - def initialize(external_provider_id:, provider_type:); end + def initialize(external_provider_id:, provider_type:) + end - sig do - returns(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider::Shape) + sig { override.returns({external_provider_id: String, provider_type: String}) } + def to_hash end - def to_h; end end end class BillingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -207,10 +216,23 @@ module Orb state: T.nilable(String) ).void end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end + def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + end - sig { returns(Orb::Models::CustomerUpdateParams::BillingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class PaymentProvider < Orb::Enum @@ -223,34 +245,24 @@ module Orb NETSUITE = T.let(:netsuite, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class ReportingConfiguration < Orb::BaseModel - Shape = T.type_alias { {exempt: T::Boolean} } - sig { returns(T::Boolean) } attr_accessor :exempt sig { params(exempt: T::Boolean).void } - def initialize(exempt:); end + def initialize(exempt:) + end - sig { returns(Orb::Models::CustomerUpdateParams::ReportingConfiguration::Shape) } - def to_h; end + sig { override.returns({exempt: T::Boolean}) } + def to_hash + end end class ShippingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -279,27 +291,29 @@ module Orb state: T.nilable(String) ).void end - def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil); end + def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) + end - sig { returns(Orb::Models::CustomerUpdateParams::ShippingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class TaxConfiguration < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration - ) - end - class NewAvalaraTaxConfiguration < Orb::BaseModel - Shape = T.type_alias do - {tax_exempt: T::Boolean, tax_provider: Symbol, tax_exemption_code: T.nilable(String)} - end - sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -312,17 +326,23 @@ module Orb sig do params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol).void end - def initialize(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara); end + def initialize(tax_exempt:, tax_exemption_code: nil, tax_provider: :avalara) + end sig do - returns(Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration::Shape) + override.returns( + { + tax_exempt: T::Boolean, + tax_provider: Symbol, + tax_exemption_code: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class NewTaxJarConfiguration < Orb::BaseModel - Shape = T.type_alias { {tax_exempt: T::Boolean, tax_provider: Symbol} } - sig { returns(T::Boolean) } attr_accessor :tax_exempt @@ -330,10 +350,12 @@ module Orb attr_accessor :tax_provider sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).void } - def initialize(tax_exempt:, tax_provider: :taxjar); end + def initialize(tax_exempt:, tax_provider: :taxjar) + end - sig { returns(Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration::Shape) } - def to_h; end + sig { override.returns({tax_exempt: T::Boolean, tax_provider: Symbol}) } + def to_hash + end end sig do @@ -344,12 +366,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class TaxID < Orb::BaseModel - Shape = T.type_alias { {country: Symbol, type: Symbol, value: String} } - sig { returns(Symbol) } attr_accessor :country @@ -360,10 +381,12 @@ module Orb attr_accessor :value sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:); end + def initialize(country:, type:, value:) + end - sig { returns(Orb::Models::CustomerUpdateParams::TaxID::Shape) } - def to_h; end + sig { override.returns({country: Symbol, type: Symbol, value: String}) } + def to_hash + end class Country < Orb::Enum abstract! @@ -448,7 +471,8 @@ module Orb ZA = :ZA sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Type < Orb::Enum @@ -527,7 +551,8 @@ module Orb ZA_VAT = :za_vat sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi b/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi index ad67a985..22eeb952 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi @@ -7,10 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({amount: String, type: Symbol, description: T.nilable(String)}, Orb::RequestParameters::Shape) - end - sig { returns(String) } attr_accessor :amount @@ -25,13 +21,24 @@ module Orb amount: String, type: Symbol, description: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(amount:, type:, description: nil, request_options: {}); end + def initialize(amount:, type:, description: nil, request_options: {}) + end - sig { returns(Orb::Models::Customers::BalanceTransactionCreateParams::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + type: Symbol, + description: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class Type < Orb::Enum abstract! @@ -40,7 +47,8 @@ module Orb DECREMENT = :decrement sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi b/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi index b66dda00..b30ce401 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi @@ -4,21 +4,6 @@ module Orb module Models module Customers class BalanceTransactionCreateResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - action: Symbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice), - starting_balance: String, - type: Symbol - } - end - sig { returns(String) } attr_accessor :id @@ -74,10 +59,27 @@ module Orb invoice:, starting_balance:, type: - ); end + ) + end - sig { returns(Orb::Models::Customers::BalanceTransactionCreateResponse::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + action: Symbol, + amount: String, + created_at: Time, + credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote), + description: T.nilable(String), + ending_balance: String, + invoice: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice), + starting_balance: String, + type: Symbol + } + ) + end + def to_hash + end class Action < Orb::Enum abstract! @@ -92,33 +94,34 @@ module Orb OVERPAYMENT_REFUND = :overpayment_refund sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditNote < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class Invoice < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class Type < Orb::Enum @@ -128,7 +131,8 @@ module Orb DECREMENT = :decrement sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi b/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi index a9a1ec85..a689ceaf 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi @@ -7,20 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - cursor: T.nilable(String), - limit: Integer, - operation_time_gt: T.nilable(Time), - operation_time_gte: T.nilable(Time), - operation_time_lt: T.nilable(Time), - operation_time_lte: T.nilable(Time) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -50,7 +36,7 @@ module Orb operation_time_gte: T.nilable(Time), operation_time_lt: T.nilable(Time), operation_time_lte: T.nilable(Time), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -61,10 +47,24 @@ module Orb operation_time_lt: nil, operation_time_lte: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::Customers::BalanceTransactionListParams::Shape) } - def to_h; end + sig do + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + operation_time_gt: T.nilable(Time), + operation_time_gte: T.nilable(Time), + operation_time_lt: T.nilable(Time), + operation_time_lte: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi b/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi index 6653a79c..d5fb7e0b 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi @@ -4,21 +4,6 @@ module Orb module Models module Customers class BalanceTransactionListResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - action: Symbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice), - starting_balance: String, - type: Symbol - } - end - sig { returns(String) } attr_accessor :id @@ -74,10 +59,27 @@ module Orb invoice:, starting_balance:, type: - ); end + ) + end - sig { returns(Orb::Models::Customers::BalanceTransactionListResponse::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + action: Symbol, + amount: String, + created_at: Time, + credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote), + description: T.nilable(String), + ending_balance: String, + invoice: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice), + starting_balance: String, + type: Symbol + } + ) + end + def to_hash + end class Action < Orb::Enum abstract! @@ -92,33 +94,34 @@ module Orb OVERPAYMENT_REFUND = :overpayment_refund sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditNote < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class Invoice < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Customers::BalanceTransactionListResponse::Invoice::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class Type < Orb::Enum @@ -128,7 +131,8 @@ module Orb DECREMENT = :decrement sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi index 173ffece..d9e92f64 100644 --- a/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi @@ -7,18 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - currency: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :currency @@ -37,7 +25,7 @@ module Orb timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -49,8 +37,19 @@ module Orb ) end - sig { returns(Orb::Models::Customers::CostListByExternalIDParams::Shape) } - def to_h; end + sig do + override.returns( + { + currency: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class ViewMode < Orb::Enum abstract! @@ -59,7 +58,8 @@ module Orb CUMULATIVE = T.let(:cumulative, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi index 9808b47d..2344c2d1 100644 --- a/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi @@ -4,28 +4,18 @@ module Orb module Models module Customers class CostListByExternalIDResponse < Orb::BaseModel - Shape = T.type_alias { {data: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]} } - sig { returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) } attr_accessor :data sig { params(data: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]).void } - def initialize(data:); end + def initialize(data:) + end - sig { returns(Orb::Models::Customers::CostListByExternalIDResponse::Shape) } - def to_h; end + sig { override.returns({data: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]}) } + def to_hash + end class Data < Orb::BaseModel - Shape = T.type_alias do - { - per_price_costs: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - } - end - sig { returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) } attr_accessor :per_price_costs @@ -50,22 +40,53 @@ module Orb total: String ).void end - def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:); end - - sig { returns(Orb::Models::Customers::CostListByExternalIDResponse::Data::Shape) } - def to_h; end + def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) + end - class PerPriceCost < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - price: Orb::Models::Price::Variants, - subtotal: String, - total: String, - quantity: T.nilable(Float) + per_price_costs: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], subtotal: String, timeframe_end: Time, timeframe_start: Time, total: String } - end + ) + end + def to_hash + end - sig { returns(Orb::Models::Price::Variants) } + class PerPriceCost < Orb::BaseModel + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(String) } @@ -79,16 +100,83 @@ module Orb sig do params( - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), subtotal: String, total: String, quantity: T.nilable(Float) ).void end - def initialize(price:, subtotal:, total:, quantity: nil); end + def initialize(price:, subtotal:, total:, quantity: nil) + end - sig { returns(Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost::Shape) } - def to_h; end + sig do + override.returns( + { + price: T.any( + 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 + ), + subtotal: String, + total: String, + quantity: T.nilable(Float) + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_params.rbi b/rbi/lib/orb/models/customers/cost_list_params.rbi index 7657cc71..68e44122 100644 --- a/rbi/lib/orb/models/customers/cost_list_params.rbi +++ b/rbi/lib/orb/models/customers/cost_list_params.rbi @@ -7,18 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - currency: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :currency @@ -37,7 +25,7 @@ module Orb timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -49,8 +37,19 @@ module Orb ) end - sig { returns(Orb::Models::Customers::CostListParams::Shape) } - def to_h; end + sig do + override.returns( + { + currency: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class ViewMode < Orb::Enum abstract! @@ -59,7 +58,8 @@ module Orb CUMULATIVE = T.let(:cumulative, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_response.rbi b/rbi/lib/orb/models/customers/cost_list_response.rbi index 4d12b672..04810243 100644 --- a/rbi/lib/orb/models/customers/cost_list_response.rbi +++ b/rbi/lib/orb/models/customers/cost_list_response.rbi @@ -4,28 +4,18 @@ module Orb module Models module Customers class CostListResponse < Orb::BaseModel - Shape = T.type_alias { {data: T::Array[Orb::Models::Customers::CostListResponse::Data]} } - sig { returns(T::Array[Orb::Models::Customers::CostListResponse::Data]) } attr_accessor :data sig { params(data: T::Array[Orb::Models::Customers::CostListResponse::Data]).void } - def initialize(data:); end + def initialize(data:) + end - sig { returns(Orb::Models::Customers::CostListResponse::Shape) } - def to_h; end + sig { override.returns({data: T::Array[Orb::Models::Customers::CostListResponse::Data]}) } + def to_hash + end class Data < Orb::BaseModel - Shape = T.type_alias do - { - per_price_costs: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - } - end - sig { returns(T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) } attr_accessor :per_price_costs @@ -50,22 +40,57 @@ module Orb total: String ).void end - def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:); end - - sig { returns(Orb::Models::Customers::CostListResponse::Data::Shape) } - def to_h; end + def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) + end - class PerPriceCost < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - price: Orb::Models::Price::Variants, + per_price_costs: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], subtotal: String, - total: String, - quantity: T.nilable(Float) + timeframe_end: Time, + timeframe_start: Time, + total: String } - end + ) + end + def to_hash + end - sig { returns(Orb::Models::Price::Variants) } + class PerPriceCost < Orb::BaseModel + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(String) } @@ -79,16 +104,83 @@ module Orb sig do params( - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), subtotal: String, total: String, quantity: T.nilable(Float) ).void end - def initialize(price:, subtotal:, total:, quantity: nil); end + def initialize(price:, subtotal:, total:, quantity: nil) + end - sig { returns(Orb::Models::Customers::CostListResponse::Data::PerPriceCost::Shape) } - def to_h; end + sig do + override.returns( + { + price: T.any( + 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 + ), + subtotal: String, + total: String, + quantity: T.nilable(Float) + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi index 4e9cfc17..6fb1a7df 100644 --- a/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi @@ -7,18 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - currency: T.nilable(String), - cursor: T.nilable(String), - include_all_blocks: T::Boolean, - limit: Integer - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :currency @@ -43,14 +31,25 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize(currency: nil, cursor: nil, include_all_blocks: nil, limit: nil, request_options: {}) end - sig { returns(Orb::Models::Customers::CreditListByExternalIDParams::Shape) } - def to_h; end + sig do + override.returns( + { + currency: T.nilable(String), + cursor: T.nilable(String), + include_all_blocks: T::Boolean, + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi index 268305e6..20e89957 100644 --- a/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi @@ -4,18 +4,6 @@ module Orb module Models module Customers class CreditListByExternalIDResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - balance: Float, - effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), - maximum_initial_balance: T.nilable(Float), - per_unit_cost_basis: T.nilable(String), - status: Symbol - } - end - sig { returns(String) } attr_accessor :id @@ -59,8 +47,21 @@ module Orb ) end - sig { returns(Orb::Models::Customers::CreditListByExternalIDResponse::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + balance: Float, + effective_date: T.nilable(Time), + expiry_date: T.nilable(Time), + maximum_initial_balance: T.nilable(Float), + per_unit_cost_basis: T.nilable(String), + status: Symbol + } + ) + end + def to_hash + end class Status < Orb::Enum abstract! @@ -69,7 +70,8 @@ module Orb PENDING_PAYMENT = :pending_payment sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credit_list_params.rbi b/rbi/lib/orb/models/customers/credit_list_params.rbi index eb12cfee..052e1f9c 100644 --- a/rbi/lib/orb/models/customers/credit_list_params.rbi +++ b/rbi/lib/orb/models/customers/credit_list_params.rbi @@ -7,18 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - currency: T.nilable(String), - cursor: T.nilable(String), - include_all_blocks: T::Boolean, - limit: Integer - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :currency @@ -43,14 +31,25 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize(currency: nil, cursor: nil, include_all_blocks: nil, limit: nil, request_options: {}) end - sig { returns(Orb::Models::Customers::CreditListParams::Shape) } - def to_h; end + sig do + override.returns( + { + currency: T.nilable(String), + cursor: T.nilable(String), + include_all_blocks: T::Boolean, + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customers/credit_list_response.rbi b/rbi/lib/orb/models/customers/credit_list_response.rbi index ab7e9fab..527e1277 100644 --- a/rbi/lib/orb/models/customers/credit_list_response.rbi +++ b/rbi/lib/orb/models/customers/credit_list_response.rbi @@ -4,18 +4,6 @@ module Orb module Models module Customers class CreditListResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - balance: Float, - effective_date: T.nilable(Time), - expiry_date: T.nilable(Time), - maximum_initial_balance: T.nilable(Float), - per_unit_cost_basis: T.nilable(String), - status: Symbol - } - end - sig { returns(String) } attr_accessor :id @@ -59,8 +47,21 @@ module Orb ) end - sig { returns(Orb::Models::Customers::CreditListResponse::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + balance: Float, + effective_date: T.nilable(Time), + expiry_date: T.nilable(Time), + maximum_initial_balance: T.nilable(Float), + per_unit_cost_basis: T.nilable(String), + status: Symbol + } + ) + end + def to_hash + end class Status < Orb::Enum abstract! @@ -69,7 +70,8 @@ module Orb PENDING_PAYMENT = :pending_payment sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi index bfab8ead..d8b1de68 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi @@ -8,26 +8,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - amount: Float, - entry_type: Symbol, - 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) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(Float) } attr_accessor :amount @@ -80,7 +60,7 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), void_reason: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -97,10 +77,30 @@ module Orb per_unit_cost_basis: nil, void_reason: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::Shape) } - def to_h; end + sig do + override.returns( + { + amount: Float, + entry_type: Symbol, + 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::RequestOptions + } + ) + end + def to_hash + end class EntryType < Orb::Enum abstract! @@ -108,19 +108,11 @@ module Orb AMENDMENT = :amendment sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class InvoiceSettings < Orb::BaseModel - Shape = T.type_alias do - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - end - sig { returns(T::Boolean) } attr_accessor :auto_collection @@ -144,12 +136,21 @@ module Orb require_successful_payment: T::Boolean ).void end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil); end + def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::Shape) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class VoidReason < Orb::Enum @@ -158,7 +159,8 @@ module Orb REFUND = T.let(:refund, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi index 59c4041a..1a50895f 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi @@ -7,37 +7,7 @@ module Orb class LedgerCreateEntryByExternalIDResponse < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry - ) - end - class IncrementLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -112,18 +82,32 @@ module Orb metadata:, starting_balance:, entry_type: :increment - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -136,17 +120,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -154,12 +144,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -169,32 +159,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class DecrementLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -284,18 +254,35 @@ module Orb invoice_id: nil, price_id: nil, entry_type: :decrement - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -308,17 +295,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -326,12 +319,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -341,30 +334,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -444,18 +419,33 @@ module Orb new_block_expiry_date:, starting_balance:, entry_type: :expiration_change - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -468,17 +458,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -486,12 +482,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -501,29 +497,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -598,18 +577,32 @@ module Orb metadata:, starting_balance:, entry_type: :credit_block_expiry - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -622,17 +615,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -640,12 +639,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -655,31 +654,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class VoidLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -764,18 +744,34 @@ module Orb void_amount:, void_reason:, entry_type: :void - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -788,17 +784,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -806,12 +808,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -821,32 +823,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -936,18 +918,35 @@ module Orb void_amount:, void_reason:, entry_type: :void_initiated - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -960,17 +959,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -978,12 +983,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -993,29 +998,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class AmendmentLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -1090,18 +1078,32 @@ module Orb metadata:, starting_balance:, entry_type: :amendment - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -1114,17 +1116,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -1132,12 +1140,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -1147,7 +1155,8 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -1185,7 +1194,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi index 13737768..cc7f86fe 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi @@ -8,26 +8,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - amount: Float, - entry_type: Symbol, - 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) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(Float) } attr_accessor :amount @@ -80,7 +60,7 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), void_reason: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -97,10 +77,30 @@ module Orb per_unit_cost_basis: nil, void_reason: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryParams::Shape) } - def to_h; end + sig do + override.returns( + { + amount: Float, + entry_type: Symbol, + 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::RequestOptions + } + ) + end + def to_hash + end class EntryType < Orb::Enum abstract! @@ -108,19 +108,11 @@ module Orb AMENDMENT = :amendment sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class InvoiceSettings < Orb::BaseModel - Shape = T.type_alias do - { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean - } - end - sig { returns(T::Boolean) } attr_accessor :auto_collection @@ -144,10 +136,21 @@ module Orb require_successful_payment: T::Boolean ).void end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil); end + def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + end - sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::Shape) } - def to_h; end + sig do + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash + end end class VoidReason < Orb::Enum @@ -156,7 +159,8 @@ module Orb REFUND = T.let(:refund, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi index b087daeb..990f51a6 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi @@ -7,37 +7,7 @@ module Orb class LedgerCreateEntryResponse < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry, - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry - ) - end - class IncrementLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -112,18 +82,32 @@ module Orb metadata:, starting_balance:, entry_type: :increment - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -136,17 +120,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -154,12 +144,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -169,32 +159,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class DecrementLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -284,18 +254,35 @@ module Orb invoice_id: nil, price_id: nil, entry_type: :decrement - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -308,17 +295,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -326,12 +319,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -341,30 +334,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -444,18 +419,33 @@ module Orb new_block_expiry_date:, starting_balance:, entry_type: :expiration_change - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -468,17 +458,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -486,12 +482,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -501,29 +497,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -598,18 +577,32 @@ module Orb metadata:, starting_balance:, entry_type: :credit_block_expiry - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -622,17 +615,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -640,12 +639,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -655,31 +654,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class VoidLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -764,18 +744,34 @@ module Orb void_amount:, void_reason:, entry_type: :void - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -788,17 +784,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -806,12 +808,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -821,32 +823,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -936,18 +918,35 @@ module Orb void_amount:, void_reason:, entry_type: :void_initiated - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -960,17 +959,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -978,12 +983,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -993,29 +998,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class AmendmentLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -1090,18 +1078,32 @@ module Orb metadata:, starting_balance:, entry_type: :amendment - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -1114,17 +1116,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -1132,12 +1140,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -1147,7 +1155,8 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -1176,7 +1185,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi index d6e12472..16e42c85 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi @@ -8,24 +8,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - currency: T.nilable(String), - cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), - limit: Integer, - minimum_amount: T.nilable(String) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -71,7 +53,7 @@ module Orb entry_type: T.nilable(Symbol), limit: Integer, minimum_amount: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -86,10 +68,28 @@ module Orb limit: nil, minimum_amount: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::Shape) } - def to_h; end + sig do + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + currency: T.nilable(String), + cursor: T.nilable(String), + entry_status: T.nilable(Symbol), + entry_type: T.nilable(Symbol), + limit: Integer, + minimum_amount: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class EntryStatus < Orb::Enum abstract! @@ -98,7 +98,8 @@ module Orb PENDING = T.let(:pending, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class EntryType < Orb::Enum @@ -113,7 +114,8 @@ module Orb AMENDMENT = T.let(:amendment, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi index ebed147f..a4ed404d 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi @@ -7,37 +7,7 @@ module Orb class LedgerListByExternalIDResponse < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry, - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry - ) - end - class IncrementLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -112,18 +82,32 @@ module Orb metadata:, starting_balance:, entry_type: :increment - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -136,17 +120,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -154,12 +144,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -169,32 +159,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class DecrementLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -284,18 +254,35 @@ module Orb invoice_id: nil, price_id: nil, entry_type: :decrement - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -308,17 +295,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -326,12 +319,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -341,30 +334,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -444,18 +419,33 @@ module Orb new_block_expiry_date:, starting_balance:, entry_type: :expiration_change - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -468,17 +458,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -486,12 +482,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -501,29 +497,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -598,18 +577,32 @@ module Orb metadata:, starting_balance:, entry_type: :credit_block_expiry - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -622,17 +615,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -640,12 +639,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -655,31 +654,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class VoidLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -764,18 +744,34 @@ module Orb void_amount:, void_reason:, entry_type: :void - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -788,17 +784,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -806,12 +808,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -821,32 +823,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -936,18 +918,35 @@ module Orb void_amount:, void_reason:, entry_type: :void_initiated - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -960,17 +959,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -978,12 +983,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -993,29 +998,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class AmendmentLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -1090,18 +1078,32 @@ module Orb metadata:, starting_balance:, entry_type: :amendment - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -1114,17 +1116,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -1132,12 +1140,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -1147,7 +1155,8 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -1182,7 +1191,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi index e66475ff..5328f553 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi @@ -8,24 +8,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - currency: T.nilable(String), - cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), - limit: Integer, - minimum_amount: T.nilable(String) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -71,7 +53,7 @@ module Orb entry_type: T.nilable(Symbol), limit: Integer, minimum_amount: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -86,10 +68,28 @@ module Orb limit: nil, minimum_amount: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::Customers::Credits::LedgerListParams::Shape) } - def to_h; end + sig do + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + currency: T.nilable(String), + cursor: T.nilable(String), + entry_status: T.nilable(Symbol), + entry_type: T.nilable(Symbol), + limit: Integer, + minimum_amount: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class EntryStatus < Orb::Enum abstract! @@ -98,7 +98,8 @@ module Orb PENDING = T.let(:pending, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class EntryType < Orb::Enum @@ -113,7 +114,8 @@ module Orb AMENDMENT = T.let(:amendment, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi index c29a20a9..ecf78dad 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi @@ -7,37 +7,7 @@ module Orb class LedgerListResponse < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry, - Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry - ) - end - class IncrementLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -112,16 +82,32 @@ module Orb metadata:, starting_balance:, entry_type: :increment - ); end + ) + end - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash + end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -134,17 +120,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -152,12 +144,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -167,32 +159,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class DecrementLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - event_id: T.nilable(String), - invoice_id: T.nilable(String), - price_id: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -282,16 +254,35 @@ module Orb invoice_id: nil, price_id: nil, entry_type: :decrement - ); end + ) + end - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + event_id: T.nilable(String), + invoice_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash + end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -304,17 +295,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -322,12 +319,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -337,30 +334,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: T.nilable(Time), - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -440,18 +419,33 @@ module Orb new_block_expiry_date:, starting_balance:, entry_type: :expiration_change - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: T.nilable(Time), + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -464,17 +458,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -482,12 +482,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -497,29 +497,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -594,18 +577,32 @@ module Orb metadata:, starting_balance:, entry_type: :credit_block_expiry - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -618,17 +615,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -636,12 +639,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -651,31 +654,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class VoidLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -756,16 +740,34 @@ module Orb void_amount:, void_reason:, entry_type: :void - ); end + ) + end - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash + end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -778,17 +780,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -796,12 +804,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -811,32 +819,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -926,18 +914,35 @@ module Orb void_amount:, void_reason:, entry_type: :void_initiated - ); end + ) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Shape) + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -950,17 +955,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -968,12 +979,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -983,29 +994,12 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class AmendmentLedgerEntry < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: Float, - created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, - currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, - description: T.nilable(String), - ending_balance: Float, - entry_status: Symbol, - entry_type: Symbol, - ledger_sequence_number: Integer, - metadata: T::Hash[Symbol, String], - starting_balance: Float - } - end - sig { returns(String) } attr_accessor :id @@ -1080,16 +1074,32 @@ module Orb metadata:, starting_balance:, entry_type: :amendment - ); end + ) + end - sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + amount: Float, + created_at: Time, + credit_block: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, + currency: String, + customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, + description: T.nilable(String), + ending_balance: Float, + entry_status: Symbol, + entry_type: Symbol, + ledger_sequence_number: Integer, + metadata: T::Hash[Symbol, String], + starting_balance: Float + } + ) + end + def to_hash + end class CreditBlock < Orb::BaseModel - Shape = T.type_alias do - {id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)} - end - sig { returns(String) } attr_accessor :id @@ -1102,17 +1112,23 @@ module Orb sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)).void end - def initialize(id:, expiry_date:, per_unit_cost_basis:); end + def initialize(id:, expiry_date:, per_unit_cost_basis:) + end sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock::Shape) + override.returns( + { + id: String, + expiry_date: T.nilable(Time), + per_unit_cost_basis: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -1120,12 +1136,12 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig do - returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer::Shape) + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash end - def to_h; end end class EntryStatus < Orb::Enum @@ -1135,7 +1151,8 @@ module Orb PENDING = :pending sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -1152,7 +1169,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi index ea15bc7c..ade09637 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi @@ -8,21 +8,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :amount @@ -53,7 +38,7 @@ module Orb threshold: String, expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -65,21 +50,27 @@ module Orb expires_after: nil, expires_after_unit: nil, request_options: {} - ); end - - sig { returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::Shape) } - def to_h; end + ) + end - class InvoiceSettings < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol), + request_options: Orb::RequestOptions } - end + ) + end + def to_hash + end + class InvoiceSettings < Orb::BaseModel sig { returns(T::Boolean) } attr_accessor :auto_collection @@ -103,12 +94,21 @@ module Orb require_successful_payment: T::Boolean ).void end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil); end + def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + end sig do - returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings::Shape) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class ExpiresAfterUnit < Orb::Enum @@ -118,7 +118,8 @@ module Orb MONTH = T.let(:month, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi index 2523e1cd..1756ff9d 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi @@ -5,19 +5,6 @@ module Orb module Customers module Credits class TopUpCreateByExternalIDResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) - } - end - sig { returns(String) } attr_accessor :id @@ -63,21 +50,27 @@ module Orb threshold:, expires_after: nil, expires_after_unit: nil - ); end - - sig { returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::Shape) } - def to_h; end + ) + end - class InvoiceSettings < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol) } - end + ) + end + def to_hash + end + class InvoiceSettings < Orb::BaseModel sig { returns(T::Boolean) } attr_accessor :auto_collection @@ -101,12 +94,21 @@ module Orb require_successful_payment: T::Boolean ).void end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil); end + def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + end sig do - returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings::Shape) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class ExpiresAfterUnit < Orb::Enum @@ -116,7 +118,8 @@ module Orb MONTH = T.let(:month, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi index 62b26fcc..9ad1377f 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi @@ -8,21 +8,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :amount @@ -53,7 +38,7 @@ module Orb threshold: String, expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -65,21 +50,27 @@ module Orb expires_after: nil, expires_after_unit: nil, request_options: {} - ); end - - sig { returns(Orb::Models::Customers::Credits::TopUpCreateParams::Shape) } - def to_h; end + ) + end - class InvoiceSettings < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol), + request_options: Orb::RequestOptions } - end + ) + end + def to_hash + end + class InvoiceSettings < Orb::BaseModel sig { returns(T::Boolean) } attr_accessor :auto_collection @@ -103,10 +94,21 @@ module Orb require_successful_payment: T::Boolean ).void end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil); end + def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + end - sig { returns(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings::Shape) } - def to_h; end + sig do + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash + end end class ExpiresAfterUnit < Orb::Enum @@ -116,7 +118,8 @@ module Orb MONTH = T.let(:month, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi index db1bb5ba..6e7e43ef 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi @@ -5,19 +5,6 @@ module Orb module Customers module Credits class TopUpCreateResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) - } - end - sig { returns(String) } attr_accessor :id @@ -63,21 +50,27 @@ module Orb threshold:, expires_after: nil, expires_after_unit: nil - ); end - - sig { returns(Orb::Models::Customers::Credits::TopUpCreateResponse::Shape) } - def to_h; end + ) + end - class InvoiceSettings < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol) } - end + ) + end + def to_hash + end + class InvoiceSettings < Orb::BaseModel sig { returns(T::Boolean) } attr_accessor :auto_collection @@ -101,10 +94,21 @@ module Orb require_successful_payment: T::Boolean ).void end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil); end + def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + end - sig { returns(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings::Shape) } - def to_h; end + sig do + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash + end end class ExpiresAfterUnit < Orb::Enum @@ -114,7 +118,8 @@ module Orb MONTH = T.let(:month, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi index 77110c2d..7c1a1b33 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi @@ -8,16 +8,21 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({external_customer_id: String}, Orb::RequestParameters::Shape) } - sig { returns(String) } attr_accessor :external_customer_id - sig { params(external_customer_id: String, request_options: Orb::RequestOpts).void } - def initialize(external_customer_id:, request_options: {}); end + sig do + params( + external_customer_id: String, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(external_customer_id:, request_options: {}) + end - sig { returns(Orb::Models::Customers::Credits::TopUpDeleteByExternalIDParams::Shape) } - def to_h; end + sig { override.returns({external_customer_id: String, request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi index 12425bef..53b5c45d 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi @@ -8,16 +8,24 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({customer_id: String}, Orb::RequestParameters::Shape) } - sig { returns(String) } attr_accessor :customer_id - sig { params(customer_id: String, request_options: Orb::RequestOpts).void } - def initialize(customer_id:, request_options: {}); end + sig do + params( + customer_id: String, + request_options: T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ).void + end + def initialize(customer_id:, request_options: {}) + end - sig { returns(Orb::Models::Customers::Credits::TopUpDeleteParams::Shape) } - def to_h; end + sig { override.returns({customer_id: String, request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi index da14300a..986f5e49 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi @@ -8,10 +8,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({cursor: T.nilable(String), limit: Integer}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -21,11 +17,27 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit - sig { params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts).void } - def initialize(cursor: nil, limit: nil, request_options: {}); end + sig do + params( + cursor: T.nilable(String), + limit: Integer, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(cursor: nil, limit: nil, request_options: {}) + end - sig { returns(Orb::Models::Customers::Credits::TopUpListByExternalIDParams::Shape) } - def to_h; end + sig do + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi index 752663ef..3b949df0 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi @@ -5,19 +5,6 @@ module Orb module Customers module Credits class TopUpListByExternalIDResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) - } - end - sig { returns(String) } attr_accessor :id @@ -63,21 +50,27 @@ module Orb threshold:, expires_after: nil, expires_after_unit: nil - ); end - - sig { returns(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::Shape) } - def to_h; end + ) + end - class InvoiceSettings < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol) } - end + ) + end + def to_hash + end + class InvoiceSettings < Orb::BaseModel sig { returns(T::Boolean) } attr_accessor :auto_collection @@ -101,12 +94,21 @@ module Orb require_successful_payment: T::Boolean ).void end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil); end + def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + end sig do - returns(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings::Shape) + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class ExpiresAfterUnit < Orb::Enum @@ -116,7 +118,8 @@ module Orb MONTH = T.let(:month, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi index e1d76339..1af94067 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi @@ -8,10 +8,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({cursor: T.nilable(String), limit: Integer}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -21,11 +17,27 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit - sig { params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts).void } - def initialize(cursor: nil, limit: nil, request_options: {}); end + sig do + params( + cursor: T.nilable(String), + limit: Integer, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(cursor: nil, limit: nil, request_options: {}) + end - sig { returns(Orb::Models::Customers::Credits::TopUpListParams::Shape) } - def to_h; end + sig do + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi b/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi index cf360c7a..efeaa72d 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi @@ -5,19 +5,6 @@ module Orb module Customers module Credits class TopUpListResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) - } - end - sig { returns(String) } attr_accessor :id @@ -63,21 +50,27 @@ module Orb threshold:, expires_after: nil, expires_after_unit: nil - ); end - - sig { returns(Orb::Models::Customers::Credits::TopUpListResponse::Shape) } - def to_h; end + ) + end - class InvoiceSettings < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - auto_collection: T::Boolean, - net_terms: Integer, - memo: T.nilable(String), - require_successful_payment: T::Boolean + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + expires_after: T.nilable(Integer), + expires_after_unit: T.nilable(Symbol) } - end + ) + end + def to_hash + end + class InvoiceSettings < Orb::BaseModel sig { returns(T::Boolean) } attr_accessor :auto_collection @@ -101,10 +94,21 @@ module Orb require_successful_payment: T::Boolean ).void end - def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil); end + def initialize(auto_collection:, net_terms:, memo: nil, require_successful_payment: nil) + end - sig { returns(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings::Shape) } - def to_h; end + sig do + override.returns( + { + auto_collection: T::Boolean, + net_terms: Integer, + memo: T.nilable(String), + require_successful_payment: T::Boolean + } + ) + end + def to_hash + end end class ExpiresAfterUnit < Orb::Enum @@ -114,7 +118,8 @@ module Orb MONTH = T.let(:month, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/dimensional_price_group.rbi b/rbi/lib/orb/models/dimensional_price_group.rbi index 5505d0a5..1c913585 100644 --- a/rbi/lib/orb/models/dimensional_price_group.rbi +++ b/rbi/lib/orb/models/dimensional_price_group.rbi @@ -3,17 +3,6 @@ module Orb module Models class DimensionalPriceGroup < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric_id: String, - dimensions: T::Array[String], - external_dimensional_price_group_id: T.nilable(String), - metadata: T::Hash[Symbol, String], - name: String - } - end - sig { returns(String) } attr_accessor :id @@ -52,8 +41,20 @@ module Orb ) end - sig { returns(Orb::Models::DimensionalPriceGroup::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric_id: String, + dimensions: T::Array[String], + external_dimensional_price_group_id: T.nilable(String), + metadata: T::Hash[Symbol, String], + name: String + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/dimensional_price_group_create_params.rbi b/rbi/lib/orb/models/dimensional_price_group_create_params.rbi index e4f097bc..43de5e8d 100644 --- a/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_create_params.rbi @@ -6,19 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - billable_metric_id: String, - dimensions: T::Array[String], - name: String, - external_dimensional_price_group_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :billable_metric_id @@ -41,7 +28,7 @@ module Orb name: String, external_dimensional_price_group_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -51,10 +38,23 @@ module Orb external_dimensional_price_group_id: nil, metadata: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::DimensionalPriceGroupCreateParams::Shape) } - def to_h; end + sig do + override.returns( + { + billable_metric_id: String, + dimensions: T::Array[String], + name: String, + external_dimensional_price_group_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/dimensional_price_group_list_params.rbi b/rbi/lib/orb/models/dimensional_price_group_list_params.rbi index 159b6fa1..9d7ab440 100644 --- a/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_list_params.rbi @@ -6,10 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({cursor: T.nilable(String), limit: Integer}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -19,11 +15,21 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit - sig { params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts).void } - def initialize(cursor: nil, limit: nil, request_options: {}); end + sig do + params( + cursor: T.nilable(String), + limit: Integer, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(cursor: nil, limit: nil, request_options: {}) + end - sig { returns(Orb::Models::DimensionalPriceGroupListParams::Shape) } - def to_h; end + sig do + override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi b/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi index a5016162..17a62501 100644 --- a/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::DimensionalPriceGroupRetrieveParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/dimensional_price_groups.rbi b/rbi/lib/orb/models/dimensional_price_groups.rbi index f49a400f..bdd2abf0 100644 --- a/rbi/lib/orb/models/dimensional_price_groups.rbi +++ b/rbi/lib/orb/models/dimensional_price_groups.rbi @@ -3,13 +3,6 @@ module Orb module Models class DimensionalPriceGroupsAPI < Orb::BaseModel - Shape = T.type_alias do - { - data: T::Array[Orb::Models::DimensionalPriceGroup], - pagination_metadata: Orb::Models::PaginationMetadata - } - end - sig { returns(T::Array[Orb::Models::DimensionalPriceGroup]) } attr_accessor :data @@ -22,10 +15,19 @@ module Orb pagination_metadata: Orb::Models::PaginationMetadata ).void end - def initialize(data:, pagination_metadata:); end + def initialize(data:, pagination_metadata:) + end - sig { returns(Orb::Models::DimensionalPriceGroupsAPI::Shape) } - def to_h; end + sig do + override.returns( + { + data: T::Array[Orb::Models::DimensionalPriceGroup], + pagination_metadata: Orb::Models::PaginationMetadata + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi b/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi index ff1473bb..bcf47ff3 100644 --- a/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi @@ -7,15 +7,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } - - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig do - returns(Orb::Models::DimensionalPriceGroups::ExternalDimensionalPriceGroupIDRetrieveParams::Shape) + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash end - def to_h; end end end end diff --git a/rbi/lib/orb/models/discount.rbi b/rbi/lib/orb/models/discount.rbi index bf577e59..a617a52f 100644 --- a/rbi/lib/orb/models/discount.rbi +++ b/rbi/lib/orb/models/discount.rbi @@ -5,25 +5,7 @@ module Orb class Discount < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::Discount::UsageDiscount, - Orb::Models::AmountDiscount - ) - end - class UsageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - usage_discount: Float, - reason: T.nilable(String) - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -44,10 +26,21 @@ module Orb discount_type: Symbol ).void end - def initialize(applies_to_price_ids:, usage_discount:, reason: nil, discount_type: :usage); end + def initialize(applies_to_price_ids:, usage_discount:, reason: nil, discount_type: :usage) + end - sig { returns(Orb::Models::Discount::UsageDiscount::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + usage_discount: Float, + reason: T.nilable(String) + } + ) + end + def to_hash + end end sig do @@ -60,7 +53,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/evaluate_price_group.rbi b/rbi/lib/orb/models/evaluate_price_group.rbi index 1f02f0e0..89012b40 100644 --- a/rbi/lib/orb/models/evaluate_price_group.rbi +++ b/rbi/lib/orb/models/evaluate_price_group.rbi @@ -3,18 +3,10 @@ module Orb module Models class EvaluatePriceGroup < Orb::BaseModel - Shape = T.type_alias do - { - amount: String, - grouping_values: T::Array[Orb::Models::EvaluatePriceGroup::GroupingValue::Variants], - quantity: Float - } - end - sig { returns(String) } attr_accessor :amount - sig { returns(T::Array[Orb::Models::EvaluatePriceGroup::GroupingValue::Variants]) } + sig { returns(T::Array[T.any(String, Float, T::Boolean)]) } attr_accessor :grouping_values sig { returns(Float) } @@ -23,22 +15,31 @@ module Orb sig do params( amount: String, - grouping_values: T::Array[Orb::Models::EvaluatePriceGroup::GroupingValue::Variants], + grouping_values: T::Array[T.any(String, Float, T::Boolean)], quantity: Float ).void end - def initialize(amount:, grouping_values:, quantity:); end + def initialize(amount:, grouping_values:, quantity:) + end - sig { returns(Orb::Models::EvaluatePriceGroup::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + grouping_values: T::Array[T.any(String, Float, T::Boolean)], + quantity: Float + } + ) + end + def to_hash + end class GroupingValue < Orb::Union abstract! - Variants = T.type_alias { T.any(String, Float, T::Boolean) } - sig { override.returns([[NilClass, String], [NilClass, Float], [NilClass, T::Boolean]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/event_deprecate_params.rbi b/rbi/lib/orb/models/event_deprecate_params.rbi index c6b5c1ce..abad8893 100644 --- a/rbi/lib/orb/models/event_deprecate_params.rbi +++ b/rbi/lib/orb/models/event_deprecate_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::EventDeprecateParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/event_deprecate_response.rbi b/rbi/lib/orb/models/event_deprecate_response.rbi index b9c0d1f6..af2832de 100644 --- a/rbi/lib/orb/models/event_deprecate_response.rbi +++ b/rbi/lib/orb/models/event_deprecate_response.rbi @@ -3,16 +3,16 @@ module Orb module Models class EventDeprecateResponse < Orb::BaseModel - Shape = T.type_alias { {deprecated: String} } - sig { returns(String) } attr_accessor :deprecated sig { params(deprecated: String).void } - def initialize(deprecated:); end + def initialize(deprecated:) + end - sig { returns(Orb::Models::EventDeprecateResponse::Shape) } - def to_h; end + sig { override.returns({deprecated: String}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/event_ingest_params.rbi b/rbi/lib/orb/models/event_ingest_params.rbi index e0a8ad93..46c232b3 100644 --- a/rbi/lib/orb/models/event_ingest_params.rbi +++ b/rbi/lib/orb/models/event_ingest_params.rbi @@ -6,17 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - events: T::Array[Orb::Models::EventIngestParams::Event], - backfill_id: T.nilable(String), - debug: T::Boolean - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T::Array[Orb::Models::EventIngestParams::Event]) } attr_accessor :events @@ -34,26 +23,26 @@ module Orb events: T::Array[Orb::Models::EventIngestParams::Event], backfill_id: T.nilable(String), debug: T::Boolean, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(events:, backfill_id: nil, debug: nil, request_options: {}); end - - sig { returns(Orb::Models::EventIngestParams::Shape) } - def to_h; end + def initialize(events:, backfill_id: nil, debug: nil, request_options: {}) + end - class Event < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - event_name: String, - idempotency_key: String, - properties: T.anything, - timestamp: Time, - customer_id: T.nilable(String), - external_customer_id: T.nilable(String) + events: T::Array[Orb::Models::EventIngestParams::Event], + backfill_id: T.nilable(String), + debug: T::Boolean, + request_options: Orb::RequestOptions } - end + ) + end + def to_hash + end + class Event < Orb::BaseModel sig { returns(String) } attr_accessor :event_name @@ -92,8 +81,20 @@ module Orb ) end - sig { returns(Orb::Models::EventIngestParams::Event::Shape) } - def to_h; end + sig do + override.returns( + { + event_name: String, + idempotency_key: String, + properties: T.anything, + timestamp: Time, + customer_id: T.nilable(String), + external_customer_id: T.nilable(String) + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/event_ingest_response.rbi b/rbi/lib/orb/models/event_ingest_response.rbi index 485d98a1..19467e05 100644 --- a/rbi/lib/orb/models/event_ingest_response.rbi +++ b/rbi/lib/orb/models/event_ingest_response.rbi @@ -3,13 +3,6 @@ module Orb module Models class EventIngestResponse < Orb::BaseModel - Shape = T.type_alias do - { - validation_failed: T::Array[Orb::Models::EventIngestResponse::ValidationFailed], - debug: T.nilable(Orb::Models::EventIngestResponse::Debug) - } - end - sig { returns(T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) } attr_accessor :validation_failed @@ -22,14 +15,21 @@ module Orb debug: T.nilable(Orb::Models::EventIngestResponse::Debug) ).void end - def initialize(validation_failed:, debug: nil); end + def initialize(validation_failed:, debug: nil) + end - sig { returns(Orb::Models::EventIngestResponse::Shape) } - def to_h; end + sig do + override.returns( + { + validation_failed: T::Array[Orb::Models::EventIngestResponse::ValidationFailed], + debug: T.nilable(Orb::Models::EventIngestResponse::Debug) + } + ) + end + def to_hash + end class ValidationFailed < Orb::BaseModel - Shape = T.type_alias { {idempotency_key: String, validation_errors: T::Array[String]} } - sig { returns(String) } attr_accessor :idempotency_key @@ -37,15 +37,15 @@ module Orb attr_accessor :validation_errors sig { params(idempotency_key: String, validation_errors: T::Array[String]).void } - def initialize(idempotency_key:, validation_errors:); end + def initialize(idempotency_key:, validation_errors:) + end - sig { returns(Orb::Models::EventIngestResponse::ValidationFailed::Shape) } - def to_h; end + sig { override.returns({idempotency_key: String, validation_errors: T::Array[String]}) } + def to_hash + end end class Debug < Orb::BaseModel - Shape = T.type_alias { {duplicate: T::Array[String], ingested: T::Array[String]} } - sig { returns(T::Array[String]) } attr_accessor :duplicate @@ -53,10 +53,12 @@ module Orb attr_accessor :ingested sig { params(duplicate: T::Array[String], ingested: T::Array[String]).void } - def initialize(duplicate:, ingested:); end + def initialize(duplicate:, ingested:) + end - sig { returns(Orb::Models::EventIngestResponse::Debug::Shape) } - def to_h; end + sig { override.returns({duplicate: T::Array[String], ingested: T::Array[String]}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/event_search_params.rbi b/rbi/lib/orb/models/event_search_params.rbi index a3aea916..231ea2e9 100644 --- a/rbi/lib/orb/models/event_search_params.rbi +++ b/rbi/lib/orb/models/event_search_params.rbi @@ -6,13 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - {event_ids: T::Array[String], timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time)}, - Orb::RequestParameters::Shape - ) - end - sig { returns(T::Array[String]) } attr_accessor :event_ids @@ -27,13 +20,24 @@ module Orb event_ids: T::Array[String], timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(event_ids:, timeframe_end: nil, timeframe_start: nil, request_options: {}); end + def initialize(event_ids:, timeframe_end: nil, timeframe_start: nil, request_options: {}) + end - sig { returns(Orb::Models::EventSearchParams::Shape) } - def to_h; end + sig do + override.returns( + { + event_ids: T::Array[String], + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/event_search_response.rbi b/rbi/lib/orb/models/event_search_response.rbi index 706d5d63..e8a77671 100644 --- a/rbi/lib/orb/models/event_search_response.rbi +++ b/rbi/lib/orb/models/event_search_response.rbi @@ -3,30 +3,18 @@ module Orb module Models class EventSearchResponse < Orb::BaseModel - Shape = T.type_alias { {data: T::Array[Orb::Models::EventSearchResponse::Data]} } - sig { returns(T::Array[Orb::Models::EventSearchResponse::Data]) } attr_accessor :data sig { params(data: T::Array[Orb::Models::EventSearchResponse::Data]).void } - def initialize(data:); end + def initialize(data:) + end - sig { returns(Orb::Models::EventSearchResponse::Shape) } - def to_h; end + sig { override.returns({data: T::Array[Orb::Models::EventSearchResponse::Data]}) } + def to_hash + end class Data < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - customer_id: T.nilable(String), - deprecated: T::Boolean, - event_name: String, - external_customer_id: T.nilable(String), - properties: T.anything, - timestamp: Time - } - end - sig { returns(String) } attr_accessor :id @@ -70,8 +58,21 @@ module Orb ) end - sig { returns(Orb::Models::EventSearchResponse::Data::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + customer_id: T.nilable(String), + deprecated: T::Boolean, + event_name: String, + external_customer_id: T.nilable(String), + properties: T.anything, + timestamp: Time + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/event_update_params.rbi b/rbi/lib/orb/models/event_update_params.rbi index d8b7f800..27b310c8 100644 --- a/rbi/lib/orb/models/event_update_params.rbi +++ b/rbi/lib/orb/models/event_update_params.rbi @@ -6,19 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - event_name: String, - properties: T.anything, - timestamp: Time, - customer_id: T.nilable(String), - external_customer_id: T.nilable(String) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :event_name @@ -41,7 +28,7 @@ module Orb timestamp: Time, customer_id: T.nilable(String), external_customer_id: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -54,8 +41,20 @@ module Orb ) end - sig { returns(Orb::Models::EventUpdateParams::Shape) } - def to_h; end + sig do + override.returns( + { + event_name: String, + properties: T.anything, + timestamp: Time, + customer_id: T.nilable(String), + external_customer_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/event_update_response.rbi b/rbi/lib/orb/models/event_update_response.rbi index 38b647b9..1cf0f134 100644 --- a/rbi/lib/orb/models/event_update_response.rbi +++ b/rbi/lib/orb/models/event_update_response.rbi @@ -3,16 +3,16 @@ module Orb module Models class EventUpdateResponse < Orb::BaseModel - Shape = T.type_alias { {amended: String} } - sig { returns(String) } attr_accessor :amended sig { params(amended: String).void } - def initialize(amended:); end + def initialize(amended:) + end - sig { returns(Orb::Models::EventUpdateResponse::Shape) } - def to_h; end + sig { override.returns({amended: String}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/events/backfill_close_params.rbi b/rbi/lib/orb/models/events/backfill_close_params.rbi index 4835eafe..6bf8bc79 100644 --- a/rbi/lib/orb/models/events/backfill_close_params.rbi +++ b/rbi/lib/orb/models/events/backfill_close_params.rbi @@ -7,13 +7,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::Events::BackfillCloseParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/events/backfill_close_response.rbi b/rbi/lib/orb/models/events/backfill_close_response.rbi index e4ddbcdd..068478fa 100644 --- a/rbi/lib/orb/models/events/backfill_close_response.rbi +++ b/rbi/lib/orb/models/events/backfill_close_response.rbi @@ -4,21 +4,6 @@ module Orb module Models module Events class BackfillCloseResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - reverted_at: T.nilable(Time), - status: Symbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -74,10 +59,27 @@ module Orb timeframe_end:, timeframe_start:, deprecation_filter: nil - ); end + ) + end - sig { returns(Orb::Models::Events::BackfillCloseResponse::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + reverted_at: T.nilable(Time), + status: Symbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) + end + def to_hash + end class Status < Orb::Enum abstract! @@ -88,7 +90,8 @@ module Orb REVERTED = :reverted sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/events/backfill_create_params.rbi b/rbi/lib/orb/models/events/backfill_create_params.rbi index 4a8f34e6..564181cf 100644 --- a/rbi/lib/orb/models/events/backfill_create_params.rbi +++ b/rbi/lib/orb/models/events/backfill_create_params.rbi @@ -7,21 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - timeframe_end: Time, - timeframe_start: Time, - close_time: T.nilable(Time), - customer_id: T.nilable(String), - deprecation_filter: T.nilable(String), - external_customer_id: T.nilable(String), - replace_existing_events: T::Boolean - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(Time) } attr_accessor :timeframe_end @@ -55,7 +40,7 @@ module Orb deprecation_filter: T.nilable(String), external_customer_id: T.nilable(String), replace_existing_events: T::Boolean, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -67,10 +52,25 @@ module Orb external_customer_id: nil, replace_existing_events: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::Events::BackfillCreateParams::Shape) } - def to_h; end + sig do + override.returns( + { + timeframe_end: Time, + timeframe_start: Time, + close_time: T.nilable(Time), + customer_id: T.nilable(String), + deprecation_filter: T.nilable(String), + external_customer_id: T.nilable(String), + replace_existing_events: T::Boolean, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/events/backfill_create_response.rbi b/rbi/lib/orb/models/events/backfill_create_response.rbi index b4d83b15..7a2b946f 100644 --- a/rbi/lib/orb/models/events/backfill_create_response.rbi +++ b/rbi/lib/orb/models/events/backfill_create_response.rbi @@ -4,21 +4,6 @@ module Orb module Models module Events class BackfillCreateResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - reverted_at: T.nilable(Time), - status: Symbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -74,10 +59,27 @@ module Orb timeframe_end:, timeframe_start:, deprecation_filter: nil - ); end + ) + end - sig { returns(Orb::Models::Events::BackfillCreateResponse::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + reverted_at: T.nilable(Time), + status: Symbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) + end + def to_hash + end class Status < Orb::Enum abstract! @@ -88,7 +90,8 @@ module Orb REVERTED = :reverted sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/events/backfill_fetch_params.rbi b/rbi/lib/orb/models/events/backfill_fetch_params.rbi index 6a40173e..1e97a9c1 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_params.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_params.rbi @@ -7,13 +7,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::Events::BackfillFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/events/backfill_fetch_response.rbi b/rbi/lib/orb/models/events/backfill_fetch_response.rbi index 0ae79fc2..e78bb132 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_response.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_response.rbi @@ -4,21 +4,6 @@ module Orb module Models module Events class BackfillFetchResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - reverted_at: T.nilable(Time), - status: Symbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -74,10 +59,27 @@ module Orb timeframe_end:, timeframe_start:, deprecation_filter: nil - ); end + ) + end - sig { returns(Orb::Models::Events::BackfillFetchResponse::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + reverted_at: T.nilable(Time), + status: Symbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) + end + def to_hash + end class Status < Orb::Enum abstract! @@ -88,7 +90,8 @@ module Orb REVERTED = :reverted sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/events/backfill_list_params.rbi b/rbi/lib/orb/models/events/backfill_list_params.rbi index f9477e5b..986e516b 100644 --- a/rbi/lib/orb/models/events/backfill_list_params.rbi +++ b/rbi/lib/orb/models/events/backfill_list_params.rbi @@ -7,10 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({cursor: T.nilable(String), limit: Integer}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -20,11 +16,21 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit - sig { params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts).void } - def initialize(cursor: nil, limit: nil, request_options: {}); end + sig do + params( + cursor: T.nilable(String), + limit: Integer, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(cursor: nil, limit: nil, request_options: {}) + end - sig { returns(Orb::Models::Events::BackfillListParams::Shape) } - def to_h; end + sig do + override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/events/backfill_list_response.rbi b/rbi/lib/orb/models/events/backfill_list_response.rbi index 8ade674a..4ebbacd0 100644 --- a/rbi/lib/orb/models/events/backfill_list_response.rbi +++ b/rbi/lib/orb/models/events/backfill_list_response.rbi @@ -4,21 +4,6 @@ module Orb module Models module Events class BackfillListResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - reverted_at: T.nilable(Time), - status: Symbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -74,10 +59,27 @@ module Orb timeframe_end:, timeframe_start:, deprecation_filter: nil - ); end + ) + end - sig { returns(Orb::Models::Events::BackfillListResponse::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + reverted_at: T.nilable(Time), + status: Symbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) + end + def to_hash + end class Status < Orb::Enum abstract! @@ -88,7 +90,8 @@ module Orb REVERTED = :reverted sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/events/backfill_revert_params.rbi b/rbi/lib/orb/models/events/backfill_revert_params.rbi index 26a87a68..ec88cd25 100644 --- a/rbi/lib/orb/models/events/backfill_revert_params.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_params.rbi @@ -7,13 +7,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::Events::BackfillRevertParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/events/backfill_revert_response.rbi b/rbi/lib/orb/models/events/backfill_revert_response.rbi index ccb1b146..eea373ca 100644 --- a/rbi/lib/orb/models/events/backfill_revert_response.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_response.rbi @@ -4,21 +4,6 @@ module Orb module Models module Events class BackfillRevertResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - close_time: T.nilable(Time), - created_at: Time, - customer_id: T.nilable(String), - events_ingested: Integer, - reverted_at: T.nilable(Time), - status: Symbol, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -74,10 +59,27 @@ module Orb timeframe_end:, timeframe_start:, deprecation_filter: nil - ); end + ) + end - sig { returns(Orb::Models::Events::BackfillRevertResponse::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + close_time: T.nilable(Time), + created_at: Time, + customer_id: T.nilable(String), + events_ingested: Integer, + reverted_at: T.nilable(Time), + status: Symbol, + timeframe_end: Time, + timeframe_start: Time, + deprecation_filter: T.nilable(String) + } + ) + end + def to_hash + end class Status < Orb::Enum abstract! @@ -88,7 +90,8 @@ module Orb REVERTED = :reverted sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/events/event_volumes.rbi b/rbi/lib/orb/models/events/event_volumes.rbi index 966b7f28..54302d59 100644 --- a/rbi/lib/orb/models/events/event_volumes.rbi +++ b/rbi/lib/orb/models/events/event_volumes.rbi @@ -6,20 +6,18 @@ module Orb module Events class EventVolumes < Orb::BaseModel - Shape = T.type_alias { {data: T::Array[Orb::Models::Events::EventVolumes::Data]} } - sig { returns(T::Array[Orb::Models::Events::EventVolumes::Data]) } attr_accessor :data sig { params(data: T::Array[Orb::Models::Events::EventVolumes::Data]).void } - def initialize(data:); end + def initialize(data:) + end - sig { returns(Orb::Models::Events::EventVolumes::Shape) } - def to_h; end + sig { override.returns({data: T::Array[Orb::Models::Events::EventVolumes::Data]}) } + def to_hash + end class Data < Orb::BaseModel - Shape = T.type_alias { {count: Integer, timeframe_end: Time, timeframe_start: Time} } - sig { returns(Integer) } attr_accessor :count @@ -30,10 +28,12 @@ module Orb attr_accessor :timeframe_start sig { params(count: Integer, timeframe_end: Time, timeframe_start: Time).void } - def initialize(count:, timeframe_end:, timeframe_start:); end + def initialize(count:, timeframe_end:, timeframe_start:) + end - sig { returns(Orb::Models::Events::EventVolumes::Data::Shape) } - def to_h; end + sig { override.returns({count: Integer, timeframe_end: Time, timeframe_start: Time}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/events/volume_list_params.rbi b/rbi/lib/orb/models/events/volume_list_params.rbi index 6f1edb5e..4cccdb84 100644 --- a/rbi/lib/orb/models/events/volume_list_params.rbi +++ b/rbi/lib/orb/models/events/volume_list_params.rbi @@ -7,13 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - {timeframe_start: Time, cursor: T.nilable(String), limit: Integer, timeframe_end: Time}, - Orb::RequestParameters::Shape - ) - end - sig { returns(Time) } attr_accessor :timeframe_start @@ -38,14 +31,25 @@ module Orb cursor: T.nilable(String), limit: Integer, timeframe_end: Time, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize(timeframe_start:, cursor: nil, limit: nil, timeframe_end: nil, request_options: {}) end - sig { returns(Orb::Models::Events::VolumeListParams::Shape) } - def to_h; end + sig do + override.returns( + { + timeframe_start: Time, + cursor: T.nilable(String), + limit: Integer, + timeframe_end: Time, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice.rbi b/rbi/lib/orb/models/invoice.rbi index fb3b09c5..ae26dc37 100644 --- a/rbi/lib/orb/models/invoice.rbi +++ b/rbi/lib/orb/models/invoice.rbi @@ -3,52 +3,6 @@ module Orb module Models class Invoice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: T.nilable(Orb::Models::Invoice::BillingAddress), - created_at: Time, - credit_notes: T::Array[Orb::Models::Invoice::CreditNote], - currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction], - customer_tax_id: T.nilable(Orb::Models::Invoice::CustomerTaxID), - discount: T.anything, - discounts: T::Array[Orb::Models::InvoiceLevelDiscount::Variants], - due_date: T.nilable(Time), - eligible_to_issue_at: T.nilable(Time), - hosted_invoice_url: T.nilable(String), - invoice_date: Time, - invoice_number: String, - invoice_pdf: T.nilable(String), - invoice_source: Symbol, - issue_failed_at: T.nilable(Time), - issued_at: T.nilable(Time), - line_items: T::Array[Orb::Models::Invoice::LineItem], - maximum: T.nilable(Orb::Models::Invoice::Maximum), - maximum_amount: T.nilable(String), - memo: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Invoice::Minimum), - minimum_amount: T.nilable(String), - paid_at: T.nilable(Time), - payment_attempts: T::Array[Orb::Models::Invoice::PaymentAttempt], - payment_failed_at: T.nilable(Time), - payment_started_at: T.nilable(Time), - scheduled_issue_at: T.nilable(Time), - shipping_address: T.nilable(Orb::Models::Invoice::ShippingAddress), - status: Symbol, - subscription: T.nilable(Orb::Models::Invoice::Subscription), - subtotal: String, - sync_failed_at: T.nilable(Time), - total: String, - voided_at: T.nilable(Time), - will_auto_issue: T::Boolean - } - end - sig { returns(String) } attr_accessor :id @@ -82,7 +36,15 @@ module Orb sig { returns(T.anything) } attr_accessor :discount - sig { returns(T::Array[Orb::Models::InvoiceLevelDiscount::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::PercentageDiscount, + Orb::Models::AmountDiscount, + Orb::Models::TrialDiscount + )] + ) + end attr_accessor :discounts sig { returns(T.nilable(Time)) } @@ -185,7 +147,11 @@ module Orb customer_balance_transactions: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction], customer_tax_id: T.nilable(Orb::Models::Invoice::CustomerTaxID), discount: T.anything, - discounts: T::Array[Orb::Models::InvoiceLevelDiscount::Variants], + discounts: T::Array[T.any( + Orb::Models::PercentageDiscount, + Orb::Models::AmountDiscount, + Orb::Models::TrialDiscount + )], due_date: T.nilable(Time), eligible_to_issue_at: T.nilable(Time), hosted_invoice_url: T.nilable(String), @@ -259,21 +225,64 @@ module Orb total:, voided_at:, will_auto_issue: - ); end - - sig { returns(Orb::Models::Invoice::Shape) } - def to_h; end + ) + end - class AutoCollection < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - enabled: T.nilable(T::Boolean), - next_attempt_at: T.nilable(Time), - num_attempts: T.nilable(Integer), - previously_attempted_at: T.nilable(Time) + id: String, + amount_due: String, + auto_collection: Orb::Models::Invoice::AutoCollection, + billing_address: T.nilable(Orb::Models::Invoice::BillingAddress), + created_at: Time, + credit_notes: T::Array[Orb::Models::Invoice::CreditNote], + currency: String, + customer: Orb::Models::Invoice::Customer, + customer_balance_transactions: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction], + customer_tax_id: T.nilable(Orb::Models::Invoice::CustomerTaxID), + discount: T.anything, + discounts: T::Array[T.any( + Orb::Models::PercentageDiscount, + Orb::Models::AmountDiscount, + Orb::Models::TrialDiscount + )], + due_date: T.nilable(Time), + eligible_to_issue_at: T.nilable(Time), + hosted_invoice_url: T.nilable(String), + invoice_date: Time, + invoice_number: String, + invoice_pdf: T.nilable(String), + invoice_source: Symbol, + issue_failed_at: T.nilable(Time), + issued_at: T.nilable(Time), + line_items: T::Array[Orb::Models::Invoice::LineItem], + maximum: T.nilable(Orb::Models::Invoice::Maximum), + maximum_amount: T.nilable(String), + memo: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Invoice::Minimum), + minimum_amount: T.nilable(String), + paid_at: T.nilable(Time), + payment_attempts: T::Array[Orb::Models::Invoice::PaymentAttempt], + payment_failed_at: T.nilable(Time), + payment_started_at: T.nilable(Time), + scheduled_issue_at: T.nilable(Time), + shipping_address: T.nilable(Orb::Models::Invoice::ShippingAddress), + status: Symbol, + subscription: T.nilable(Orb::Models::Invoice::Subscription), + subtotal: String, + sync_failed_at: T.nilable(Time), + total: String, + voided_at: T.nilable(Time), + will_auto_issue: T::Boolean } - end + ) + end + def to_hash + end + class AutoCollection < Orb::BaseModel sig { returns(T.nilable(T::Boolean)) } attr_accessor :enabled @@ -294,24 +303,24 @@ module Orb previously_attempted_at: T.nilable(Time) ).void end - def initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:); end + def initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:) + end - sig { returns(Orb::Models::Invoice::AutoCollection::Shape) } - def to_h; end + sig do + override.returns( + { + enabled: T.nilable(T::Boolean), + next_attempt_at: T.nilable(Time), + num_attempts: T.nilable(Integer), + previously_attempted_at: T.nilable(Time) + } + ) + end + def to_hash + end end class BillingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -340,25 +349,26 @@ module Orb state: T.nilable(String) ).void end - def initialize(city:, country:, line1:, line2:, postal_code:, state:); end + def initialize(city:, country:, line1:, line2:, postal_code:, state:) + end - sig { returns(Orb::Models::Invoice::BillingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class CreditNote < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - credit_note_number: String, - memo: T.nilable(String), - reason: String, - total: String, - type: String, - voided_at: T.nilable(Time) - } - end - sig { returns(String) } attr_accessor :id @@ -391,15 +401,27 @@ module Orb voided_at: T.nilable(Time) ).void end - def initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:); end + def initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:) + end - sig { returns(Orb::Models::Invoice::CreditNote::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + credit_note_number: String, + memo: T.nilable(String), + reason: String, + total: String, + type: String, + voided_at: T.nilable(Time) + } + ) + end + def to_hash + end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -407,28 +429,15 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig { returns(Orb::Models::Invoice::Customer::Shape) } - def to_h; end + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash + end end class CustomerBalanceTransaction < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - action: Symbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice), - starting_balance: String, - type: Symbol - } - end - sig { returns(String) } attr_accessor :id @@ -484,10 +493,27 @@ module Orb invoice:, starting_balance:, type: - ); end + ) + end - sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + action: Symbol, + amount: String, + created_at: Time, + credit_note: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote), + description: T.nilable(String), + ending_balance: String, + invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice), + starting_balance: String, + type: Symbol + } + ) + end + def to_hash + end class Action < Orb::Enum abstract! @@ -502,33 +528,34 @@ module Orb OVERPAYMENT_REFUND = :overpayment_refund sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditNote < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class Invoice < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class Type < Orb::Enum @@ -538,13 +565,12 @@ module Orb DECREMENT = :decrement sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class CustomerTaxID < Orb::BaseModel - Shape = T.type_alias { {country: Symbol, type: Symbol, value: String} } - sig { returns(Symbol) } attr_accessor :country @@ -555,10 +581,12 @@ module Orb attr_accessor :value sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:); end + def initialize(country:, type:, value:) + end - sig { returns(Orb::Models::Invoice::CustomerTaxID::Shape) } - def to_h; end + sig { override.returns({country: Symbol, type: Symbol, value: String}) } + def to_hash + end class Country < Orb::Enum abstract! @@ -643,7 +671,8 @@ module Orb ZA = :ZA sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Type < Orb::Enum @@ -722,7 +751,8 @@ module Orb ZA_VAT = :za_vat sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -734,42 +764,28 @@ module Orb ONE_OFF = :one_off sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class LineItem < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjusted_subtotal: String, - adjustments: T::Array[Orb::Models::Invoice::LineItem::Adjustment::Variants], - amount: String, - credits_applied: String, - discount: T.nilable(Orb::Models::Discount::Variants), - end_date: Time, - grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::Invoice::LineItem::Minimum), - minimum_amount: T.nilable(String), - name: String, - partially_invoiced_amount: String, - price: T.nilable(Orb::Models::Price::Variants), - quantity: Float, - start_date: Time, - sub_line_items: T::Array[Orb::Models::Invoice::LineItem::SubLineItem::Variants], - subtotal: String, - tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount] - } - end - sig { returns(String) } attr_accessor :id sig { returns(String) } attr_accessor :adjusted_subtotal - sig { returns(T::Array[Orb::Models::Invoice::LineItem::Adjustment::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::UsageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MinimumAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MaximumAdjustment + )] + ) + end attr_accessor :adjustments sig { returns(String) } @@ -778,7 +794,18 @@ module Orb sig { returns(String) } attr_accessor :credits_applied - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(Time) } @@ -805,7 +832,41 @@ module Orb sig { returns(String) } attr_accessor :partially_invoiced_amount - sig { returns(T.nilable(Orb::Models::Price::Variants)) } + sig do + returns( + T.nilable( + T.any( + 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 + ) + ) + ) + end attr_accessor :price sig { returns(Float) } @@ -814,7 +875,15 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(T::Array[Orb::Models::Invoice::LineItem::SubLineItem::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem + )] + ) + end attr_accessor :sub_line_items sig { returns(String) } @@ -827,10 +896,23 @@ module Orb params( id: String, adjusted_subtotal: String, - adjustments: T::Array[Orb::Models::Invoice::LineItem::Adjustment::Variants], + adjustments: T::Array[T.any( + Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::UsageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MinimumAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MaximumAdjustment + )], amount: String, credits_applied: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), end_date: Time, grouping: T.nilable(String), maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum), @@ -839,10 +921,44 @@ module Orb minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, - price: T.nilable(Orb::Models::Price::Variants), + price: T.nilable( + T.any( + 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 + ) + ), quantity: Float, start_date: Time, - sub_line_items: T::Array[Orb::Models::Invoice::LineItem::SubLineItem::Variants], + sub_line_items: T::Array[T.any( + Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem + )], subtotal: String, tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount] ).void @@ -868,37 +984,85 @@ module Orb sub_line_items:, subtotal:, tax_amounts: - ); end + ) + end - sig { returns(Orb::Models::Invoice::LineItem::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjusted_subtotal: String, + adjustments: T::Array[T.any( + Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::UsageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MinimumAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MaximumAdjustment + )], + amount: String, + credits_applied: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + end_date: Time, + grouping: T.nilable(String), + maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Models::Invoice::LineItem::Minimum), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: T.nilable( + T.any( + 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 + ) + ), + quantity: Float, + start_date: Time, + sub_line_items: T::Array[T.any( + Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem + )], + subtotal: String, + tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount] + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::UsageDiscountAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MinimumAdjustment, - Orb::Models::Invoice::LineItem::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -939,25 +1103,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end - sig { returns(Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash + end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -998,25 +1164,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end - sig { returns(Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscountAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash + end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -1057,26 +1225,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end - sig { returns(Orb::Models::Invoice::LineItem::Adjustment::UsageDiscountAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash + end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -1122,25 +1291,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end - sig { returns(Orb::Models::Invoice::LineItem::Adjustment::MinimumAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash + end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -1181,10 +1353,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end - sig { returns(Orb::Models::Invoice::LineItem::Adjustment::MaximumAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash + end end sig do @@ -1198,12 +1384,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1211,15 +1396,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Invoice::LineItem::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1227,35 +1412,18 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Invoice::LineItem::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class SubLineItem < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - ) - end - class MatrixSubLineItem < Orb::BaseModel - Shape = T.type_alias do - { - amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: Symbol - } - end - sig { returns(String) } attr_accessor :amount @@ -1286,14 +1454,25 @@ module Orb type: Symbol ).void end - def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix); end + def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) + end - sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping), + matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash + end class Grouping < Orb::BaseModel - Shape = T.type_alias { {key: String, value: T.nilable(String)} } - sig { returns(String) } attr_accessor :key @@ -1301,40 +1480,29 @@ module Orb attr_accessor :value sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:); end + def initialize(key:, value:) + end - sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping::Shape) } - def to_h; end + sig { override.returns({key: String, value: T.nilable(String)}) } + def to_hash + end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)]} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values sig { params(dimension_values: T::Array[T.nilable(String)]).void } - def initialize(dimension_values:); end + def initialize(dimension_values:) + end - sig do - returns(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)]}) } + def to_hash end - def to_h; end end end class TierSubLineItem < Orb::BaseModel - Shape = T.type_alias do - { - amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping), - name: String, - quantity: Float, - tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, - type: Symbol - } - end - sig { returns(String) } attr_accessor :amount @@ -1363,14 +1531,25 @@ module Orb type: Symbol ).void end - def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier); end + def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) + end - sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping), + name: String, + quantity: Float, + tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, + type: Symbol + } + ) + end + def to_hash + end class Grouping < Orb::BaseModel - Shape = T.type_alias { {key: String, value: T.nilable(String)} } - sig { returns(String) } attr_accessor :key @@ -1378,15 +1557,15 @@ module Orb attr_accessor :value sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:); end + def initialize(key:, value:) + end - sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping::Shape) } - def to_h; end + sig { override.returns({key: String, value: T.nilable(String)}) } + def to_hash + end end class TierConfig < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, last_unit: T.nilable(Float), unit_amount: String} } - sig { returns(Float) } attr_accessor :first_unit @@ -1397,24 +1576,16 @@ module Orb attr_accessor :unit_amount sig { params(first_unit: Float, last_unit: T.nilable(Float), unit_amount: String).void } - def initialize(first_unit:, last_unit:, unit_amount:); end + def initialize(first_unit:, last_unit:, unit_amount:) + end - sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig::Shape) } - def to_h; end + sig { override.returns({first_unit: Float, last_unit: T.nilable(Float), unit_amount: String}) } + def to_hash + end end end class OtherSubLineItem < Orb::BaseModel - Shape = T.type_alias do - { - amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping), - name: String, - quantity: Float, - type: Symbol - } - end - sig { returns(String) } attr_accessor :amount @@ -1441,14 +1612,24 @@ module Orb type: Symbol ).void end - def initialize(amount:, grouping:, name:, quantity:, type: :"'null'"); end + def initialize(amount:, grouping:, name:, quantity:, type: :"'null'") + end - sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping), + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash + end class Grouping < Orb::BaseModel - Shape = T.type_alias { {key: String, value: T.nilable(String)} } - sig { returns(String) } attr_accessor :key @@ -1456,10 +1637,12 @@ module Orb attr_accessor :value sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:); end + def initialize(key:, value:) + end - sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping::Shape) } - def to_h; end + sig { override.returns({key: String, value: T.nilable(String)}) } + def to_hash + end end end @@ -1472,14 +1655,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class TaxAmount < Orb::BaseModel - Shape = T.type_alias do - {amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)} - end - sig { returns(String) } attr_accessor :amount @@ -1492,16 +1672,24 @@ module Orb sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)).void end - def initialize(amount:, tax_rate_description:, tax_rate_percentage:); end + def initialize(amount:, tax_rate_description:, tax_rate_percentage:) + end - sig { returns(Orb::Models::Invoice::LineItem::TaxAmount::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + tax_rate_description: String, + tax_rate_percentage: T.nilable(String) + } + ) + end + def to_hash + end end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1509,15 +1697,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Invoice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1525,24 +1713,15 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Invoice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PaymentAttempt < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: String, - created_at: Time, - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - succeeded: T::Boolean - } - end - sig { returns(String) } attr_accessor :id @@ -1571,10 +1750,23 @@ module Orb succeeded: T::Boolean ).void end - def initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:); end + def initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:) + end - sig { returns(Orb::Models::Invoice::PaymentAttempt::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + amount: String, + created_at: Time, + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + succeeded: T::Boolean + } + ) + end + def to_hash + end class PaymentProvider < Orb::Enum abstract! @@ -1582,22 +1774,12 @@ module Orb STRIPE = T.let(:stripe, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class ShippingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -1626,10 +1808,23 @@ module Orb state: T.nilable(String) ).void end - def initialize(city:, country:, line1:, line2:, postal_code:, state:); end + def initialize(city:, country:, line1:, line2:, postal_code:, state:) + end - sig { returns(Orb::Models::Invoice::ShippingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class Status < Orb::Enum @@ -1642,20 +1837,21 @@ module Orb DRAFT = :draft sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Subscription < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Invoice::Subscription::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_create_params.rbi b/rbi/lib/orb/models/invoice_create_params.rbi index e5cbcec9..0d215f49 100644 --- a/rbi/lib/orb/models/invoice_create_params.rbi +++ b/rbi/lib/orb/models/invoice_create_params.rbi @@ -6,24 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - currency: String, - invoice_date: Time, - line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], - net_terms: Integer, - customer_id: T.nilable(String), - discount: T.nilable(Orb::Models::Discount::Variants), - external_customer_id: T.nilable(String), - memo: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - will_auto_issue: T::Boolean - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :currency @@ -39,7 +21,18 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :customer_id - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -64,12 +57,19 @@ module Orb line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], net_terms: Integer, customer_id: T.nilable(String), - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_customer_id: T.nilable(String), memo: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), will_auto_issue: T::Boolean, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -84,24 +84,37 @@ module Orb metadata: nil, will_auto_issue: nil, request_options: {} - ); end - - sig { returns(Orb::Models::InvoiceCreateParams::Shape) } - def to_h; end + ) + end - class LineItem < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - end_date: Date, - item_id: String, - model_type: Symbol, - name: String, - quantity: Float, - start_date: Date, - unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig + currency: String, + invoice_date: Time, + line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], + net_terms: Integer, + customer_id: T.nilable(String), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_customer_id: T.nilable(String), + memo: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + will_auto_issue: T::Boolean, + request_options: Orb::RequestOptions } - end + ) + end + def to_hash + end + class LineItem < Orb::BaseModel sig { returns(Date) } attr_accessor :end_date @@ -134,10 +147,24 @@ module Orb unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig ).void end - def initialize(end_date:, item_id:, model_type:, name:, quantity:, start_date:, unit_config:); end + def initialize(end_date:, item_id:, model_type:, name:, quantity:, start_date:, unit_config:) + end - sig { returns(Orb::Models::InvoiceCreateParams::LineItem::Shape) } - def to_h; end + sig do + override.returns( + { + end_date: Date, + item_id: String, + model_type: Symbol, + name: String, + quantity: Float, + start_date: Date, + unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig + } + ) + end + def to_hash + end class ModelType < Orb::Enum abstract! @@ -145,20 +172,21 @@ module Orb UNIT = :unit sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class UnitConfig < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String} } - sig { returns(String) } attr_accessor :unit_amount sig { params(unit_amount: String).void } - def initialize(unit_amount:); end + def initialize(unit_amount:) + end - sig { returns(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig::Shape) } - def to_h; end + sig { override.returns({unit_amount: String}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_fetch_params.rbi b/rbi/lib/orb/models/invoice_fetch_params.rbi index d1d4781f..75264c78 100644 --- a/rbi/lib/orb/models/invoice_fetch_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::InvoiceFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi index f708fca2..48bce9ba 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi @@ -6,16 +6,21 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({subscription_id: String}, Orb::RequestParameters::Shape) } - sig { returns(String) } attr_accessor :subscription_id - sig { params(subscription_id: String, request_options: Orb::RequestOpts).void } - def initialize(subscription_id:, request_options: {}); end + sig do + params( + subscription_id: String, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(subscription_id:, request_options: {}) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingParams::Shape) } - def to_h; end + sig { override.returns({subscription_id: String, request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi index 7107a4ac..81bcf131 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi @@ -3,52 +3,6 @@ module Orb module Models class InvoiceFetchUpcomingResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount_due: String, - auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, - billing_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress), - created_at: Time, - credit_notes: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], - currency: String, - customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, - customer_balance_transactions: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], - customer_tax_id: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID), - discount: T.anything, - discounts: T::Array[Orb::Models::InvoiceLevelDiscount::Variants], - due_date: T.nilable(Time), - eligible_to_issue_at: T.nilable(Time), - hosted_invoice_url: T.nilable(String), - invoice_number: String, - invoice_pdf: T.nilable(String), - invoice_source: Symbol, - issue_failed_at: T.nilable(Time), - issued_at: T.nilable(Time), - line_items: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], - maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum), - maximum_amount: T.nilable(String), - memo: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum), - minimum_amount: T.nilable(String), - paid_at: T.nilable(Time), - payment_attempts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], - payment_failed_at: T.nilable(Time), - payment_started_at: T.nilable(Time), - scheduled_issue_at: T.nilable(Time), - shipping_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress), - status: Symbol, - subscription: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription), - subtotal: String, - sync_failed_at: T.nilable(Time), - target_date: Time, - total: String, - voided_at: T.nilable(Time), - will_auto_issue: T::Boolean - } - end - sig { returns(String) } attr_accessor :id @@ -82,7 +36,15 @@ module Orb sig { returns(T.anything) } attr_accessor :discount - sig { returns(T::Array[Orb::Models::InvoiceLevelDiscount::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::PercentageDiscount, + Orb::Models::AmountDiscount, + Orb::Models::TrialDiscount + )] + ) + end attr_accessor :discounts sig { returns(T.nilable(Time)) } @@ -185,7 +147,11 @@ module Orb customer_balance_transactions: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], customer_tax_id: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID), discount: T.anything, - discounts: T::Array[Orb::Models::InvoiceLevelDiscount::Variants], + discounts: T::Array[T.any( + Orb::Models::PercentageDiscount, + Orb::Models::AmountDiscount, + Orb::Models::TrialDiscount + )], due_date: T.nilable(Time), eligible_to_issue_at: T.nilable(Time), hosted_invoice_url: T.nilable(String), @@ -259,21 +225,64 @@ module Orb total:, voided_at:, will_auto_issue: - ); end - - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Shape) } - def to_h; end + ) + end - class AutoCollection < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - enabled: T.nilable(T::Boolean), - next_attempt_at: T.nilable(Time), - num_attempts: T.nilable(Integer), - previously_attempted_at: T.nilable(Time) + id: String, + amount_due: String, + auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, + billing_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress), + created_at: Time, + credit_notes: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], + currency: String, + customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, + customer_balance_transactions: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], + customer_tax_id: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID), + discount: T.anything, + discounts: T::Array[T.any( + Orb::Models::PercentageDiscount, + Orb::Models::AmountDiscount, + Orb::Models::TrialDiscount + )], + due_date: T.nilable(Time), + eligible_to_issue_at: T.nilable(Time), + hosted_invoice_url: T.nilable(String), + invoice_number: String, + invoice_pdf: T.nilable(String), + invoice_source: Symbol, + issue_failed_at: T.nilable(Time), + issued_at: T.nilable(Time), + line_items: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], + maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum), + maximum_amount: T.nilable(String), + memo: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum), + minimum_amount: T.nilable(String), + paid_at: T.nilable(Time), + payment_attempts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], + payment_failed_at: T.nilable(Time), + payment_started_at: T.nilable(Time), + scheduled_issue_at: T.nilable(Time), + shipping_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress), + status: Symbol, + subscription: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription), + subtotal: String, + sync_failed_at: T.nilable(Time), + target_date: Time, + total: String, + voided_at: T.nilable(Time), + will_auto_issue: T::Boolean } - end + ) + end + def to_hash + end + class AutoCollection < Orb::BaseModel sig { returns(T.nilable(T::Boolean)) } attr_accessor :enabled @@ -294,24 +303,24 @@ module Orb previously_attempted_at: T.nilable(Time) ).void end - def initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:); end + def initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection::Shape) } - def to_h; end + sig do + override.returns( + { + enabled: T.nilable(T::Boolean), + next_attempt_at: T.nilable(Time), + num_attempts: T.nilable(Integer), + previously_attempted_at: T.nilable(Time) + } + ) + end + def to_hash + end end class BillingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -340,25 +349,26 @@ module Orb state: T.nilable(String) ).void end - def initialize(city:, country:, line1:, line2:, postal_code:, state:); end + def initialize(city:, country:, line1:, line2:, postal_code:, state:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class CreditNote < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - credit_note_number: String, - memo: T.nilable(String), - reason: String, - total: String, - type: String, - voided_at: T.nilable(Time) - } - end - sig { returns(String) } attr_accessor :id @@ -391,15 +401,27 @@ module Orb voided_at: T.nilable(Time) ).void end - def initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:); end + def initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CreditNote::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + credit_note_number: String, + memo: T.nilable(String), + reason: String, + total: String, + type: String, + voided_at: T.nilable(Time) + } + ) + end + def to_hash + end end class Customer < Orb::BaseModel - Shape = T.type_alias { {id: String, external_customer_id: T.nilable(String)} } - sig { returns(String) } attr_accessor :id @@ -407,28 +429,15 @@ module Orb attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).void } - def initialize(id:, external_customer_id:); end + def initialize(id:, external_customer_id:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Customer::Shape) } - def to_h; end + sig { override.returns({id: String, external_customer_id: T.nilable(String)}) } + def to_hash + end end class CustomerBalanceTransaction < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - action: Symbol, - amount: String, - created_at: Time, - credit_note: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote), - description: T.nilable(String), - ending_balance: String, - invoice: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice), - starting_balance: String, - type: Symbol - } - end - sig { returns(String) } attr_accessor :id @@ -488,10 +497,27 @@ module Orb invoice:, starting_balance:, type: - ); end + ) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + action: Symbol, + amount: String, + created_at: Time, + credit_note: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote), + description: T.nilable(String), + ending_balance: String, + invoice: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice), + starting_balance: String, + type: Symbol + } + ) + end + def to_hash + end class Action < Orb::Enum abstract! @@ -506,37 +532,34 @@ module Orb OVERPAYMENT_REFUND = :overpayment_refund sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditNote < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote::Shape) + sig { override.returns({id: String}) } + def to_hash end - def to_h; end end class Invoice < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice::Shape) + sig { override.returns({id: String}) } + def to_hash end - def to_h; end end class Type < Orb::Enum @@ -546,13 +569,12 @@ module Orb DECREMENT = :decrement sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class CustomerTaxID < Orb::BaseModel - Shape = T.type_alias { {country: Symbol, type: Symbol, value: String} } - sig { returns(Symbol) } attr_accessor :country @@ -563,10 +585,12 @@ module Orb attr_accessor :value sig { params(country: Symbol, type: Symbol, value: String).void } - def initialize(country:, type:, value:); end + def initialize(country:, type:, value:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Shape) } - def to_h; end + sig { override.returns({country: Symbol, type: Symbol, value: String}) } + def to_hash + end class Country < Orb::Enum abstract! @@ -651,7 +675,8 @@ module Orb ZA = :ZA sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Type < Orb::Enum @@ -730,7 +755,8 @@ module Orb ZA_VAT = :za_vat sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -742,42 +768,24 @@ module Orb ONE_OFF = :one_off sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class LineItem < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjusted_subtotal: String, - adjustments: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants], - amount: String, - credits_applied: String, - discount: T.nilable(Orb::Models::Discount::Variants), - end_date: Time, - grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum), - minimum_amount: T.nilable(String), - name: String, - partially_invoiced_amount: String, - price: T.nilable(Orb::Models::Price::Variants), - quantity: Float, - start_date: Time, - sub_line_items: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants], - subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] - } - end - sig { returns(String) } attr_accessor :id sig { returns(String) } attr_accessor :adjusted_subtotal - sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MaximumAdjustment + )] + ) + end attr_accessor :adjustments sig { returns(String) } @@ -786,7 +794,18 @@ module Orb sig { returns(String) } attr_accessor :credits_applied - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(Time) } @@ -813,7 +832,41 @@ module Orb sig { returns(String) } attr_accessor :partially_invoiced_amount - sig { returns(T.nilable(Orb::Models::Price::Variants)) } + sig do + returns( + T.nilable( + T.any( + 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 + ) + ) + ) + end attr_accessor :price sig { returns(Float) } @@ -822,7 +875,15 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem + )] + ) + end attr_accessor :sub_line_items sig { returns(String) } @@ -835,10 +896,19 @@ module Orb params( id: String, adjusted_subtotal: String, - adjustments: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants], + adjustments: T::Array[T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MaximumAdjustment + )], amount: String, credits_applied: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), end_date: Time, grouping: T.nilable(String), maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum), @@ -847,10 +917,42 @@ module Orb minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, - price: T.nilable(Orb::Models::Price::Variants), + price: T.nilable( + T.any( + 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 + ) + ), quantity: Float, start_date: Time, - sub_line_items: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants], + sub_line_items: T::Array[T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem + )], subtotal: String, tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] ).void @@ -876,37 +978,83 @@ module Orb sub_line_items:, subtotal:, tax_amounts: - ); end + ) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjusted_subtotal: String, + adjustments: T::Array[T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MaximumAdjustment + )], + amount: String, + credits_applied: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + end_date: Time, + grouping: T.nilable(String), + maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: T.nilable( + T.any( + 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 + ) + ), + quantity: Float, + start_date: Time, + sub_line_items: T::Array[T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem + )], + subtotal: String, + tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscountAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MinimumAdjustment, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -947,27 +1095,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -1008,27 +1156,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -1069,28 +1217,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -1136,27 +1283,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -1197,12 +1345,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -1225,12 +1385,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1238,15 +1397,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1254,35 +1413,18 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class SubLineItem < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - ) - end - class MatrixSubLineItem < Orb::BaseModel - Shape = T.type_alias do - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: Symbol - } - end - sig { returns(String) } attr_accessor :amount @@ -1315,16 +1457,25 @@ module Orb type: Symbol ).void end - def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix); end + def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) + end sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Shape) + override.returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping), + matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash end - def to_h; end class Grouping < Orb::BaseModel - Shape = T.type_alias { {key: String, value: T.nilable(String)} } - sig { returns(String) } attr_accessor :key @@ -1332,42 +1483,29 @@ module Orb attr_accessor :value sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:); end + def initialize(key:, value:) + end - sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping::Shape) + sig { override.returns({key: String, value: T.nilable(String)}) } + def to_hash end - def to_h; end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)]} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values sig { params(dimension_values: T::Array[T.nilable(String)]).void } - def initialize(dimension_values:); end + def initialize(dimension_values:) + end - sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)]}) } + def to_hash end - def to_h; end end end class TierSubLineItem < Orb::BaseModel - Shape = T.type_alias do - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping), - name: String, - quantity: Float, - tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, - type: Symbol - } - end - sig { returns(String) } attr_accessor :amount @@ -1400,16 +1538,25 @@ module Orb type: Symbol ).void end - def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier); end + def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) + end sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Shape) + override.returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping), + name: String, + quantity: Float, + tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, + type: Symbol + } + ) + end + def to_hash end - def to_h; end class Grouping < Orb::BaseModel - Shape = T.type_alias { {key: String, value: T.nilable(String)} } - sig { returns(String) } attr_accessor :key @@ -1417,17 +1564,15 @@ module Orb attr_accessor :value sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:); end + def initialize(key:, value:) + end - sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping::Shape) + sig { override.returns({key: String, value: T.nilable(String)}) } + def to_hash end - def to_h; end end class TierConfig < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, last_unit: T.nilable(Float), unit_amount: String} } - sig { returns(Float) } attr_accessor :first_unit @@ -1438,26 +1583,16 @@ module Orb attr_accessor :unit_amount sig { params(first_unit: Float, last_unit: T.nilable(Float), unit_amount: String).void } - def initialize(first_unit:, last_unit:, unit_amount:); end + def initialize(first_unit:, last_unit:, unit_amount:) + end - sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig::Shape) + sig { override.returns({first_unit: Float, last_unit: T.nilable(Float), unit_amount: String}) } + def to_hash end - def to_h; end end end class OtherSubLineItem < Orb::BaseModel - Shape = T.type_alias do - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping), - name: String, - quantity: Float, - type: Symbol - } - end - sig { returns(String) } attr_accessor :amount @@ -1484,16 +1619,24 @@ module Orb type: Symbol ).void end - def initialize(amount:, grouping:, name:, quantity:, type: :"'null'"); end + def initialize(amount:, grouping:, name:, quantity:, type: :"'null'") + end sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Shape) + override.returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping), + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash end - def to_h; end class Grouping < Orb::BaseModel - Shape = T.type_alias { {key: String, value: T.nilable(String)} } - sig { returns(String) } attr_accessor :key @@ -1501,12 +1644,12 @@ module Orb attr_accessor :value sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:); end + def initialize(key:, value:) + end - sig do - returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping::Shape) + sig { override.returns({key: String, value: T.nilable(String)}) } + def to_hash end - def to_h; end end end @@ -1522,14 +1665,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class TaxAmount < Orb::BaseModel - Shape = T.type_alias do - {amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)} - end - sig { returns(String) } attr_accessor :amount @@ -1542,16 +1682,24 @@ module Orb sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)).void end - def initialize(amount:, tax_rate_description:, tax_rate_percentage:); end + def initialize(amount:, tax_rate_description:, tax_rate_percentage:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + tax_rate_description: String, + tax_rate_percentage: T.nilable(String) + } + ) + end + def to_hash + end end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1559,15 +1707,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1575,24 +1723,15 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PaymentAttempt < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - amount: String, - created_at: Time, - payment_provider: T.nilable(Symbol), - payment_provider_id: T.nilable(String), - succeeded: T::Boolean - } - end - sig { returns(String) } attr_accessor :id @@ -1621,10 +1760,23 @@ module Orb succeeded: T::Boolean ).void end - def initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:); end + def initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + amount: String, + created_at: Time, + payment_provider: T.nilable(Symbol), + payment_provider_id: T.nilable(String), + succeeded: T::Boolean + } + ) + end + def to_hash + end class PaymentProvider < Orb::Enum abstract! @@ -1632,22 +1784,12 @@ module Orb STRIPE = T.let(:stripe, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class ShippingAddress < Orb::BaseModel - Shape = T.type_alias do - { - city: T.nilable(String), - country: T.nilable(String), - line1: T.nilable(String), - line2: T.nilable(String), - postal_code: T.nilable(String), - state: T.nilable(String) - } - end - sig { returns(T.nilable(String)) } attr_accessor :city @@ -1676,10 +1818,23 @@ module Orb state: T.nilable(String) ).void end - def initialize(city:, country:, line1:, line2:, postal_code:, state:); end + def initialize(city:, country:, line1:, line2:, postal_code:, state:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress::Shape) } - def to_h; end + sig do + override.returns( + { + city: T.nilable(String), + country: T.nilable(String), + line1: T.nilable(String), + line2: T.nilable(String), + postal_code: T.nilable(String), + state: T.nilable(String) + } + ) + end + def to_hash + end end class Status < Orb::Enum @@ -1692,20 +1847,21 @@ module Orb DRAFT = :draft sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Subscription < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Subscription::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_issue_params.rbi b/rbi/lib/orb/models/invoice_issue_params.rbi index 085c3824..24ec8b23 100644 --- a/rbi/lib/orb/models/invoice_issue_params.rbi +++ b/rbi/lib/orb/models/invoice_issue_params.rbi @@ -6,19 +6,24 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({synchronous: T::Boolean}, Orb::RequestParameters::Shape) } - sig { returns(T.nilable(T::Boolean)) } attr_reader :synchronous sig { params(synchronous: T::Boolean).void } attr_writer :synchronous - sig { params(synchronous: T::Boolean, request_options: Orb::RequestOpts).void } - def initialize(synchronous: nil, request_options: {}); end + sig do + params( + synchronous: T::Boolean, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(synchronous: nil, request_options: {}) + end - sig { returns(Orb::Models::InvoiceIssueParams::Shape) } - def to_h; end + sig { override.returns({synchronous: T::Boolean, request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_level_discount.rbi b/rbi/lib/orb/models/invoice_level_discount.rbi index 7437baf9..235cefea 100644 --- a/rbi/lib/orb/models/invoice_level_discount.rbi +++ b/rbi/lib/orb/models/invoice_level_discount.rbi @@ -5,10 +5,6 @@ module Orb class InvoiceLevelDiscount < Orb::Union abstract! - Variants = T.type_alias do - T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount) - end - sig do override.returns( [ @@ -18,7 +14,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/invoice_line_item_create_params.rbi b/rbi/lib/orb/models/invoice_line_item_create_params.rbi index 69d5eac7..525cdbfe 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_params.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_params.rbi @@ -6,20 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - amount: String, - end_date: Date, - invoice_id: String, - name: String, - quantity: Float, - start_date: Date - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :amount @@ -46,13 +32,27 @@ module Orb name: String, quantity: Float, start_date: Date, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(amount:, end_date:, invoice_id:, name:, quantity:, start_date:, request_options: {}); end + def initialize(amount:, end_date:, invoice_id:, name:, quantity:, start_date:, request_options: {}) + end - sig { returns(Orb::Models::InvoiceLineItemCreateParams::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + end_date: Date, + invoice_id: String, + name: String, + quantity: Float, + start_date: Date, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_line_item_create_response.rbi b/rbi/lib/orb/models/invoice_line_item_create_response.rbi index 3811c747..07bdcd3d 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_response.rbi @@ -3,38 +3,23 @@ module Orb module Models class InvoiceLineItemCreateResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjusted_subtotal: String, - adjustments: T::Array[Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Variants], - amount: String, - credits_applied: String, - discount: T.nilable(Orb::Models::Discount::Variants), - end_date: Time, - grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum), - minimum_amount: T.nilable(String), - name: String, - partially_invoiced_amount: String, - price: T.nilable(Orb::Models::Price::Variants), - quantity: Float, - start_date: Time, - sub_line_items: T::Array[Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Variants], - subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] - } - end - sig { returns(String) } attr_accessor :id sig { returns(String) } attr_accessor :adjusted_subtotal - sig { returns(T::Array[Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscountAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MinimumAdjustment, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MaximumAdjustment + )] + ) + end attr_accessor :adjustments sig { returns(String) } @@ -43,7 +28,18 @@ module Orb sig { returns(String) } attr_accessor :credits_applied - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(Time) } @@ -70,7 +66,41 @@ module Orb sig { returns(String) } attr_accessor :partially_invoiced_amount - sig { returns(T.nilable(Orb::Models::Price::Variants)) } + sig do + returns( + T.nilable( + T.any( + 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 + ) + ) + ) + end attr_accessor :price sig { returns(Float) } @@ -79,7 +109,15 @@ module Orb sig { returns(Time) } attr_accessor :start_date - sig { returns(T::Array[Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem + )] + ) + end attr_accessor :sub_line_items sig { returns(String) } @@ -92,10 +130,19 @@ module Orb params( id: String, adjusted_subtotal: String, - adjustments: T::Array[Orb::Models::InvoiceLineItemCreateResponse::Adjustment::Variants], + adjustments: T::Array[T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MaximumAdjustment + )], amount: String, credits_applied: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), end_date: Time, grouping: T.nilable(String), maximum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), @@ -104,10 +151,42 @@ module Orb minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, - price: T.nilable(Orb::Models::Price::Variants), + price: T.nilable( + T.any( + 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 + ) + ), quantity: Float, start_date: Time, - sub_line_items: T::Array[Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::Variants], + sub_line_items: T::Array[T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem + )], subtotal: String, tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] ).void @@ -133,37 +212,85 @@ module Orb sub_line_items:, subtotal:, tax_amounts: - ); end + ) + end - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjusted_subtotal: String, + adjustments: T::Array[T.any( + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MaximumAdjustment + )], + amount: String, + credits_applied: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + end_date: Time, + grouping: T.nilable(String), + maximum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: T.nilable( + T.any( + 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 + ) + ), + quantity: Float, + start_date: Time, + sub_line_items: T::Array[T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem + )], + subtotal: String, + tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscountAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MinimumAdjustment, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -204,27 +331,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -265,27 +392,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -326,28 +453,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -393,25 +519,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MinimumAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash + end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -452,10 +581,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MaximumAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash + end end sig do @@ -472,12 +615,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -485,15 +627,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -501,35 +643,18 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class SubLineItem < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - ) - end - class MatrixSubLineItem < Orb::BaseModel - Shape = T.type_alias do - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: Symbol - } - end - sig { returns(String) } attr_accessor :amount @@ -562,14 +687,25 @@ module Orb type: Symbol ).void end - def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix); end + def initialize(amount:, grouping:, matrix_config:, name:, quantity:, type: :matrix) + end - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping), + matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash + end class Grouping < Orb::BaseModel - Shape = T.type_alias { {key: String, value: T.nilable(String)} } - sig { returns(String) } attr_accessor :key @@ -577,42 +713,29 @@ module Orb attr_accessor :value sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:); end + def initialize(key:, value:) + end - sig do - returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping::Shape) + sig { override.returns({key: String, value: T.nilable(String)}) } + def to_hash end - def to_h; end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)]} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values sig { params(dimension_values: T::Array[T.nilable(String)]).void } - def initialize(dimension_values:); end + def initialize(dimension_values:) + end - sig do - returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)]}) } + def to_hash end - def to_h; end end end class TierSubLineItem < Orb::BaseModel - Shape = T.type_alias do - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping), - name: String, - quantity: Float, - tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, - type: Symbol - } - end - sig { returns(String) } attr_accessor :amount @@ -645,14 +768,25 @@ module Orb type: Symbol ).void end - def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier); end + def initialize(amount:, grouping:, name:, quantity:, tier_config:, type: :tier) + end - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping), + name: String, + quantity: Float, + tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, + type: Symbol + } + ) + end + def to_hash + end class Grouping < Orb::BaseModel - Shape = T.type_alias { {key: String, value: T.nilable(String)} } - sig { returns(String) } attr_accessor :key @@ -660,17 +794,15 @@ module Orb attr_accessor :value sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:); end + def initialize(key:, value:) + end - sig do - returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping::Shape) + sig { override.returns({key: String, value: T.nilable(String)}) } + def to_hash end - def to_h; end end class TierConfig < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, last_unit: T.nilable(Float), unit_amount: String} } - sig { returns(Float) } attr_accessor :first_unit @@ -681,26 +813,16 @@ module Orb attr_accessor :unit_amount sig { params(first_unit: Float, last_unit: T.nilable(Float), unit_amount: String).void } - def initialize(first_unit:, last_unit:, unit_amount:); end + def initialize(first_unit:, last_unit:, unit_amount:) + end - sig do - returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig::Shape) + sig { override.returns({first_unit: Float, last_unit: T.nilable(Float), unit_amount: String}) } + def to_hash end - def to_h; end end end class OtherSubLineItem < Orb::BaseModel - Shape = T.type_alias do - { - amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping), - name: String, - quantity: Float, - type: Symbol - } - end - sig { returns(String) } attr_accessor :amount @@ -727,14 +849,24 @@ module Orb type: Symbol ).void end - def initialize(amount:, grouping:, name:, quantity:, type: :"'null'"); end + def initialize(amount:, grouping:, name:, quantity:, type: :"'null'") + end - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping), + name: String, + quantity: Float, + type: Symbol + } + ) + end + def to_hash + end class Grouping < Orb::BaseModel - Shape = T.type_alias { {key: String, value: T.nilable(String)} } - sig { returns(String) } attr_accessor :key @@ -742,12 +874,12 @@ module Orb attr_accessor :value sig { params(key: String, value: T.nilable(String)).void } - def initialize(key:, value:); end + def initialize(key:, value:) + end - sig do - returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping::Shape) + sig { override.returns({key: String, value: T.nilable(String)}) } + def to_hash end - def to_h; end end end @@ -760,14 +892,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class TaxAmount < Orb::BaseModel - Shape = T.type_alias do - {amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)} - end - sig { returns(String) } attr_accessor :amount @@ -780,10 +909,20 @@ module Orb sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)).void end - def initialize(amount:, tax_rate_description:, tax_rate_percentage:); end + def initialize(amount:, tax_rate_description:, tax_rate_percentage:) + end - sig { returns(Orb::Models::InvoiceLineItemCreateResponse::TaxAmount::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + tax_rate_description: String, + tax_rate_percentage: T.nilable(String) + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_list_params.rbi b/rbi/lib/orb/models/invoice_list_params.rbi index d298c37b..34ae5fa3 100644 --- a/rbi/lib/orb/models/invoice_list_params.rbi +++ b/rbi/lib/orb/models/invoice_list_params.rbi @@ -6,33 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - amount: T.nilable(String), - amount_gt: T.nilable(String), - amount_lt: T.nilable(String), - cursor: T.nilable(String), - customer_id: T.nilable(String), - date_type: T.nilable(Symbol), - due_date: T.nilable(Date), - due_date_window: T.nilable(String), - due_date_gt: T.nilable(Date), - due_date_lt: T.nilable(Date), - external_customer_id: T.nilable(String), - invoice_date_gt: T.nilable(Time), - invoice_date_gte: T.nilable(Time), - invoice_date_lt: T.nilable(Time), - invoice_date_lte: T.nilable(Time), - is_recurring: T.nilable(T::Boolean), - limit: Integer, - status: T.nilable(T::Array[Symbol]), - subscription_id: T.nilable(String) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :amount @@ -114,7 +87,7 @@ module Orb limit: Integer, status: T.nilable(T::Array[Symbol]), subscription_id: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -138,10 +111,37 @@ module Orb status: nil, subscription_id: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::InvoiceListParams::Shape) } - def to_h; end + sig do + override.returns( + { + amount: T.nilable(String), + amount_gt: T.nilable(String), + amount_lt: T.nilable(String), + cursor: T.nilable(String), + customer_id: T.nilable(String), + date_type: T.nilable(Symbol), + due_date: T.nilable(Date), + due_date_window: T.nilable(String), + due_date_gt: T.nilable(Date), + due_date_lt: T.nilable(Date), + external_customer_id: T.nilable(String), + invoice_date_gt: T.nilable(Time), + invoice_date_gte: T.nilable(Time), + invoice_date_lt: T.nilable(Time), + invoice_date_lte: T.nilable(Time), + is_recurring: T.nilable(T::Boolean), + limit: Integer, + status: T.nilable(T::Array[Symbol]), + subscription_id: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class DateType < Orb::Enum abstract! @@ -150,7 +150,8 @@ module Orb INVOICE_DATE = T.let(:invoice_date, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Status < Orb::Enum @@ -163,7 +164,8 @@ module Orb VOID = :void sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/invoice_mark_paid_params.rbi b/rbi/lib/orb/models/invoice_mark_paid_params.rbi index 9686b62e..5f2887dd 100644 --- a/rbi/lib/orb/models/invoice_mark_paid_params.rbi +++ b/rbi/lib/orb/models/invoice_mark_paid_params.rbi @@ -6,13 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - {payment_received_date: Date, external_id: T.nilable(String), notes: T.nilable(String)}, - Orb::RequestParameters::Shape - ) - end - sig { returns(Date) } attr_accessor :payment_received_date @@ -27,13 +20,24 @@ module Orb payment_received_date: Date, external_id: T.nilable(String), notes: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(payment_received_date:, external_id: nil, notes: nil, request_options: {}); end + def initialize(payment_received_date:, external_id: nil, notes: nil, request_options: {}) + end - sig { returns(Orb::Models::InvoiceMarkPaidParams::Shape) } - def to_h; end + sig do + override.returns( + { + payment_received_date: Date, + external_id: T.nilable(String), + notes: T.nilable(String), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_pay_params.rbi b/rbi/lib/orb/models/invoice_pay_params.rbi index 809a0cbe..bbdb04af 100644 --- a/rbi/lib/orb/models/invoice_pay_params.rbi +++ b/rbi/lib/orb/models/invoice_pay_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::InvoicePayParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_update_params.rbi b/rbi/lib/orb/models/invoice_update_params.rbi index 430dd4ef..8d3ca5f0 100644 --- a/rbi/lib/orb/models/invoice_update_params.rbi +++ b/rbi/lib/orb/models/invoice_update_params.rbi @@ -6,23 +6,28 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({metadata: T.nilable(T::Hash[Symbol, T.nilable(String)])}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(metadata: nil, request_options: {}); end + def initialize(metadata: nil, request_options: {}) + end - sig { returns(Orb::Models::InvoiceUpdateParams::Shape) } - def to_h; end + sig do + override.returns( + { + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/invoice_void_params.rbi b/rbi/lib/orb/models/invoice_void_params.rbi index 10f53ba0..6b8d1edd 100644 --- a/rbi/lib/orb/models/invoice_void_params.rbi +++ b/rbi/lib/orb/models/invoice_void_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::InvoiceVoidParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/item.rbi b/rbi/lib/orb/models/item.rbi index 855105d4..8447bda5 100644 --- a/rbi/lib/orb/models/item.rbi +++ b/rbi/lib/orb/models/item.rbi @@ -3,15 +3,6 @@ module Orb module Models class Item < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - created_at: Time, - external_connections: T::Array[Orb::Models::Item::ExternalConnection], - name: String - } - end - sig { returns(String) } attr_accessor :id @@ -32,14 +23,23 @@ module Orb name: String ).void end - def initialize(id:, created_at:, external_connections:, name:); end + def initialize(id:, created_at:, external_connections:, name:) + end - sig { returns(Orb::Models::Item::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + created_at: Time, + external_connections: T::Array[Orb::Models::Item::ExternalConnection], + name: String + } + ) + end + def to_hash + end class ExternalConnection < Orb::BaseModel - Shape = T.type_alias { {external_connection_name: Symbol, external_entity_id: String} } - sig { returns(Symbol) } attr_accessor :external_connection_name @@ -47,10 +47,12 @@ module Orb attr_accessor :external_entity_id sig { params(external_connection_name: Symbol, external_entity_id: String).void } - def initialize(external_connection_name:, external_entity_id:); end + def initialize(external_connection_name:, external_entity_id:) + end - sig { returns(Orb::Models::Item::ExternalConnection::Shape) } - def to_h; end + sig { override.returns({external_connection_name: Symbol, external_entity_id: String}) } + def to_hash + end class ExternalConnectionName < Orb::Enum abstract! @@ -64,7 +66,8 @@ module Orb ANROK = :anrok sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/item_create_params.rbi b/rbi/lib/orb/models/item_create_params.rbi index 32bea588..9a27a8e5 100644 --- a/rbi/lib/orb/models/item_create_params.rbi +++ b/rbi/lib/orb/models/item_create_params.rbi @@ -6,16 +6,18 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({name: String}, Orb::RequestParameters::Shape) } - sig { returns(String) } attr_accessor :name - sig { params(name: String, request_options: Orb::RequestOpts).void } - def initialize(name:, request_options: {}); end + sig do + params(name: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void + end + def initialize(name:, request_options: {}) + end - sig { returns(Orb::Models::ItemCreateParams::Shape) } - def to_h; end + sig { override.returns({name: String, request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/item_fetch_params.rbi b/rbi/lib/orb/models/item_fetch_params.rbi index ed066929..3d6243bc 100644 --- a/rbi/lib/orb/models/item_fetch_params.rbi +++ b/rbi/lib/orb/models/item_fetch_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::ItemFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/item_list_params.rbi b/rbi/lib/orb/models/item_list_params.rbi index 9a19eede..3db90ce8 100644 --- a/rbi/lib/orb/models/item_list_params.rbi +++ b/rbi/lib/orb/models/item_list_params.rbi @@ -6,10 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({cursor: T.nilable(String), limit: Integer}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -19,11 +15,21 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit - sig { params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts).void } - def initialize(cursor: nil, limit: nil, request_options: {}); end + sig do + params( + cursor: T.nilable(String), + limit: Integer, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(cursor: nil, limit: nil, request_options: {}) + end - sig { returns(Orb::Models::ItemListParams::Shape) } - def to_h; end + sig do + override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/item_update_params.rbi b/rbi/lib/orb/models/item_update_params.rbi index 2a9e845b..7e0f72b4 100644 --- a/rbi/lib/orb/models/item_update_params.rbi +++ b/rbi/lib/orb/models/item_update_params.rbi @@ -6,16 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), - name: T.nilable(String) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) } attr_accessor :external_connections @@ -26,17 +16,23 @@ module Orb params( external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), name: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(external_connections: nil, name: nil, request_options: {}); end + def initialize(external_connections: nil, name: nil, request_options: {}) + end - sig { returns(Orb::Models::ItemUpdateParams::Shape) } - def to_h; end + sig do + override.returns( + { + external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), name: T.nilable(String), request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class ExternalConnection < Orb::BaseModel - Shape = T.type_alias { {external_connection_name: Symbol, external_entity_id: String} } - sig { returns(Symbol) } attr_accessor :external_connection_name @@ -44,10 +40,12 @@ module Orb attr_accessor :external_entity_id sig { params(external_connection_name: Symbol, external_entity_id: String).void } - def initialize(external_connection_name:, external_entity_id:); end + def initialize(external_connection_name:, external_entity_id:) + end - sig { returns(Orb::Models::ItemUpdateParams::ExternalConnection::Shape) } - def to_h; end + sig { override.returns({external_connection_name: Symbol, external_entity_id: String}) } + def to_hash + end class ExternalConnectionName < Orb::Enum abstract! @@ -61,7 +59,8 @@ module Orb ANROK = :anrok sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/metric_create_params.rbi b/rbi/lib/orb/models/metric_create_params.rbi index 3a3e4816..70fb8de6 100644 --- a/rbi/lib/orb/models/metric_create_params.rbi +++ b/rbi/lib/orb/models/metric_create_params.rbi @@ -6,19 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - description: T.nilable(String), - item_id: String, - name: String, - sql: String, - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :description @@ -41,13 +28,26 @@ module Orb name: String, sql: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(description:, item_id:, name:, sql:, metadata: nil, request_options: {}); end + def initialize(description:, item_id:, name:, sql:, metadata: nil, request_options: {}) + end - sig { returns(Orb::Models::MetricCreateParams::Shape) } - def to_h; end + sig do + override.returns( + { + description: T.nilable(String), + item_id: String, + name: String, + sql: String, + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/metric_fetch_params.rbi b/rbi/lib/orb/models/metric_fetch_params.rbi index 531c7fb0..36c39c66 100644 --- a/rbi/lib/orb/models/metric_fetch_params.rbi +++ b/rbi/lib/orb/models/metric_fetch_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::MetricFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/metric_list_params.rbi b/rbi/lib/orb/models/metric_list_params.rbi index fd36599a..5ba231e3 100644 --- a/rbi/lib/orb/models/metric_list_params.rbi +++ b/rbi/lib/orb/models/metric_list_params.rbi @@ -6,20 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - limit: Integer - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -49,7 +35,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -60,10 +46,24 @@ module Orb cursor: nil, limit: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::MetricListParams::Shape) } - def to_h; end + sig do + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + limit: Integer, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/metric_update_params.rbi b/rbi/lib/orb/models/metric_update_params.rbi index 6c3aa551..1bb6d681 100644 --- a/rbi/lib/orb/models/metric_update_params.rbi +++ b/rbi/lib/orb/models/metric_update_params.rbi @@ -6,23 +6,28 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({metadata: T.nilable(T::Hash[Symbol, T.nilable(String)])}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(metadata: nil, request_options: {}); end + def initialize(metadata: nil, request_options: {}) + end - sig { returns(Orb::Models::MetricUpdateParams::Shape) } - def to_h; end + sig do + override.returns( + { + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/pagination_metadata.rbi b/rbi/lib/orb/models/pagination_metadata.rbi index 168b5097..6a1dc894 100644 --- a/rbi/lib/orb/models/pagination_metadata.rbi +++ b/rbi/lib/orb/models/pagination_metadata.rbi @@ -3,8 +3,6 @@ module Orb module Models class PaginationMetadata < Orb::BaseModel - Shape = T.type_alias { {has_more: T::Boolean, next_cursor: T.nilable(String)} } - sig { returns(T::Boolean) } attr_accessor :has_more @@ -12,10 +10,12 @@ module Orb attr_accessor :next_cursor sig { params(has_more: T::Boolean, next_cursor: T.nilable(String)).void } - def initialize(has_more:, next_cursor:); end + def initialize(has_more:, next_cursor:) + end - sig { returns(Orb::Models::PaginationMetadata::Shape) } - def to_h; end + sig { override.returns({has_more: T::Boolean, next_cursor: T.nilable(String)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/percentage_discount.rbi b/rbi/lib/orb/models/percentage_discount.rbi index a9147317..238a0b8e 100644 --- a/rbi/lib/orb/models/percentage_discount.rbi +++ b/rbi/lib/orb/models/percentage_discount.rbi @@ -3,15 +3,6 @@ module Orb module Models class PercentageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - percentage_discount: Float, - reason: T.nilable(String) - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -32,10 +23,21 @@ module Orb reason: T.nilable(String) ).void end - def initialize(applies_to_price_ids:, discount_type:, percentage_discount:, reason: nil); end + def initialize(applies_to_price_ids:, discount_type:, percentage_discount:, reason: nil) + end - sig { returns(Orb::Models::PercentageDiscount::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + percentage_discount: Float, + reason: T.nilable(String) + } + ) + end + def to_hash + end class DiscountType < Orb::Enum abstract! @@ -43,7 +45,8 @@ module Orb PERCENTAGE = :percentage sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/plan.rbi b/rbi/lib/orb/models/plan.rbi index 2859a0d1..2c400acb 100644 --- a/rbi/lib/orb/models/plan.rbi +++ b/rbi/lib/orb/models/plan.rbi @@ -3,39 +3,20 @@ module Orb module Models class Plan < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustments: T::Array[Orb::Models::Plan::Adjustment::Variants], - base_plan: T.nilable(Orb::Models::Plan::BasePlan), - base_plan_id: T.nilable(String), - created_at: Time, - currency: String, - default_invoice_memo: T.nilable(String), - description: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_plan_id: T.nilable(String), - invoicing_currency: String, - maximum: T.nilable(Orb::Models::Plan::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Plan::Minimum), - minimum_amount: T.nilable(String), - name: String, - net_terms: T.nilable(Integer), - plan_phases: T.nilable(T::Array[Orb::Models::Plan::PlanPhase]), - prices: T::Array[Orb::Models::Price::Variants], - product: Orb::Models::Plan::Product, - status: Symbol, - trial_config: Orb::Models::Plan::TrialConfig, - version: Integer - } - end - sig { returns(String) } attr_accessor :id - sig { returns(T::Array[Orb::Models::Plan::Adjustment::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::Plan::Adjustment::AmountDiscountAdjustment, + Orb::Models::Plan::Adjustment::PercentageDiscountAdjustment, + Orb::Models::Plan::Adjustment::UsageDiscountAdjustment, + Orb::Models::Plan::Adjustment::MinimumAdjustment, + Orb::Models::Plan::Adjustment::MaximumAdjustment + )] + ) + end attr_accessor :adjustments sig { returns(T.nilable(Orb::Models::Plan::BasePlan)) } @@ -56,7 +37,18 @@ module Orb sig { returns(String) } attr_accessor :description - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -89,7 +81,39 @@ module Orb sig { returns(T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) } attr_accessor :plan_phases - sig { returns(T::Array[Orb::Models::Price::Variants]) } + sig do + returns( + T::Array[T.any( + 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 + )] + ) + end attr_accessor :prices sig { returns(Orb::Models::Plan::Product) } @@ -107,14 +131,27 @@ module Orb sig do params( id: String, - adjustments: T::Array[Orb::Models::Plan::Adjustment::Variants], + adjustments: T::Array[T.any( + Orb::Models::Plan::Adjustment::AmountDiscountAdjustment, + Orb::Models::Plan::Adjustment::PercentageDiscountAdjustment, + Orb::Models::Plan::Adjustment::UsageDiscountAdjustment, + Orb::Models::Plan::Adjustment::MinimumAdjustment, + Orb::Models::Plan::Adjustment::MaximumAdjustment + )], base_plan: T.nilable(Orb::Models::Plan::BasePlan), base_plan_id: T.nilable(String), created_at: Time, currency: String, default_invoice_memo: T.nilable(String), description: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_plan_id: T.nilable(String), invoicing_currency: String, maximum: T.nilable(Orb::Models::Plan::Maximum), @@ -125,7 +162,35 @@ module Orb name: String, net_terms: T.nilable(Integer), plan_phases: T.nilable(T::Array[Orb::Models::Plan::PlanPhase]), - prices: T::Array[Orb::Models::Price::Variants], + prices: T::Array[T.any( + 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 + )], product: Orb::Models::Plan::Product, status: Symbol, trial_config: Orb::Models::Plan::TrialConfig, @@ -157,37 +222,87 @@ module Orb status:, trial_config:, version: - ); end + ) + end - sig { returns(Orb::Models::Plan::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustments: T::Array[T.any( + Orb::Models::Plan::Adjustment::AmountDiscountAdjustment, + Orb::Models::Plan::Adjustment::PercentageDiscountAdjustment, + Orb::Models::Plan::Adjustment::UsageDiscountAdjustment, + Orb::Models::Plan::Adjustment::MinimumAdjustment, + Orb::Models::Plan::Adjustment::MaximumAdjustment + )], + base_plan: T.nilable(Orb::Models::Plan::BasePlan), + base_plan_id: T.nilable(String), + created_at: Time, + currency: String, + default_invoice_memo: T.nilable(String), + description: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_plan_id: T.nilable(String), + invoicing_currency: String, + maximum: T.nilable(Orb::Models::Plan::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Plan::Minimum), + minimum_amount: T.nilable(String), + name: String, + net_terms: T.nilable(Integer), + plan_phases: T.nilable(T::Array[Orb::Models::Plan::PlanPhase]), + prices: T::Array[T.any( + 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 + )], + product: Orb::Models::Plan::Product, + status: Symbol, + trial_config: Orb::Models::Plan::TrialConfig, + version: Integer + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::Plan::Adjustment::AmountDiscountAdjustment, - Orb::Models::Plan::Adjustment::PercentageDiscountAdjustment, - Orb::Models::Plan::Adjustment::UsageDiscountAdjustment, - Orb::Models::Plan::Adjustment::MinimumAdjustment, - Orb::Models::Plan::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -228,25 +343,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end - sig { returns(Orb::Models::Plan::Adjustment::AmountDiscountAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash + end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -287,25 +404,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end - sig { returns(Orb::Models::Plan::Adjustment::PercentageDiscountAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash + end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -346,26 +465,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end - sig { returns(Orb::Models::Plan::Adjustment::UsageDiscountAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash + end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -411,25 +531,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end - sig { returns(Orb::Models::Plan::Adjustment::MinimumAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash + end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -470,10 +593,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end - sig { returns(Orb::Models::Plan::Adjustment::MaximumAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash + end end sig do @@ -487,14 +624,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class BasePlan < Orb::BaseModel - Shape = T.type_alias do - {id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)} - end - sig { returns(T.nilable(String)) } attr_accessor :id @@ -507,15 +641,23 @@ module Orb sig do params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)).void end - def initialize(id:, external_plan_id:, name:); end + def initialize(id:, external_plan_id:, name:) + end - sig { returns(Orb::Models::Plan::BasePlan::Shape) } - def to_h; end + sig do + override.returns( + { + id: T.nilable(String), + external_plan_id: T.nilable(String), + name: T.nilable(String) + } + ) + end + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -523,15 +665,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Plan::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -539,36 +681,33 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Plan::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PlanPhase < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - description: T.nilable(String), - discount: T.nilable(Orb::Models::Discount::Variants), - duration: T.nilable(Integer), - duration_unit: T.nilable(Symbol), - maximum: T.nilable(Orb::Models::Plan::PlanPhase::Maximum), - maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::Plan::PlanPhase::Minimum), - minimum_amount: T.nilable(String), - name: String, - order: Integer - } - end - sig { returns(String) } attr_accessor :id sig { returns(T.nilable(String)) } attr_accessor :description - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(Integer)) } @@ -599,7 +738,14 @@ module Orb params( id: String, description: T.nilable(String), - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), duration: T.nilable(Integer), duration_unit: T.nilable(Symbol), maximum: T.nilable(Orb::Models::Plan::PlanPhase::Maximum), @@ -622,10 +768,35 @@ module Orb minimum_amount:, name:, order: - ); end + ) + end - sig { returns(Orb::Models::Plan::PlanPhase::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + description: T.nilable(String), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + duration: T.nilable(Integer), + duration_unit: T.nilable(Symbol), + maximum: T.nilable(Orb::Models::Plan::PlanPhase::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Models::Plan::PlanPhase::Minimum), + minimum_amount: T.nilable(String), + name: String, + order: Integer + } + ) + end + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -637,12 +808,11 @@ module Orb ANNUAL = T.let(:annual, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -650,15 +820,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Plan::PlanPhase::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -666,16 +836,16 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Plan::PlanPhase::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end end class Product < Orb::BaseModel - Shape = T.type_alias { {id: String, created_at: Time, name: String} } - sig { returns(String) } attr_accessor :id @@ -686,10 +856,12 @@ module Orb attr_accessor :name sig { params(id: String, created_at: Time, name: String).void } - def initialize(id:, created_at:, name:); end + def initialize(id:, created_at:, name:) + end - sig { returns(Orb::Models::Plan::Product::Shape) } - def to_h; end + sig { override.returns({id: String, created_at: Time, name: String}) } + def to_hash + end end class Status < Orb::Enum @@ -700,12 +872,11 @@ module Orb DRAFT = :draft sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialConfig < Orb::BaseModel - Shape = T.type_alias { {trial_period: T.nilable(Integer), trial_period_unit: Symbol} } - sig { returns(T.nilable(Integer)) } attr_accessor :trial_period @@ -713,10 +884,12 @@ module Orb attr_accessor :trial_period_unit sig { params(trial_period: T.nilable(Integer), trial_period_unit: Symbol).void } - def initialize(trial_period:, trial_period_unit:); end + def initialize(trial_period:, trial_period_unit:) + end - sig { returns(Orb::Models::Plan::TrialConfig::Shape) } - def to_h; end + sig { override.returns({trial_period: T.nilable(Integer), trial_period_unit: Symbol}) } + def to_hash + end class TrialPeriodUnit < Orb::Enum abstract! @@ -724,7 +897,8 @@ module Orb DAYS = :days sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/plan_create_params.rbi b/rbi/lib/orb/models/plan_create_params.rbi index 628c62ba..a27fcb86 100644 --- a/rbi/lib/orb/models/plan_create_params.rbi +++ b/rbi/lib/orb/models/plan_create_params.rbi @@ -6,29 +6,42 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - currency: String, - name: String, - prices: T::Array[Orb::Models::PlanCreateParams::Price::Variants], - default_invoice_memo: T.nilable(String), - external_plan_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - net_terms: T.nilable(Integer), - status: Symbol - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :currency sig { returns(String) } attr_accessor :name - sig { returns(T::Array[Orb::Models::PlanCreateParams::Price::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice + )] + ) + end attr_accessor :prices sig { returns(T.nilable(String)) } @@ -53,35 +66,7 @@ module Orb params( currency: String, name: String, - prices: T::Array[Orb::Models::PlanCreateParams::Price::Variants], - default_invoice_memo: T.nilable(String), - external_plan_id: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - net_terms: T.nilable(Integer), - status: Symbol, - request_options: Orb::RequestOpts - ).void - end - def initialize( - currency:, - name:, - prices:, - default_invoice_memo: nil, - external_plan_id: nil, - metadata: nil, - net_terms: nil, - status: nil, - request_options: {} - ); end - - sig { returns(Orb::Models::PlanCreateParams::Shape) } - def to_h; end - - class Price < Orb::Union - abstract! - - Variants = T.type_alias do - T.any( + prices: T::Array[T.any( Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, @@ -106,30 +91,75 @@ module Orb Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice - ) - end + )], + default_invoice_memo: T.nilable(String), + external_plan_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), + status: Symbol, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize( + currency:, + name:, + prices:, + default_invoice_memo: nil, + external_plan_id: nil, + metadata: nil, + net_terms: nil, + status: nil, + request_options: {} + ) + end - class NewPlanUnitPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end + sig do + override.returns( + { + currency: String, + name: String, + prices: T::Array[T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice + )], + default_invoice_memo: T.nilable(String), + external_plan_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), + status: Symbol, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end + class Price < Orb::Union + abstract! + + class NewPlanUnitPrice < Orb::BaseModel sig { returns(Symbol) } attr_accessor :cadence @@ -214,10 +244,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -230,25 +282,24 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class UnitConfig < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String} } - sig { returns(String) } attr_accessor :unit_amount sig { params(unit_amount: String).void } - def initialize(unit_amount:); end + def initialize(unit_amount:) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig::Shape) } - def to_h; end + sig { override.returns({unit_amount: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -256,12 +307,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -270,13 +321,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -284,12 +334,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -298,32 +348,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -408,10 +439,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :package - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -424,12 +477,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class PackageConfig < Orb::BaseModel - Shape = T.type_alias { {package_amount: String, package_size: Integer} } - sig { returns(String) } attr_accessor :package_amount @@ -437,15 +489,15 @@ module Orb attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:); end + def initialize(package_amount:, package_size:) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig::Shape) } - def to_h; end + sig { override.returns({package_amount: String, package_size: Integer}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -453,12 +505,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -467,13 +519,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -481,12 +532,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -495,32 +546,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanMatrixPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -605,10 +637,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :matrix - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -621,18 +675,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias do - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] - } - end - sig { returns(String) } attr_accessor :default_unit_amount @@ -651,14 +698,22 @@ module Orb matrix_values: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] ).void end - def initialize(default_unit_amount:, dimensions:, matrix_values:); end + def initialize(default_unit_amount:, dimensions:, matrix_values:) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::Shape) } - def to_h; end + sig do + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] + } + ) + end + def to_hash + end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -666,18 +721,16 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -685,12 +738,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -699,13 +752,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -713,12 +765,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -727,32 +779,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanTieredPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -837,10 +870,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -853,14 +908,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) end @@ -869,14 +921,16 @@ module Orb sig do params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]).void end - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Shape) } - def to_h; end + sig do + override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]}) + end + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)} } - sig { returns(Float) } attr_accessor :first_unit @@ -887,18 +941,16 @@ module Orb attr_accessor :last_unit sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil); end + def initialize(first_unit:, unit_amount:, last_unit: nil) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier::Shape) + sig { override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -906,12 +958,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -920,13 +972,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -934,12 +985,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -948,32 +999,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanTieredBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1058,10 +1090,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_bps - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -1074,14 +1128,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]) end @@ -1092,23 +1143,16 @@ module Orb tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - end - sig { returns(Float) } attr_accessor :bps @@ -1129,18 +1173,25 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1148,12 +1199,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1162,13 +1213,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1176,12 +1226,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1190,32 +1240,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig) } attr_accessor :bps_config @@ -1300,14 +1331,34 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :bps - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Shape) } - def to_h; end + sig do + override.returns( + { + bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class BpsConfig < Orb::BaseModel - Shape = T.type_alias { {bps: Float, per_unit_maximum: T.nilable(String)} } - sig { returns(Float) } attr_accessor :bps @@ -1315,10 +1366,12 @@ module Orb attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil); end + def initialize(bps:, per_unit_maximum: nil) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig::Shape) } - def to_h; end + sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } + def to_hash + end end class Cadence < Orb::Enum @@ -1332,12 +1385,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1345,12 +1397,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1359,13 +1411,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1373,12 +1424,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1387,32 +1438,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanBulkBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig) } attr_accessor :bulk_bps_config @@ -1497,16 +1529,34 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk_bps - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Shape) } - def to_h; end + sig do + override.returns( + { + bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class BulkBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) end @@ -1515,16 +1565,16 @@ module Orb sig do params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]).void end - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Shape) } - def to_h; end + sig do + override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]}) + end + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias do - {bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)} - end - sig { returns(Float) } attr_accessor :bps @@ -1541,12 +1591,20 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end @@ -1561,12 +1619,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1574,12 +1631,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1588,13 +1645,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1602,12 +1658,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1616,32 +1672,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanBulkPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig) } attr_accessor :bulk_config @@ -1726,16 +1763,34 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Shape) } - def to_h; end + sig do + override.returns( + { + bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class BulkConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) end @@ -1744,14 +1799,16 @@ module Orb sig do params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]).void end - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Shape) } - def to_h; end + sig do + override.returns({tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]}) + end + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String, maximum_units: T.nilable(Float)} } - sig { returns(String) } attr_accessor :unit_amount @@ -1759,10 +1816,12 @@ module Orb attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil); end + def initialize(unit_amount:, maximum_units: nil) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier::Shape) } - def to_h; end + sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } + def to_hash + end end end @@ -1777,12 +1836,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1790,12 +1848,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1804,13 +1862,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1818,12 +1875,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1832,32 +1889,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanThresholdTotalAmountPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_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::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1942,10 +1980,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :threshold_total_amount - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_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::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -1958,12 +2018,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1971,12 +2030,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1985,13 +2044,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1999,12 +2057,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2013,32 +2071,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_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::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2123,10 +2162,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_package - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_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::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -2139,12 +2200,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2152,12 +2212,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2166,13 +2226,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2180,12 +2239,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2194,32 +2253,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanTieredWithMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_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::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2304,10 +2344,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_with_minimum - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_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::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -2320,12 +2382,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2333,12 +2394,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2347,13 +2408,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2361,12 +2421,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2375,32 +2435,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanUnitWithPercentPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_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::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2485,10 +2526,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit_with_percent - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_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::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -2501,12 +2564,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2514,12 +2576,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2528,13 +2590,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2542,12 +2603,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2556,32 +2617,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanPackageWithAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_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::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2666,10 +2708,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :package_with_allocation - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_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::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -2682,12 +2746,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2695,12 +2758,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2709,13 +2772,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2723,12 +2785,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2737,32 +2799,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanTierWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_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::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2847,10 +2890,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_with_proration - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_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::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -2863,12 +2928,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2876,12 +2940,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2890,13 +2954,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2904,12 +2967,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2918,32 +2981,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanUnitWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_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::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3028,10 +3072,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit_with_proration - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_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::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -3044,12 +3110,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3057,12 +3122,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3071,13 +3136,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3085,12 +3149,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3099,32 +3163,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanGroupedAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3209,10 +3254,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_allocation - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -3225,12 +3292,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3238,12 +3304,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3252,13 +3318,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3266,12 +3331,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3280,32 +3345,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanGroupedWithProratedMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3390,10 +3436,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -3406,12 +3474,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3419,12 +3486,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3433,13 +3500,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3447,12 +3513,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3461,32 +3527,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanGroupedWithMeteredMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3571,10 +3618,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_metered_minimum - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -3587,12 +3656,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3600,12 +3668,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3614,13 +3682,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3628,12 +3695,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3642,32 +3709,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanMatrixWithDisplayNamePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3752,10 +3800,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :matrix_with_display_name - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -3768,12 +3838,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3781,12 +3850,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3795,13 +3864,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3809,12 +3877,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3823,32 +3891,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanBulkWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -3933,10 +3982,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk_with_proration - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -3949,12 +4020,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3962,12 +4032,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3976,13 +4046,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3990,12 +4059,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4004,32 +4073,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanGroupedTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -4114,10 +4164,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_tiered_package - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -4130,12 +4202,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4143,12 +4214,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4157,13 +4228,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4171,12 +4241,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4185,32 +4255,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanMaxGroupTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -4295,10 +4346,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :max_group_tiered_package - ); end + ) + end - sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + item_id: String, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -4311,12 +4384,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4324,12 +4396,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4338,13 +4410,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4352,12 +4423,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4366,32 +4437,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanScalableMatrixWithUnitPricingPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_unit_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::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -4476,12 +4528,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :scalable_matrix_with_unit_pricing - ); end + ) + end sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_unit_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::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4494,12 +4566,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4507,12 +4578,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4521,13 +4592,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4535,12 +4605,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4549,32 +4619,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewPlanScalableMatrixWithTieredPricingPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - 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::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -4659,12 +4710,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :scalable_matrix_with_tiered_pricing - ); end + ) + end sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + 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::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4677,12 +4748,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4690,12 +4760,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4704,13 +4774,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4718,12 +4787,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4732,7 +4801,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end @@ -4767,7 +4837,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class Status < Orb::Enum @@ -4777,7 +4848,8 @@ module Orb DRAFT = :draft sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/plan_fetch_params.rbi b/rbi/lib/orb/models/plan_fetch_params.rbi index 68d9efd5..35a14f0b 100644 --- a/rbi/lib/orb/models/plan_fetch_params.rbi +++ b/rbi/lib/orb/models/plan_fetch_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::PlanFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/plan_list_params.rbi b/rbi/lib/orb/models/plan_list_params.rbi index 57acfa7b..8d9a309e 100644 --- a/rbi/lib/orb/models/plan_list_params.rbi +++ b/rbi/lib/orb/models/plan_list_params.rbi @@ -6,21 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - limit: Integer, - status: Symbol - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -57,7 +42,7 @@ module Orb cursor: T.nilable(String), limit: Integer, status: Symbol, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -69,10 +54,25 @@ module Orb limit: nil, status: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::PlanListParams::Shape) } - def to_h; end + sig do + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + limit: Integer, + status: Symbol, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class Status < Orb::Enum abstract! @@ -82,7 +82,8 @@ module Orb DRAFT = :draft sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/plan_update_params.rbi b/rbi/lib/orb/models/plan_update_params.rbi index add2e870..0562ffec 100644 --- a/rbi/lib/orb/models/plan_update_params.rbi +++ b/rbi/lib/orb/models/plan_update_params.rbi @@ -6,13 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - {external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)])}, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :external_plan_id @@ -23,13 +16,23 @@ module Orb params( external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(external_plan_id: nil, metadata: nil, request_options: {}); end + def initialize(external_plan_id: nil, metadata: nil, request_options: {}) + end - sig { returns(Orb::Models::PlanUpdateParams::Shape) } - def to_h; end + sig do + override.returns( + { + external_plan_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi b/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi index da176875..cdb03ac3 100644 --- a/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi +++ b/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi @@ -7,13 +7,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::Plans::ExternalPlanIDFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi b/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi index 67230fb5..d9569940 100644 --- a/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi +++ b/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi @@ -7,13 +7,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - {external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)])}, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :external_plan_id @@ -24,13 +17,23 @@ module Orb params( external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(external_plan_id: nil, metadata: nil, request_options: {}); end + def initialize(external_plan_id: nil, metadata: nil, request_options: {}) + end - sig { returns(Orb::Models::Plans::ExternalPlanIDUpdateParams::Shape) } - def to_h; end + sig do + override.returns( + { + external_plan_id: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/price.rbi b/rbi/lib/orb/models/price.rbi index 8bab54c9..b86a7984 100644 --- a/rbi/lib/orb/models/price.rbi +++ b/rbi/lib/orb/models/price.rbi @@ -5,68 +5,7 @@ module Orb class Price < Orb::Union abstract! - Variants = T.type_alias do - T.any( - 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 - ) - end - class UnitPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitPrice::Item, - maximum: T.nilable(Orb::Models::Price::UnitPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - unit_config: Orb::Models::Price::UnitPrice::UnitConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -91,7 +30,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -149,7 +99,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration), @@ -192,27 +149,63 @@ module Orb unit_config:, dimensional_price_configuration: nil, model_type: :unit - ); end + ) + end - sig { returns(Orb::Models::Price::UnitPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::UnitPrice::Item, + maximum: T.nilable(Orb::Models::Price::UnitPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::UnitPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + unit_config: Orb::Models::Price::UnitPrice::UnitConfig, + dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::UnitPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -220,10 +213,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::UnitPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -232,7 +227,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -247,12 +243,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -260,15 +255,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::UnitPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -276,10 +271,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -288,13 +285,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -302,15 +298,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::UnitPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -318,15 +314,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::UnitPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -334,10 +330,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::UnitPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -347,25 +345,24 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class UnitConfig < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String} } - sig { returns(String) } attr_accessor :unit_amount sig { params(unit_amount: String).void } - def initialize(unit_amount:); end + def initialize(unit_amount:) + end - sig { returns(Orb::Models::Price::UnitPrice::UnitConfig::Shape) } - def to_h; end + sig { override.returns({unit_amount: String}) } + def to_hash + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -373,43 +370,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class PackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::PackagePrice::Item, - maximum: T.nilable(Orb::Models::Price::PackagePrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::PackagePrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - package_config: Orb::Models::Price::PackagePrice::PackageConfig, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -434,7 +404,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -492,7 +473,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration), @@ -535,27 +523,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :package - ); end + ) + end - sig { returns(Orb::Models::Price::PackagePrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::PackagePrice::Item, + maximum: T.nilable(Orb::Models::Price::PackagePrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::PackagePrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + package_config: Orb::Models::Price::PackagePrice::PackageConfig, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::PackagePrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -563,10 +587,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::PackagePrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -575,7 +601,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -590,12 +617,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -603,15 +629,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::PackagePrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -619,10 +645,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -631,13 +659,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -645,15 +672,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::PackagePrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -661,15 +688,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::PackagePrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -677,15 +704,15 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::PackagePrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PackageConfig < Orb::BaseModel - Shape = T.type_alias { {package_amount: String, package_size: Integer} } - sig { returns(String) } attr_accessor :package_amount @@ -693,10 +720,12 @@ module Orb attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:); end + def initialize(package_amount:, package_size:) + end - sig { returns(Orb::Models::Price::PackagePrice::PackageConfig::Shape) } - def to_h; end + sig { override.returns({package_amount: String, package_size: Integer}) } + def to_hash + end end class PriceType < Orb::Enum @@ -706,12 +735,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -719,43 +747,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class MatrixPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixPrice::Item, - matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, - maximum: T.nilable(Orb::Models::Price::MatrixPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -780,7 +781,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -838,7 +850,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration), @@ -881,27 +900,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :matrix - ); end + ) + end - sig { returns(Orb::Models::Price::MatrixPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::MatrixPrice::Item, + matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, + maximum: T.nilable(Orb::Models::Price::MatrixPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::MatrixPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::MatrixPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -909,10 +964,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -921,7 +978,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -936,12 +994,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -949,15 +1006,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::MatrixPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -965,10 +1022,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -977,13 +1036,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -991,21 +1049,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::MatrixPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias do - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] - } - end - sig { returns(String) } attr_accessor :default_unit_amount @@ -1022,14 +1074,22 @@ module Orb matrix_values: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] ).void end - def initialize(default_unit_amount:, dimensions:, matrix_values:); end + def initialize(default_unit_amount:, dimensions:, matrix_values:) + end - sig { returns(Orb::Models::Price::MatrixPrice::MatrixConfig::Shape) } - def to_h; end + sig do + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] + } + ) + end + def to_hash + end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -1037,16 +1097,16 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig { returns(Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash + end end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1054,15 +1114,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::MatrixPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1070,10 +1130,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::MatrixPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -1083,12 +1145,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -1096,43 +1157,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class TieredPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -1157,7 +1191,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -1215,7 +1260,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration), @@ -1258,27 +1310,63 @@ module Orb tiered_config:, dimensional_price_configuration: nil, model_type: :tiered - ); end + ) + end - sig { returns(Orb::Models::Price::TieredPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredPrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::TieredPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1286,10 +1374,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -1298,7 +1388,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -1313,12 +1404,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -1326,15 +1416,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::TieredPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1342,10 +1432,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -1354,13 +1446,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -1368,15 +1459,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::TieredPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1384,15 +1475,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::TieredPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1400,10 +1491,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::TieredPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -1413,24 +1506,23 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredConfig < Orb::BaseModel - Shape = T.type_alias { {tiers: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]} } - sig { returns(T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]) } attr_accessor :tiers sig { params(tiers: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]).void } - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::Price::TieredPrice::TieredConfig::Shape) } - def to_h; end + sig { override.returns({tiers: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]}) } + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)} } - sig { returns(Float) } attr_accessor :first_unit @@ -1441,16 +1533,16 @@ module Orb attr_accessor :last_unit sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil); end + def initialize(first_unit:, unit_amount:, last_unit: nil) + end - sig { returns(Orb::Models::Price::TieredPrice::TieredConfig::Tier::Shape) } - def to_h; end + sig { override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } + def to_hash + end end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -1458,43 +1550,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class TieredBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredBpsPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -1519,7 +1584,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -1577,7 +1653,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration), @@ -1620,27 +1703,63 @@ module Orb tiered_bps_config:, dimensional_price_configuration: nil, model_type: :tiered_bps - ); end + ) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredBpsPrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1648,10 +1767,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -1660,7 +1781,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -1675,12 +1797,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -1688,15 +1809,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1704,10 +1825,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -1716,13 +1839,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -1730,15 +1852,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1746,15 +1868,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1762,10 +1884,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -1775,33 +1899,25 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]} - end - sig { returns(T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) } attr_accessor :tiers sig { params(tiers: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]).void } - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Shape) } - def to_h; end + sig do + override.returns({tiers: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]}) + end + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias do - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - end - sig { returns(Float) } attr_accessor :bps @@ -1822,16 +1938,25 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier::Shape) } - def to_h; end + sig do + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash + end end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -1839,43 +1964,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class BpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::BpsPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration, - bps_config: Orb::Models::Price::BpsPrice::BpsConfig, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BpsPrice::Item, - maximum: T.nilable(Orb::Models::Price::BpsPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BpsPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -1903,7 +2001,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -1959,7 +2068,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration), @@ -2001,27 +2117,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :bps - ); end + ) + end - sig { returns(Orb::Models::Price::BpsPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::BpsPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration, + bps_config: Orb::Models::Price::BpsPrice::BpsConfig, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::BpsPrice::Item, + maximum: T.nilable(Orb::Models::Price::BpsPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::BpsPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::BpsPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2029,10 +2181,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::BpsPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -2041,13 +2195,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class BpsConfig < Orb::BaseModel - Shape = T.type_alias { {bps: Float, per_unit_maximum: T.nilable(String)} } - sig { returns(Float) } attr_accessor :bps @@ -2055,10 +2208,12 @@ module Orb attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil); end + def initialize(bps:, per_unit_maximum: nil) + end - sig { returns(Orb::Models::Price::BpsPrice::BpsConfig::Shape) } - def to_h; end + sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } + def to_hash + end end class Cadence < Orb::Enum @@ -2072,12 +2227,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -2085,15 +2239,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::BpsPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2101,10 +2255,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -2113,13 +2269,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -2127,15 +2282,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::BpsPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -2143,15 +2298,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::BpsPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -2159,10 +2314,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::BpsPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -2172,12 +2329,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -2185,43 +2341,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class BulkBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkBpsPrice::Item, - maximum: T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -2249,7 +2378,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -2305,7 +2445,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration), @@ -2347,27 +2494,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :bulk_bps - ); end + ) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, + bulk_bps_config: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::BulkBpsPrice::Item, + maximum: T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2375,10 +2558,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -2387,27 +2572,24 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class BulkBpsConfig < Orb::BaseModel - Shape = T.type_alias { {tiers: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]} } - sig { returns(T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]) } attr_accessor :tiers sig { params(tiers: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]).void } - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Shape) } - def to_h; end + sig { override.returns({tiers: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]}) } + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias do - {bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)} - end - sig { returns(Float) } attr_accessor :bps @@ -2420,10 +2602,20 @@ module Orb sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)).void end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier::Shape) } - def to_h; end + sig do + override.returns( + { + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash + end end end @@ -2438,12 +2630,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -2451,15 +2642,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2467,10 +2658,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -2479,13 +2672,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -2493,15 +2685,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -2509,15 +2701,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -2525,10 +2717,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -2538,12 +2732,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -2551,43 +2744,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class BulkPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::BulkPrice::BulkConfig, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkPrice::Item, - maximum: T.nilable(Orb::Models::Price::BulkPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -2615,7 +2781,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -2671,7 +2848,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration), @@ -2713,27 +2897,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :bulk - ); end + ) + end - sig { returns(Orb::Models::Price::BulkPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::BulkPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration, + bulk_config: Orb::Models::Price::BulkPrice::BulkConfig, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::BulkPrice::Item, + maximum: T.nilable(Orb::Models::Price::BulkPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::BulkPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::BulkPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2741,10 +2961,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::BulkPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -2753,25 +2975,24 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class BulkConfig < Orb::BaseModel - Shape = T.type_alias { {tiers: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]} } - sig { returns(T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]) } attr_accessor :tiers sig { params(tiers: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]).void } - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::Price::BulkPrice::BulkConfig::Shape) } - def to_h; end + sig { override.returns({tiers: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]}) } + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String, maximum_units: T.nilable(Float)} } - sig { returns(String) } attr_accessor :unit_amount @@ -2779,10 +3000,12 @@ module Orb attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil); end + def initialize(unit_amount:, maximum_units: nil) + end - sig { returns(Orb::Models::Price::BulkPrice::BulkConfig::Tier::Shape) } - def to_h; end + sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } + def to_hash + end end end @@ -2797,12 +3020,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -2810,15 +3032,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::BulkPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2826,10 +3048,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -2838,13 +3062,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -2852,15 +3075,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::BulkPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -2868,15 +3091,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::BulkPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -2884,10 +3107,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::BulkPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -2897,12 +3122,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -2910,43 +3134,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class ThresholdTotalAmountPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, - maximum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -2971,7 +3168,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -3031,7 +3239,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration), @@ -3074,27 +3289,63 @@ module Orb threshold_total_amount_config:, dimensional_price_configuration: nil, model_type: :threshold_total_amount - ); end + ) + end - sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, + maximum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3102,10 +3353,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -3114,7 +3367,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -3129,12 +3383,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -3142,15 +3395,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3158,10 +3411,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -3170,13 +3425,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -3184,15 +3438,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -3200,15 +3454,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -3216,10 +3470,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -3229,12 +3485,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -3242,43 +3497,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class TieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPackagePrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_package_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -3303,7 +3531,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -3361,7 +3600,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration), @@ -3404,27 +3650,63 @@ module Orb tiered_package_config:, dimensional_price_configuration: nil, model_type: :tiered_package - ); end + ) + end - sig { returns(Orb::Models::Price::TieredPackagePrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredPackagePrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_package_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::TieredPackagePrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3432,10 +3714,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -3444,7 +3728,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -3459,12 +3744,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -3472,15 +3756,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::TieredPackagePrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3488,10 +3772,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -3500,13 +3786,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -3514,15 +3799,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::TieredPackagePrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -3530,15 +3815,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::TieredPackagePrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -3546,10 +3831,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::TieredPackagePrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -3559,56 +3846,28 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values - sig { returns(String) } - attr_accessor :dimensional_price_group_id - - sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end - - sig { returns(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration::Shape) } - def to_h; end - end - end - - class GroupedTieredPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_tiered_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedTieredPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration) - } + sig { returns(String) } + attr_accessor :dimensional_price_group_id + + sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } + def initialize(dimension_values:, dimensional_price_group_id:) + end + + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end + end + class GroupedTieredPrice < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -3633,7 +3892,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -3691,7 +3961,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_tiered_config: T::Hash[Symbol, T.anything], @@ -3734,27 +4011,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :grouped_tiered - ); end + ) + end - sig { returns(Orb::Models::Price::GroupedTieredPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_tiered_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::GroupedTieredPrice::Item, + maximum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::GroupedTieredPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3762,10 +4075,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -3774,7 +4089,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -3789,12 +4105,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -3802,15 +4117,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::GroupedTieredPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3818,10 +4133,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -3830,13 +4147,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -3844,15 +4160,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::GroupedTieredPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -3860,15 +4176,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::GroupedTieredPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -3876,10 +4192,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::GroupedTieredPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -3889,12 +4207,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -3902,43 +4219,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class TieredWithMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredWithMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -3963,7 +4253,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -4021,7 +4322,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration), @@ -4064,27 +4372,63 @@ module Orb tiered_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_with_minimum - ); end + ) + end - sig { returns(Orb::Models::Price::TieredWithMinimumPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredWithMinimumPrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4092,10 +4436,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -4104,7 +4450,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -4119,12 +4466,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -4132,15 +4478,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4148,10 +4494,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -4160,13 +4508,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -4174,15 +4521,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::TieredWithMinimumPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -4190,15 +4537,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::TieredWithMinimumPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -4206,10 +4553,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::TieredWithMinimumPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -4219,12 +4568,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -4232,43 +4580,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class TieredPackageWithMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -4293,7 +4614,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -4355,7 +4687,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration), @@ -4398,27 +4737,63 @@ module Orb tiered_package_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_package_with_minimum - ); end + ) + end - sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4426,10 +4801,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -4438,7 +4815,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -4453,12 +4831,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -4466,15 +4843,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4482,12 +4859,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4496,13 +4873,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -4510,15 +4886,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -4526,15 +4902,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -4542,10 +4918,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -4555,12 +4933,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -4568,45 +4945,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig do - returns(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration::Shape) + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash end - def to_h; end end end class PackageWithAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::PackageWithAllocationPrice::Item, - maximum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -4631,7 +4979,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -4693,7 +5052,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration), @@ -4736,27 +5102,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :package_with_allocation - ); end + ) + end - sig { returns(Orb::Models::Price::PackageWithAllocationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::PackageWithAllocationPrice::Item, + maximum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4764,10 +5166,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -4776,7 +5180,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -4791,12 +5196,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -4804,15 +5208,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4820,10 +5224,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -4832,13 +5238,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -4846,15 +5251,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::PackageWithAllocationPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -4862,15 +5267,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::PackageWithAllocationPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -4878,10 +5283,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::PackageWithAllocationPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -4891,12 +5298,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -4904,45 +5310,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig do - returns(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration::Shape) + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash end - def to_h; end end end class UnitWithPercentPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitWithPercentPrice::Item, - maximum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - unit_with_percent_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -4967,7 +5344,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -5025,7 +5413,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration), @@ -5068,27 +5463,63 @@ module Orb unit_with_percent_config:, dimensional_price_configuration: nil, model_type: :unit_with_percent - ); end + ) + end - sig { returns(Orb::Models::Price::UnitWithPercentPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::UnitWithPercentPrice::Item, + maximum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + unit_with_percent_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::UnitWithPercentPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5096,10 +5527,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -5108,7 +5541,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -5123,12 +5557,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -5136,15 +5569,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5152,10 +5585,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -5164,13 +5599,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -5178,15 +5612,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::UnitWithPercentPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -5194,15 +5628,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::UnitWithPercentPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -5210,10 +5644,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::UnitWithPercentPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -5223,12 +5659,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -5236,43 +5671,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class MatrixWithAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixWithAllocationPrice::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, - maximum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -5297,7 +5705,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -5357,7 +5776,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration), @@ -5400,27 +5826,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :matrix_with_allocation - ); end + ) + end - sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::MatrixWithAllocationPrice::Item, + matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, + maximum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5428,10 +5890,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -5440,7 +5904,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -5455,12 +5920,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -5468,15 +5932,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5484,10 +5948,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -5496,13 +5962,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -5510,22 +5975,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class MatrixWithAllocationConfig < Orb::BaseModel - Shape = T.type_alias do - { - allocation: Float, - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - } - end - sig { returns(Float) } attr_accessor :allocation @@ -5548,14 +6006,23 @@ module Orb matrix_values: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] ).void end - def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:); end + def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) + end - sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::Shape) } - def to_h; end + sig do + override.returns( + { + allocation: Float, + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + } + ) + end + def to_hash + end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -5563,18 +6030,16 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig do - returns(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash end - def to_h; end end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -5582,15 +6047,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -5598,10 +6063,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -5611,12 +6078,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -5624,43 +6090,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class TieredWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::TieredWithProrationPrice::Item, - maximum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -5685,7 +6124,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -5745,7 +6195,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration), @@ -5788,27 +6245,63 @@ module Orb tiered_with_proration_config:, dimensional_price_configuration: nil, model_type: :tiered_with_proration - ); end + ) + end - sig { returns(Orb::Models::Price::TieredWithProrationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::TieredWithProrationPrice::Item, + maximum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + tiered_with_proration_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::TieredWithProrationPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5816,10 +6309,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -5828,7 +6323,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -5843,12 +6339,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -5856,15 +6351,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5872,10 +6367,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -5884,13 +6381,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -5898,15 +6394,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::TieredWithProrationPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -5914,15 +6410,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::TieredWithProrationPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -5930,10 +6426,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::TieredWithProrationPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -5943,12 +6441,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -5956,43 +6453,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class UnitWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::UnitWithProrationPrice::Item, - maximum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - unit_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -6017,7 +6487,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -6075,7 +6556,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration), @@ -6118,27 +6606,63 @@ module Orb unit_with_proration_config:, dimensional_price_configuration: nil, model_type: :unit_with_proration - ); end + ) + end - sig { returns(Orb::Models::Price::UnitWithProrationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::UnitWithProrationPrice::Item, + maximum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + unit_with_proration_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::UnitWithProrationPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6146,10 +6670,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -6158,7 +6684,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -6173,12 +6700,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -6186,15 +6712,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6202,10 +6728,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -6214,13 +6742,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -6228,15 +6755,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::UnitWithProrationPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -6244,15 +6771,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::UnitWithProrationPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -6260,10 +6787,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::UnitWithProrationPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -6273,12 +6802,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -6286,43 +6814,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class GroupedAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_allocation_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedAllocationPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -6347,7 +6848,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -6405,7 +6917,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_allocation_config: T::Hash[Symbol, T.anything], @@ -6448,27 +6967,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :grouped_allocation - ); end + ) + end - sig { returns(Orb::Models::Price::GroupedAllocationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_allocation_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::GroupedAllocationPrice::Item, + maximum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::GroupedAllocationPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6476,10 +7031,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -6488,7 +7045,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -6503,12 +7061,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -6516,15 +7073,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6532,10 +7089,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -6544,13 +7103,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -6558,15 +7116,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::GroupedAllocationPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -6574,15 +7132,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::GroupedAllocationPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -6590,10 +7148,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::GroupedAllocationPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -6603,12 +7163,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -6616,43 +7175,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class GroupedWithProratedMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -6677,7 +7209,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -6739,7 +7282,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], @@ -6782,27 +7332,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end - sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, + maximum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6810,12 +7396,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6824,7 +7410,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -6839,12 +7426,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -6852,15 +7438,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6868,12 +7454,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6882,13 +7468,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -6896,15 +7481,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -6912,15 +7497,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -6928,10 +7513,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -6941,12 +7528,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -6954,45 +7540,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig do - returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration::Shape) + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash end - def to_h; end end end class GroupedWithMeteredMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -7017,7 +7574,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -7079,7 +7647,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], @@ -7122,27 +7697,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :grouped_with_metered_minimum - ); end + ) + end - sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, + maximum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7150,12 +7761,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7164,7 +7775,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -7179,12 +7791,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -7192,15 +7803,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7208,12 +7819,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7222,13 +7833,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -7236,15 +7846,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -7252,15 +7862,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -7268,10 +7878,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -7281,12 +7893,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -7294,45 +7905,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig do - returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration::Shape) + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash end - def to_h; end end end class MatrixWithDisplayNamePrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -7357,7 +7939,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -7419,7 +8012,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration), @@ -7462,27 +8062,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :matrix_with_display_name - ); end + ) + end - sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + maximum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7490,10 +8126,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -7502,7 +8140,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -7517,12 +8156,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -7530,15 +8168,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7546,10 +8184,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -7558,13 +8198,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -7572,15 +8211,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -7588,15 +8227,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -7604,10 +8243,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -7617,12 +8258,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -7630,45 +8270,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig do - returns(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration::Shape) + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash end - def to_h; end end end class BulkWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::BulkWithProrationPrice::Item, - maximum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -7696,7 +8307,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -7752,7 +8374,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration), @@ -7794,27 +8423,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :bulk_with_proration - ); end + ) + end - sig { returns(Orb::Models::Price::BulkWithProrationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::BulkWithProrationPrice::Item, + maximum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::BulkWithProrationPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7822,10 +8487,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -7834,7 +8501,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -7849,12 +8517,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -7862,15 +8529,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7878,10 +8545,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -7890,13 +8559,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -7904,15 +8572,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::BulkWithProrationPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -7920,15 +8588,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::BulkWithProrationPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -7936,10 +8604,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::BulkWithProrationPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -7949,12 +8619,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -7962,43 +8631,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class GroupedTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::GroupedTieredPackagePrice::Item, - maximum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -8023,7 +8665,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -8083,7 +8736,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), grouped_tiered_package_config: T::Hash[Symbol, T.anything], @@ -8126,27 +8786,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :grouped_tiered_package - ); end + ) + end - sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::GroupedTieredPackagePrice::Item, + maximum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8154,10 +8850,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -8166,7 +8864,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -8181,12 +8880,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -8194,15 +8892,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8210,10 +8908,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -8222,13 +8922,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -8236,15 +8935,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -8252,15 +8951,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -8268,10 +8967,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -8281,12 +8982,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -8294,43 +8994,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash + end end end class MaxGroupTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -8355,7 +9028,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -8417,7 +9101,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration), @@ -8460,27 +9151,63 @@ module Orb price_type:, dimensional_price_configuration: nil, model_type: :max_group_tiered_package - ); end + ) + end - sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + maximum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8488,10 +9215,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -8500,7 +9229,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -8515,12 +9245,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -8528,15 +9257,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8544,10 +9273,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -8556,13 +9287,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -8570,15 +9300,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -8586,15 +9316,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -8602,10 +9332,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -8615,12 +9347,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -8628,45 +9359,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig do - returns(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration::Shape) + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash end - def to_h; end end end class ScalableMatrixWithUnitPricingPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, - maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -8691,7 +9393,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -8753,7 +9466,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), @@ -8796,27 +9516,63 @@ module Orb scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_unit_pricing - ); end + ) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, + maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8824,12 +9580,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8838,7 +9594,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -8853,12 +9610,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -8866,15 +9622,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8882,12 +9638,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8896,13 +9652,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -8910,15 +9665,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -8926,15 +9681,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -8942,10 +9697,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -8955,12 +9712,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -8968,45 +9724,16 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig do - returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration::Shape) + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash end - def to_h; end end end class ScalableMatrixWithTieredPricingPrice < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, - cadence: Symbol, - conversion_rate: T.nilable(Float), - created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation), - currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), - item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, - maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Symbol, - scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) - } - end - sig { returns(String) } attr_accessor :id @@ -9031,7 +9758,18 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T.nilable(Orb::Models::Discount::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ) + ) + end attr_accessor :discount sig { returns(T.nilable(String)) } @@ -9093,7 +9831,14 @@ module Orb created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation), currency: String, - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), @@ -9136,27 +9881,63 @@ module Orb scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_tiered_pricing - ); end + ) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric), + billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + cadence: Symbol, + conversion_rate: T.nilable(Float), + created_at: Time, + credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation), + currency: String, + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoicing_cycle_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), + item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, + maximum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum), + maximum_amount: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum), + minimum_amount: T.nilable(String), + model_type: Symbol, + name: String, + plan_phase_order: T.nilable(Integer), + price_type: Symbol, + scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], + dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String} } - sig { returns(String) } attr_accessor :id sig { params(id: String).void } - def initialize(id:); end + def initialize(id:) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric::Shape) } - def to_h; end + sig { override.returns({id: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -9164,12 +9945,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -9178,7 +9959,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end @@ -9193,12 +9975,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class CreditAllocation < Orb::BaseModel - Shape = T.type_alias { {allows_rollover: T::Boolean, currency: String} } - sig { returns(T::Boolean) } attr_accessor :allows_rollover @@ -9206,15 +9987,15 @@ module Orb attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).void } - def initialize(allows_rollover:, currency:); end + def initialize(allows_rollover:, currency:) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation::Shape) } - def to_h; end + sig { override.returns({allows_rollover: T::Boolean, currency: String}) } + def to_hash + end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -9222,12 +10003,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -9236,13 +10017,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Item < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -9250,15 +10030,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item::Shape) } - def to_h; end + sig { override.returns({id: String, name: String}) } + def to_hash + end end class Maximum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], maximum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -9266,15 +10046,15 @@ module Orb attr_accessor :maximum_amount sig { params(applies_to_price_ids: T::Array[String], maximum_amount: String).void } - def initialize(applies_to_price_ids:, maximum_amount:); end + def initialize(applies_to_price_ids:, maximum_amount:) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], maximum_amount: String}) } + def to_hash + end end class Minimum < Orb::BaseModel - Shape = T.type_alias { {applies_to_price_ids: T::Array[String], minimum_amount: String} } - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -9282,10 +10062,12 @@ module Orb attr_accessor :minimum_amount sig { params(applies_to_price_ids: T::Array[String], minimum_amount: String).void } - def initialize(applies_to_price_ids:, minimum_amount:); end + def initialize(applies_to_price_ids:, minimum_amount:) + end - sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum::Shape) } - def to_h; end + sig { override.returns({applies_to_price_ids: T::Array[String], minimum_amount: String}) } + def to_hash + end end class PriceType < Orb::Enum @@ -9295,12 +10077,11 @@ module Orb FIXED_PRICE = :fixed_price sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class DimensionalPriceConfiguration < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[String], dimensional_price_group_id: String} } - sig { returns(T::Array[String]) } attr_accessor :dimension_values @@ -9308,12 +10089,12 @@ module Orb attr_accessor :dimensional_price_group_id sig { params(dimension_values: T::Array[String], dimensional_price_group_id: String).void } - def initialize(dimension_values:, dimensional_price_group_id:); end + def initialize(dimension_values:, dimensional_price_group_id:) + end - sig do - returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration::Shape) + sig { override.returns({dimension_values: T::Array[String], dimensional_price_group_id: String}) } + def to_hash end - def to_h; end end end @@ -9350,7 +10131,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/price_create_params.rbi b/rbi/lib/orb/models/price_create_params.rbi index c40247c3..12d06ed0 100644 --- a/rbi/lib/orb/models/price_create_params.rbi +++ b/rbi/lib/orb/models/price_create_params.rbi @@ -6,55 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - cadence: Symbol, - currency: String, - item_id: String, - 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, - tiered_config: Orb::Models::PriceCreateParams::TieredConfig, - tiered_bps_config: Orb::Models::PriceCreateParams::TieredBpsConfig, - bps_config: Orb::Models::PriceCreateParams::BpsConfig, - bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, - bulk_config: Orb::Models::PriceCreateParams::BulkConfig, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - tiered_package_config: T::Hash[Symbol, T.anything], - grouped_tiered_config: T::Hash[Symbol, T.anything], - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - package_with_allocation_config: T::Hash[Symbol, T.anything], - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - unit_with_percent_config: T::Hash[Symbol, T.anything], - tiered_with_proration_config: T::Hash[Symbol, T.anything], - unit_with_proration_config: T::Hash[Symbol, T.anything], - grouped_allocation_config: T::Hash[Symbol, T.anything], - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - bulk_with_proration_config: T::Hash[Symbol, T.anything], - 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] - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(Symbol) } attr_accessor :cadence @@ -221,7 +172,7 @@ module Orb 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 + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -267,10 +218,59 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::PriceCreateParams::Shape) } - def to_h; end + sig do + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + 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, + tiered_config: Orb::Models::PriceCreateParams::TieredConfig, + tiered_bps_config: Orb::Models::PriceCreateParams::TieredBpsConfig, + bps_config: Orb::Models::PriceCreateParams::BpsConfig, + bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, + bulk_config: Orb::Models::PriceCreateParams::BulkConfig, + threshold_total_amount_config: T::Hash[Symbol, T.anything], + tiered_package_config: T::Hash[Symbol, T.anything], + grouped_tiered_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: T::Hash[Symbol, T.anything], + tiered_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + bulk_with_proration_config: T::Hash[Symbol, T.anything], + 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], + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -283,7 +283,8 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class ModelType < Orb::Enum @@ -292,25 +293,24 @@ module Orb SCALABLE_MATRIX_WITH_TIERED_PRICING = :scalable_matrix_with_tiered_pricing sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class UnitConfig < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String} } - sig { returns(String) } attr_accessor :unit_amount sig { params(unit_amount: String).void } - def initialize(unit_amount:); end + def initialize(unit_amount:) + end - sig { returns(Orb::Models::PriceCreateParams::UnitConfig::Shape) } - def to_h; end + sig { override.returns({unit_amount: String}) } + def to_hash + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -318,10 +318,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::PriceCreateParams::BillingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -330,13 +332,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -344,10 +345,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig { returns(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::Shape) } - def to_h; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end class DurationUnit < Orb::Enum abstract! @@ -356,13 +359,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class PackageConfig < Orb::BaseModel - Shape = T.type_alias { {package_amount: String, package_size: Integer} } - sig { returns(String) } attr_accessor :package_amount @@ -370,21 +372,15 @@ module Orb attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:); end + def initialize(package_amount:, package_size:) + end - sig { returns(Orb::Models::PriceCreateParams::PackageConfig::Shape) } - def to_h; end + sig { override.returns({package_amount: String, package_size: Integer}) } + def to_hash + end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias do - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] - } - end - sig { returns(String) } attr_accessor :default_unit_amount @@ -401,14 +397,22 @@ module Orb matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] ).void end - def initialize(default_unit_amount:, dimensions:, matrix_values:); end + def initialize(default_unit_amount:, dimensions:, matrix_values:) + end - sig { returns(Orb::Models::PriceCreateParams::MatrixConfig::Shape) } - def to_h; end + sig do + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + } + ) + end + def to_hash + end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -416,23 +420,16 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig { returns(Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash + end end end class MatrixWithAllocationConfig < Orb::BaseModel - Shape = T.type_alias do - { - allocation: Float, - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] - } - end - sig { returns(Float) } attr_accessor :allocation @@ -453,14 +450,23 @@ module Orb matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] ).void end - def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:); end + def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) + end - sig { returns(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::Shape) } - def to_h; end + sig do + override.returns( + { + allocation: Float, + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + } + ) + end + def to_hash + end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -468,28 +474,28 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig { returns(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue::Shape) } - def to_h; end + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash + end end end class TieredConfig < Orb::BaseModel - Shape = T.type_alias { {tiers: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]} } - sig { returns(T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) } attr_accessor :tiers sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]).void } - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::PriceCreateParams::TieredConfig::Shape) } - def to_h; end + sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]}) } + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)} } - sig { returns(Float) } attr_accessor :first_unit @@ -500,35 +506,28 @@ module Orb attr_accessor :last_unit sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil); end + def initialize(first_unit:, unit_amount:, last_unit: nil) + end - sig { returns(Orb::Models::PriceCreateParams::TieredConfig::Tier::Shape) } - def to_h; end + sig { override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) } + def to_hash + end end end class TieredBpsConfig < Orb::BaseModel - Shape = T.type_alias { {tiers: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]} } - sig { returns(T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) } attr_accessor :tiers sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]).void } - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::PriceCreateParams::TieredBpsConfig::Shape) } - def to_h; end + sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]}) } + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias do - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - end - sig { returns(Float) } attr_accessor :bps @@ -549,16 +548,25 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + end - sig { returns(Orb::Models::PriceCreateParams::TieredBpsConfig::Tier::Shape) } - def to_h; end + sig do + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash + end end end class BpsConfig < Orb::BaseModel - Shape = T.type_alias { {bps: Float, per_unit_maximum: T.nilable(String)} } - sig { returns(Float) } attr_accessor :bps @@ -566,29 +574,27 @@ module Orb attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil); end + def initialize(bps:, per_unit_maximum: nil) + end - sig { returns(Orb::Models::PriceCreateParams::BpsConfig::Shape) } - def to_h; end + sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } + def to_hash + end end class BulkBpsConfig < Orb::BaseModel - Shape = T.type_alias { {tiers: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]} } - sig { returns(T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]) } attr_accessor :tiers sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]).void } - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::PriceCreateParams::BulkBpsConfig::Shape) } - def to_h; end + sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]}) } + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias do - {bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)} - end - sig { returns(Float) } attr_accessor :bps @@ -601,28 +607,36 @@ module Orb sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)).void end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + end - sig { returns(Orb::Models::PriceCreateParams::BulkBpsConfig::Tier::Shape) } - def to_h; end + sig do + override.returns( + { + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash + end end end class BulkConfig < Orb::BaseModel - Shape = T.type_alias { {tiers: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]} } - sig { returns(T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) } attr_accessor :tiers sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]).void } - def initialize(tiers:); end + def initialize(tiers:) + end - sig { returns(Orb::Models::PriceCreateParams::BulkConfig::Shape) } - def to_h; end + sig { override.returns({tiers: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]}) } + def to_hash + end class Tier < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String, maximum_units: T.nilable(Float)} } - sig { returns(String) } attr_accessor :unit_amount @@ -630,10 +644,12 @@ module Orb attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil); end + def initialize(unit_amount:, maximum_units: nil) + end - sig { returns(Orb::Models::PriceCreateParams::BulkConfig::Tier::Shape) } - def to_h; end + sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/price_evaluate_params.rbi b/rbi/lib/orb/models/price_evaluate_params.rbi index edeca41f..526c8a1d 100644 --- a/rbi/lib/orb/models/price_evaluate_params.rbi +++ b/rbi/lib/orb/models/price_evaluate_params.rbi @@ -6,20 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - timeframe_end: Time, - timeframe_start: Time, - customer_id: T.nilable(String), - external_customer_id: T.nilable(String), - filter: T.nilable(String), - grouping_keys: T::Array[String] - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(Time) } attr_accessor :timeframe_end @@ -49,7 +35,7 @@ module Orb external_customer_id: T.nilable(String), filter: T.nilable(String), grouping_keys: T::Array[String], - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -60,10 +46,24 @@ module Orb filter: nil, grouping_keys: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::PriceEvaluateParams::Shape) } - def to_h; end + sig do + override.returns( + { + timeframe_end: Time, + timeframe_start: Time, + customer_id: T.nilable(String), + external_customer_id: T.nilable(String), + filter: T.nilable(String), + grouping_keys: T::Array[String], + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/price_evaluate_response.rbi b/rbi/lib/orb/models/price_evaluate_response.rbi index 51279746..09b92f42 100644 --- a/rbi/lib/orb/models/price_evaluate_response.rbi +++ b/rbi/lib/orb/models/price_evaluate_response.rbi @@ -3,16 +3,16 @@ module Orb module Models class PriceEvaluateResponse < Orb::BaseModel - Shape = T.type_alias { {data: T::Array[Orb::Models::EvaluatePriceGroup]} } - sig { returns(T::Array[Orb::Models::EvaluatePriceGroup]) } attr_accessor :data sig { params(data: T::Array[Orb::Models::EvaluatePriceGroup]).void } - def initialize(data:); end + def initialize(data:) + end - sig { returns(Orb::Models::PriceEvaluateResponse::Shape) } - def to_h; end + sig { override.returns({data: T::Array[Orb::Models::EvaluatePriceGroup]}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/price_fetch_params.rbi b/rbi/lib/orb/models/price_fetch_params.rbi index a517280b..ccc244e9 100644 --- a/rbi/lib/orb/models/price_fetch_params.rbi +++ b/rbi/lib/orb/models/price_fetch_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::PriceFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/price_list_params.rbi b/rbi/lib/orb/models/price_list_params.rbi index 2e173cf1..431a960a 100644 --- a/rbi/lib/orb/models/price_list_params.rbi +++ b/rbi/lib/orb/models/price_list_params.rbi @@ -6,10 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({cursor: T.nilable(String), limit: Integer}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -19,11 +15,21 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit - sig { params(cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOpts).void } - def initialize(cursor: nil, limit: nil, request_options: {}); end + sig do + params( + cursor: T.nilable(String), + limit: Integer, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(cursor: nil, limit: nil, request_options: {}) + end - sig { returns(Orb::Models::PriceListParams::Shape) } - def to_h; end + sig do + override.returns({cursor: T.nilable(String), limit: Integer, request_options: Orb::RequestOptions}) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/price_update_params.rbi b/rbi/lib/orb/models/price_update_params.rbi index 1ae28e48..2da9ffb4 100644 --- a/rbi/lib/orb/models/price_update_params.rbi +++ b/rbi/lib/orb/models/price_update_params.rbi @@ -6,23 +6,28 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({metadata: T.nilable(T::Hash[Symbol, T.nilable(String)])}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(metadata: nil, request_options: {}); end + def initialize(metadata: nil, request_options: {}) + end - sig { returns(Orb::Models::PriceUpdateParams::Shape) } - def to_h; end + sig do + override.returns( + { + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi b/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi index 15a4b6dd..b8eae869 100644 --- a/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi +++ b/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi @@ -7,13 +7,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::Prices::ExternalPriceIDFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/prices/external_price_id_update_params.rbi b/rbi/lib/orb/models/prices/external_price_id_update_params.rbi index 76cc7a84..01c6f484 100644 --- a/rbi/lib/orb/models/prices/external_price_id_update_params.rbi +++ b/rbi/lib/orb/models/prices/external_price_id_update_params.rbi @@ -7,23 +7,28 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({metadata: T.nilable(T::Hash[Symbol, T.nilable(String)])}, Orb::RequestParameters::Shape) - end - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(metadata: nil, request_options: {}); end + def initialize(metadata: nil, request_options: {}) + end - sig { returns(Orb::Models::Prices::ExternalPriceIDUpdateParams::Shape) } - def to_h; end + sig do + override.returns( + { + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription.rbi b/rbi/lib/orb/models/subscription.rbi index a332ef5c..f6602658 100644 --- a/rbi/lib/orb/models/subscription.rbi +++ b/rbi/lib/orb/models/subscription.rbi @@ -3,36 +3,6 @@ module Orb module Models class Subscription < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::Subscription::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::Subscription::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::Subscription::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::Subscription::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::Subscription::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::Subscription::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::Subscription::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -66,7 +36,15 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :default_invoice_memo - sig { returns(T::Array[Orb::Models::Subscription::DiscountInterval::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, + Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, + Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval + )] + ) + end attr_accessor :discount_intervals sig { returns(T.nilable(Time)) } @@ -121,7 +99,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::Subscription::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -163,26 +143,62 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::Subscription::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::Subscription::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::Subscription::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, + Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, + Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::Subscription::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::Subscription::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::Subscription::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::Subscription::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::Subscription::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id - sig { returns(Orb::Models::Subscription::AdjustmentInterval::Adjustment::Variants) } + sig do + returns( + T.any( + Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::MinimumAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) + end attr_accessor :adjustment sig { returns(T::Array[String]) } @@ -197,43 +213,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::Subscription::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end - sig { returns(Orb::Models::Subscription::AdjustmentInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::MinimumAdjustment, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -274,27 +284,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -335,27 +345,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -396,28 +406,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -463,27 +472,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::Subscription::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -524,12 +534,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::Subscription::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -549,13 +571,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -566,35 +587,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig { returns(Orb::Models::Subscription::BillingCycleAnchorConfiguration::Shape) } - def to_h; end + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash + end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, - Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, - Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -630,24 +634,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end - sig { returns(Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval::Shape) } - def to_h; end + sig do + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash + end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -683,24 +689,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end - sig { returns(Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash + end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -736,10 +744,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end - sig { returns(Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash + end end sig do @@ -751,14 +772,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -772,23 +790,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end - sig { returns(Orb::Models::Subscription::FixedFeeQuantitySchedule::Shape) } - def to_h; end + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash + end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -822,21 +834,22 @@ module Orb ) end - sig { returns(Orb::Models::Subscription::MaximumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -870,24 +883,22 @@ module Orb ) end - sig { returns(Orb::Models::Subscription::MinimumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -908,7 +919,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -922,7 +965,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -935,14 +1006,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end - sig { returns(Orb::Models::Subscription::PriceInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash + end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -953,16 +1065,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig { returns(Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition::Shape) } - def to_h; end + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash + end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -973,10 +1085,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig { returns(Orb::Models::Subscription::RedeemedCoupon::Shape) } - def to_h; end + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash + end end class Status < Orb::Enum @@ -987,20 +1101,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::Subscription::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_cancel_params.rbi b/rbi/lib/orb/models/subscription_cancel_params.rbi index d41bf5c0..f033ffb9 100644 --- a/rbi/lib/orb/models/subscription_cancel_params.rbi +++ b/rbi/lib/orb/models/subscription_cancel_params.rbi @@ -6,10 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all({cancel_option: Symbol, cancellation_date: T.nilable(Time)}, Orb::RequestParameters::Shape) - end - sig { returns(Symbol) } attr_accessor :cancel_option @@ -20,13 +16,23 @@ module Orb params( cancel_option: Symbol, cancellation_date: T.nilable(Time), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(cancel_option:, cancellation_date: nil, request_options: {}); end + def initialize(cancel_option:, cancellation_date: nil, request_options: {}) + end - sig { returns(Orb::Models::SubscriptionCancelParams::Shape) } - def to_h; end + sig do + override.returns( + { + cancel_option: Symbol, + cancellation_date: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class CancelOption < Orb::Enum abstract! @@ -36,7 +42,8 @@ module Orb REQUESTED_DATE = :requested_date sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/subscription_cancel_response.rbi b/rbi/lib/orb/models/subscription_cancel_response.rbi index 3b712e3e..03623a00 100644 --- a/rbi/lib/orb/models/subscription_cancel_response.rbi +++ b/rbi/lib/orb/models/subscription_cancel_response.rbi @@ -3,36 +3,6 @@ module Orb module Models class SubscriptionCancelResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -66,7 +36,15 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :default_invoice_memo - sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::DiscountInterval::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval + )] + ) + end attr_accessor :discount_intervals sig { returns(T.nilable(Time)) } @@ -121,7 +99,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -163,26 +143,56 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::SubscriptionCancelResponse::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id - sig { returns(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Variants) } + sig do + returns( + T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) + end attr_accessor :adjustment sig { returns(T::Array[String]) } @@ -197,43 +207,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -274,27 +278,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -335,27 +339,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -396,28 +400,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -463,27 +466,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -524,12 +528,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -558,13 +574,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -575,35 +590,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig { returns(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration::Shape) } - def to_h; end + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash + end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -639,26 +637,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval::Shape) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -694,26 +692,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -749,12 +747,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end sig do @@ -769,14 +778,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -790,23 +796,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end - sig { returns(Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule::Shape) } - def to_h; end + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash + end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -840,21 +840,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionCancelResponse::MaximumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -888,24 +889,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionCancelResponse::MinimumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -926,7 +925,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -940,7 +971,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -953,14 +1012,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end - sig { returns(Orb::Models::SubscriptionCancelResponse::PriceInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash + end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -971,18 +1071,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash end - def to_h; end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -993,10 +1091,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon::Shape) } - def to_h; end + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash + end end class Status < Orb::Enum @@ -1007,20 +1107,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::SubscriptionCancelResponse::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_create_params.rbi b/rbi/lib/orb/models/subscription_create_params.rbi index 63e660a9..12476ba4 100644 --- a/rbi/lib/orb/models/subscription_create_params.rbi +++ b/rbi/lib/orb/models/subscription_create_params.rbi @@ -6,44 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice]), - align_billing_with_subscription_start_date: T::Boolean, - auto_collection: T.nilable(T::Boolean), - aws_region: T.nilable(String), - billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration), - coupon_redemption_code: T.nilable(String), - credits_overage_rate: T.nilable(Float), - customer_id: T.nilable(String), - default_invoice_memo: T.nilable(String), - end_date: T.nilable(Time), - external_customer_id: T.nilable(String), - external_marketplace: T.nilable(Symbol), - external_marketplace_reporting_id: T.nilable(String), - external_plan_id: T.nilable(String), - filter: T.nilable(String), - initial_phase_order: T.nilable(Integer), - invoicing_threshold: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - net_terms: T.nilable(Integer), - per_credit_overage_amount: T.nilable(Float), - plan_id: T.nilable(String), - plan_version_number: T.nilable(Integer), - price_overrides: T.nilable(T::Array[T.anything]), - remove_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]), - remove_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]), - replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]), - replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]), - start_date: T.nilable(Time), - trial_duration_days: T.nilable(Integer) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])) } attr_accessor :add_adjustments @@ -169,7 +131,7 @@ module Orb replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]), start_date: T.nilable(Time), trial_duration_days: T.nilable(Integer), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -204,22 +166,64 @@ module Orb start_date: nil, trial_duration_days: nil, request_options: {} - ); end - - sig { returns(Orb::Models::SubscriptionCreateParams::Shape) } - def to_h; end + ) + end - class AddAdjustment < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - adjustment: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Variants, + add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]), + add_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice]), + align_billing_with_subscription_start_date: T::Boolean, + auto_collection: T.nilable(T::Boolean), + aws_region: T.nilable(String), + billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration), + coupon_redemption_code: T.nilable(String), + credits_overage_rate: T.nilable(Float), + customer_id: T.nilable(String), + default_invoice_memo: T.nilable(String), end_date: T.nilable(Time), - plan_phase_order: T.nilable(Integer), - start_date: T.nilable(Time) + external_customer_id: T.nilable(String), + external_marketplace: T.nilable(Symbol), + external_marketplace_reporting_id: T.nilable(String), + external_plan_id: T.nilable(String), + filter: T.nilable(String), + initial_phase_order: T.nilable(Integer), + invoicing_threshold: T.nilable(String), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + net_terms: T.nilable(Integer), + per_credit_overage_amount: T.nilable(Float), + plan_id: T.nilable(String), + plan_version_number: T.nilable(Integer), + price_overrides: T.nilable(T::Array[T.anything]), + remove_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]), + remove_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]), + replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]), + replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]), + start_date: T.nilable(Time), + trial_duration_days: T.nilable(Integer), + request_options: Orb::RequestOptions } - end + ) + end + def to_hash + end - sig { returns(Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Variants) } + class AddAdjustment < Orb::BaseModel + sig do + returns( + T.any( + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum + ) + ) + end attr_accessor :adjustment sig { returns(T.nilable(Time)) } @@ -233,40 +237,40 @@ module Orb sig do params( - adjustment: Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum + ), end_date: T.nilable(Time), plan_phase_order: T.nilable(Integer), start_date: T.nilable(Time) ).void end - def initialize(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil); end + def initialize(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) + end - sig { returns(Orb::Models::SubscriptionCreateParams::AddAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + adjustment: T.any( + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum + ), + end_date: T.nilable(Time), + plan_phase_order: T.nilable(Integer), + start_date: T.nilable(Time) + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum - ) - end - class NewPercentageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -299,21 +303,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewUsageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -346,21 +349,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewAmountDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -393,22 +395,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewMinimum < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -446,21 +446,21 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewMaximum < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -493,9 +493,17 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end sig do @@ -512,25 +520,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class AddPrice < Orb::BaseModel - Shape = T.type_alias do - { - discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]), - end_date: T.nilable(Time), - external_price_id: T.nilable(String), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - plan_phase_order: T.nilable(Integer), - price: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Variants), - price_id: T.nilable(String), - start_date: T.nilable(Time) - } - end - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])) } attr_accessor :discounts @@ -549,7 +544,32 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ) + ) + end attr_accessor :price sig { returns(T.nilable(String)) } @@ -566,7 +586,11 @@ module Orb maximum_amount: T.nilable(String), minimum_amount: T.nilable(String), plan_phase_order: T.nilable(Integer), - price: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::Variants), + price: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), price_id: T.nilable(String), start_date: T.nilable(Time) ).void @@ -581,21 +605,49 @@ module Orb price: nil, price_id: nil, start_date: nil - ); end - - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Shape) } - def to_h; end + ) + end - class Discount < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - discount_type: Symbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) + discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]), + end_date: T.nilable(Time), + external_price_id: T.nilable(String), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + plan_phase_order: T.nilable(Integer), + price: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), + price_id: T.nilable(String), + start_date: T.nilable(Time) } - end + ) + end + def to_hash + end + class Discount < Orb::BaseModel sig { returns(Symbol) } attr_accessor :discount_type @@ -619,8 +671,18 @@ module Orb def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end - sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Discount::Shape) } - def to_h; end + sig do + override.returns( + { + discount_type: Symbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) + end + def to_hash + end class DiscountType < Orb::Enum abstract! @@ -630,58 +692,15 @@ module Orb AMOUNT = :amount sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Price < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice - ) - end - class NewSubscriptionUnitPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -773,12 +792,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -791,27 +831,24 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class UnitConfig < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String} } - sig { returns(String) } attr_accessor :unit_amount sig { params(unit_amount: String).void } - def initialize(unit_amount:); end + def initialize(unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig::Shape) + sig { override.returns({unit_amount: String}) } + def to_hash end - def to_h; end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -819,12 +856,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -833,13 +870,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -847,12 +883,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -861,33 +897,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -979,12 +995,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -997,12 +1034,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class PackageConfig < Orb::BaseModel - Shape = T.type_alias { {package_amount: String, package_size: Integer} } - sig { returns(String) } attr_accessor :package_amount @@ -1010,17 +1046,15 @@ module Orb attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:); end + def initialize(package_amount:, package_size:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig::Shape) + sig { override.returns({package_amount: String, package_size: Integer}) } + def to_hash end - def to_h; end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1028,12 +1062,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1042,13 +1076,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1056,12 +1089,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1070,33 +1103,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1188,12 +1201,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :matrix - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -1206,18 +1240,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias do - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } - end - sig { returns(String) } attr_accessor :default_unit_amount @@ -1236,16 +1263,22 @@ module Orb matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] ).void end - def initialize(default_unit_amount:, dimensions:, matrix_values:); end + def initialize(default_unit_amount:, dimensions:, matrix_values:) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::Shape) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + } + ) + end + def to_hash end - def to_h; end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -1253,18 +1286,16 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1272,12 +1303,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1286,13 +1317,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1300,12 +1330,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1314,33 +1344,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1432,12 +1442,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -1450,14 +1481,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) end @@ -1468,16 +1496,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)} } - sig { returns(Float) } attr_accessor :first_unit @@ -1488,18 +1516,18 @@ module Orb attr_accessor :last_unit sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil); end + def initialize(first_unit:, unit_amount:, last_unit: nil) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier::Shape) + override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1507,12 +1535,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1521,13 +1549,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1535,12 +1562,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1549,33 +1576,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1667,12 +1674,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -1685,14 +1713,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) end @@ -1703,23 +1728,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - end - sig { returns(Float) } attr_accessor :bps @@ -1740,18 +1758,25 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1759,12 +1784,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1773,13 +1798,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1787,12 +1811,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1801,33 +1825,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) end @@ -1919,16 +1923,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Shape) + override.returns( + { + bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BpsConfig < Orb::BaseModel - Shape = T.type_alias { {bps: Float, per_unit_maximum: T.nilable(String)} } - sig { returns(Float) } attr_accessor :bps @@ -1936,12 +1962,12 @@ module Orb attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil); end + def initialize(bps:, per_unit_maximum: nil) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig::Shape) + sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } + def to_hash end - def to_h; end end class Cadence < Orb::Enum @@ -1955,12 +1981,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1968,12 +1993,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1982,13 +2007,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1996,12 +2020,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2010,36 +2034,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) end @@ -2131,18 +2132,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk_bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Shape) + override.returns( + { + bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BulkBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) end @@ -2153,18 +2174,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - {bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)} - end - sig { returns(Float) } attr_accessor :bps @@ -2181,12 +2200,20 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end @@ -2201,12 +2228,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2214,12 +2240,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2228,13 +2254,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2242,12 +2267,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2256,33 +2281,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) end @@ -2374,18 +2379,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Shape) + override.returns( + { + bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BulkConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) end @@ -2396,16 +2421,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String, maximum_units: T.nilable(Float)} } - sig { returns(String) } attr_accessor :unit_amount @@ -2413,12 +2438,12 @@ module Orb attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil); end + def initialize(unit_amount:, maximum_units: nil) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier::Shape) + sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } + def to_hash end - def to_h; end end end @@ -2433,12 +2458,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2446,12 +2470,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2460,13 +2484,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2474,12 +2497,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2488,33 +2511,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2604,12 +2607,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :threshold_total_amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -2622,12 +2646,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2635,12 +2658,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2649,13 +2672,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2663,12 +2685,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2677,33 +2699,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2793,12 +2795,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -2811,12 +2834,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2824,12 +2846,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2838,13 +2860,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2852,12 +2873,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2866,33 +2887,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2982,12 +2983,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_with_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3000,12 +3022,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3013,12 +3034,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3027,13 +3048,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3041,12 +3061,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3055,33 +3075,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3171,12 +3171,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit_with_percent - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3189,12 +3210,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3202,12 +3222,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3216,13 +3236,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3230,12 +3249,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3244,33 +3263,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3360,12 +3359,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :package_with_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3378,12 +3398,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3391,12 +3410,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3405,13 +3424,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3419,12 +3437,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3433,33 +3451,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3549,12 +3547,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3567,12 +3586,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3580,12 +3598,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3594,13 +3612,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3608,12 +3625,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3622,33 +3639,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3738,12 +3735,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3756,12 +3774,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3769,12 +3786,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3783,13 +3800,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3797,12 +3813,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3811,33 +3827,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3927,12 +3923,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :grouped_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3945,12 +3962,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3958,12 +3974,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3972,13 +3988,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3986,12 +4001,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4000,33 +4015,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -4116,12 +4111,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4134,12 +4150,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4147,12 +4162,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4161,13 +4176,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4175,12 +4189,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4189,33 +4203,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -4305,12 +4299,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Shape) + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4323,12 +4338,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4336,12 +4350,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4350,13 +4364,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4364,12 +4377,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4378,7 +4391,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end @@ -4443,13 +4457,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -4460,10 +4473,12 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig { returns(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration::Shape) } - def to_h; end + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash + end end class ExternalMarketplace < Orb::Enum @@ -4474,25 +4489,24 @@ module Orb AZURE = T.let(:azure, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class RemoveAdjustment < Orb::BaseModel - Shape = T.type_alias { {adjustment_id: String} } - sig { returns(String) } attr_accessor :adjustment_id sig { params(adjustment_id: String).void } - def initialize(adjustment_id:); end + def initialize(adjustment_id:) + end - sig { returns(Orb::Models::SubscriptionCreateParams::RemoveAdjustment::Shape) } - def to_h; end + sig { override.returns({adjustment_id: String}) } + def to_hash + end end class RemovePrice < Orb::BaseModel - Shape = T.type_alias { {external_price_id: T.nilable(String), price_id: T.nilable(String)} } - sig { returns(T.nilable(String)) } attr_accessor :external_price_id @@ -4500,21 +4514,26 @@ module Orb attr_accessor :price_id sig { params(external_price_id: T.nilable(String), price_id: T.nilable(String)).void } - def initialize(external_price_id: nil, price_id: nil); end + def initialize(external_price_id: nil, price_id: nil) + end - sig { returns(Orb::Models::SubscriptionCreateParams::RemovePrice::Shape) } - def to_h; end + sig { override.returns({external_price_id: T.nilable(String), price_id: T.nilable(String)}) } + def to_hash + end end class ReplaceAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Variants, - replaces_adjustment_id: String - } + sig do + returns( + T.any( + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum + ) + ) end - - sig { returns(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Variants) } attr_accessor :adjustment sig { returns(String) } @@ -4522,38 +4541,32 @@ module Orb sig do params( - adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum + ), replaces_adjustment_id: String ).void end - def initialize(adjustment:, replaces_adjustment_id:); end + def initialize(adjustment:, replaces_adjustment_id:) + end - sig { returns(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + adjustment: T.any( + Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum + ), + replaces_adjustment_id: String + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum - ) - end - class NewPercentageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -4586,21 +4599,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewUsageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -4633,21 +4645,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewAmountDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -4680,22 +4691,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewMinimum < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -4733,21 +4742,21 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewMaximum < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -4780,9 +4789,17 @@ module Orb end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end sig do @@ -4805,24 +4822,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class ReplacePrice < Orb::BaseModel - Shape = T.type_alias do - { - replaces_price_id: String, - discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Variants), - price_id: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :replaces_price_id @@ -4841,7 +4846,15 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount - sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ) + ) + end attr_accessor :price sig { returns(T.nilable(String)) } @@ -4855,7 +4868,11 @@ module Orb fixed_price_quantity: T.nilable(Float), maximum_amount: T.nilable(String), minimum_amount: T.nilable(String), - price: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Variants), + price: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), price_id: T.nilable(String) ).void end @@ -4868,21 +4885,48 @@ module Orb minimum_amount: nil, price: nil, price_id: nil - ); end - - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Shape) } - def to_h; end + ) + end - class Discount < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - discount_type: Symbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) + replaces_price_id: String, + discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), + price_id: T.nilable(String) } - end + ) + end + def to_hash + end + class Discount < Orb::BaseModel sig { returns(Symbol) } attr_accessor :discount_type @@ -4906,8 +4950,18 @@ module Orb def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end - sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::Shape) } - def to_h; end + sig do + override.returns( + { + discount_type: Symbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) + end + def to_hash + end class DiscountType < Orb::Enum abstract! @@ -4917,58 +4971,15 @@ module Orb AMOUNT = :amount sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Price < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice - ) - end - class NewSubscriptionUnitPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5060,12 +5071,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5078,27 +5110,24 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class UnitConfig < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String} } - sig { returns(String) } attr_accessor :unit_amount sig { params(unit_amount: String).void } - def initialize(unit_amount:); end + def initialize(unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig::Shape) + sig { override.returns({unit_amount: String}) } + def to_hash end - def to_h; end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5106,12 +5135,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5120,13 +5149,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5134,12 +5162,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5148,33 +5176,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5266,12 +5274,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5284,12 +5313,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class PackageConfig < Orb::BaseModel - Shape = T.type_alias { {package_amount: String, package_size: Integer} } - sig { returns(String) } attr_accessor :package_amount @@ -5297,17 +5325,15 @@ module Orb attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:); end + def initialize(package_amount:, package_size:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig::Shape) + sig { override.returns({package_amount: String, package_size: Integer}) } + def to_hash end - def to_h; end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5315,12 +5341,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5329,13 +5355,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5343,12 +5368,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5357,33 +5382,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5475,12 +5480,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :matrix - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5493,18 +5519,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias do - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } - end - sig { returns(String) } attr_accessor :default_unit_amount @@ -5523,16 +5542,22 @@ module Orb matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] ).void end - def initialize(default_unit_amount:, dimensions:, matrix_values:); end + def initialize(default_unit_amount:, dimensions:, matrix_values:) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::Shape) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + } + ) + end + def to_hash end - def to_h; end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -5540,18 +5565,16 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5559,12 +5582,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5573,13 +5596,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5587,12 +5609,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5601,33 +5623,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5719,12 +5721,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5737,14 +5760,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) end @@ -5755,16 +5775,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)} } - sig { returns(Float) } attr_accessor :first_unit @@ -5775,18 +5795,18 @@ module Orb attr_accessor :last_unit sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil); end + def initialize(first_unit:, unit_amount:, last_unit: nil) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier::Shape) + override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5794,12 +5814,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5808,13 +5828,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5822,12 +5841,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5836,33 +5855,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5954,12 +5953,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5972,14 +5992,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) end @@ -5990,23 +6007,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - end - sig { returns(Float) } attr_accessor :bps @@ -6027,18 +6037,25 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6046,12 +6063,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6060,13 +6077,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6074,12 +6090,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6088,33 +6104,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) end @@ -6206,16 +6202,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Shape) + override.returns( + { + bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BpsConfig < Orb::BaseModel - Shape = T.type_alias { {bps: Float, per_unit_maximum: T.nilable(String)} } - sig { returns(Float) } attr_accessor :bps @@ -6223,12 +6241,12 @@ module Orb attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil); end + def initialize(bps:, per_unit_maximum: nil) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig::Shape) + sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } + def to_hash end - def to_h; end end class Cadence < Orb::Enum @@ -6242,12 +6260,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6255,12 +6272,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6269,13 +6286,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6283,12 +6299,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6297,36 +6313,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) end @@ -6418,18 +6411,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk_bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Shape) + override.returns( + { + bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BulkBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) end @@ -6440,18 +6453,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - {bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)} - end - sig { returns(Float) } attr_accessor :bps @@ -6468,12 +6479,20 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end @@ -6488,12 +6507,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6501,12 +6519,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6515,13 +6533,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6529,12 +6546,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6543,36 +6560,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) end @@ -6664,18 +6658,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Shape) + override.returns( + { + bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BulkConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) end @@ -6686,16 +6700,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String, maximum_units: T.nilable(Float)} } - sig { returns(String) } attr_accessor :unit_amount @@ -6703,12 +6717,12 @@ module Orb attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil); end + def initialize(unit_amount:, maximum_units: nil) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier::Shape) + sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } + def to_hash end - def to_h; end end end @@ -6723,12 +6737,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6736,12 +6749,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6750,13 +6763,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6764,12 +6776,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6778,33 +6790,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -6894,12 +6886,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :threshold_total_amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -6912,12 +6925,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6925,12 +6937,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6939,13 +6951,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6953,12 +6964,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6967,33 +6978,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -7083,12 +7074,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -7101,12 +7113,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7114,12 +7125,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7128,61 +7139,40 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration sig { returns(Symbol) } attr_accessor :duration_unit - - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end - - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::Shape) - end - def to_h; end - - class DurationUnit < Orb::Enum - abstract! - - DAY = :day - MONTH = :month - - sig { override.returns(T::Array[Symbol]) } - def self.values; end - end - end - end - - class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } + + sig { params(duration: Integer, duration_unit: Symbol).void } + def initialize(duration:, duration_unit:) + end + + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end + + class DurationUnit < Orb::Enum + abstract! + + DAY = :day + MONTH = :month + + sig { override.returns(T::Array[Symbol]) } + def self.values + end + end end + end + class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel sig { returns(Symbol) } attr_accessor :cadence @@ -7272,12 +7262,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_with_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -7290,12 +7301,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7303,12 +7313,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7317,13 +7327,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7331,12 +7340,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7345,33 +7354,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -7461,12 +7450,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit_with_percent - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -7479,12 +7489,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7492,12 +7501,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7506,13 +7515,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7520,12 +7528,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7534,33 +7542,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -7650,12 +7638,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :package_with_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -7668,12 +7677,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7681,12 +7689,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7695,13 +7703,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7709,12 +7716,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7723,33 +7730,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -7839,12 +7826,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -7857,12 +7865,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7870,12 +7877,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7884,13 +7891,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7898,12 +7904,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7912,33 +7918,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -8028,12 +8014,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -8046,12 +8053,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8059,12 +8065,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8073,13 +8079,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8087,12 +8092,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8101,33 +8106,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -8217,12 +8202,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :grouped_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -8235,12 +8241,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8248,12 +8253,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8262,13 +8267,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8276,12 +8280,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8290,33 +8294,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -8406,12 +8390,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -8424,12 +8429,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8437,12 +8441,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8451,13 +8455,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8465,12 +8468,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8479,33 +8482,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -8595,12 +8578,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Shape) + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -8613,12 +8617,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8626,12 +8629,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8640,13 +8643,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8654,12 +8656,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8668,7 +8670,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end @@ -8748,7 +8751,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/subscription_create_response.rbi b/rbi/lib/orb/models/subscription_create_response.rbi index 9d2266a8..5744c4b6 100644 --- a/rbi/lib/orb/models/subscription_create_response.rbi +++ b/rbi/lib/orb/models/subscription_create_response.rbi @@ -3,36 +3,6 @@ module Orb module Models class SubscriptionCreateResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -66,7 +36,15 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :default_invoice_memo - sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval + )] + ) + end attr_accessor :discount_intervals sig { returns(T.nilable(Time)) } @@ -121,7 +99,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -163,26 +143,56 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::SubscriptionCreateResponse::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id - sig { returns(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Variants) } + sig do + returns( + T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) + end attr_accessor :adjustment sig { returns(T::Array[String]) } @@ -197,43 +207,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -274,27 +278,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -335,27 +339,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -396,28 +400,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -463,27 +466,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -524,12 +528,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -558,13 +574,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -575,35 +590,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig { returns(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration::Shape) } - def to_h; end + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash + end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -639,26 +637,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval::Shape) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -694,26 +692,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -749,12 +747,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end sig do @@ -769,14 +778,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -790,23 +796,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end - sig { returns(Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule::Shape) } - def to_h; end + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash + end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -840,21 +840,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionCreateResponse::MaximumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -888,24 +889,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionCreateResponse::MinimumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -926,7 +925,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -940,7 +971,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -953,14 +1012,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end - sig { returns(Orb::Models::SubscriptionCreateResponse::PriceInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash + end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -971,18 +1071,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash end - def to_h; end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -993,10 +1091,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon::Shape) } - def to_h; end + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash + end end class Status < Orb::Enum @@ -1007,20 +1107,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::SubscriptionCreateResponse::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi index 2cd87160..380bd0f7 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi @@ -6,18 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - currency: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :currency @@ -36,7 +24,7 @@ module Orb timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -48,8 +36,19 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionFetchCostsParams::Shape) } - def to_h; end + sig do + override.returns( + { + currency: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class ViewMode < Orb::Enum abstract! @@ -58,7 +57,8 @@ module Orb CUMULATIVE = T.let(:cumulative, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/subscription_fetch_costs_response.rbi b/rbi/lib/orb/models/subscription_fetch_costs_response.rbi index 064c26a7..217f7776 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_response.rbi @@ -3,28 +3,18 @@ module Orb module Models class SubscriptionFetchCostsResponse < Orb::BaseModel - Shape = T.type_alias { {data: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]} } - sig { returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) } attr_accessor :data sig { params(data: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]).void } - def initialize(data:); end + def initialize(data:) + end - sig { returns(Orb::Models::SubscriptionFetchCostsResponse::Shape) } - def to_h; end + sig { override.returns({data: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]}) } + def to_hash + end class Data < Orb::BaseModel - Shape = T.type_alias do - { - per_price_costs: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - } - end - sig { returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) } attr_accessor :per_price_costs @@ -49,17 +39,53 @@ module Orb total: String ).void end - def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:); end + def initialize(per_price_costs:, subtotal:, timeframe_end:, timeframe_start:, total:) + end - sig { returns(Orb::Models::SubscriptionFetchCostsResponse::Data::Shape) } - def to_h; end + sig do + override.returns( + { + per_price_costs: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], subtotal: String, timeframe_end: Time, timeframe_start: Time, total: String + } + ) + end + def to_hash + end class PerPriceCost < Orb::BaseModel - Shape = T.type_alias do - {price: Orb::Models::Price::Variants, subtotal: String, total: String, quantity: T.nilable(Float)} + sig do + returns( + T.any( + 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 + ) + ) end - - sig { returns(Orb::Models::Price::Variants) } attr_accessor :price sig { returns(String) } @@ -73,16 +99,83 @@ module Orb sig do params( - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), subtotal: String, total: String, quantity: T.nilable(Float) ).void end - def initialize(price:, subtotal:, total:, quantity: nil); end + def initialize(price:, subtotal:, total:, quantity: nil) + end - sig { returns(Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost::Shape) } - def to_h; end + sig do + override.returns( + { + price: T.any( + 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 + ), + subtotal: String, + total: String, + quantity: T.nilable(Float) + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_fetch_params.rbi b/rbi/lib/orb/models/subscription_fetch_params.rbi index 104d7ff1..8d72e847 100644 --- a/rbi/lib/orb/models/subscription_fetch_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::SubscriptionFetchParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi index 8201ae68..2ea92b82 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi @@ -6,20 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - cursor: T.nilable(String), - limit: Integer, - start_date_gt: T.nilable(Time), - start_date_gte: T.nilable(Time), - start_date_lt: T.nilable(Time), - start_date_lte: T.nilable(Time) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :cursor @@ -49,7 +35,7 @@ module Orb start_date_gte: T.nilable(Time), start_date_lt: T.nilable(Time), start_date_lte: T.nilable(Time), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -60,10 +46,24 @@ module Orb start_date_lt: nil, start_date_lte: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::SubscriptionFetchScheduleParams::Shape) } - def to_h; end + sig do + override.returns( + { + cursor: T.nilable(String), + limit: Integer, + start_date_gt: T.nilable(Time), + start_date_gte: T.nilable(Time), + start_date_lt: T.nilable(Time), + start_date_lte: T.nilable(Time), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi index 2aad14c2..3f6f2228 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi @@ -3,15 +3,6 @@ module Orb module Models class SubscriptionFetchScheduleResponse < Orb::BaseModel - Shape = T.type_alias do - { - created_at: Time, - end_date: T.nilable(Time), - plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, - start_date: Time - } - end - sig { returns(Time) } attr_accessor :created_at @@ -32,16 +23,23 @@ module Orb start_date: Time ).void end - def initialize(created_at:, end_date:, plan:, start_date:); end + def initialize(created_at:, end_date:, plan:, start_date:) + end - sig { returns(Orb::Models::SubscriptionFetchScheduleResponse::Shape) } - def to_h; end + sig do + override.returns( + { + created_at: Time, + end_date: T.nilable(Time), + plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, + start_date: Time + } + ) + end + def to_hash + end class Plan < Orb::BaseModel - Shape = T.type_alias do - {id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)} - end - sig { returns(T.nilable(String)) } attr_accessor :id @@ -54,10 +52,20 @@ module Orb sig do params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)).void end - def initialize(id:, external_plan_id:, name:); end + def initialize(id:, external_plan_id:, name:) + end - sig { returns(Orb::Models::SubscriptionFetchScheduleResponse::Plan::Shape) } - def to_h; end + sig do + override.returns( + { + id: T.nilable(String), + external_plan_id: T.nilable(String), + name: T.nilable(String) + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi index c60b7952..f82cc3ca 100644 --- a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi @@ -6,24 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - billable_metric_id: T.nilable(String), - first_dimension_key: T.nilable(String), - first_dimension_value: T.nilable(String), - granularity: T.nilable(Symbol), - group_by: T.nilable(String), - second_dimension_key: T.nilable(String), - second_dimension_value: T.nilable(String), - timeframe_end: T.nilable(Time), - timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(String)) } attr_accessor :billable_metric_id @@ -66,7 +48,7 @@ module Orb timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -81,10 +63,28 @@ module Orb timeframe_start: nil, view_mode: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::SubscriptionFetchUsageParams::Shape) } - def to_h; end + sig do + override.returns( + { + billable_metric_id: T.nilable(String), + first_dimension_key: T.nilable(String), + first_dimension_value: T.nilable(String), + granularity: T.nilable(Symbol), + group_by: T.nilable(String), + second_dimension_key: T.nilable(String), + second_dimension_value: T.nilable(String), + timeframe_end: T.nilable(Time), + timeframe_start: T.nilable(Time), + view_mode: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class Granularity < Orb::Enum abstract! @@ -92,7 +92,8 @@ module Orb DAY = T.let(:day, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class ViewMode < Orb::Enum @@ -102,7 +103,8 @@ module Orb CUMULATIVE = T.let(:cumulative, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/subscription_list_params.rbi b/rbi/lib/orb/models/subscription_list_params.rbi index d4677eb1..b79d08bb 100644 --- a/rbi/lib/orb/models/subscription_list_params.rbi +++ b/rbi/lib/orb/models/subscription_list_params.rbi @@ -6,23 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - created_at_gt: T.nilable(Time), - created_at_gte: T.nilable(Time), - created_at_lt: T.nilable(Time), - created_at_lte: T.nilable(Time), - cursor: T.nilable(String), - customer_id: T.nilable(T::Array[String]), - external_customer_id: T.nilable(String), - limit: Integer, - status: T.nilable(Symbol) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(Time)) } attr_accessor :created_at_gt @@ -64,7 +47,7 @@ module Orb external_customer_id: T.nilable(String), limit: Integer, status: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -78,10 +61,27 @@ module Orb limit: nil, status: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::SubscriptionListParams::Shape) } - def to_h; end + sig do + override.returns( + { + created_at_gt: T.nilable(Time), + created_at_gte: T.nilable(Time), + created_at_lt: T.nilable(Time), + created_at_lte: T.nilable(Time), + cursor: T.nilable(String), + customer_id: T.nilable(T::Array[String]), + external_customer_id: T.nilable(String), + limit: Integer, + status: T.nilable(Symbol), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class Status < Orb::Enum abstract! @@ -91,7 +91,8 @@ module Orb UPCOMING = T.let(:upcoming, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/subscription_price_intervals_params.rbi b/rbi/lib/orb/models/subscription_price_intervals_params.rbi index ae7e693e..266bbac6 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_params.rbi @@ -6,18 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - add: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], - edit: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add])) } attr_reader :add @@ -52,43 +40,45 @@ module Orb add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], edit: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], edit_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize(add: nil, add_adjustments: nil, edit: nil, edit_adjustments: nil, request_options: {}) end - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Shape) } - def to_h; end - - class Add < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - start_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::StartDate::Variants, - allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Variants]), - end_date: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::EndDate::Variants), - external_price_id: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]), - maximum_amount: T.nilable(Float), - minimum_amount: T.nilable(Float), - price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Variants), - price_id: T.nilable(String) + add: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], + add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + edit: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], + edit_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], + request_options: Orb::RequestOptions } - end + ) + end + def to_hash + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::StartDate::Variants) } + class Add < Orb::BaseModel + sig { returns(T.any(Time, Symbol)) } attr_accessor :start_date sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)) } attr_accessor :allocation_price sig do - returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Variants])) + returns( + T.nilable( + T::Array[T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams + )] + ) + ) end attr_accessor :discounts - sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::EndDate::Variants)) } + sig { returns(T.nilable(T.any(Time, Symbol))) } attr_accessor :end_date sig { returns(T.nilable(String)) } @@ -105,7 +95,41 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :minimum_amount - sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Variants)) } + sig do + returns( + T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice + ) + ) + ) + end attr_accessor :price sig { returns(T.nilable(String)) } @@ -113,15 +137,23 @@ module Orb sig do params( - start_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::StartDate::Variants, + start_date: T.any(Time, Symbol), allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::Variants]), - end_date: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::EndDate::Variants), + discounts: T.nilable( + T::Array[T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams + )] + ), + end_date: T.nilable(T.any(Time, Symbol)), external_price_id: T.nilable(String), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]), maximum_amount: T.nilable(Float), minimum_amount: T.nilable(Float), - price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Variants), + price: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice + ) + ), price_id: T.nilable(String) ).void end @@ -136,25 +168,71 @@ module Orb minimum_amount: nil, price: nil, price_id: nil - ); end + ) + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Shape) } - def to_h; end + sig do + override.returns( + { + start_date: T.any(Time, Symbol), + allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), + discounts: T.nilable( + T::Array[T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams + )] + ), + end_date: T.nilable(T.any(Time, Symbol)), + external_price_id: T.nilable(String), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]), + maximum_amount: T.nilable(Float), + minimum_amount: T.nilable(Float), + price: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice + ) + ), + price_id: T.nilable(String) + } + ) + end + def to_hash + end class StartDate < Orb::Union abstract! - Variants = T.type_alias { T.any(Time, Symbol) } - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end end class AllocationPrice < Orb::BaseModel - Shape = T.type_alias do - {amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean} - end - sig { returns(String) } attr_accessor :amount @@ -175,10 +253,21 @@ module Orb expires_at_end_of_cadence: T::Boolean ).void end - def initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:); end + def initialize(amount:, cadence:, currency:, expires_at_end_of_cadence:) + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Shape) } - def to_h; end + sig do + override.returns( + { + amount: String, + cadence: Symbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) + end + def to_hash + end class Cadence < Orb::Enum abstract! @@ -191,24 +280,15 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Discount < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - ) - end - class AmountDiscountCreationParams < Orb::BaseModel - Shape = T.type_alias { {amount_discount: Float, discount_type: Symbol} } - sig { returns(Float) } attr_accessor :amount_discount @@ -216,17 +296,15 @@ module Orb attr_accessor :discount_type sig { params(amount_discount: Float, discount_type: Symbol).void } - def initialize(amount_discount:, discount_type: :amount); end + def initialize(amount_discount:, discount_type: :amount) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams::Shape) + sig { override.returns({amount_discount: Float, discount_type: Symbol}) } + def to_hash end - def to_h; end end class PercentageDiscountCreationParams < Orb::BaseModel - Shape = T.type_alias { {discount_type: Symbol, percentage_discount: Float} } - sig { returns(Symbol) } attr_accessor :discount_type @@ -234,17 +312,15 @@ module Orb attr_accessor :percentage_discount sig { params(percentage_discount: Float, discount_type: Symbol).void } - def initialize(percentage_discount:, discount_type: :percentage); end + def initialize(percentage_discount:, discount_type: :percentage) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams::Shape) + sig { override.returns({discount_type: Symbol, percentage_discount: Float}) } + def to_hash end - def to_h; end end class UsageDiscountCreationParams < Orb::BaseModel - Shape = T.type_alias { {discount_type: Symbol, usage_discount: Float} } - sig { returns(Symbol) } attr_accessor :discount_type @@ -252,12 +328,12 @@ module Orb attr_accessor :usage_discount sig { params(usage_discount: Float, discount_type: Symbol).void } - def initialize(usage_discount:, discount_type: :usage); end + def initialize(usage_discount:, discount_type: :usage) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams::Shape) + sig { override.returns({discount_type: Symbol, usage_discount: Float}) } + def to_hash end - def to_h; end end sig do @@ -278,21 +354,19 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class EndDate < Orb::Union abstract! - Variants = T.type_alias { T.any(Time, Symbol) } - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -300,70 +374,18 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, quantity: Integer).void } - def initialize(effective_date:, quantity:); end + def initialize(effective_date:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, quantity: Integer}) } + def to_hash end - def to_h; end end class Price < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice - ) - end - class NewFloatingUnitPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -450,12 +472,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -468,27 +510,24 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class UnitConfig < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String} } - sig { returns(String) } attr_accessor :unit_amount sig { params(unit_amount: String).void } - def initialize(unit_amount:); end + def initialize(unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig::Shape) + sig { override.returns({unit_amount: String}) } + def to_hash end - def to_h; end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -496,12 +535,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -510,13 +549,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -524,12 +562,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -538,32 +576,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -650,12 +669,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -668,12 +707,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class PackageConfig < Orb::BaseModel - Shape = T.type_alias { {package_amount: String, package_size: Integer} } - sig { returns(String) } attr_accessor :package_amount @@ -681,17 +719,15 @@ module Orb attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:); end + def initialize(package_amount:, package_size:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig::Shape) + sig { override.returns({package_amount: String, package_size: Integer}) } + def to_hash end - def to_h; end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -699,12 +735,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -713,13 +749,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -727,12 +762,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -741,32 +776,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingMatrixPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -853,12 +869,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :matrix - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -871,18 +907,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias do - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] - } - end - sig { returns(String) } attr_accessor :default_unit_amount @@ -901,16 +930,22 @@ module Orb matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] ).void end - def initialize(default_unit_amount:, dimensions:, matrix_values:); end + def initialize(default_unit_amount:, dimensions:, matrix_values:) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::Shape) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] + } + ) + end + def to_hash end - def to_h; end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -918,18 +953,16 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -937,12 +970,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -951,13 +984,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -965,12 +997,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -979,32 +1011,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingMatrixWithAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1091,12 +1104,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :matrix_with_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -1109,19 +1142,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class MatrixWithAllocationConfig < Orb::BaseModel - Shape = T.type_alias do - { - allocation: Float, - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - } - end - sig { returns(Float) } attr_accessor :allocation @@ -1144,16 +1169,23 @@ module Orb matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] ).void end - def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:); end + def initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::Shape) + override.returns( + { + allocation: Float, + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + } + ) + end + def to_hash end - def to_h; end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -1161,18 +1193,16 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1180,12 +1210,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1194,13 +1224,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1208,12 +1237,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1222,32 +1251,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingTieredPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1334,12 +1344,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -1352,14 +1382,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier]) end @@ -1370,16 +1397,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)} } - sig { returns(Float) } attr_accessor :first_unit @@ -1390,18 +1417,18 @@ module Orb attr_accessor :last_unit sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil); end + def initialize(first_unit:, unit_amount:, last_unit: nil) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier::Shape) + override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1409,12 +1436,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1423,13 +1450,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1437,12 +1463,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1451,32 +1477,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingTieredBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1563,12 +1570,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -1581,14 +1608,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier]) end @@ -1599,23 +1623,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - end - sig { returns(Float) } attr_accessor :bps @@ -1636,18 +1653,25 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1655,12 +1679,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1669,13 +1693,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1683,12 +1706,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1697,32 +1720,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig do returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) end @@ -1809,16 +1813,37 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Shape) + override.returns( + { + bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ) + } + ) + end + def to_hash end - def to_h; end class BpsConfig < Orb::BaseModel - Shape = T.type_alias { {bps: Float, per_unit_maximum: T.nilable(String)} } - sig { returns(Float) } attr_accessor :bps @@ -1826,12 +1851,12 @@ module Orb attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil); end + def initialize(bps:, per_unit_maximum: nil) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig::Shape) + sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } + def to_hash end - def to_h; end end class Cadence < Orb::Enum @@ -1845,12 +1870,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1858,12 +1882,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1872,13 +1896,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1886,12 +1909,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1900,35 +1923,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingBulkBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ) - } - end - sig do returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig) end @@ -2015,18 +2016,37 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk_bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Shape) + override.returns( + { + bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ) + } + ) + end + def to_hash end - def to_h; end class BulkBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier]) end @@ -2037,18 +2057,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - {bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)} - end - sig { returns(Float) } attr_accessor :bps @@ -2065,12 +2083,20 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end @@ -2085,12 +2111,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2098,12 +2123,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2112,13 +2137,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2126,12 +2150,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2140,32 +2164,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingBulkPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig do returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) end @@ -2252,18 +2257,37 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Shape) + override.returns( + { + bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ) + } + ) + end + def to_hash end - def to_h; end class BulkConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier]) end @@ -2274,16 +2298,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String, maximum_units: T.nilable(Float)} } - sig { returns(String) } attr_accessor :unit_amount @@ -2291,12 +2315,12 @@ module Orb attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil); end + def initialize(unit_amount:, maximum_units: nil) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier::Shape) + sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } + def to_hash end - def to_h; end end end @@ -2311,12 +2335,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2324,12 +2347,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2338,13 +2361,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2352,12 +2374,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2366,32 +2388,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingThresholdTotalAmountPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2476,12 +2479,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :threshold_total_amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -2494,12 +2517,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2507,12 +2529,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2521,13 +2543,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2535,12 +2556,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2549,32 +2570,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2659,12 +2661,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -2677,12 +2699,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2690,12 +2711,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2704,13 +2725,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2718,12 +2738,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2732,32 +2752,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingGroupedTieredPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - grouped_tiered_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2842,12 +2843,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_tiered - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + grouped_tiered_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -2860,12 +2881,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2873,12 +2893,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2887,13 +2907,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2901,12 +2920,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2915,32 +2934,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingMaxGroupTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3025,12 +3025,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :max_group_tiered_package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + max_group_tiered_package_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3043,12 +3063,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3056,12 +3075,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3070,13 +3089,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3084,12 +3102,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3098,32 +3116,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingTieredWithMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3208,12 +3207,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_with_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3226,12 +3245,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3239,12 +3257,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3253,13 +3271,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3267,12 +3284,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3281,32 +3298,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingPackageWithAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3391,12 +3389,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :package_with_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3409,12 +3427,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3422,12 +3439,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3436,13 +3453,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3450,12 +3466,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3464,32 +3480,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingTieredPackageWithMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_with_minimum_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3574,12 +3571,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_package_with_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_with_minimum_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3592,12 +3609,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3605,12 +3621,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3619,13 +3635,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3633,12 +3648,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3647,32 +3662,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingUnitWithPercentPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3757,12 +3753,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit_with_percent - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3775,12 +3791,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3788,12 +3803,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3802,13 +3817,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3816,12 +3830,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3830,32 +3844,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingTieredWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3940,12 +3935,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :tiered_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3958,12 +3973,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3971,12 +3985,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3985,13 +3999,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3999,12 +4012,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4013,32 +4026,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingUnitWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -4123,12 +4117,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :unit_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4141,12 +4155,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4154,12 +4167,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4168,13 +4181,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4182,12 +4194,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4196,32 +4208,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingGroupedAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -4306,12 +4299,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4324,12 +4337,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4337,12 +4349,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4351,13 +4363,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4365,12 +4376,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4379,32 +4390,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingGroupedWithProratedMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -4489,12 +4481,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4507,12 +4519,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4520,12 +4531,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4534,13 +4545,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4548,12 +4558,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4562,32 +4572,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingGroupedWithMeteredMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -4672,12 +4663,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_metered_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4690,12 +4701,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4703,12 +4713,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4717,13 +4727,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4731,46 +4740,27 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end - - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::Shape) + def initialize(duration:, duration_unit:) end - def to_h; end - - class DurationUnit < Orb::Enum - abstract! - - DAY = :day - MONTH = :month - sig { override.returns(T::Array[Symbol]) } - def self.values; end + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - end - end - class NewFloatingMatrixWithDisplayNamePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } + class DurationUnit < Orb::Enum + abstract! + + DAY = :day + MONTH = :month + + sig { override.returns(T::Array[Symbol]) } + def self.values + end + end end + end + class NewFloatingMatrixWithDisplayNamePrice < Orb::BaseModel sig { returns(Symbol) } attr_accessor :cadence @@ -4855,12 +4845,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :matrix_with_display_name - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4873,12 +4883,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4886,12 +4895,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4900,13 +4909,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4914,12 +4922,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4928,32 +4936,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingBulkWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -5038,12 +5027,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :bulk_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Shape) + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5056,12 +5065,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5069,12 +5077,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5083,13 +5091,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5097,12 +5104,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5111,32 +5118,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingGroupedTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5221,12 +5209,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_tiered_package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + grouped_tiered_package_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5239,12 +5247,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5252,12 +5259,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5266,13 +5273,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5280,12 +5286,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5294,32 +5300,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - scalable_matrix_with_unit_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5404,12 +5391,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :scalable_matrix_with_unit_pricing - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + scalable_matrix_with_unit_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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5422,12 +5429,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5435,12 +5441,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5449,13 +5455,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5463,12 +5468,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5477,32 +5482,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - currency: String, - item_id: String, - model_type: Symbol, - name: String, - 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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5587,12 +5573,32 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, model_type: :scalable_matrix_with_tiered_pricing - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Shape) + override.returns( + { + cadence: Symbol, + currency: String, + item_id: String, + model_type: Symbol, + name: String, + 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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::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::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5605,12 +5611,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5618,12 +5623,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5632,13 +5637,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5646,12 +5650,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5660,7 +5664,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end @@ -5761,65 +5766,57 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class AddAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Variants, - start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate::Variants, - end_date: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::EndDate::Variants) - } + sig do + returns( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum + ) + ) end - - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Variants) } attr_accessor :adjustment - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate::Variants) } + sig { returns(T.any(Time, Symbol)) } attr_accessor :start_date - sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::EndDate::Variants)) - end + sig { returns(T.nilable(T.any(Time, Symbol))) } attr_accessor :end_date sig do params( - adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Variants, - start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate::Variants, - end_date: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::EndDate::Variants) + adjustment: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum + ), + start_date: T.any(Time, Symbol), + end_date: T.nilable(T.any(Time, Symbol)) ).void end - def initialize(adjustment:, start_date:, end_date: nil); end + def initialize(adjustment:, start_date:, end_date: nil) + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + adjustment: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum + ), + start_date: T.any(Time, Symbol), + end_date: T.nilable(T.any(Time, Symbol)) + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum - ) - end - class NewPercentageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -5852,21 +5849,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewUsageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -5899,21 +5895,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewAmountDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -5946,22 +5941,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewMinimum < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -5999,21 +5992,21 @@ module Orb end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewMaximum < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -6046,9 +6039,17 @@ module Orb end sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end sig do @@ -6074,46 +6075,35 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class StartDate < Orb::Union abstract! - Variants = T.type_alias { T.any(Time, Symbol) } - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end end class EndDate < Orb::Union abstract! - Variants = T.type_alias { T.any(Time, Symbol) } - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end end end class Edit < Orb::BaseModel - Shape = T.type_alias do - { - price_interval_id: String, - billing_cycle_day: T.nilable(Integer), - end_date: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Edit::EndDate::Variants), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]), - start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::StartDate::Variants - } - end - sig { returns(String) } attr_accessor :price_interval_id sig { returns(T.nilable(Integer)) } attr_accessor :billing_cycle_day - sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Edit::EndDate::Variants)) } + sig { returns(T.nilable(T.any(Time, Symbol))) } attr_accessor :end_date sig do @@ -6121,21 +6111,19 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Edit::StartDate::Variants)) } + sig { returns(T.nilable(T.any(Time, Symbol))) } attr_reader :start_date - sig do - params(start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::StartDate::Variants).void - end + sig { params(start_date: T.any(Time, Symbol)).void } attr_writer :start_date sig do params( price_interval_id: String, billing_cycle_day: T.nilable(Integer), - end_date: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Edit::EndDate::Variants), + end_date: T.nilable(T.any(Time, Symbol)), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]), - start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::StartDate::Variants + start_date: T.any(Time, Symbol) ).void end def initialize( @@ -6144,23 +6132,32 @@ module Orb end_date: nil, fixed_fee_quantity_transitions: nil, start_date: nil - ); end + ) + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Edit::Shape) } - def to_h; end + sig do + override.returns( + { + price_interval_id: String, + billing_cycle_day: T.nilable(Integer), + end_date: T.nilable(T.any(Time, Symbol)), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]), + start_date: T.any(Time, Symbol) + } + ) + end + def to_hash + end class EndDate < Orb::Union abstract! - Variants = T.type_alias { T.any(Time, Symbol) } - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -6168,79 +6165,72 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, quantity: Integer).void } - def initialize(effective_date:, quantity:); end + def initialize(effective_date:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, quantity: Integer}) } + def to_hash end - def to_h; end end class StartDate < Orb::Union abstract! - Variants = T.type_alias { T.any(Time, Symbol) } - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end end end class EditAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_interval_id: String, - end_date: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::EndDate::Variants), - start_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate::Variants - } - end - sig { returns(String) } attr_accessor :adjustment_interval_id - sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::EndDate::Variants)) - end + sig { returns(T.nilable(T.any(Time, Symbol))) } attr_accessor :end_date - sig do - returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate::Variants)) - end + sig { returns(T.nilable(T.any(Time, Symbol))) } attr_reader :start_date - sig do - params(start_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate::Variants).void - end + sig { params(start_date: T.any(Time, Symbol)).void } attr_writer :start_date sig do params( adjustment_interval_id: String, - end_date: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::EndDate::Variants), - start_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate::Variants + end_date: T.nilable(T.any(Time, Symbol)), + start_date: T.any(Time, Symbol) ).void end - def initialize(adjustment_interval_id:, end_date: nil, start_date: nil); end + def initialize(adjustment_interval_id:, end_date: nil, start_date: nil) + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + adjustment_interval_id: String, + end_date: T.nilable(T.any(Time, Symbol)), + start_date: T.any(Time, Symbol) + } + ) + end + def to_hash + end class EndDate < Orb::Union abstract! - Variants = T.type_alias { T.any(Time, Symbol) } - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end end class StartDate < Orb::Union abstract! - Variants = T.type_alias { T.any(Time, Symbol) } - sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/subscription_price_intervals_response.rbi b/rbi/lib/orb/models/subscription_price_intervals_response.rbi index e141a7fb..e6a90be3 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_response.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_response.rbi @@ -3,36 +3,6 @@ module Orb module Models class SubscriptionPriceIntervalsResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -66,7 +36,13 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :default_invoice_memo - sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval + )] + ) + end attr_accessor :discount_intervals sig { returns(T.nilable(Time)) } @@ -121,7 +97,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -163,27 +141,55 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Variants) + returns( + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) end attr_accessor :adjustment @@ -199,39 +205,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -272,27 +276,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -333,27 +337,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -394,28 +398,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -461,27 +464,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -522,12 +526,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -556,13 +572,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -573,37 +588,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration::Shape) + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash end - def to_h; end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -639,26 +635,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval::Shape) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -694,26 +690,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -749,12 +745,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end sig do @@ -775,14 +782,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -796,23 +800,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule::Shape) } - def to_h; end + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash + end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -846,21 +844,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -894,24 +893,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -932,7 +929,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -946,7 +975,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -959,14 +1016,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash + end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -977,18 +1075,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash end - def to_h; end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -999,10 +1095,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon::Shape) } - def to_h; end + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash + end end class Status < Orb::Enum @@ -1013,20 +1111,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi index 5c8b2e63..f00a8c23 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi @@ -6,39 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - change_option: Symbol, - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]), - align_billing_with_plan_change_date: T.nilable(T::Boolean), - auto_collection: T.nilable(T::Boolean), - billing_cycle_alignment: T.nilable(Symbol), - billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration), - change_date: T.nilable(Time), - coupon_redemption_code: T.nilable(String), - credits_overage_rate: T.nilable(Float), - default_invoice_memo: T.nilable(String), - external_plan_id: T.nilable(String), - filter: T.nilable(String), - initial_phase_order: T.nilable(Integer), - invoicing_threshold: T.nilable(String), - net_terms: T.nilable(Integer), - per_credit_overage_amount: T.nilable(Float), - plan_id: T.nilable(String), - plan_version_number: T.nilable(Integer), - price_overrides: T.nilable(T::Array[T.anything]), - remove_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]), - remove_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]), - replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]), - replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]), - trial_duration_days: T.nilable(Integer) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(Symbol) } attr_accessor :change_option @@ -147,7 +114,7 @@ module Orb replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]), replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]), trial_duration_days: T.nilable(Integer), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -177,10 +144,43 @@ module Orb replace_prices: nil, trial_duration_days: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::Shape) } - def to_h; end + sig do + override.returns( + { + change_option: Symbol, + add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]), + add_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]), + align_billing_with_plan_change_date: T.nilable(T::Boolean), + auto_collection: T.nilable(T::Boolean), + billing_cycle_alignment: T.nilable(Symbol), + billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration), + change_date: T.nilable(Time), + coupon_redemption_code: T.nilable(String), + credits_overage_rate: T.nilable(Float), + default_invoice_memo: T.nilable(String), + external_plan_id: T.nilable(String), + filter: T.nilable(String), + initial_phase_order: T.nilable(Integer), + invoicing_threshold: T.nilable(String), + net_terms: T.nilable(Integer), + per_credit_overage_amount: T.nilable(Float), + plan_id: T.nilable(String), + plan_version_number: T.nilable(Integer), + price_overrides: T.nilable(T::Array[T.anything]), + remove_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]), + remove_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]), + replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]), + replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]), + trial_duration_days: T.nilable(Integer), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class ChangeOption < Orb::Enum abstract! @@ -190,21 +190,17 @@ module Orb IMMEDIATE = :immediate sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class AddAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Variants, - end_date: T.nilable(Time), - plan_phase_order: T.nilable(Integer), - start_date: T.nilable(Time) - } - end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Variants) + returns( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum + ) + ) end attr_accessor :adjustment @@ -219,40 +215,36 @@ module Orb sig do params( - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum + ), end_date: T.nilable(Time), plan_phase_order: T.nilable(Integer), start_date: T.nilable(Time) ).void end - def initialize(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil); end + def initialize(adjustment:, end_date: nil, plan_phase_order: nil, start_date: nil) + end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + adjustment: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum + ), + end_date: T.nilable(Time), + plan_phase_order: T.nilable(Integer), + start_date: T.nilable(Time) + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum - ) - end - class NewPercentageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -285,21 +277,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewUsageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -332,21 +323,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewAmountDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -379,22 +369,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewMinimum < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -432,21 +420,21 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewMaximum < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -479,9 +467,17 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end sig do @@ -510,25 +506,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class AddPrice < Orb::BaseModel - Shape = T.type_alias do - { - discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]), - end_date: T.nilable(Time), - external_price_id: T.nilable(String), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - plan_phase_order: T.nilable(Integer), - price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Variants), - price_id: T.nilable(String), - start_date: T.nilable(Time) - } - end - sig do returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount])) end @@ -550,7 +533,13 @@ module Orb attr_accessor :plan_phase_order sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Variants)) + returns( + T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ) + ) end attr_accessor :price @@ -568,7 +557,11 @@ module Orb maximum_amount: T.nilable(String), minimum_amount: T.nilable(String), plan_phase_order: T.nilable(Integer), - price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Variants), + price: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), price_id: T.nilable(String), start_date: T.nilable(Time) ).void @@ -583,21 +576,32 @@ module Orb price: nil, price_id: nil, start_date: nil - ); end - - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Shape) } - def to_h; end + ) + end - class Discount < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - discount_type: Symbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) + discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]), + end_date: T.nilable(Time), + external_price_id: T.nilable(String), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + plan_phase_order: T.nilable(Integer), + price: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), + price_id: T.nilable(String), + start_date: T.nilable(Time) } - end + ) + end + def to_hash + end + class Discount < Orb::BaseModel sig { returns(Symbol) } attr_accessor :discount_type @@ -621,8 +625,18 @@ module Orb def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::Shape) } - def to_h; end + sig do + override.returns( + { + discount_type: Symbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) + end + def to_hash + end class DiscountType < Orb::Enum abstract! @@ -632,58 +646,15 @@ module Orb AMOUNT = :amount sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Price < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice - ) - end - class NewSubscriptionUnitPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -775,12 +746,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -793,27 +785,24 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class UnitConfig < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String} } - sig { returns(String) } attr_accessor :unit_amount sig { params(unit_amount: String).void } - def initialize(unit_amount:); end + def initialize(unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig::Shape) + sig { override.returns({unit_amount: String}) } + def to_hash end - def to_h; end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -821,12 +810,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -835,13 +824,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -849,12 +837,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -863,33 +851,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -981,12 +949,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -999,12 +988,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class PackageConfig < Orb::BaseModel - Shape = T.type_alias { {package_amount: String, package_size: Integer} } - sig { returns(String) } attr_accessor :package_amount @@ -1012,17 +1000,15 @@ module Orb attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:); end + def initialize(package_amount:, package_size:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig::Shape) + sig { override.returns({package_amount: String, package_size: Integer}) } + def to_hash end - def to_h; end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1030,12 +1016,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1044,13 +1030,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1058,12 +1043,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1072,33 +1057,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1190,12 +1155,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :matrix - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -1208,18 +1194,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias do - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } - end - sig { returns(String) } attr_accessor :default_unit_amount @@ -1238,16 +1217,22 @@ module Orb matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] ).void end - def initialize(default_unit_amount:, dimensions:, matrix_values:); end + def initialize(default_unit_amount:, dimensions:, matrix_values:) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::Shape) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + } + ) + end + def to_hash end - def to_h; end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -1255,18 +1240,16 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1274,12 +1257,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1288,13 +1271,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1302,12 +1284,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1316,33 +1298,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1434,12 +1396,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -1452,14 +1435,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) end @@ -1470,16 +1450,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)} } - sig { returns(Float) } attr_accessor :first_unit @@ -1490,18 +1470,18 @@ module Orb attr_accessor :last_unit sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil); end + def initialize(first_unit:, unit_amount:, last_unit: nil) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier::Shape) + override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1509,12 +1489,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1523,13 +1503,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1537,12 +1516,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1551,33 +1530,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -1669,12 +1628,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -1687,14 +1667,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) end @@ -1705,23 +1682,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - end - sig { returns(Float) } attr_accessor :bps @@ -1742,18 +1712,25 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1761,12 +1738,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1775,13 +1752,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1789,12 +1765,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1803,36 +1779,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) end @@ -1924,16 +1877,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Shape) + override.returns( + { + bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BpsConfig < Orb::BaseModel - Shape = T.type_alias { {bps: Float, per_unit_maximum: T.nilable(String)} } - sig { returns(Float) } attr_accessor :bps @@ -1941,12 +1916,12 @@ module Orb attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil); end + def initialize(bps:, per_unit_maximum: nil) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig::Shape) + sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } + def to_hash end - def to_h; end end class Cadence < Orb::Enum @@ -1960,12 +1935,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -1973,12 +1947,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -1987,13 +1961,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2001,12 +1974,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2015,36 +1988,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) end @@ -2136,18 +2086,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk_bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Shape) + override.returns( + { + bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BulkBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) end @@ -2158,18 +2128,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - {bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)} - end - sig { returns(Float) } attr_accessor :bps @@ -2186,12 +2154,20 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end @@ -2206,12 +2182,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2219,12 +2194,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2233,13 +2208,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2247,12 +2221,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2261,36 +2235,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) end @@ -2382,18 +2333,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Shape) + override.returns( + { + bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BulkConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) end @@ -2404,16 +2375,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String, maximum_units: T.nilable(Float)} } - sig { returns(String) } attr_accessor :unit_amount @@ -2421,12 +2392,12 @@ module Orb attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil); end + def initialize(unit_amount:, maximum_units: nil) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier::Shape) + sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } + def to_hash end - def to_h; end end end @@ -2441,12 +2412,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2454,12 +2424,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2468,13 +2438,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2482,12 +2451,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2496,33 +2465,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2612,12 +2561,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :threshold_total_amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -2630,12 +2600,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2643,12 +2612,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2657,13 +2626,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2671,12 +2639,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2685,33 +2653,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -2801,12 +2749,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -2819,12 +2788,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2832,12 +2800,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -2846,13 +2814,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -2860,47 +2827,27 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! - DAY = :day - MONTH = :month - - sig { override.returns(T::Array[Symbol]) } - def self.values; end - end - end - end - - class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } + DAY = :day + MONTH = :month + + sig { override.returns(T::Array[Symbol]) } + def self.values + end + end end + end + class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel sig { returns(Symbol) } attr_accessor :cadence @@ -2990,12 +2937,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_with_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3008,12 +2976,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3021,12 +2988,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3035,13 +3002,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3049,12 +3015,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3063,33 +3029,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3179,12 +3125,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit_with_percent - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3197,12 +3164,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3210,12 +3176,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3224,13 +3190,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3238,12 +3203,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3252,33 +3217,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3368,12 +3313,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :package_with_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3386,12 +3352,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3399,12 +3364,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3413,13 +3378,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3427,12 +3391,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3441,33 +3405,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3557,12 +3501,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3575,12 +3540,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3588,12 +3552,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3602,13 +3566,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3616,12 +3579,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3630,33 +3593,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3746,12 +3689,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3764,12 +3728,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3777,12 +3740,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3791,13 +3754,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3805,12 +3767,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3819,33 +3781,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -3935,12 +3877,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :grouped_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -3953,12 +3916,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3966,12 +3928,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -3980,13 +3942,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -3994,12 +3955,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4008,33 +3969,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -4124,12 +4065,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4142,12 +4104,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4155,12 +4116,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4169,13 +4130,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4183,12 +4143,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4197,33 +4157,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -4313,12 +4253,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Shape) + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -4331,12 +4292,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4344,12 +4304,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4358,13 +4318,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -4372,12 +4331,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -4386,7 +4345,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end @@ -4469,7 +4429,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end @@ -4481,12 +4442,11 @@ module Orb START_OF_MONTH = T.let(:start_of_month, T.nilable(Symbol)) sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -4497,30 +4457,28 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration::Shape) + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash end - def to_h; end end class RemoveAdjustment < Orb::BaseModel - Shape = T.type_alias { {adjustment_id: String} } - sig { returns(String) } attr_accessor :adjustment_id sig { params(adjustment_id: String).void } - def initialize(adjustment_id:); end + def initialize(adjustment_id:) + end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment::Shape) } - def to_h; end + sig { override.returns({adjustment_id: String}) } + def to_hash + end end class RemovePrice < Orb::BaseModel - Shape = T.type_alias { {external_price_id: T.nilable(String), price_id: T.nilable(String)} } - sig { returns(T.nilable(String)) } attr_accessor :external_price_id @@ -4528,22 +4486,21 @@ module Orb attr_accessor :price_id sig { params(external_price_id: T.nilable(String), price_id: T.nilable(String)).void } - def initialize(external_price_id: nil, price_id: nil); end + def initialize(external_price_id: nil, price_id: nil) + end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice::Shape) } - def to_h; end + sig { override.returns({external_price_id: T.nilable(String), price_id: T.nilable(String)}) } + def to_hash + end end class ReplaceAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Variants, - replaces_adjustment_id: String - } - end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Variants) + returns( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum + ) + ) end attr_accessor :adjustment @@ -4552,34 +4509,32 @@ module Orb sig do params( - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum + ), replaces_adjustment_id: String ).void end - def initialize(adjustment:, replaces_adjustment_id:); end + def initialize(adjustment:, replaces_adjustment_id:) + end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Shape) } - def to_h; end + sig do + override.returns( + { + adjustment: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum + ), + replaces_adjustment_id: String + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum - ) - end - class NewPercentageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - percentage_discount: Float, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -4612,21 +4567,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + percentage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewUsageDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - usage_discount: Float, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -4659,21 +4613,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + usage_discount: Float, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewAmountDiscount < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -4706,22 +4659,20 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount::Shape) + override.returns( + { + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewMinimum < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -4759,21 +4710,21 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + item_id: String, + minimum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end class NewMaximum < Orb::BaseModel - Shape = T.type_alias do - { - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - maximum_amount: String, - is_invoice_level: T::Boolean - } - end - sig { returns(Symbol) } attr_accessor :adjustment_type @@ -4806,9 +4757,17 @@ module Orb end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum::Shape) + override.returns( + { + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + maximum_amount: String, + is_invoice_level: T::Boolean + } + ) + end + def to_hash end - def to_h; end end sig do @@ -4837,24 +4796,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class ReplacePrice < Orb::BaseModel - Shape = T.type_alias do - { - replaces_price_id: String, - discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Variants), - price_id: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :replaces_price_id @@ -4876,7 +4823,13 @@ module Orb attr_accessor :minimum_amount sig do - returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Variants)) + returns( + T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ) + ) end attr_accessor :price @@ -4891,7 +4844,11 @@ module Orb fixed_price_quantity: T.nilable(Float), maximum_amount: T.nilable(String), minimum_amount: T.nilable(String), - price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Variants), + price: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), price_id: T.nilable(String) ).void end @@ -4904,21 +4861,31 @@ module Orb minimum_amount: nil, price: nil, price_id: nil - ); end - - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Shape) } - def to_h; end + ) + end - class Discount < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - discount_type: Symbol, - amount_discount: T.nilable(String), - percentage_discount: T.nilable(Float), - usage_discount: T.nilable(Float) + replaces_price_id: String, + discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice + ) + ), + price_id: T.nilable(String) } - end + ) + end + def to_hash + end + class Discount < Orb::BaseModel sig { returns(Symbol) } attr_accessor :discount_type @@ -4942,8 +4909,18 @@ module Orb def initialize(discount_type:, amount_discount: nil, percentage_discount: nil, usage_discount: nil) end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::Shape) } - def to_h; end + sig do + override.returns( + { + discount_type: Symbol, + amount_discount: T.nilable(String), + percentage_discount: T.nilable(Float), + usage_discount: T.nilable(Float) + } + ) + end + def to_hash + end class DiscountType < Orb::Enum abstract! @@ -4953,58 +4930,15 @@ module Orb AMOUNT = :amount sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class Price < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice - ) - end - class NewSubscriptionUnitPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5096,12 +5030,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5114,27 +5069,24 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class UnitConfig < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String} } - sig { returns(String) } attr_accessor :unit_amount sig { params(unit_amount: String).void } - def initialize(unit_amount:); end + def initialize(unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig::Shape) + sig { override.returns({unit_amount: String}) } + def to_hash end - def to_h; end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5142,12 +5094,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5156,13 +5108,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5170,12 +5121,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5184,33 +5135,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5302,12 +5233,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5320,12 +5272,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class PackageConfig < Orb::BaseModel - Shape = T.type_alias { {package_amount: String, package_size: Integer} } - sig { returns(String) } attr_accessor :package_amount @@ -5333,17 +5284,15 @@ module Orb attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).void } - def initialize(package_amount:, package_size:); end + def initialize(package_amount:, package_size:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig::Shape) + sig { override.returns({package_amount: String, package_size: Integer}) } + def to_hash end - def to_h; end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5351,12 +5300,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5365,13 +5314,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5379,12 +5327,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5393,33 +5341,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5511,12 +5439,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :matrix - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5529,18 +5478,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class MatrixConfig < Orb::BaseModel - Shape = T.type_alias do - { - default_unit_amount: String, - dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - } - end - sig { returns(String) } attr_accessor :default_unit_amount @@ -5559,16 +5501,22 @@ module Orb matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] ).void end - def initialize(default_unit_amount:, dimensions:, matrix_values:); end + def initialize(default_unit_amount:, dimensions:, matrix_values:) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::Shape) + override.returns( + { + default_unit_amount: String, + dimensions: T::Array[T.nilable(String)], + matrix_values: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + } + ) + end + def to_hash end - def to_h; end class MatrixValue < Orb::BaseModel - Shape = T.type_alias { {dimension_values: T::Array[T.nilable(String)], unit_amount: String} } - sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -5576,18 +5524,16 @@ module Orb attr_accessor :unit_amount sig { params(dimension_values: T::Array[T.nilable(String)], unit_amount: String).void } - def initialize(dimension_values:, unit_amount:); end + def initialize(dimension_values:, unit_amount:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue::Shape) + sig { override.returns({dimension_values: T::Array[T.nilable(String)], unit_amount: String}) } + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5595,12 +5541,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5609,13 +5555,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5623,12 +5568,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5637,33 +5582,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5755,12 +5680,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -5773,14 +5719,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]) end @@ -5791,16 +5734,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias { {first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)} } - sig { returns(Float) } attr_accessor :first_unit @@ -5811,18 +5754,18 @@ module Orb attr_accessor :last_unit sig { params(first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)).void } - def initialize(first_unit:, unit_amount:, last_unit: nil); end + def initialize(first_unit:, unit_amount:, last_unit: nil) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier::Shape) + override.returns({first_unit: Float, unit_amount: String, last_unit: T.nilable(Float)}) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5830,12 +5773,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5844,13 +5787,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -5858,12 +5800,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -5872,33 +5814,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -5990,12 +5912,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -6008,14 +5951,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TieredBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]) end @@ -6026,23 +5966,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - end - sig { returns(Float) } attr_accessor :bps @@ -6063,18 +5996,25 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + minimum_amount: String, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6082,12 +6022,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6096,13 +6036,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6110,12 +6049,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6124,36 +6063,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) end @@ -6245,16 +6161,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Shape) + override.returns( + { + bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BpsConfig < Orb::BaseModel - Shape = T.type_alias { {bps: Float, per_unit_maximum: T.nilable(String)} } - sig { returns(Float) } attr_accessor :bps @@ -6262,12 +6200,12 @@ module Orb attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).void } - def initialize(bps:, per_unit_maximum: nil); end + def initialize(bps:, per_unit_maximum: nil) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig::Shape) + sig { override.returns({bps: Float, per_unit_maximum: T.nilable(String)}) } + def to_hash end - def to_h; end end class Cadence < Orb::Enum @@ -6281,12 +6219,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6294,12 +6231,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6308,13 +6245,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6322,12 +6258,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6336,36 +6272,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkBpsPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig) end @@ -6457,18 +6370,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk_bps - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Shape) + override.returns( + { + bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BulkBpsConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]) end @@ -6479,18 +6412,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias do - {bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)} - end - sig { returns(Float) } attr_accessor :bps @@ -6507,12 +6438,20 @@ module Orb per_unit_maximum: T.nilable(String) ).void end - def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil); end + def initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier::Shape) + override.returns( + { + bps: Float, + maximum_amount: T.nilable(String), + per_unit_maximum: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end end @@ -6527,12 +6466,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6540,12 +6478,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6554,13 +6492,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6568,12 +6505,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6582,36 +6519,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), - metadata: T.nilable( - T::Hash[Symbol, - T.nilable(String)] - ), - reference_id: T.nilable(String) - } - end - sig do returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) end @@ -6703,18 +6617,38 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Shape) + override.returns( + { + bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration), + metadata: T.nilable( + T::Hash[Symbol, + T.nilable(String)] + ), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class BulkConfig < Orb::BaseModel - Shape = T.type_alias do - {tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]} - end - sig do returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]) end @@ -6725,16 +6659,16 @@ module Orb tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ).void end - def initialize(tiers:); end + def initialize(tiers:) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Shape) + override.returns({tiers: T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier]}) + end + def to_hash end - def to_h; end class Tier < Orb::BaseModel - Shape = T.type_alias { {unit_amount: String, maximum_units: T.nilable(Float)} } - sig { returns(String) } attr_accessor :unit_amount @@ -6742,12 +6676,12 @@ module Orb attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).void } - def initialize(unit_amount:, maximum_units: nil); end + def initialize(unit_amount:, maximum_units: nil) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier::Shape) + sig { override.returns({unit_amount: String, maximum_units: T.nilable(Float)}) } + def to_hash end - def to_h; end end end @@ -6762,12 +6696,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6775,12 +6708,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6789,13 +6722,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6803,12 +6735,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6817,33 +6749,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - threshold_total_amount_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -6933,12 +6845,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :threshold_total_amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + threshold_total_amount_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -6951,12 +6884,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6964,12 +6896,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -6978,13 +6910,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -6992,12 +6923,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7006,33 +6937,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_package_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -7122,12 +7033,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_package - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_package_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -7140,12 +7072,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7153,12 +7084,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7167,61 +7098,40 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration sig { returns(Symbol) } attr_accessor :duration_unit - - sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end - - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::Shape) - end - def to_h; end - - class DurationUnit < Orb::Enum - abstract! - - DAY = :day - MONTH = :month - - sig { override.returns(T::Array[Symbol]) } - def self.values; end - end - end - end - - class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_minimum_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } + + sig { params(duration: Integer, duration_unit: Symbol).void } + def initialize(duration:, duration_unit:) + end + + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash + end + + class DurationUnit < Orb::Enum + abstract! + + DAY = :day + MONTH = :month + + sig { override.returns(T::Array[Symbol]) } + def self.values + end + end end + end + class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel sig { returns(Symbol) } attr_accessor :cadence @@ -7311,12 +7221,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_with_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_minimum_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -7329,12 +7260,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7342,12 +7272,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7356,13 +7286,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7370,12 +7299,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7384,33 +7313,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_percent_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -7500,12 +7409,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit_with_percent - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_percent_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -7518,12 +7448,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7531,12 +7460,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7545,13 +7474,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7559,12 +7487,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7573,33 +7501,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - package_with_allocation_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -7689,12 +7597,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :package_with_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + package_with_allocation_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -7707,12 +7636,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7720,12 +7648,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7734,13 +7662,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7748,12 +7675,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7762,33 +7689,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - tiered_with_proration_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -7878,12 +7785,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :tiered_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -7896,12 +7824,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7909,12 +7836,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7923,13 +7850,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -7937,12 +7863,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -7951,33 +7877,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - unit_with_proration_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -8067,12 +7973,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :unit_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Shape) + override.returns( + { + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + unit_with_proration_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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -8085,12 +8012,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8098,12 +8024,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8112,13 +8038,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8126,12 +8051,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8140,33 +8065,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -8256,12 +8161,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :grouped_allocation - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Shape) + override.returns( + { + cadence: Symbol, + grouped_allocation_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -8274,12 +8200,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8287,12 +8212,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8301,13 +8226,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8315,12 +8239,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8329,33 +8253,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel - Shape = T.type_alias do - { - cadence: Symbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(Symbol) } attr_accessor :cadence @@ -8445,12 +8349,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :grouped_with_prorated_minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Shape) + override.returns( + { + cadence: Symbol, + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -8463,12 +8388,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8476,12 +8400,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8490,13 +8414,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8504,12 +8427,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8518,33 +8441,13 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel - Shape = T.type_alias do - { - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), - conversion_rate: T.nilable(Float), - currency: T.nilable(String), - 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - end - sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :bulk_with_proration_config @@ -8634,12 +8537,33 @@ module Orb metadata: nil, reference_id: nil, model_type: :bulk_with_proration - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Shape) + override.returns( + { + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Symbol, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration), + conversion_rate: T.nilable(Float), + currency: T.nilable(String), + 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end class Cadence < Orb::Enum abstract! @@ -8652,12 +8576,11 @@ module Orb CUSTOM = :custom sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class BillingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8665,12 +8588,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8679,13 +8602,12 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end class InvoicingCycleConfiguration < Orb::BaseModel - Shape = T.type_alias { {duration: Integer, duration_unit: Symbol} } - sig { returns(Integer) } attr_accessor :duration @@ -8693,12 +8615,12 @@ module Orb attr_accessor :duration_unit sig { params(duration: Integer, duration_unit: Symbol).void } - def initialize(duration:, duration_unit:); end + def initialize(duration:, duration_unit:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::Shape) + sig { override.returns({duration: Integer, duration_unit: Symbol}) } + def to_hash end - def to_h; end class DurationUnit < Orb::Enum abstract! @@ -8707,7 +8629,8 @@ module Orb MONTH = :month sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end @@ -8790,7 +8713,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi index 6883134f..c69e7fc4 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi @@ -3,36 +3,6 @@ module Orb module Models class SubscriptionSchedulePlanChangeResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -67,7 +37,11 @@ module Orb attr_accessor :default_invoice_memo sig do - returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Variants]) + returns( + T::Array[T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval + )] + ) end attr_accessor :discount_intervals @@ -123,7 +97,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -165,27 +141,55 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Variants) + returns( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) end attr_accessor :adjustment @@ -201,39 +205,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -274,27 +276,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -335,27 +337,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -396,28 +398,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -463,27 +464,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -524,12 +526,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -558,13 +572,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -575,37 +588,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration::Shape) + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash end - def to_h; end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -641,26 +635,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval::Shape) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -696,26 +690,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -751,12 +745,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end sig do @@ -777,14 +782,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -798,23 +800,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule::Shape) } - def to_h; end + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash + end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -848,21 +844,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -896,24 +893,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -934,7 +929,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -948,7 +975,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -961,14 +1016,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash + end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -979,18 +1075,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash end - def to_h; end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -1001,10 +1095,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon::Shape) } - def to_h; end + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash + end end class Status < Orb::Enum @@ -1015,20 +1111,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi index bb886116..2d2ee561 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi @@ -6,16 +6,21 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({effective_date: T.nilable(Date)}, Orb::RequestParameters::Shape) } - sig { returns(T.nilable(Date)) } attr_accessor :effective_date - sig { params(effective_date: T.nilable(Date), request_options: Orb::RequestOpts).void } - def initialize(effective_date: nil, request_options: {}); end + sig do + params( + effective_date: T.nilable(Date), + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(effective_date: nil, request_options: {}) + end - sig { returns(Orb::Models::SubscriptionTriggerPhaseParams::Shape) } - def to_h; end + sig { override.returns({effective_date: T.nilable(Date), request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi index 1e05345e..c2507c6d 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi @@ -3,36 +3,6 @@ module Orb module Models class SubscriptionTriggerPhaseResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -66,7 +36,13 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :default_invoice_memo - sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval + )] + ) + end attr_accessor :discount_intervals sig { returns(T.nilable(Time)) } @@ -121,7 +97,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -163,27 +141,55 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id sig do - returns(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Variants) + returns( + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) end attr_accessor :adjustment @@ -199,39 +205,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -272,27 +276,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -333,27 +337,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -394,28 +398,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -461,27 +464,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -522,12 +526,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -556,13 +572,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -573,35 +588,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration::Shape) } - def to_h; end + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash + end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -637,26 +635,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval::Shape) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -692,26 +690,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -747,12 +745,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end sig do @@ -770,14 +779,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -791,23 +797,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule::Shape) } - def to_h; end + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash + end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -841,21 +841,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -889,24 +890,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -927,7 +926,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -941,7 +972,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -954,14 +1013,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash + end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -972,18 +1072,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash end - def to_h; end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -994,10 +1092,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon::Shape) } - def to_h; end + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash + end end class Status < Orb::Enum @@ -1008,20 +1108,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi index 5a220077..80248db2 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi index 8afcd77f..814f8329 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi @@ -3,36 +3,6 @@ module Orb module Models class SubscriptionUnscheduleCancellationResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -69,7 +39,11 @@ module Orb attr_accessor :default_invoice_memo sig do - returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Variants]) + returns( + T::Array[T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval + )] + ) end attr_accessor :discount_intervals @@ -127,7 +101,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -169,27 +145,55 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Variants) + returns( + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) end attr_accessor :adjustment @@ -205,39 +209,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -278,27 +280,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -339,27 +341,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -400,28 +402,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -467,27 +468,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -528,12 +530,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -562,13 +576,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -579,37 +592,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration::Shape) + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash end - def to_h; end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -645,26 +639,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval::Shape) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -700,26 +694,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -755,12 +749,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end sig do @@ -781,14 +786,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -802,25 +804,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule::Shape) + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash end - def to_h; end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -854,21 +848,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -902,24 +897,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -940,7 +933,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -954,7 +979,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -967,14 +1020,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash + end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -985,18 +1079,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash end - def to_h; end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -1007,10 +1099,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon::Shape) } - def to_h; end + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash + end end class Status < Orb::Enum @@ -1021,20 +1115,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi index 8099985d..668cf77b 100644 --- a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi @@ -6,16 +6,21 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({price_id: String}, Orb::RequestParameters::Shape) } - sig { returns(String) } attr_accessor :price_id - sig { params(price_id: String, request_options: Orb::RequestOpts).void } - def initialize(price_id:, request_options: {}); end + sig do + params( + price_id: String, + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + ).void + end + def initialize(price_id:, request_options: {}) + end - sig { returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams::Shape) } - def to_h; end + sig { override.returns({price_id: String, request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi index 3b082431..98dfc6ac 100644 --- a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi @@ -3,36 +3,6 @@ module Orb module Models class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -71,7 +41,11 @@ module Orb attr_accessor :default_invoice_memo sig do - returns(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Variants]) + returns( + T::Array[T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval + )] + ) end attr_accessor :discount_intervals @@ -137,7 +111,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -179,27 +155,55 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Variants) + returns( + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) end attr_accessor :adjustment @@ -215,41 +219,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Shape) + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -290,27 +290,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -351,27 +351,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -412,28 +412,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -479,27 +478,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -540,12 +540,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -574,13 +586,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -591,35 +602,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration::Shape) + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash end - def to_h; end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -655,26 +649,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval::Shape) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -710,26 +704,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -765,12 +759,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end sig do @@ -791,14 +796,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -812,25 +814,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule::Shape) + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash end - def to_h; end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -865,22 +859,21 @@ module Orb end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -915,25 +908,21 @@ module Orb end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -954,7 +943,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -968,7 +989,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -981,16 +1030,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::Shape) + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash end - def to_h; end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -1001,18 +1089,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash end - def to_h; end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -1023,12 +1109,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig do - returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon::Shape) + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash end - def to_h; end end class Status < Orb::Enum @@ -1039,20 +1125,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi index b93eef4c..5c0459ac 100644 --- a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi index c3bacffd..5b19f325 100644 --- a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi @@ -3,36 +3,6 @@ module Orb module Models class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -71,7 +41,11 @@ module Orb attr_accessor :default_invoice_memo sig do - returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Variants]) + returns( + T::Array[T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval + )] + ) end attr_accessor :discount_intervals @@ -135,7 +109,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -177,27 +153,55 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Variants) + returns( + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) end attr_accessor :adjustment @@ -213,41 +217,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Shape) + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -288,27 +288,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -349,27 +349,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -410,28 +410,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -477,27 +476,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -538,12 +538,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -572,13 +584,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -589,35 +600,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration::Shape) + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash end - def to_h; end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -653,26 +647,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval::Shape) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -708,26 +702,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -763,12 +757,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end sig do @@ -789,14 +794,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -810,25 +812,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule::Shape) + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash end - def to_h; end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -862,21 +856,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -910,24 +905,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -948,7 +941,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -962,7 +987,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -975,14 +1028,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end - sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash + end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -993,18 +1087,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash end - def to_h; end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -1015,10 +1107,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon::Shape) } - def to_h; end + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash + end end class Status < Orb::Enum @@ -1029,20 +1123,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi index 5413ad14..bddd93b1 100644 --- a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +++ b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi @@ -6,13 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - {price_id: String, quantity: Float, change_option: Symbol, effective_date: T.nilable(Date)}, - Orb::RequestParameters::Shape - ) - end - sig { returns(String) } attr_accessor :price_id @@ -34,13 +27,25 @@ module Orb quantity: Float, change_option: Symbol, effective_date: T.nilable(Date), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(price_id:, quantity:, change_option: nil, effective_date: nil, request_options: {}); end + def initialize(price_id:, quantity:, change_option: nil, effective_date: nil, request_options: {}) + end - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::Shape) } - def to_h; end + sig do + override.returns( + { + price_id: String, + quantity: Float, + change_option: Symbol, + effective_date: T.nilable(Date), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class ChangeOption < Orb::Enum abstract! @@ -50,7 +55,8 @@ module Orb EFFECTIVE_DATE = :effective_date sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi index 9b6068c1..bd30b88b 100644 --- a/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +++ b/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi @@ -3,36 +3,6 @@ module Orb module Models class SubscriptionUpdateFixedFeeQuantityResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -69,7 +39,11 @@ module Orb attr_accessor :default_invoice_memo sig do - returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Variants]) + returns( + T::Array[T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval + )] + ) end attr_accessor :discount_intervals @@ -127,7 +101,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -169,27 +145,55 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Variants) + returns( + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) end attr_accessor :adjustment @@ -205,39 +209,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -278,27 +280,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -339,27 +341,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -400,28 +402,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -467,27 +468,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -528,12 +530,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -562,13 +576,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -579,37 +592,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration::Shape) + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash end - def to_h; end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -645,26 +639,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval::Shape) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -700,26 +694,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -755,12 +749,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end sig do @@ -781,14 +786,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -802,25 +804,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule::Shape) + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash end - def to_h; end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -854,21 +848,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -902,24 +897,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -940,7 +933,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -954,7 +979,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -967,14 +1020,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash + end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -985,18 +1079,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash end - def to_h; end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -1007,10 +1099,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon::Shape) } - def to_h; end + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash + end end class Status < Orb::Enum @@ -1021,20 +1115,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_update_params.rbi b/rbi/lib/orb/models/subscription_update_params.rbi index 39eaa426..94a205c0 100644 --- a/rbi/lib/orb/models/subscription_update_params.rbi +++ b/rbi/lib/orb/models/subscription_update_params.rbi @@ -6,19 +6,6 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - auto_collection: T.nilable(T::Boolean), - default_invoice_memo: T.nilable(String), - invoicing_threshold: T.nilable(String), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - net_terms: T.nilable(Integer) - }, - Orb::RequestParameters::Shape - ) - end - sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection @@ -41,7 +28,7 @@ module Orb invoicing_threshold: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end def initialize( @@ -51,10 +38,23 @@ module Orb metadata: nil, net_terms: nil, request_options: {} - ); end + ) + end - sig { returns(Orb::Models::SubscriptionUpdateParams::Shape) } - def to_h; end + sig do + override.returns( + { + auto_collection: T.nilable(T::Boolean), + default_invoice_memo: T.nilable(String), + invoicing_threshold: T.nilable(String), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_update_trial_params.rbi b/rbi/lib/orb/models/subscription_update_trial_params.rbi index e1ee62ad..b3c05758 100644 --- a/rbi/lib/orb/models/subscription_update_trial_params.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_params.rbi @@ -6,17 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias do - T.all( - { - trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::Variants, - shift: T::Boolean - }, - Orb::RequestParameters::Shape - ) - end - - sig { returns(Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::Variants) } + sig { returns(T.any(Time, Symbol)) } attr_accessor :trial_end_date sig { returns(T.nilable(T::Boolean)) } @@ -27,32 +17,42 @@ module Orb sig do params( - trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::Variants, + trial_end_date: T.any(Time, Symbol), shift: T::Boolean, - request_options: Orb::RequestOpts + request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) ).void end - def initialize(trial_end_date:, shift: nil, request_options: {}); end + def initialize(trial_end_date:, shift: nil, request_options: {}) + end - sig { returns(Orb::Models::SubscriptionUpdateTrialParams::Shape) } - def to_h; end + sig do + override.returns( + { + trial_end_date: T.any(Time, Symbol), + shift: T::Boolean, + request_options: Orb::RequestOptions + } + ) + end + def to_hash + end class TrialEndDate < Orb::Union abstract! - Variants = T.type_alias { T.any(Time, Symbol) } - class UnionMember1 < Orb::Enum abstract! IMMEDIATE = :immediate sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end sig { override.returns([[NilClass, Time], [NilClass, Symbol]]) } - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/subscription_update_trial_response.rbi b/rbi/lib/orb/models/subscription_update_trial_response.rbi index d8be974b..08e8e2b3 100644 --- a/rbi/lib/orb/models/subscription_update_trial_response.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_response.rbi @@ -3,36 +3,6 @@ module Orb module Models class SubscriptionUpdateTrialResponse < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], - auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - customer: Orb::Models::Customer, - default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Variants], - end_date: T.nilable(Time), - fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], - invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], - metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon), - start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo - } - end - sig { returns(String) } attr_accessor :id @@ -66,7 +36,13 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :default_invoice_memo - sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Variants]) } + sig do + returns( + T::Array[T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval + )] + ) + end attr_accessor :discount_intervals sig { returns(T.nilable(Time)) } @@ -121,7 +97,9 @@ module Orb current_billing_period_start_date: T.nilable(Time), customer: Orb::Models::Customer, default_invoice_memo: T.nilable(String), - discount_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::Variants], + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], invoicing_threshold: T.nilable(String), @@ -163,27 +141,55 @@ module Orb start_date:, status:, trial_info: - ); end - - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::Shape) } - def to_h; end + ) + end - class AdjustmentInterval < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { id: String, - adjustment: Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Variants, - applies_to_price_interval_ids: T::Array[String], + active_plan_phase_order: T.nilable(Integer), + adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], + auto_collection: T.nilable(T::Boolean), + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + customer: Orb::Models::Customer, + default_invoice_memo: T.nilable(String), + discount_intervals: T::Array[T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval + )], end_date: T.nilable(Time), - start_date: Time + fixed_fee_quantity_schedule: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], + invoicing_threshold: T.nilable(String), + maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], + metadata: T::Hash[Symbol, String], + minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], + redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon), + start_date: Time, + status: Symbol, + trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo } - end + ) + end + def to_hash + end + class AdjustmentInterval < Orb::BaseModel sig { returns(String) } attr_accessor :id sig do - returns(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Variants) + returns( + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ) + ) end attr_accessor :adjustment @@ -199,39 +205,37 @@ module Orb sig do params( id: String, - adjustment: Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::Variants, + adjustment: T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), start_date: Time ).void end - def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:); end + def initialize(id:, adjustment:, applies_to_price_interval_ids:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + adjustment: T.any( + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + ), + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash + end class Adjustment < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MaximumAdjustment - ) - end - class AmountDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - amount_discount: String, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -272,27 +276,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :amount_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + amount_discount: String, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - percentage_discount: Float, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -333,27 +337,27 @@ module Orb plan_phase_order:, reason:, adjustment_type: :percentage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + percentage_discount: Float, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String), - usage_discount: Float - } - end - sig { returns(String) } attr_accessor :id @@ -394,28 +398,27 @@ module Orb reason:, usage_discount:, adjustment_type: :usage_discount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String), + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end class MinimumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - item_id: String, - minimum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -461,27 +464,28 @@ module Orb plan_phase_order:, reason:, adjustment_type: :minimum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MinimumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + item_id: String, + minimum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end class MaximumAdjustment < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - adjustment_type: Symbol, - applies_to_price_ids: T::Array[String], - is_invoice_level: T::Boolean, - maximum_amount: String, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) - } - end - sig { returns(String) } attr_accessor :id @@ -522,12 +526,24 @@ module Orb plan_phase_order:, reason:, adjustment_type: :maximum - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MaximumAdjustment::Shape) + override.returns( + { + id: String, + adjustment_type: Symbol, + applies_to_price_ids: T::Array[String], + is_invoice_level: T::Boolean, + maximum_amount: String, + plan_phase_order: T.nilable(Integer), + reason: T.nilable(String) + } + ) + end + def to_hash end - def to_h; end end sig do @@ -556,13 +572,12 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end class BillingCycleAnchorConfiguration < Orb::BaseModel - Shape = T.type_alias { {day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)} } - sig { returns(Integer) } attr_accessor :day @@ -573,35 +588,18 @@ module Orb attr_accessor :year sig { params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).void } - def initialize(day:, month: nil, year: nil); end + def initialize(day:, month: nil, year: nil) + end - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration::Shape) } - def to_h; end + sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) } + def to_hash + end end class DiscountInterval < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - ) - end - class AmountDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - amount_discount: String, - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time - } - end - sig { returns(String) } attr_accessor :amount_discount @@ -637,26 +635,26 @@ module Orb end_date:, start_date:, discount_type: :amount - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval::Shape) + override.returns( + { + amount_discount: String, + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class PercentageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - percentage_discount: Float, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -692,26 +690,26 @@ module Orb percentage_discount:, start_date:, discount_type: :percentage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + percentage_discount: Float, + start_date: Time + } + ) + end + def to_hash end - def to_h; end end class UsageDiscountInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - discount_type: Symbol, - end_date: T.nilable(Time), - start_date: Time, - usage_discount: Float - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -747,12 +745,23 @@ module Orb start_date:, usage_discount:, discount_type: :usage - ); end + ) + end sig do - returns(Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval::Shape) + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + discount_type: Symbol, + end_date: T.nilable(Time), + start_date: Time, + usage_discount: Float + } + ) + end + def to_hash end - def to_h; end end sig do @@ -770,14 +779,11 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end class FixedFeeQuantitySchedule < Orb::BaseModel - Shape = T.type_alias do - {end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time} - end - sig { returns(T.nilable(Time)) } attr_accessor :end_date @@ -791,23 +797,17 @@ module Orb attr_accessor :start_date sig { params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time).void } - def initialize(end_date:, price_id:, quantity:, start_date:); end + def initialize(end_date:, price_id:, quantity:, start_date:) + end - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule::Shape) } - def to_h; end + sig do + override.returns({end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time}) + end + def to_hash + end end class MaximumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - maximum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -841,21 +841,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + maximum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class MinimumInterval < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - applies_to_price_interval_ids: T::Array[String], - end_date: T.nilable(Time), - minimum_amount: String, - start_date: Time - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -889,24 +890,22 @@ module Orb ) end - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + applies_to_price_interval_ids: T::Array[String], + end_date: T.nilable(Time), + minimum_amount: String, + start_date: Time + } + ) + end + def to_hash + end end class PriceInterval < Orb::BaseModel - Shape = T.type_alias do - { - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: T.nilable(Time), - current_billing_period_start_date: T.nilable(Time), - end_date: T.nilable(Time), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, - start_date: Time - } - end - sig { returns(String) } attr_accessor :id @@ -927,7 +926,39 @@ module Orb end attr_accessor :fixed_fee_quantity_transitions - sig { returns(Orb::Models::Price::Variants) } + sig do + returns( + T.any( + 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 + ) + ) + end attr_accessor :price sig { returns(Time) } @@ -941,7 +972,35 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]), - price: Orb::Models::Price::Variants, + price: T.any( + 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 + ), start_date: Time ).void end @@ -954,14 +1013,55 @@ module Orb fixed_fee_quantity_transitions:, price:, start_date: - ); end + ) + end - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::Shape) } - def to_h; end + sig do + override.returns( + { + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: T.nilable(Time), + current_billing_period_start_date: T.nilable(Time), + end_date: T.nilable(Time), + fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]), + price: T.any( + 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 + ), + start_date: Time + } + ) + end + def to_hash + end class FixedFeeQuantityTransition < Orb::BaseModel - Shape = T.type_alias { {effective_date: Time, price_id: String, quantity: Integer} } - sig { returns(Time) } attr_accessor :effective_date @@ -972,18 +1072,16 @@ module Orb attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).void } - def initialize(effective_date:, price_id:, quantity:); end + def initialize(effective_date:, price_id:, quantity:) + end - sig do - returns(Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition::Shape) + sig { override.returns({effective_date: Time, price_id: String, quantity: Integer}) } + def to_hash end - def to_h; end end end class RedeemedCoupon < Orb::BaseModel - Shape = T.type_alias { {coupon_id: String, end_date: T.nilable(Time), start_date: Time} } - sig { returns(String) } attr_accessor :coupon_id @@ -994,10 +1092,12 @@ module Orb attr_accessor :start_date sig { params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).void } - def initialize(coupon_id:, end_date:, start_date:); end + def initialize(coupon_id:, end_date:, start_date:) + end - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon::Shape) } - def to_h; end + sig { override.returns({coupon_id: String, end_date: T.nilable(Time), start_date: Time}) } + def to_hash + end end class Status < Orb::Enum @@ -1008,20 +1108,21 @@ module Orb UPCOMING = :upcoming sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end class TrialInfo < Orb::BaseModel - Shape = T.type_alias { {end_date: T.nilable(Time)} } - sig { returns(T.nilable(Time)) } attr_accessor :end_date sig { params(end_date: T.nilable(Time)).void } - def initialize(end_date:); end + def initialize(end_date:) + end - sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo::Shape) } - def to_h; end + sig { override.returns({end_date: T.nilable(Time)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/subscription_usage.rbi b/rbi/lib/orb/models/subscription_usage.rbi index a3f7030a..267a66c7 100644 --- a/rbi/lib/orb/models/subscription_usage.rbi +++ b/rbi/lib/orb/models/subscription_usage.rbi @@ -5,36 +5,21 @@ module Orb class SubscriptionUsage < Orb::Union abstract! - Variants = T.type_alias do - T.any( - Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, - Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage - ) - end - class UngroupedSubscriptionUsage < Orb::BaseModel - Shape = T.type_alias do - {data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]} - end - sig { returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) } attr_accessor :data sig { params(data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]).void } - def initialize(data:); end + def initialize(data:) + end - sig { returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Shape) } - def to_h; end + sig do + override.returns({data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]}) + end + def to_hash + end class Data < Orb::BaseModel - Shape = T.type_alias do - { - billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol - } - end - sig { returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) } attr_accessor :billable_metric @@ -51,14 +36,20 @@ module Orb view_mode: Symbol ).void end - def initialize(billable_metric:, usage:, view_mode:); end + def initialize(billable_metric:, usage:, view_mode:) + end - sig { returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Shape) } - def to_h; end + sig do + override.returns( + { + billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], view_mode: Symbol + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -66,17 +57,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig do - returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric::Shape) + sig { override.returns({id: String, name: String}) } + def to_hash end - def to_h; end end class Usage < Orb::BaseModel - Shape = T.type_alias { {quantity: Float, timeframe_end: Time, timeframe_start: Time} } - sig { returns(Float) } attr_accessor :quantity @@ -87,10 +76,12 @@ module Orb attr_accessor :timeframe_start sig { params(quantity: Float, timeframe_end: Time, timeframe_start: Time).void } - def initialize(quantity:, timeframe_end:, timeframe_start:); end + def initialize(quantity:, timeframe_end:, timeframe_start:) + end - sig { returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage::Shape) } - def to_h; end + sig { override.returns({quantity: Float, timeframe_end: Time, timeframe_start: Time}) } + def to_hash + end end class ViewMode < Orb::Enum @@ -100,19 +91,13 @@ module Orb CUMULATIVE = :cumulative sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end class GroupedSubscriptionUsage < Orb::BaseModel - Shape = T.type_alias do - { - data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], - pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) - } - end - sig { returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) } attr_accessor :data @@ -125,21 +110,21 @@ module Orb pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) ).void end - def initialize(data:, pagination_metadata: nil); end - - sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Shape) } - def to_h; end + def initialize(data:, pagination_metadata: nil) + end - class Data < Orb::BaseModel - Shape = T.type_alias do + sig do + override.returns( { - billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, - metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, - usage: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol + data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], + pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) } - end + ) + end + def to_hash + end + class Data < Orb::BaseModel sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) } attr_accessor :billable_metric @@ -160,14 +145,20 @@ module Orb view_mode: Symbol ).void end - def initialize(billable_metric:, metric_group:, usage:, view_mode:); end + def initialize(billable_metric:, metric_group:, usage:, view_mode:) + end - sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Shape) } - def to_h; end + sig do + override.returns( + { + billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, usage: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], view_mode: Symbol + } + ) + end + def to_hash + end class BillableMetric < Orb::BaseModel - Shape = T.type_alias { {id: String, name: String} } - sig { returns(String) } attr_accessor :id @@ -175,17 +166,15 @@ module Orb attr_accessor :name sig { params(id: String, name: String).void } - def initialize(id:, name:); end + def initialize(id:, name:) + end - sig do - returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric::Shape) + sig { override.returns({id: String, name: String}) } + def to_hash end - def to_h; end end class MetricGroup < Orb::BaseModel - Shape = T.type_alias { {property_key: String, property_value: String} } - sig { returns(String) } attr_accessor :property_key @@ -193,17 +182,15 @@ module Orb attr_accessor :property_value sig { params(property_key: String, property_value: String).void } - def initialize(property_key:, property_value:); end + def initialize(property_key:, property_value:) + end - sig do - returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup::Shape) + sig { override.returns({property_key: String, property_value: String}) } + def to_hash end - def to_h; end end class Usage < Orb::BaseModel - Shape = T.type_alias { {quantity: Float, timeframe_end: Time, timeframe_start: Time} } - sig { returns(Float) } attr_accessor :quantity @@ -214,10 +201,12 @@ module Orb attr_accessor :timeframe_start sig { params(quantity: Float, timeframe_end: Time, timeframe_start: Time).void } - def initialize(quantity:, timeframe_end:, timeframe_start:); end + def initialize(quantity:, timeframe_end:, timeframe_start:) + end - sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage::Shape) } - def to_h; end + sig { override.returns({quantity: Float, timeframe_end: Time, timeframe_start: Time}) } + def to_hash + end end class ViewMode < Orb::Enum @@ -227,7 +216,8 @@ module Orb CUMULATIVE = :cumulative sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end @@ -240,7 +230,8 @@ module Orb ] ) end - private_class_method def self.variants; end + private_class_method def self.variants + end end end end diff --git a/rbi/lib/orb/models/subscriptions.rbi b/rbi/lib/orb/models/subscriptions.rbi index 9c6ca7bd..7906f264 100644 --- a/rbi/lib/orb/models/subscriptions.rbi +++ b/rbi/lib/orb/models/subscriptions.rbi @@ -3,10 +3,6 @@ module Orb module Models class SubscriptionsAPI < Orb::BaseModel - Shape = T.type_alias do - {data: T::Array[Orb::Models::Subscription], pagination_metadata: Orb::Models::PaginationMetadata} - end - sig { returns(T::Array[Orb::Models::Subscription]) } attr_accessor :data @@ -19,10 +15,19 @@ module Orb pagination_metadata: Orb::Models::PaginationMetadata ).void end - def initialize(data:, pagination_metadata:); end + def initialize(data:, pagination_metadata:) + end - sig { returns(Orb::Models::SubscriptionsAPI::Shape) } - def to_h; end + sig do + override.returns( + { + data: T::Array[Orb::Models::Subscription], + pagination_metadata: Orb::Models::PaginationMetadata + } + ) + end + def to_hash + end end end end diff --git a/rbi/lib/orb/models/top_level_ping_params.rbi b/rbi/lib/orb/models/top_level_ping_params.rbi index 8bf10ca3..03d0d22a 100644 --- a/rbi/lib/orb/models/top_level_ping_params.rbi +++ b/rbi/lib/orb/models/top_level_ping_params.rbi @@ -6,13 +6,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - Shape = T.type_alias { T.all({}, Orb::RequestParameters::Shape) } + sig { params(request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])).void } + def initialize(request_options: {}) + end - sig { params(request_options: Orb::RequestOpts).void } - def initialize(request_options: {}); end - - sig { returns(Orb::Models::TopLevelPingParams::Shape) } - def to_h; end + sig { override.returns({request_options: Orb::RequestOptions}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/top_level_ping_response.rbi b/rbi/lib/orb/models/top_level_ping_response.rbi index 9f813795..9c4af054 100644 --- a/rbi/lib/orb/models/top_level_ping_response.rbi +++ b/rbi/lib/orb/models/top_level_ping_response.rbi @@ -3,16 +3,16 @@ module Orb module Models class TopLevelPingResponse < Orb::BaseModel - Shape = T.type_alias { {response: String} } - sig { returns(String) } attr_accessor :response sig { params(response: String).void } - def initialize(response:); end + def initialize(response:) + end - sig { returns(Orb::Models::TopLevelPingResponse::Shape) } - def to_h; end + sig { override.returns({response: String}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/models/trial_discount.rbi b/rbi/lib/orb/models/trial_discount.rbi index c08b494e..5e850bfc 100644 --- a/rbi/lib/orb/models/trial_discount.rbi +++ b/rbi/lib/orb/models/trial_discount.rbi @@ -3,16 +3,6 @@ module Orb module Models class TrialDiscount < Orb::BaseModel - Shape = T.type_alias do - { - applies_to_price_ids: T::Array[String], - discount_type: Symbol, - reason: T.nilable(String), - trial_amount_discount: T.nilable(String), - trial_percentage_discount: T.nilable(Float) - } - end - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -43,10 +33,22 @@ module Orb reason: nil, trial_amount_discount: nil, trial_percentage_discount: nil - ); end + ) + end - sig { returns(Orb::Models::TrialDiscount::Shape) } - def to_h; end + sig do + override.returns( + { + applies_to_price_ids: T::Array[String], + discount_type: Symbol, + reason: T.nilable(String), + trial_amount_discount: T.nilable(String), + trial_percentage_discount: T.nilable(Float) + } + ) + end + def to_hash + end class DiscountType < Orb::Enum abstract! @@ -54,7 +56,8 @@ module Orb TRIAL = :trial sig { override.returns(T::Array[Symbol]) } - def self.values; end + def self.values + end end end end diff --git a/rbi/lib/orb/page.rbi b/rbi/lib/orb/page.rbi index 1e7d12de..7a86537d 100644 --- a/rbi/lib/orb/page.rbi +++ b/rbi/lib/orb/page.rbi @@ -20,11 +20,10 @@ module Orb unwrapped: T::Hash[Symbol, T.anything] ).void end - def initialize(client:, req:, headers:, unwrapped:); end + def initialize(client:, req:, headers:, unwrapped:) + end class PaginationMetadata < Orb::BaseModel - Shape = T.type_alias { {has_more: T::Boolean, next_cursor: T.nilable(String)} } - sig { returns(T::Boolean) } attr_accessor :has_more @@ -32,10 +31,12 @@ module Orb attr_accessor :next_cursor sig { params(has_more: T::Boolean, next_cursor: T.nilable(String)).void } - def initialize(has_more:, next_cursor:); end + def initialize(has_more:, next_cursor:) + end - sig { returns(PaginationMetadata::Shape) } - def to_h; end + sig { override.returns({has_more: T::Boolean, next_cursor: T.nilable(String)}) } + def to_hash + end end end end diff --git a/rbi/lib/orb/request_options.rbi b/rbi/lib/orb/request_options.rbi index 269dab6c..b937b1e0 100644 --- a/rbi/lib/orb/request_options.rbi +++ b/rbi/lib/orb/request_options.rbi @@ -1,38 +1,23 @@ # typed: strong module Orb - RequestOpts = T.type_alias do - T.any(Orb::RequestOptions, Orb::RequestOptions::Shape, T::Hash[Symbol, T.anything]) - end - module RequestParameters abstract! - Shape = T.type_alias { {request_options: Orb::RequestOpts} } - - sig { returns(Orb::RequestOpts) } + sig { returns(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) } attr_accessor :request_options module Converter sig { params(params: T.anything).returns([T.anything, T::Hash[Symbol, T.anything]]) } - def dump_request(params); end + def dump_request(params) + end end end class RequestOptions < Orb::BaseModel - Shape = T.type_alias do - { - idempotency_key: T.nilable(String), - extra_query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]), - extra_headers: T.nilable(T::Hash[String, T.nilable(String)]), - extra_body: T.nilable(T::Hash[Symbol, T.anything]), - max_retries: T.nilable(Integer), - timeout: T.nilable(Float) - } - end - sig { params(opts: T.any(T.self_type, T::Hash[Symbol, T.anything])).void } - def self.validate!(opts); end + def self.validate!(opts) + end sig { returns(T.nilable(String)) } attr_accessor :idempotency_key diff --git a/rbi/lib/orb/resources/alerts.rbi b/rbi/lib/orb/resources/alerts.rbi index 0dfd03ae..1ae0cb11 100644 --- a/rbi/lib/orb/resources/alerts.rbi +++ b/rbi/lib/orb/resources/alerts.rbi @@ -3,17 +3,24 @@ module Orb module Resources class Alerts - sig { params(alert_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Alert) } - def retrieve(alert_id, request_options: {}); end + sig do + params( + alert_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Alert) + end + def retrieve(alert_id, request_options: {}) + end sig do params( alert_configuration_id: String, thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Alert) end - def update(alert_configuration_id, thresholds:, request_options: {}); end + def update(alert_configuration_id, thresholds:, request_options: {}) + end sig do params( @@ -26,7 +33,7 @@ module Orb external_customer_id: T.nilable(String), limit: Integer, subscription_id: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Alert]) end def list( @@ -40,7 +47,8 @@ module Orb limit: nil, subscription_id: nil, request_options: {} - ); end + ) + end sig do params( @@ -48,10 +56,11 @@ module Orb currency: String, type: Symbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Alert) end - def create_for_customer(customer_id, currency:, type:, thresholds: nil, request_options: {}); end + def create_for_customer(customer_id, currency:, type:, thresholds: nil, request_options: {}) + end sig do params( @@ -59,7 +68,7 @@ module Orb currency: String, type: Symbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Alert) end def create_for_external_customer( @@ -77,7 +86,7 @@ module Orb thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], type: Symbol, metric_id: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Alert) end def create_for_subscription(subscription_id, thresholds:, type:, metric_id: nil, request_options: {}) @@ -87,22 +96,25 @@ module Orb params( alert_configuration_id: String, subscription_id: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Alert) end - def disable(alert_configuration_id, subscription_id: nil, request_options: {}); end + def disable(alert_configuration_id, subscription_id: nil, request_options: {}) + end sig do params( alert_configuration_id: String, subscription_id: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Alert) end - def enable(alert_configuration_id, subscription_id: nil, request_options: {}); end + def enable(alert_configuration_id, subscription_id: nil, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/coupons.rbi b/rbi/lib/orb/resources/coupons.rbi index beed0e9c..b744b449 100644 --- a/rbi/lib/orb/resources/coupons.rbi +++ b/rbi/lib/orb/resources/coupons.rbi @@ -8,11 +8,14 @@ module Orb sig do params( - discount: Orb::Models::CouponCreateParams::Discount::Variants, + discount: T.any( + Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount + ), redemption_code: String, duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Coupon) end def create( @@ -30,19 +33,33 @@ module Orb limit: Integer, redemption_code: T.nilable(String), show_archived: T.nilable(T::Boolean), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Coupon]) end - def list(cursor: nil, limit: nil, redemption_code: nil, show_archived: nil, 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 + sig do + params( + coupon_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Coupon) + end + def archive(coupon_id, request_options: {}) + end - sig { params(coupon_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Coupon) } - def fetch(coupon_id, request_options: {}); end + sig do + params( + coupon_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Coupon) + end + def fetch(coupon_id, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/coupons/subscriptions.rbi b/rbi/lib/orb/resources/coupons/subscriptions.rbi index d119321f..45c88aa3 100644 --- a/rbi/lib/orb/resources/coupons/subscriptions.rbi +++ b/rbi/lib/orb/resources/coupons/subscriptions.rbi @@ -9,13 +9,15 @@ module Orb coupon_id: String, cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Subscription]) end - def list(coupon_id, cursor: nil, limit: nil, request_options: {}); end + def list(coupon_id, cursor: nil, limit: nil, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/credit_notes.rbi b/rbi/lib/orb/resources/credit_notes.rbi index 28acde84..1c1a19f1 100644 --- a/rbi/lib/orb/resources/credit_notes.rbi +++ b/rbi/lib/orb/resources/credit_notes.rbi @@ -8,27 +8,34 @@ module Orb line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], memo: T.nilable(String), reason: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::CreditNote) end - def create(line_items:, memo: nil, reason: nil, request_options: {}); end + def create(line_items:, memo: nil, reason: nil, request_options: {}) + end sig do params( cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::CreditNote]) end - def list(cursor: nil, limit: nil, 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) + params( + credit_note_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::CreditNote) + end + def fetch(credit_note_id, request_options: {}) end - def fetch(credit_note_id, request_options: {}); end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/customers.rbi b/rbi/lib/orb/resources/customers.rbi index a3bcd08b..3975b992 100644 --- a/rbi/lib/orb/resources/customers.rbi +++ b/rbi/lib/orb/resources/customers.rbi @@ -28,10 +28,14 @@ module Orb payment_provider_id: T.nilable(String), reporting_configuration: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration), shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), - tax_configuration: T.nilable(Orb::Models::CustomerCreateParams::TaxConfiguration::Variants), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), timezone: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Customer) end def create( @@ -53,7 +57,8 @@ module Orb tax_id: nil, timezone: nil, request_options: {} - ); end + ) + end sig do params( @@ -72,9 +77,13 @@ module Orb payment_provider_id: T.nilable(String), reporting_configuration: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration), shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), - tax_configuration: T.nilable(Orb::Models::CustomerUpdateParams::TaxConfiguration::Variants), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Customer) end def update( @@ -96,7 +105,8 @@ module Orb tax_configuration: nil, tax_id: nil, request_options: {} - ); end + ) + end sig do params( @@ -106,7 +116,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Customer]) end def list( @@ -117,24 +127,53 @@ module Orb 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 + sig do + params( + customer_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).void + end + def delete(customer_id, request_options: {}) + end - sig { params(customer_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Customer) } - def fetch(customer_id, request_options: {}); end + sig do + params( + customer_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Customer) + end + def fetch(customer_id, request_options: {}) + end sig do - params(external_customer_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Customer) + params( + external_customer_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Customer) + end + def fetch_by_external_id(external_customer_id, request_options: {}) end - def fetch_by_external_id(external_customer_id, request_options: {}); end - sig { params(external_customer_id: String, request_options: Orb::RequestOpts).void } - def sync_payment_methods_from_gateway(external_customer_id, request_options: {}); end + sig do + params( + external_customer_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).void + end + def sync_payment_methods_from_gateway(external_customer_id, request_options: {}) + end - sig { params(customer_id: String, request_options: Orb::RequestOpts).void } - def sync_payment_methods_from_gateway_by_external_customer_id(customer_id, request_options: {}); end + sig do + params( + customer_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).void + end + def sync_payment_methods_from_gateway_by_external_customer_id(customer_id, request_options: {}) + end sig do params( @@ -153,9 +192,13 @@ module Orb payment_provider_id: T.nilable(String), reporting_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration), shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), - tax_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Variants), + tax_configuration: T.nilable( + T.any( + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + ) + ), tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Customer) end def update_by_external_id( @@ -177,10 +220,12 @@ module Orb tax_configuration: nil, tax_id: nil, request_options: {} - ); end + ) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/customers/balance_transactions.rbi b/rbi/lib/orb/resources/customers/balance_transactions.rbi index 5eb635ce..974d53be 100644 --- a/rbi/lib/orb/resources/customers/balance_transactions.rbi +++ b/rbi/lib/orb/resources/customers/balance_transactions.rbi @@ -10,10 +10,11 @@ module Orb amount: String, type: Symbol, description: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Customers::BalanceTransactionCreateResponse) end - def create(customer_id, amount:, type:, description: nil, request_options: {}); end + def create(customer_id, amount:, type:, description: nil, request_options: {}) + end sig do params( @@ -24,7 +25,7 @@ module Orb operation_time_gte: T.nilable(Time), operation_time_lt: T.nilable(Time), operation_time_lte: T.nilable(Time), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse]) end def list( @@ -36,10 +37,12 @@ module Orb operation_time_lt: nil, operation_time_lte: nil, request_options: {} - ); end + ) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/customers/costs.rbi b/rbi/lib/orb/resources/customers/costs.rbi index f72286af..c13fe977 100644 --- a/rbi/lib/orb/resources/customers/costs.rbi +++ b/rbi/lib/orb/resources/customers/costs.rbi @@ -11,7 +11,7 @@ module Orb timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Customers::CostListResponse) end def list( @@ -31,7 +31,7 @@ module Orb timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Customers::CostListByExternalIDResponse) end def list_by_external_id( @@ -41,10 +41,12 @@ module Orb timeframe_start: nil, view_mode: nil, request_options: {} - ); end + ) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/customers/credits.rbi b/rbi/lib/orb/resources/customers/credits.rbi index 9aa5b981..036a3440 100644 --- a/rbi/lib/orb/resources/customers/credits.rbi +++ b/rbi/lib/orb/resources/customers/credits.rbi @@ -17,7 +17,7 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Customers::CreditListResponse]) end def list( @@ -37,7 +37,7 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse]) end def list_by_external_id( @@ -51,7 +51,8 @@ module Orb end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/customers/credits/ledger.rbi b/rbi/lib/orb/resources/customers/credits/ledger.rbi index 513ebcc1..4b5633de 100644 --- a/rbi/lib/orb/resources/customers/credits/ledger.rbi +++ b/rbi/lib/orb/resources/customers/credits/ledger.rbi @@ -18,8 +18,10 @@ module Orb entry_type: T.nilable(Symbol), limit: Integer, minimum_amount: T.nilable(String), - request_options: Orb::RequestOpts - ).returns(Orb::Page[Orb::Models::Customers::Credits::LedgerListResponse::Variants]) + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Page[T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry + )]) end def list( customer_id, @@ -34,7 +36,8 @@ module Orb limit: nil, minimum_amount: nil, request_options: {} - ); end + ) + end sig do params( @@ -51,8 +54,16 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), void_reason: T.nilable(Symbol), - request_options: Orb::RequestOpts - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Variants) + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry + )) end def create_entry( customer_id, @@ -69,7 +80,8 @@ module Orb per_unit_cost_basis: nil, void_reason: nil, request_options: {} - ); end + ) + end sig do params( @@ -86,8 +98,10 @@ module Orb metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), void_reason: T.nilable(Symbol), - request_options: Orb::RequestOpts - ).returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Variants) + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry + )) end def create_entry_by_external_id( external_customer_id, @@ -104,7 +118,8 @@ module Orb per_unit_cost_basis: nil, void_reason: nil, request_options: {} - ); end + ) + end sig do params( @@ -119,8 +134,10 @@ module Orb entry_type: T.nilable(Symbol), limit: Integer, minimum_amount: T.nilable(String), - request_options: Orb::RequestOpts - ).returns(Orb::Page[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Variants]) + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Page[T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry + )]) end def list_by_external_id( external_customer_id, @@ -135,10 +152,12 @@ module Orb limit: nil, minimum_amount: nil, request_options: {} - ); end + ) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/customers/credits/top_ups.rbi b/rbi/lib/orb/resources/customers/credits/top_ups.rbi index 5a96870d..435197de 100644 --- a/rbi/lib/orb/resources/customers/credits/top_ups.rbi +++ b/rbi/lib/orb/resources/customers/credits/top_ups.rbi @@ -15,7 +15,7 @@ module Orb threshold: String, expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Customers::Credits::TopUpCreateResponse) end def create( @@ -28,20 +28,29 @@ module Orb expires_after: nil, expires_after_unit: nil, request_options: {} - ); end + ) + end sig do params( customer_id: String, cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse]) end - def list(customer_id, cursor: nil, limit: nil, 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 + sig do + params( + top_up_id: String, + customer_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).void + end + def delete(top_up_id, customer_id:, request_options: {}) + end sig do params( @@ -53,7 +62,7 @@ module Orb threshold: String, expires_after: T.nilable(Integer), expires_after_unit: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse) end def create_by_external_id( @@ -66,25 +75,33 @@ module Orb expires_after: nil, expires_after_unit: nil, request_options: {} - ); end + ) + end sig do - params(top_up_id: String, external_customer_id: String, request_options: Orb::RequestOpts).void + params( + top_up_id: String, + external_customer_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).void + end + def delete_by_external_id(top_up_id, external_customer_id:, request_options: {}) end - def delete_by_external_id(top_up_id, external_customer_id:, request_options: {}); end sig do params( external_customer_id: String, cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse]) end - def list_by_external_id(external_customer_id, cursor: nil, limit: nil, 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 + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/dimensional_price_groups.rbi b/rbi/lib/orb/resources/dimensional_price_groups.rbi index f961e2b5..405b5570 100644 --- a/rbi/lib/orb/resources/dimensional_price_groups.rbi +++ b/rbi/lib/orb/resources/dimensional_price_groups.rbi @@ -13,7 +13,7 @@ module Orb name: String, external_dimensional_price_group_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::DimensionalPriceGroup) end def create( @@ -23,27 +23,31 @@ module Orb external_dimensional_price_group_id: nil, metadata: nil, request_options: {} - ); end + ) + end sig do params( dimensional_price_group_id: String, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::DimensionalPriceGroup) end - def retrieve(dimensional_price_group_id, request_options: {}); end + def retrieve(dimensional_price_group_id, request_options: {}) + end sig do params( cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::DimensionalPriceGroup]) end - def list(cursor: nil, limit: nil, request_options: {}); end + def list(cursor: nil, limit: nil, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi b/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi index 5ad5f0f3..446a3165 100644 --- a/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +++ b/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi @@ -7,13 +7,15 @@ module Orb sig do params( external_dimensional_price_group_id: String, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::DimensionalPriceGroup) end - def retrieve(external_dimensional_price_group_id, request_options: {}); end + def retrieve(external_dimensional_price_group_id, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/events.rbi b/rbi/lib/orb/resources/events.rbi index e581d2ee..96b838fe 100644 --- a/rbi/lib/orb/resources/events.rbi +++ b/rbi/lib/orb/resources/events.rbi @@ -17,7 +17,7 @@ module Orb timestamp: Time, customer_id: T.nilable(String), external_customer_id: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::EventUpdateResponse) end def update( @@ -28,38 +28,43 @@ module Orb customer_id: nil, external_customer_id: nil, request_options: {} - ); end + ) + end sig do params( event_id: String, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::EventDeprecateResponse) end - def deprecate(event_id, request_options: {}); end + def deprecate(event_id, request_options: {}) + end sig do params( events: T::Array[Orb::Models::EventIngestParams::Event], backfill_id: T.nilable(String), debug: T::Boolean, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::EventIngestResponse) end - def ingest(events:, backfill_id: nil, debug: nil, request_options: {}); end + def ingest(events:, backfill_id: nil, debug: nil, request_options: {}) + end sig do params( event_ids: T::Array[String], timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::EventSearchResponse) end - def search(event_ids:, timeframe_end: nil, timeframe_start: nil, 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 + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/events/backfills.rbi b/rbi/lib/orb/resources/events/backfills.rbi index 34b33b65..8f78a959 100644 --- a/rbi/lib/orb/resources/events/backfills.rbi +++ b/rbi/lib/orb/resources/events/backfills.rbi @@ -13,7 +13,7 @@ module Orb deprecation_filter: T.nilable(String), external_customer_id: T.nilable(String), replace_existing_events: T::Boolean, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Events::BackfillCreateResponse) end def create( @@ -25,43 +25,49 @@ module Orb external_customer_id: nil, replace_existing_events: nil, request_options: {} - ); end + ) + end sig do params( cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Events::BackfillListResponse]) end - def list(cursor: nil, limit: nil, request_options: {}); end + def list(cursor: nil, limit: nil, request_options: {}) + end sig do params( backfill_id: String, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Events::BackfillCloseResponse) end - def close(backfill_id, request_options: {}); end + def close(backfill_id, request_options: {}) + end sig do params( backfill_id: String, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Events::BackfillFetchResponse) end - def fetch(backfill_id, request_options: {}); end + def fetch(backfill_id, request_options: {}) + end sig do params( backfill_id: String, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Events::BackfillRevertResponse) end - def revert(backfill_id, request_options: {}); end + def revert(backfill_id, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/events/volume.rbi b/rbi/lib/orb/resources/events/volume.rbi index b4db572c..8da22b34 100644 --- a/rbi/lib/orb/resources/events/volume.rbi +++ b/rbi/lib/orb/resources/events/volume.rbi @@ -10,13 +10,15 @@ module Orb cursor: T.nilable(String), limit: Integer, timeframe_end: Time, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Events::EventVolumes) end - def list(timeframe_start:, cursor: nil, limit: nil, timeframe_end: nil, 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 + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/invoice_line_items.rbi b/rbi/lib/orb/resources/invoice_line_items.rbi index 157fef58..80da4f5d 100644 --- a/rbi/lib/orb/resources/invoice_line_items.rbi +++ b/rbi/lib/orb/resources/invoice_line_items.rbi @@ -11,13 +11,15 @@ module Orb name: String, quantity: Float, start_date: Date, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::InvoiceLineItemCreateResponse) end - def create(amount:, end_date:, invoice_id:, name:, quantity:, start_date:, request_options: {}); end + def create(amount:, end_date:, invoice_id:, name:, quantity:, start_date:, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/invoices.rbi b/rbi/lib/orb/resources/invoices.rbi index ab4f2da8..22d8d67e 100644 --- a/rbi/lib/orb/resources/invoices.rbi +++ b/rbi/lib/orb/resources/invoices.rbi @@ -10,12 +10,19 @@ module Orb line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], net_terms: Integer, customer_id: T.nilable(String), - discount: T.nilable(Orb::Models::Discount::Variants), + discount: T.nilable( + T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::Discount::UsageDiscount, + Orb::Models::AmountDiscount + ) + ), external_customer_id: T.nilable(String), memo: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), will_auto_issue: T::Boolean, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Invoice) end def create( @@ -30,16 +37,18 @@ module Orb metadata: nil, will_auto_issue: nil, request_options: {} - ); end + ) + end sig do params( invoice_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Invoice) end - def update(invoice_id, metadata: nil, request_options: {}); end + def update(invoice_id, metadata: nil, request_options: {}) + end sig do params( @@ -62,7 +71,7 @@ module Orb limit: Integer, status: T.nilable(T::Array[Symbol]), subscription_id: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Invoice]) end def list( @@ -86,27 +95,36 @@ module Orb status: nil, subscription_id: nil, request_options: {} - ); end + ) + end - sig { params(invoice_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Invoice) } - def fetch(invoice_id, request_options: {}); end + sig do + params( + invoice_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Invoice) + end + def fetch(invoice_id, request_options: {}) + end sig do params( subscription_id: String, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::InvoiceFetchUpcomingResponse) end - def fetch_upcoming(subscription_id:, request_options: {}); end + def fetch_upcoming(subscription_id:, request_options: {}) + end sig do params( invoice_id: String, synchronous: T::Boolean, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Invoice) end - def issue(invoice_id, synchronous: nil, request_options: {}); end + def issue(invoice_id, synchronous: nil, request_options: {}) + end sig do params( @@ -114,20 +132,33 @@ module Orb payment_received_date: Date, external_id: T.nilable(String), notes: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Invoice) 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 + sig do + params( + invoice_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Invoice) + end + def pay(invoice_id, request_options: {}) + end - sig { params(invoice_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Invoice) } - def void(invoice_id, request_options: {}); end + sig do + params( + invoice_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Invoice) + end + def void(invoice_id, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/items.rbi b/rbi/lib/orb/resources/items.rbi index 08a511f2..40b45286 100644 --- a/rbi/lib/orb/resources/items.rbi +++ b/rbi/lib/orb/resources/items.rbi @@ -3,33 +3,53 @@ module Orb module Resources class Items - sig { params(name: String, request_options: Orb::RequestOpts).returns(Orb::Models::Item) } - def create(name:, request_options: {}); end + sig do + params( + name: String, + request_options: T.nilable( + T.any( + Orb::RequestOptions, + T::Hash[Symbol, T.anything] + ) + ) + ).returns(Orb::Models::Item) + end + def create(name:, request_options: {}) + end sig do params( item_id: String, external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), name: T.nilable(String), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Item) end - def update(item_id, external_connections: nil, name: nil, request_options: {}); end + def update(item_id, external_connections: nil, name: nil, request_options: {}) + end sig do params( cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Item]) end - def list(cursor: nil, limit: nil, 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 + sig do + params( + item_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Item) + end + def fetch(item_id, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/metrics.rbi b/rbi/lib/orb/resources/metrics.rbi index 374d4d90..3047cf3a 100644 --- a/rbi/lib/orb/resources/metrics.rbi +++ b/rbi/lib/orb/resources/metrics.rbi @@ -10,19 +10,21 @@ module Orb name: String, sql: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::BillableMetric) end - def create(description:, item_id:, name:, sql:, metadata: nil, request_options: {}); end + def create(description:, item_id:, name:, sql:, metadata: nil, request_options: {}) + end sig do params( metric_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::BillableMetric) end - def update(metric_id, metadata: nil, request_options: {}); end + def update(metric_id, metadata: nil, request_options: {}) + end sig do params( @@ -32,7 +34,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::BillableMetric]) end def list( @@ -43,15 +45,21 @@ module Orb cursor: nil, limit: nil, request_options: {} - ); end + ) + end sig do - params(metric_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::BillableMetric) + params( + metric_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::BillableMetric) + end + def fetch(metric_id, request_options: {}) end - def fetch(metric_id, request_options: {}); end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/plans.rbi b/rbi/lib/orb/resources/plans.rbi index 9c54786f..0a420dbd 100644 --- a/rbi/lib/orb/resources/plans.rbi +++ b/rbi/lib/orb/resources/plans.rbi @@ -10,13 +10,38 @@ module Orb params( currency: String, name: String, - prices: T::Array[Orb::Models::PlanCreateParams::Price::Variants], + prices: T::Array[T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice + )], default_invoice_memo: T.nilable(String), external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), status: Symbol, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Plan) end def create( @@ -29,17 +54,19 @@ module Orb net_terms: nil, status: nil, request_options: {} - ); end + ) + end sig do params( plan_id: String, external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Plan) end - def update(plan_id, external_plan_id: nil, metadata: nil, request_options: {}); end + def update(plan_id, external_plan_id: nil, metadata: nil, request_options: {}) + end sig do params( @@ -50,7 +77,7 @@ module Orb cursor: T.nilable(String), limit: Integer, status: Symbol, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Plan]) end def list( @@ -62,13 +89,21 @@ module Orb limit: nil, status: nil, request_options: {} - ); end + ) + end - sig { params(plan_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Plan) } - def fetch(plan_id, request_options: {}); end + sig do + params( + plan_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Plan) + end + def fetch(plan_id, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/plans/external_plan_id.rbi b/rbi/lib/orb/resources/plans/external_plan_id.rbi index ae2dbf50..2d162423 100644 --- a/rbi/lib/orb/resources/plans/external_plan_id.rbi +++ b/rbi/lib/orb/resources/plans/external_plan_id.rbi @@ -9,16 +9,24 @@ module Orb other_external_plan_id: String, external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Plan) end - def update(other_external_plan_id, external_plan_id: nil, metadata: nil, 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 + sig do + params( + external_plan_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Plan) + end + def fetch(external_plan_id, request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/prices.rbi b/rbi/lib/orb/resources/prices.rbi index 76942859..8db5dd4f 100644 --- a/rbi/lib/orb/resources/prices.rbi +++ b/rbi/lib/orb/resources/prices.rbi @@ -49,8 +49,36 @@ module Orb 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) + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(T.any( + 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 + )) end def create( cadence:, @@ -95,25 +123,84 @@ module Orb invoicing_cycle_configuration: nil, metadata: nil, request_options: {} - ); end + ) + end sig do params( price_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ).returns(Orb::Models::Price::Variants) + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(T.any( + 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 + )) + end + def update(price_id, metadata: nil, request_options: {}) end - def update(price_id, metadata: nil, request_options: {}); end sig do params( cursor: T.nilable(String), limit: Integer, - request_options: Orb::RequestOpts - ).returns(Orb::Page[Orb::Models::Price::Variants]) + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Page[T.any( + 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 + )]) + end + def list(cursor: nil, limit: nil, request_options: {}) end - def list(cursor: nil, limit: nil, request_options: {}); end sig do params( @@ -124,7 +211,7 @@ module Orb external_customer_id: T.nilable(String), filter: T.nilable(String), grouping_keys: T::Array[String], - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::PriceEvaluateResponse) end def evaluate( @@ -136,15 +223,49 @@ module Orb filter: nil, grouping_keys: nil, request_options: {} - ); end + ) + end sig do - params(price_id: String, request_options: Orb::RequestOpts).returns(Orb::Models::Price::Variants) + params( + price_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(T.any( + 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 + )) + end + def fetch(price_id, request_options: {}) end - def fetch(price_id, request_options: {}); end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/prices/external_price_id.rbi b/rbi/lib/orb/resources/prices/external_price_id.rbi index dd7f9333..13a2a1c3 100644 --- a/rbi/lib/orb/resources/prices/external_price_id.rbi +++ b/rbi/lib/orb/resources/prices/external_price_id.rbi @@ -8,21 +8,80 @@ module Orb params( external_price_id: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: Orb::RequestOpts - ).returns(Orb::Models::Price::Variants) + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(T.any( + 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 + )) + end + def update(external_price_id, metadata: nil, request_options: {}) end - def update(external_price_id, metadata: nil, request_options: {}); end sig do params( external_price_id: String, - request_options: Orb::RequestOpts - ).returns(Orb::Models::Price::Variants) + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(T.any( + 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 + )) + end + def fetch(external_price_id, request_options: {}) end - def fetch(external_price_id, request_options: {}); end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/subscriptions.rbi b/rbi/lib/orb/resources/subscriptions.rbi index 0fff1f35..ea3c26be 100644 --- a/rbi/lib/orb/resources/subscriptions.rbi +++ b/rbi/lib/orb/resources/subscriptions.rbi @@ -35,7 +35,7 @@ module Orb replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]), start_date: T.nilable(Time), trial_duration_days: T.nilable(Integer), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionCreateResponse) end def create( @@ -70,7 +70,8 @@ module Orb start_date: nil, trial_duration_days: nil, request_options: {} - ); end + ) + end sig do params( @@ -80,7 +81,7 @@ module Orb invoicing_threshold: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::Subscription) end def update( @@ -91,7 +92,8 @@ module Orb metadata: nil, net_terms: nil, request_options: {} - ); end + ) + end sig do params( @@ -104,7 +106,7 @@ module Orb external_customer_id: T.nilable(String), limit: Integer, status: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::Subscription]) end def list( @@ -118,22 +120,28 @@ module Orb limit: nil, status: nil, request_options: {} - ); end + ) + end sig do params( subscription_id: String, cancel_option: Symbol, cancellation_date: T.nilable(Time), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionCancelResponse) end - def cancel(subscription_id, cancel_option:, cancellation_date: nil, 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) + params( + subscription_id: String, + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(Orb::Models::Subscription) + end + def fetch(subscription_id, request_options: {}) end - def fetch(subscription_id, request_options: {}); end sig do params( @@ -142,7 +150,7 @@ module Orb timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionFetchCostsResponse) end def fetch_costs( @@ -152,7 +160,8 @@ module Orb timeframe_start: nil, view_mode: nil, request_options: {} - ); end + ) + end sig do params( @@ -163,7 +172,7 @@ module Orb start_date_gte: T.nilable(Time), start_date_lt: T.nilable(Time), start_date_lte: T.nilable(Time), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse]) end def fetch_schedule( @@ -175,7 +184,8 @@ module Orb start_date_lt: nil, start_date_lte: nil, request_options: {} - ); end + ) + end sig do params( @@ -190,8 +200,11 @@ module Orb timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), view_mode: T.nilable(Symbol), - request_options: Orb::RequestOpts - ).returns(Orb::Models::SubscriptionUsage::Variants) + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + ).returns(T.any( + Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, + Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage + )) end def fetch_usage( subscription_id, @@ -206,7 +219,8 @@ module Orb timeframe_start: nil, view_mode: nil, request_options: {} - ); end + ) + end sig do params( @@ -215,7 +229,7 @@ module Orb add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], edit: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], edit_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionPriceIntervalsResponse) end def price_intervals( @@ -256,7 +270,7 @@ module Orb replace_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]), replace_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]), trial_duration_days: T.nilable(Integer), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionSchedulePlanChangeResponse) end def schedule_plan_change( @@ -287,41 +301,46 @@ module Orb replace_prices: nil, trial_duration_days: nil, request_options: {} - ); end + ) + end sig do params( subscription_id: String, effective_date: T.nilable(Date), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionTriggerPhaseResponse) end - def trigger_phase(subscription_id, effective_date: nil, request_options: {}); end + def trigger_phase(subscription_id, effective_date: nil, request_options: {}) + end sig do params( subscription_id: String, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionUnscheduleCancellationResponse) end - def unschedule_cancellation(subscription_id, request_options: {}); end + def unschedule_cancellation(subscription_id, request_options: {}) + end sig do params( subscription_id: String, price_id: String, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse) end - def unschedule_fixed_fee_quantity_updates(subscription_id, price_id:, request_options: {}); end + def unschedule_fixed_fee_quantity_updates(subscription_id, price_id:, request_options: {}) + end sig do params( subscription_id: String, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse) end - def unschedule_pending_plan_changes(subscription_id, request_options: {}); end + def unschedule_pending_plan_changes(subscription_id, request_options: {}) + end sig do params( @@ -330,7 +349,7 @@ module Orb quantity: Float, change_option: Symbol, effective_date: T.nilable(Date), - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse) end def update_fixed_fee_quantity( @@ -346,15 +365,17 @@ module Orb sig do params( subscription_id: String, - trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::Variants, + trial_end_date: T.any(Time, Symbol), shift: T::Boolean, - request_options: Orb::RequestOpts + request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) ).returns(Orb::Models::SubscriptionUpdateTrialResponse) end - def update_trial(subscription_id, trial_end_date:, shift: nil, 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 + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/resources/top_level.rbi b/rbi/lib/orb/resources/top_level.rbi index feab6937..f76d6c9f 100644 --- a/rbi/lib/orb/resources/top_level.rbi +++ b/rbi/lib/orb/resources/top_level.rbi @@ -3,11 +3,23 @@ module Orb module Resources class TopLevel - sig { params(request_options: Orb::RequestOpts).returns(Orb::Models::TopLevelPingResponse) } - def ping(request_options: {}); end + sig do + params( + request_options: T.nilable( + T.any( + Orb::RequestOptions, + T::Hash[Symbol, + T.anything] + ) + ) + ).returns(Orb::Models::TopLevelPingResponse) + end + def ping(request_options: {}) + end sig { params(client: Orb::Client).void } - def initialize(client:); end + def initialize(client:) + end end end end diff --git a/rbi/lib/orb/util.rbi b/rbi/lib/orb/util.rbi index e91250eb..5d0c0b88 100644 --- a/rbi/lib/orb/util.rbi +++ b/rbi/lib/orb/util.rbi @@ -3,22 +3,28 @@ module Orb module Util sig { params(input: T.anything).returns(T.any(T::Boolean, T.anything)) } - def self.primitive?(input); end + def self.primitive?(input) + end sig { params(input: T.anything).returns(T.any(T::Boolean, T.anything)) } - def self.coerce_boolean(input); end + def self.coerce_boolean(input) + end sig { params(input: T.anything).returns(T.nilable(T::Boolean)) } - def self.coerce_boolean!(input); end + def self.coerce_boolean!(input) + end sig { params(input: T.anything).returns(T.any(Integer, T.anything)) } - def self.coerce_integer(input); end + def self.coerce_integer(input) + end sig { params(input: T.anything).returns(T.any(Float, T.anything)) } - def self.coerce_float(input); end + def self.coerce_float(input) + end sig { params(input: T.anything).returns(T.any(T::Hash[T.anything, T.anything], T.anything)) } - def self.coerce_hash(input); end + def self.coerce_hash(input) + end sig do params( @@ -27,7 +33,8 @@ module Orb blk: T.nilable(T.proc.returns(T.anything)) ).returns(T.nilable(T.anything)) end - def self.suppress(*exceptions, sentinel: nil, &blk); end + def self.suppress(*exceptions, sentinel: nil, &blk) + end OMIT = T.let(T.anything, T.anything) @@ -38,7 +45,8 @@ module Orb concat: T::Boolean ).returns(T.anything) end - def self.deep_merge(*values, sentinel: nil, concat: false); end + def self.deep_merge(*values, sentinel: nil, concat: false) + end sig do params( @@ -48,13 +56,16 @@ module Orb blk: T.nilable(T.proc.returns(T.anything)) ).returns(T.nilable(T.anything)) end - def self.dig(data, pick, sentinel = nil, &blk); end + def self.dig(data, pick, sentinel = nil, &blk) + end sig { params(uri: URI::Generic).returns(String) } - def self.uri_origin(uri); end + def self.uri_origin(uri) + end sig { params(path: T.any(String, T::Array[String])).returns(String) } - def self.interpolate_path(path); end + def self.interpolate_path(path) + end ParsedUriShape = T.type_alias do { @@ -67,21 +78,26 @@ module Orb end sig { params(url: T.any(URI::Generic, String)).returns(Orb::Util::ParsedUriShape) } - def self.parse_uri(url); end + def self.parse_uri(url) + end sig { params(parsed: Orb::Util::ParsedUriShape).returns(URI::Generic) } - def self.unparse_uri(parsed); end + def self.unparse_uri(parsed) + end sig { params(lhs: Orb::Util::ParsedUriShape, rhs: Orb::Util::ParsedUriShape).returns(URI::Generic) } - def self.join_parsed_uri(lhs, rhs); end + def self.join_parsed_uri(lhs, rhs) + end sig { params(query: T.nilable(String)).returns(T::Hash[String, T::Array[String]]) } - def self.decode_query(query); end + def self.decode_query(query) + end sig do params(query: T::Hash[String, T.nilable(T.any(T::Array[String], String))]).returns(T.nilable(String)) end - def self.encode_query(query); end + def self.encode_query(query) + end sig do params( @@ -89,15 +105,19 @@ module Orb T.nilable(T.any(String, Integer))]] ).returns(T::Hash[String, String]) end - def self.normalized_headers(*headers); end + def self.normalized_headers(*headers) + end sig { params(headers: T::Hash[String, String], body: T.anything).returns(T.anything) } - def self.encode_content(headers, body); end + def self.encode_content(headers, body) + end sig { params(response: Net::HTTPResponse, suppress_error: T::Boolean).returns(T.anything) } - def self.decode_content(response, suppress_error: false); end + def self.decode_content(response, suppress_error: false) + end sig { params(io: StringIO, boundary: String, key: T.any(Symbol, String), val: T.anything).void } - private_class_method def self.encode_multipart_formdata(io, boundary:, key:, val:); end + private_class_method def self.encode_multipart_formdata(io, boundary:, key:, val:) + end end end diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index 3e62b13f..44232c5d 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.2" + VERSION = "0.1.0-alpha.3" end diff --git a/sig/orb/extern.rbs b/sig/orb/extern.rbs index c4cb4e87..6b9181ce 100644 --- a/sig/orb/extern.rbs +++ b/sig/orb/extern.rbs @@ -1,5 +1,4 @@ module Orb module Extern - def sorbet!: { -> void } -> void end end diff --git a/sig/orb/models/alert.rbs b/sig/orb/models/alert.rbs index 1c7b3992..54b33e3a 100644 --- a/sig/orb/models/alert.rbs +++ b/sig/orb/models/alert.rbs @@ -50,7 +50,7 @@ module Orb ) -> void | (?Orb::Models::alert | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::alert + def to_hash: -> Orb::Models::alert type customer = { id: String, external_customer_id: String? } @@ -63,7 +63,7 @@ module Orb (id: String, external_customer_id: String?) -> void | (?Orb::Models::Alert::customer | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Alert::customer + def to_hash: -> Orb::Models::Alert::customer end type metric = { id: String } @@ -75,7 +75,7 @@ module Orb (id: String) -> void | (?Orb::Models::Alert::metric | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Alert::metric + def to_hash: -> Orb::Models::Alert::metric end type plan = @@ -104,7 +104,7 @@ module Orb ) -> void | (?Orb::Models::Alert::plan | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Alert::plan + def to_hash: -> Orb::Models::Alert::plan end type subscription = { id: String } @@ -116,7 +116,7 @@ module Orb (id: String) -> void | (?Orb::Models::Alert::subscription | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Alert::subscription + def to_hash: -> Orb::Models::Alert::subscription end type threshold = { value: Float } @@ -128,7 +128,7 @@ module Orb (value: Float) -> void | (?Orb::Models::Alert::threshold | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Alert::threshold + def to_hash: -> Orb::Models::Alert::threshold end type type_ = diff --git a/sig/orb/models/alert_create_for_customer_params.rbs b/sig/orb/models/alert_create_for_customer_params.rbs index 279ff4b1..d003c9a7 100644 --- a/sig/orb/models/alert_create_for_customer_params.rbs +++ b/sig/orb/models/alert_create_for_customer_params.rbs @@ -29,7 +29,7 @@ module Orb ?Orb::Models::alert_create_for_customer_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::alert_create_for_customer_params + def to_hash: -> Orb::Models::alert_create_for_customer_params type type_ = :usage_exceeded @@ -60,7 +60,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::AlertCreateForCustomerParams::threshold + def to_hash: -> Orb::Models::AlertCreateForCustomerParams::threshold end end end diff --git a/sig/orb/models/alert_create_for_external_customer_params.rbs b/sig/orb/models/alert_create_for_external_customer_params.rbs index e9c22a21..408db8e8 100644 --- a/sig/orb/models/alert_create_for_external_customer_params.rbs +++ b/sig/orb/models/alert_create_for_external_customer_params.rbs @@ -30,7 +30,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::alert_create_for_external_customer_params + def to_hash: -> Orb::Models::alert_create_for_external_customer_params type type_ = :usage_exceeded @@ -61,7 +61,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::AlertCreateForExternalCustomerParams::threshold + def to_hash: -> Orb::Models::AlertCreateForExternalCustomerParams::threshold end end end diff --git a/sig/orb/models/alert_create_for_subscription_params.rbs b/sig/orb/models/alert_create_for_subscription_params.rbs index 25865cb6..97f4dd30 100644 --- a/sig/orb/models/alert_create_for_subscription_params.rbs +++ b/sig/orb/models/alert_create_for_subscription_params.rbs @@ -30,7 +30,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::alert_create_for_subscription_params + def to_hash: -> Orb::Models::alert_create_for_subscription_params type threshold = { value: Float } @@ -44,7 +44,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::AlertCreateForSubscriptionParams::threshold + def to_hash: -> Orb::Models::AlertCreateForSubscriptionParams::threshold end type type_ = diff --git a/sig/orb/models/alert_disable_params.rbs b/sig/orb/models/alert_disable_params.rbs index 40a16aee..5d1aea20 100644 --- a/sig/orb/models/alert_disable_params.rbs +++ b/sig/orb/models/alert_disable_params.rbs @@ -13,7 +13,7 @@ module Orb (subscription_id: String?, request_options: Orb::request_opts) -> void | (?Orb::Models::alert_disable_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::alert_disable_params + def to_hash: -> Orb::Models::alert_disable_params end end end diff --git a/sig/orb/models/alert_enable_params.rbs b/sig/orb/models/alert_enable_params.rbs index 4294b3a1..f04d4537 100644 --- a/sig/orb/models/alert_enable_params.rbs +++ b/sig/orb/models/alert_enable_params.rbs @@ -13,7 +13,7 @@ module Orb (subscription_id: String?, request_options: Orb::request_opts) -> void | (?Orb::Models::alert_enable_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::alert_enable_params + def to_hash: -> Orb::Models::alert_enable_params end end end diff --git a/sig/orb/models/alert_list_params.rbs b/sig/orb/models/alert_list_params.rbs index 17b570df..c578a913 100644 --- a/sig/orb/models/alert_list_params.rbs +++ b/sig/orb/models/alert_list_params.rbs @@ -53,7 +53,7 @@ module Orb ) -> void | (?Orb::Models::alert_list_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::alert_list_params + def to_hash: -> Orb::Models::alert_list_params end end end diff --git a/sig/orb/models/alert_retrieve_params.rbs b/sig/orb/models/alert_retrieve_params.rbs index fd3d4b53..b77c935f 100644 --- a/sig/orb/models/alert_retrieve_params.rbs +++ b/sig/orb/models/alert_retrieve_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::alert_retrieve_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::alert_retrieve_params + def to_hash: -> Orb::Models::alert_retrieve_params end end end diff --git a/sig/orb/models/alert_update_params.rbs b/sig/orb/models/alert_update_params.rbs index 49fdc843..e662a200 100644 --- a/sig/orb/models/alert_update_params.rbs +++ b/sig/orb/models/alert_update_params.rbs @@ -17,7 +17,7 @@ module Orb ) -> void | (?Orb::Models::alert_update_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::alert_update_params + def to_hash: -> Orb::Models::alert_update_params type threshold = { value: Float } @@ -30,7 +30,7 @@ module Orb ?Orb::Models::AlertUpdateParams::threshold | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::AlertUpdateParams::threshold + def to_hash: -> Orb::Models::AlertUpdateParams::threshold end end end diff --git a/sig/orb/models/amount_discount.rbs b/sig/orb/models/amount_discount.rbs index 038cd858..740ff77b 100644 --- a/sig/orb/models/amount_discount.rbs +++ b/sig/orb/models/amount_discount.rbs @@ -26,7 +26,7 @@ module Orb ) -> void | (?Orb::Models::amount_discount | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::amount_discount + def to_hash: -> Orb::Models::amount_discount type discount_type = :amount diff --git a/sig/orb/models/billable_metric.rbs b/sig/orb/models/billable_metric.rbs index 9457866a..13b7553a 100644 --- a/sig/orb/models/billable_metric.rbs +++ b/sig/orb/models/billable_metric.rbs @@ -34,7 +34,7 @@ module Orb ) -> void | (?Orb::Models::billable_metric | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::billable_metric + def to_hash: -> Orb::Models::billable_metric type status = :active | :draft | :archived diff --git a/sig/orb/models/coupon.rbs b/sig/orb/models/coupon.rbs index dd7ad49e..ef0f3a6b 100644 --- a/sig/orb/models/coupon.rbs +++ b/sig/orb/models/coupon.rbs @@ -38,7 +38,7 @@ module Orb ) -> void | (?Orb::Models::coupon | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::coupon + def to_hash: -> Orb::Models::coupon type discount = Orb::Models::PercentageDiscount | Orb::Models::AmountDiscount diff --git a/sig/orb/models/coupon_archive_params.rbs b/sig/orb/models/coupon_archive_params.rbs index de73af2b..aa71c8cf 100644 --- a/sig/orb/models/coupon_archive_params.rbs +++ b/sig/orb/models/coupon_archive_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::coupon_archive_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::coupon_archive_params + def to_hash: -> Orb::Models::coupon_archive_params end end end diff --git a/sig/orb/models/coupon_create_params.rbs b/sig/orb/models/coupon_create_params.rbs index 73fa9fd8..1c2ec3b8 100644 --- a/sig/orb/models/coupon_create_params.rbs +++ b/sig/orb/models/coupon_create_params.rbs @@ -31,7 +31,7 @@ module Orb ) -> void | (?Orb::Models::coupon_create_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::coupon_create_params + def to_hash: -> Orb::Models::coupon_create_params type discount = Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount @@ -53,7 +53,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CouponCreateParams::Discount::new_coupon_percentage_discount + def to_hash: -> Orb::Models::CouponCreateParams::Discount::new_coupon_percentage_discount end type new_coupon_amount_discount = @@ -71,7 +71,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CouponCreateParams::Discount::new_coupon_amount_discount + def to_hash: -> Orb::Models::CouponCreateParams::Discount::new_coupon_amount_discount end private def self.variants: -> [[:percentage, Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount], [:amount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount]] diff --git a/sig/orb/models/coupon_fetch_params.rbs b/sig/orb/models/coupon_fetch_params.rbs index ffaf9bf1..209c91e5 100644 --- a/sig/orb/models/coupon_fetch_params.rbs +++ b/sig/orb/models/coupon_fetch_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::coupon_fetch_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::coupon_fetch_params + def to_hash: -> Orb::Models::coupon_fetch_params end end end diff --git a/sig/orb/models/coupon_list_params.rbs b/sig/orb/models/coupon_list_params.rbs index 30e17b0c..6cec854c 100644 --- a/sig/orb/models/coupon_list_params.rbs +++ b/sig/orb/models/coupon_list_params.rbs @@ -33,7 +33,7 @@ module Orb ) -> void | (?Orb::Models::coupon_list_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::coupon_list_params + def to_hash: -> Orb::Models::coupon_list_params end end end diff --git a/sig/orb/models/coupons/subscription_list_params.rbs b/sig/orb/models/coupons/subscription_list_params.rbs index d04455ae..feb828e9 100644 --- a/sig/orb/models/coupons/subscription_list_params.rbs +++ b/sig/orb/models/coupons/subscription_list_params.rbs @@ -25,7 +25,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Coupons::subscription_list_params + def to_hash: -> Orb::Models::Coupons::subscription_list_params end end end diff --git a/sig/orb/models/credit_note.rbs b/sig/orb/models/credit_note.rbs index 2872d424..086b1d97 100644 --- a/sig/orb/models/credit_note.rbs +++ b/sig/orb/models/credit_note.rbs @@ -76,7 +76,7 @@ module Orb ) -> void | (?Orb::Models::credit_note | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::credit_note + def to_hash: -> Orb::Models::credit_note type customer = { id: String, external_customer_id: String? } @@ -89,7 +89,7 @@ module Orb (id: String, external_customer_id: String?) -> void | (?Orb::Models::CreditNote::customer | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::CreditNote::customer + def to_hash: -> Orb::Models::CreditNote::customer end type line_item = @@ -134,7 +134,7 @@ module Orb ) -> void | (?Orb::Models::CreditNote::line_item | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::CreditNote::line_item + def to_hash: -> Orb::Models::CreditNote::line_item type tax_amount = { @@ -161,7 +161,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CreditNote::LineItem::tax_amount + def to_hash: -> Orb::Models::CreditNote::LineItem::tax_amount end type discount = @@ -204,7 +204,7 @@ module Orb ?Orb::Models::CreditNote::LineItem::discount | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CreditNote::LineItem::discount + def to_hash: -> Orb::Models::CreditNote::LineItem::discount type discount_type = :percentage | :amount @@ -250,7 +250,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CreditNote::maximum_amount_adjustment + def to_hash: -> Orb::Models::CreditNote::maximum_amount_adjustment type discount_type = :percentage @@ -274,7 +274,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CreditNote::MaximumAmountAdjustment::applies_to_price + def to_hash: -> Orb::Models::CreditNote::MaximumAmountAdjustment::applies_to_price end end @@ -329,7 +329,7 @@ module Orb ) -> void | (?Orb::Models::CreditNote::discount | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::CreditNote::discount + def to_hash: -> Orb::Models::CreditNote::discount type discount_type = :percentage @@ -353,7 +353,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CreditNote::Discount::applies_to_price + def to_hash: -> Orb::Models::CreditNote::Discount::applies_to_price end end end diff --git a/sig/orb/models/credit_note_create_params.rbs b/sig/orb/models/credit_note_create_params.rbs index c36d34b3..b8fa768d 100644 --- a/sig/orb/models/credit_note_create_params.rbs +++ b/sig/orb/models/credit_note_create_params.rbs @@ -29,7 +29,7 @@ module Orb ?Orb::Models::credit_note_create_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::credit_note_create_params + def to_hash: -> Orb::Models::credit_note_create_params type line_item = { amount: String, invoice_line_item_id: String } @@ -45,7 +45,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CreditNoteCreateParams::line_item + def to_hash: -> Orb::Models::CreditNoteCreateParams::line_item end type reason = diff --git a/sig/orb/models/credit_note_fetch_params.rbs b/sig/orb/models/credit_note_fetch_params.rbs index 2975331c..1e87972a 100644 --- a/sig/orb/models/credit_note_fetch_params.rbs +++ b/sig/orb/models/credit_note_fetch_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::credit_note_fetch_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::credit_note_fetch_params + def to_hash: -> Orb::Models::credit_note_fetch_params end end end diff --git a/sig/orb/models/credit_note_list_params.rbs b/sig/orb/models/credit_note_list_params.rbs index 5b0884bd..6908159b 100644 --- a/sig/orb/models/credit_note_list_params.rbs +++ b/sig/orb/models/credit_note_list_params.rbs @@ -21,7 +21,7 @@ module Orb ) -> void | (?Orb::Models::credit_note_list_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::credit_note_list_params + def to_hash: -> Orb::Models::credit_note_list_params end end end diff --git a/sig/orb/models/customer.rbs b/sig/orb/models/customer.rbs index 6d2af84b..44037b7d 100644 --- a/sig/orb/models/customer.rbs +++ b/sig/orb/models/customer.rbs @@ -94,7 +94,7 @@ module Orb ) -> void | (?Orb::Models::customer | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::customer + def to_hash: -> Orb::Models::customer type billing_address = { @@ -132,7 +132,7 @@ module Orb ?Orb::Models::Customer::billing_address | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customer::billing_address + def to_hash: -> Orb::Models::Customer::billing_address end type payment_provider = @@ -184,7 +184,7 @@ module Orb ?Orb::Models::Customer::shipping_address | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customer::shipping_address + def to_hash: -> Orb::Models::Customer::shipping_address end type tax_id = @@ -209,7 +209,7 @@ module Orb ) -> void | (?Orb::Models::Customer::tax_id | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Customer::tax_id + def to_hash: -> Orb::Models::Customer::tax_id type country = :AD @@ -545,7 +545,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customer::accounting_sync_configuration + def to_hash: -> Orb::Models::Customer::accounting_sync_configuration type accounting_provider = { @@ -568,7 +568,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customer::AccountingSyncConfiguration::accounting_provider + def to_hash: -> Orb::Models::Customer::AccountingSyncConfiguration::accounting_provider type provider_type = :quickbooks | :netsuite @@ -593,7 +593,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customer::reporting_configuration + def to_hash: -> Orb::Models::Customer::reporting_configuration end end end diff --git a/sig/orb/models/customer_create_params.rbs b/sig/orb/models/customer_create_params.rbs index c4bfd531..601440e0 100644 --- a/sig/orb/models/customer_create_params.rbs +++ b/sig/orb/models/customer_create_params.rbs @@ -83,7 +83,7 @@ module Orb ) -> void | (?Orb::Models::customer_create_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::customer_create_params + def to_hash: -> Orb::Models::customer_create_params type accounting_sync_configuration = { @@ -106,7 +106,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerCreateParams::accounting_sync_configuration + def to_hash: -> Orb::Models::CustomerCreateParams::accounting_sync_configuration type accounting_provider = { external_provider_id: String, provider_type: String } @@ -123,7 +123,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::accounting_provider + def to_hash: -> Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::accounting_provider end end @@ -164,7 +164,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerCreateParams::billing_address + def to_hash: -> Orb::Models::CustomerCreateParams::billing_address end type payment_provider = @@ -192,7 +192,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerCreateParams::reporting_configuration + def to_hash: -> Orb::Models::CustomerCreateParams::reporting_configuration end type shipping_address = @@ -232,7 +232,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerCreateParams::shipping_address + def to_hash: -> Orb::Models::CustomerCreateParams::shipping_address end type tax_configuration = @@ -265,7 +265,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerCreateParams::TaxConfiguration::new_avalara_tax_configuration + def to_hash: -> Orb::Models::CustomerCreateParams::TaxConfiguration::new_avalara_tax_configuration end type new_tax_jar_configuration = @@ -283,7 +283,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerCreateParams::TaxConfiguration::new_tax_jar_configuration + def to_hash: -> Orb::Models::CustomerCreateParams::TaxConfiguration::new_tax_jar_configuration end private def self.variants: -> [[:avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration], [:taxjar, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration]] @@ -313,7 +313,7 @@ module Orb ?Orb::Models::CustomerCreateParams::tax_id | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerCreateParams::tax_id + def to_hash: -> Orb::Models::CustomerCreateParams::tax_id type country = :AD diff --git a/sig/orb/models/customer_delete_params.rbs b/sig/orb/models/customer_delete_params.rbs index a919e759..0a58dae8 100644 --- a/sig/orb/models/customer_delete_params.rbs +++ b/sig/orb/models/customer_delete_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::customer_delete_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::customer_delete_params + def to_hash: -> Orb::Models::customer_delete_params end end end diff --git a/sig/orb/models/customer_fetch_by_external_id_params.rbs b/sig/orb/models/customer_fetch_by_external_id_params.rbs index aa50b39f..39005200 100644 --- a/sig/orb/models/customer_fetch_by_external_id_params.rbs +++ b/sig/orb/models/customer_fetch_by_external_id_params.rbs @@ -13,7 +13,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::customer_fetch_by_external_id_params + def to_hash: -> Orb::Models::customer_fetch_by_external_id_params end end end diff --git a/sig/orb/models/customer_fetch_params.rbs b/sig/orb/models/customer_fetch_params.rbs index ca91b695..4b37f6ba 100644 --- a/sig/orb/models/customer_fetch_params.rbs +++ b/sig/orb/models/customer_fetch_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::customer_fetch_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::customer_fetch_params + def to_hash: -> Orb::Models::customer_fetch_params end end end diff --git a/sig/orb/models/customer_list_params.rbs b/sig/orb/models/customer_list_params.rbs index 727d7de4..5863ac87 100644 --- a/sig/orb/models/customer_list_params.rbs +++ b/sig/orb/models/customer_list_params.rbs @@ -41,7 +41,7 @@ module Orb ) -> void | (?Orb::Models::customer_list_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::customer_list_params + def to_hash: -> Orb::Models::customer_list_params end end end diff --git a/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs b/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs index 0647fc4e..a991c284 100644 --- a/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +++ b/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs @@ -14,7 +14,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::customer_sync_payment_methods_from_gateway_by_external_customer_id_params + def to_hash: -> Orb::Models::customer_sync_payment_methods_from_gateway_by_external_customer_id_params end end end diff --git a/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs b/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs index fe1e54f9..73a28957 100644 --- a/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +++ b/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs @@ -14,7 +14,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::customer_sync_payment_methods_from_gateway_params + def to_hash: -> Orb::Models::customer_sync_payment_methods_from_gateway_params end end end diff --git a/sig/orb/models/customer_update_by_external_id_params.rbs b/sig/orb/models/customer_update_by_external_id_params.rbs index 9f0a5ab4..3004c24f 100644 --- a/sig/orb/models/customer_update_by_external_id_params.rbs +++ b/sig/orb/models/customer_update_by_external_id_params.rbs @@ -82,7 +82,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::customer_update_by_external_id_params + def to_hash: -> Orb::Models::customer_update_by_external_id_params type accounting_sync_configuration = { @@ -105,7 +105,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateByExternalIDParams::accounting_sync_configuration + def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::accounting_sync_configuration type accounting_provider = { external_provider_id: String, provider_type: String } @@ -122,7 +122,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::accounting_provider + def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::accounting_provider end end @@ -163,7 +163,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateByExternalIDParams::billing_address + def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::billing_address end type payment_provider = @@ -191,7 +191,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateByExternalIDParams::reporting_configuration + def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::reporting_configuration end type shipping_address = @@ -231,7 +231,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateByExternalIDParams::shipping_address + def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::shipping_address end type tax_configuration = @@ -264,7 +264,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_avalara_tax_configuration + def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_avalara_tax_configuration end type new_tax_jar_configuration = @@ -282,7 +282,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_tax_jar_configuration + def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_tax_jar_configuration end private def self.variants: -> [[:avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration], [:taxjar, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration]] @@ -313,7 +313,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateByExternalIDParams::tax_id + def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::tax_id type country = :AD diff --git a/sig/orb/models/customer_update_params.rbs b/sig/orb/models/customer_update_params.rbs index 86438f98..e7f84b5d 100644 --- a/sig/orb/models/customer_update_params.rbs +++ b/sig/orb/models/customer_update_params.rbs @@ -79,7 +79,7 @@ module Orb ) -> void | (?Orb::Models::customer_update_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::customer_update_params + def to_hash: -> Orb::Models::customer_update_params type accounting_sync_configuration = { @@ -102,7 +102,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateParams::accounting_sync_configuration + def to_hash: -> Orb::Models::CustomerUpdateParams::accounting_sync_configuration type accounting_provider = { external_provider_id: String, provider_type: String } @@ -119,7 +119,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::accounting_provider + def to_hash: -> Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::accounting_provider end end @@ -160,7 +160,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateParams::billing_address + def to_hash: -> Orb::Models::CustomerUpdateParams::billing_address end type payment_provider = @@ -188,7 +188,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateParams::reporting_configuration + def to_hash: -> Orb::Models::CustomerUpdateParams::reporting_configuration end type shipping_address = @@ -228,7 +228,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateParams::shipping_address + def to_hash: -> Orb::Models::CustomerUpdateParams::shipping_address end type tax_configuration = @@ -261,7 +261,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::new_avalara_tax_configuration + def to_hash: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::new_avalara_tax_configuration end type new_tax_jar_configuration = @@ -279,7 +279,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::new_tax_jar_configuration + def to_hash: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::new_tax_jar_configuration end private def self.variants: -> [[:avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration], [:taxjar, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration]] @@ -309,7 +309,7 @@ module Orb ?Orb::Models::CustomerUpdateParams::tax_id | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::CustomerUpdateParams::tax_id + def to_hash: -> Orb::Models::CustomerUpdateParams::tax_id type country = :AD diff --git a/sig/orb/models/customers/balance_transaction_create_params.rbs b/sig/orb/models/customers/balance_transaction_create_params.rbs index fedb2f6b..1cb2da78 100644 --- a/sig/orb/models/customers/balance_transaction_create_params.rbs +++ b/sig/orb/models/customers/balance_transaction_create_params.rbs @@ -31,7 +31,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::balance_transaction_create_params + def to_hash: -> Orb::Models::Customers::balance_transaction_create_params type type_ = :increment | :decrement diff --git a/sig/orb/models/customers/balance_transaction_create_response.rbs b/sig/orb/models/customers/balance_transaction_create_response.rbs index 7f24d7b6..29ef86d5 100644 --- a/sig/orb/models/customers/balance_transaction_create_response.rbs +++ b/sig/orb/models/customers/balance_transaction_create_response.rbs @@ -54,7 +54,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::balance_transaction_create_response + def to_hash: -> Orb::Models::Customers::balance_transaction_create_response type action = :applied_to_invoice @@ -91,7 +91,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::BalanceTransactionCreateResponse::credit_note + def to_hash: -> Orb::Models::Customers::BalanceTransactionCreateResponse::credit_note end type invoice = { id: String } @@ -106,7 +106,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::BalanceTransactionCreateResponse::invoice + def to_hash: -> Orb::Models::Customers::BalanceTransactionCreateResponse::invoice end type type_ = :increment | :decrement diff --git a/sig/orb/models/customers/balance_transaction_list_params.rbs b/sig/orb/models/customers/balance_transaction_list_params.rbs index 8efe8de8..59f8c2b5 100644 --- a/sig/orb/models/customers/balance_transaction_list_params.rbs +++ b/sig/orb/models/customers/balance_transaction_list_params.rbs @@ -45,7 +45,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::balance_transaction_list_params + def to_hash: -> Orb::Models::Customers::balance_transaction_list_params end end end diff --git a/sig/orb/models/customers/balance_transaction_list_response.rbs b/sig/orb/models/customers/balance_transaction_list_response.rbs index 3c182cb8..fd899192 100644 --- a/sig/orb/models/customers/balance_transaction_list_response.rbs +++ b/sig/orb/models/customers/balance_transaction_list_response.rbs @@ -54,7 +54,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::balance_transaction_list_response + def to_hash: -> Orb::Models::Customers::balance_transaction_list_response type action = :applied_to_invoice @@ -91,7 +91,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::BalanceTransactionListResponse::credit_note + def to_hash: -> Orb::Models::Customers::BalanceTransactionListResponse::credit_note end type invoice = { id: String } @@ -106,7 +106,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::BalanceTransactionListResponse::invoice + def to_hash: -> Orb::Models::Customers::BalanceTransactionListResponse::invoice end type type_ = :increment | :decrement diff --git a/sig/orb/models/customers/cost_list_by_external_id_params.rbs b/sig/orb/models/customers/cost_list_by_external_id_params.rbs index 7d9dbc53..b0c2579e 100644 --- a/sig/orb/models/customers/cost_list_by_external_id_params.rbs +++ b/sig/orb/models/customers/cost_list_by_external_id_params.rbs @@ -35,7 +35,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::cost_list_by_external_id_params + def to_hash: -> Orb::Models::Customers::cost_list_by_external_id_params type view_mode = :periodic | :cumulative diff --git a/sig/orb/models/customers/cost_list_by_external_id_response.rbs b/sig/orb/models/customers/cost_list_by_external_id_response.rbs index 19f3f0d0..49e443ec 100644 --- a/sig/orb/models/customers/cost_list_by_external_id_response.rbs +++ b/sig/orb/models/customers/cost_list_by_external_id_response.rbs @@ -18,7 +18,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::cost_list_by_external_id_response + def to_hash: -> Orb::Models::Customers::cost_list_by_external_id_response type data = { @@ -53,7 +53,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::CostListByExternalIDResponse::data + def to_hash: -> Orb::Models::Customers::CostListByExternalIDResponse::data type per_price_cost = { @@ -84,7 +84,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::CostListByExternalIDResponse::Data::per_price_cost + def to_hash: -> Orb::Models::Customers::CostListByExternalIDResponse::Data::per_price_cost end end end diff --git a/sig/orb/models/customers/cost_list_params.rbs b/sig/orb/models/customers/cost_list_params.rbs index 296d1d04..555e6fa4 100644 --- a/sig/orb/models/customers/cost_list_params.rbs +++ b/sig/orb/models/customers/cost_list_params.rbs @@ -34,7 +34,7 @@ module Orb ?Orb::Models::Customers::cost_list_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::cost_list_params + def to_hash: -> Orb::Models::Customers::cost_list_params type view_mode = :periodic | :cumulative diff --git a/sig/orb/models/customers/cost_list_response.rbs b/sig/orb/models/customers/cost_list_response.rbs index cdd6c31b..9fdac34c 100644 --- a/sig/orb/models/customers/cost_list_response.rbs +++ b/sig/orb/models/customers/cost_list_response.rbs @@ -13,7 +13,7 @@ module Orb ?Orb::Models::Customers::cost_list_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::cost_list_response + def to_hash: -> Orb::Models::Customers::cost_list_response type data = { @@ -48,7 +48,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::CostListResponse::data + def to_hash: -> Orb::Models::Customers::CostListResponse::data type per_price_cost = { @@ -79,7 +79,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::CostListResponse::Data::per_price_cost + def to_hash: -> Orb::Models::Customers::CostListResponse::Data::per_price_cost end end end diff --git a/sig/orb/models/customers/credit_list_by_external_id_params.rbs b/sig/orb/models/customers/credit_list_by_external_id_params.rbs index 2c987abb..dbd838b7 100644 --- a/sig/orb/models/customers/credit_list_by_external_id_params.rbs +++ b/sig/orb/models/customers/credit_list_by_external_id_params.rbs @@ -39,7 +39,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::credit_list_by_external_id_params + def to_hash: -> Orb::Models::Customers::credit_list_by_external_id_params end end end diff --git a/sig/orb/models/customers/credit_list_by_external_id_response.rbs b/sig/orb/models/customers/credit_list_by_external_id_response.rbs index bbc6c84d..449a5670 100644 --- a/sig/orb/models/customers/credit_list_by_external_id_response.rbs +++ b/sig/orb/models/customers/credit_list_by_external_id_response.rbs @@ -42,7 +42,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::credit_list_by_external_id_response + def to_hash: -> Orb::Models::Customers::credit_list_by_external_id_response type status = :active | :pending_payment diff --git a/sig/orb/models/customers/credit_list_params.rbs b/sig/orb/models/customers/credit_list_params.rbs index 91573372..0568ce5a 100644 --- a/sig/orb/models/customers/credit_list_params.rbs +++ b/sig/orb/models/customers/credit_list_params.rbs @@ -38,7 +38,7 @@ module Orb ?Orb::Models::Customers::credit_list_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::credit_list_params + def to_hash: -> Orb::Models::Customers::credit_list_params end end end diff --git a/sig/orb/models/customers/credit_list_response.rbs b/sig/orb/models/customers/credit_list_response.rbs index 4bb2d530..a7555c75 100644 --- a/sig/orb/models/customers/credit_list_response.rbs +++ b/sig/orb/models/customers/credit_list_response.rbs @@ -41,7 +41,7 @@ module Orb ?Orb::Models::Customers::credit_list_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::credit_list_response + def to_hash: -> Orb::Models::Customers::credit_list_response type status = :active | :pending_payment diff --git a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs index c88fd56a..03440f0a 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs @@ -68,7 +68,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_params + def to_hash: -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_params type entry_type = :amendment @@ -109,7 +109,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::invoice_settings + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::invoice_settings end type void_reason = :refund diff --git a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs index 9a997a84..746e59b1 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs @@ -77,7 +77,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::increment_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::increment_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -100,7 +100,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -117,7 +117,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::customer end type entry_status = :committed | :pending @@ -207,7 +207,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::decrement_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::decrement_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -230,7 +230,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -247,7 +247,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::customer end type entry_status = :committed | :pending @@ -329,7 +329,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::expiration_change_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::expiration_change_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -352,7 +352,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -369,7 +369,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::customer end type entry_status = :committed | :pending @@ -447,7 +447,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::credit_block_expiry_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::credit_block_expiry_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -470,7 +470,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -487,7 +487,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer end type entry_status = :committed | :pending @@ -573,7 +573,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -596,7 +596,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -613,7 +613,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::customer end type entry_status = :committed | :pending @@ -703,7 +703,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_initiated_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_initiated_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -726,7 +726,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -743,7 +743,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::customer end type entry_status = :committed | :pending @@ -821,7 +821,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::amendment_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::amendment_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -844,7 +844,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -861,7 +861,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::customer end type entry_status = :committed | :pending diff --git a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs index b2b62464..19576b84 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs @@ -68,7 +68,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::ledger_create_entry_params + def to_hash: -> Orb::Models::Customers::Credits::ledger_create_entry_params type entry_type = :amendment @@ -109,7 +109,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryParams::invoice_settings + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryParams::invoice_settings end type void_reason = :refund diff --git a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs index fb829149..9245e40b 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs @@ -77,7 +77,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::increment_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::increment_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -100,7 +100,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -117,7 +117,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::customer end type entry_status = :committed | :pending @@ -207,7 +207,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::decrement_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::decrement_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -230,7 +230,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -247,7 +247,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::customer end type entry_status = :committed | :pending @@ -329,7 +329,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::expiration_change_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::expiration_change_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -352,7 +352,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -369,7 +369,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::customer end type entry_status = :committed | :pending @@ -447,7 +447,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::credit_block_expiry_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::credit_block_expiry_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -470,7 +470,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -487,7 +487,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::customer end type entry_status = :committed | :pending @@ -573,7 +573,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -596,7 +596,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -613,7 +613,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::customer end type entry_status = :committed | :pending @@ -703,7 +703,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_initiated_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_initiated_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -726,7 +726,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -743,7 +743,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::customer end type entry_status = :committed | :pending @@ -821,7 +821,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::amendment_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::amendment_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -844,7 +844,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -861,7 +861,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::customer end type entry_status = :committed | :pending diff --git a/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs b/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs index abdb4550..8780ebfe 100644 --- a/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs @@ -62,7 +62,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::ledger_list_by_external_id_params + def to_hash: -> Orb::Models::Customers::Credits::ledger_list_by_external_id_params type entry_status = :committed | :pending diff --git a/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs b/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs index a800851c..f7780770 100644 --- a/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +++ b/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs @@ -77,7 +77,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::increment_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::increment_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -100,7 +100,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -117,7 +117,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::customer end type entry_status = :committed | :pending @@ -207,7 +207,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::decrement_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::decrement_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -230,7 +230,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -247,7 +247,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::customer end type entry_status = :committed | :pending @@ -329,7 +329,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::expiration_change_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::expiration_change_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -352,7 +352,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -369,7 +369,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::customer end type entry_status = :committed | :pending @@ -447,7 +447,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::credit_block_expiry_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::credit_block_expiry_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -470,7 +470,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -487,7 +487,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer end type entry_status = :committed | :pending @@ -573,7 +573,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -596,7 +596,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -613,7 +613,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::customer end type entry_status = :committed | :pending @@ -703,7 +703,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_initiated_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_initiated_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -726,7 +726,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -743,7 +743,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::customer end type entry_status = :committed | :pending @@ -821,7 +821,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::amendment_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::amendment_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -844,7 +844,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -861,7 +861,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::customer end type entry_status = :committed | :pending diff --git a/sig/orb/models/customers/credits/ledger_list_params.rbs b/sig/orb/models/customers/credits/ledger_list_params.rbs index 709d62a0..a9a70ca9 100644 --- a/sig/orb/models/customers/credits/ledger_list_params.rbs +++ b/sig/orb/models/customers/credits/ledger_list_params.rbs @@ -62,7 +62,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::ledger_list_params + def to_hash: -> Orb::Models::Customers::Credits::ledger_list_params type entry_status = :committed | :pending diff --git a/sig/orb/models/customers/credits/ledger_list_response.rbs b/sig/orb/models/customers/credits/ledger_list_response.rbs index f2050b0a..c92b4b2b 100644 --- a/sig/orb/models/customers/credits/ledger_list_response.rbs +++ b/sig/orb/models/customers/credits/ledger_list_response.rbs @@ -77,7 +77,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::increment_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::increment_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -100,7 +100,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -117,7 +117,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::customer end type entry_status = :committed | :pending @@ -207,7 +207,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::decrement_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::decrement_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -230,7 +230,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -247,7 +247,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::customer end type entry_status = :committed | :pending @@ -329,7 +329,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::expiration_change_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::expiration_change_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -352,7 +352,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -369,7 +369,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::customer end type entry_status = :committed | :pending @@ -447,7 +447,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::credit_block_expiry_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::credit_block_expiry_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -470,7 +470,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -487,7 +487,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::customer end type entry_status = :committed | :pending @@ -573,7 +573,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::void_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::void_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -596,7 +596,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -613,7 +613,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::customer end type entry_status = :committed | :pending @@ -703,7 +703,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::void_initiated_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::void_initiated_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -726,7 +726,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -743,7 +743,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::customer end type entry_status = :committed | :pending @@ -821,7 +821,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::amendment_ledger_entry + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::amendment_ledger_entry type credit_block = { id: String, expiry_date: Time?, per_unit_cost_basis: String? } @@ -844,7 +844,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::credit_block + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::credit_block end type customer = { id: String, external_customer_id: String? } @@ -861,7 +861,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::customer + def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::customer end type entry_status = :committed | :pending diff --git a/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs b/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs index d28be27c..3591f5ca 100644 --- a/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs @@ -48,7 +48,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::top_up_create_by_external_id_params + def to_hash: -> Orb::Models::Customers::Credits::top_up_create_by_external_id_params type invoice_settings = { @@ -81,7 +81,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::invoice_settings + def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs b/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs index 7df46d2c..7094a0f2 100644 --- a/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +++ b/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs @@ -47,7 +47,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::top_up_create_by_external_id_response + def to_hash: -> Orb::Models::Customers::Credits::top_up_create_by_external_id_response type invoice_settings = { @@ -80,7 +80,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::invoice_settings + def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/customers/credits/top_up_create_params.rbs b/sig/orb/models/customers/credits/top_up_create_params.rbs index 1434aeb4..8ac86869 100644 --- a/sig/orb/models/customers/credits/top_up_create_params.rbs +++ b/sig/orb/models/customers/credits/top_up_create_params.rbs @@ -48,7 +48,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::top_up_create_params + def to_hash: -> Orb::Models::Customers::Credits::top_up_create_params type invoice_settings = { @@ -81,7 +81,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::TopUpCreateParams::invoice_settings + def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateParams::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/customers/credits/top_up_create_response.rbs b/sig/orb/models/customers/credits/top_up_create_response.rbs index f439d278..e5f8d631 100644 --- a/sig/orb/models/customers/credits/top_up_create_response.rbs +++ b/sig/orb/models/customers/credits/top_up_create_response.rbs @@ -47,7 +47,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::top_up_create_response + def to_hash: -> Orb::Models::Customers::Credits::top_up_create_response type invoice_settings = { @@ -80,7 +80,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::TopUpCreateResponse::invoice_settings + def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateResponse::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs b/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs index 5e88b948..3754c1b7 100644 --- a/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs @@ -21,7 +21,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::top_up_delete_by_external_id_params + def to_hash: -> Orb::Models::Customers::Credits::top_up_delete_by_external_id_params end end end diff --git a/sig/orb/models/customers/credits/top_up_delete_params.rbs b/sig/orb/models/customers/credits/top_up_delete_params.rbs index d36b5675..3ffdbef2 100644 --- a/sig/orb/models/customers/credits/top_up_delete_params.rbs +++ b/sig/orb/models/customers/credits/top_up_delete_params.rbs @@ -18,7 +18,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::top_up_delete_params + def to_hash: -> Orb::Models::Customers::Credits::top_up_delete_params end end end diff --git a/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs b/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs index 0028c6a7..eef9b622 100644 --- a/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs @@ -26,7 +26,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::top_up_list_by_external_id_params + def to_hash: -> Orb::Models::Customers::Credits::top_up_list_by_external_id_params end end end diff --git a/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs b/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs index 29d24d57..0ecb7b64 100644 --- a/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +++ b/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs @@ -47,7 +47,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::top_up_list_by_external_id_response + def to_hash: -> Orb::Models::Customers::Credits::top_up_list_by_external_id_response type invoice_settings = { @@ -80,7 +80,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::invoice_settings + def to_hash: -> Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/customers/credits/top_up_list_params.rbs b/sig/orb/models/customers/credits/top_up_list_params.rbs index 75a1caf5..65a2210f 100644 --- a/sig/orb/models/customers/credits/top_up_list_params.rbs +++ b/sig/orb/models/customers/credits/top_up_list_params.rbs @@ -26,7 +26,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::top_up_list_params + def to_hash: -> Orb::Models::Customers::Credits::top_up_list_params end end end diff --git a/sig/orb/models/customers/credits/top_up_list_response.rbs b/sig/orb/models/customers/credits/top_up_list_response.rbs index 3e253262..9ca64a5f 100644 --- a/sig/orb/models/customers/credits/top_up_list_response.rbs +++ b/sig/orb/models/customers/credits/top_up_list_response.rbs @@ -47,7 +47,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::top_up_list_response + def to_hash: -> Orb::Models::Customers::Credits::top_up_list_response type invoice_settings = { @@ -80,7 +80,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Customers::Credits::TopUpListResponse::invoice_settings + def to_hash: -> Orb::Models::Customers::Credits::TopUpListResponse::invoice_settings end type expires_after_unit = :day | :month diff --git a/sig/orb/models/dimensional_price_group.rbs b/sig/orb/models/dimensional_price_group.rbs index 997a06ef..b9737745 100644 --- a/sig/orb/models/dimensional_price_group.rbs +++ b/sig/orb/models/dimensional_price_group.rbs @@ -34,7 +34,7 @@ module Orb ) -> void | (?Orb::Models::dimensional_price_group | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::dimensional_price_group + def to_hash: -> Orb::Models::dimensional_price_group end end end diff --git a/sig/orb/models/dimensional_price_group_create_params.rbs b/sig/orb/models/dimensional_price_group_create_params.rbs index 3dec5ec9..cd6e8308 100644 --- a/sig/orb/models/dimensional_price_group_create_params.rbs +++ b/sig/orb/models/dimensional_price_group_create_params.rbs @@ -38,7 +38,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::dimensional_price_group_create_params + def to_hash: -> Orb::Models::dimensional_price_group_create_params end end end diff --git a/sig/orb/models/dimensional_price_group_list_params.rbs b/sig/orb/models/dimensional_price_group_list_params.rbs index 0898f187..00c7ac14 100644 --- a/sig/orb/models/dimensional_price_group_list_params.rbs +++ b/sig/orb/models/dimensional_price_group_list_params.rbs @@ -24,7 +24,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::dimensional_price_group_list_params + def to_hash: -> Orb::Models::dimensional_price_group_list_params end end end diff --git a/sig/orb/models/dimensional_price_group_retrieve_params.rbs b/sig/orb/models/dimensional_price_group_retrieve_params.rbs index ad01b6d6..a0e943b5 100644 --- a/sig/orb/models/dimensional_price_group_retrieve_params.rbs +++ b/sig/orb/models/dimensional_price_group_retrieve_params.rbs @@ -14,7 +14,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::dimensional_price_group_retrieve_params + def to_hash: -> Orb::Models::dimensional_price_group_retrieve_params end end end diff --git a/sig/orb/models/dimensional_price_groups.rbs b/sig/orb/models/dimensional_price_groups.rbs index 5028f210..5657c445 100644 --- a/sig/orb/models/dimensional_price_groups.rbs +++ b/sig/orb/models/dimensional_price_groups.rbs @@ -20,7 +20,7 @@ module Orb ?Orb::Models::dimensional_price_groups_api | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::dimensional_price_groups_api + def to_hash: -> Orb::Models::dimensional_price_groups_api end end end diff --git a/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs b/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs index 79b3fea0..f7d32b07 100644 --- a/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +++ b/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs @@ -15,7 +15,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::DimensionalPriceGroups::external_dimensional_price_group_id_retrieve_params + def to_hash: -> Orb::Models::DimensionalPriceGroups::external_dimensional_price_group_id_retrieve_params end end end diff --git a/sig/orb/models/discount.rbs b/sig/orb/models/discount.rbs index b4254245..b62dbfe4 100644 --- a/sig/orb/models/discount.rbs +++ b/sig/orb/models/discount.rbs @@ -35,7 +35,7 @@ module Orb ?Orb::Models::Discount::usage_discount | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Discount::usage_discount + def to_hash: -> Orb::Models::Discount::usage_discount end private def self.variants: -> [[:percentage, Orb::Models::PercentageDiscount], [:trial, Orb::Models::TrialDiscount], [:usage, Orb::Models::Discount::UsageDiscount], [:amount, Orb::Models::AmountDiscount]] diff --git a/sig/orb/models/evaluate_price_group.rbs b/sig/orb/models/evaluate_price_group.rbs index ca10d066..eaa3091d 100644 --- a/sig/orb/models/evaluate_price_group.rbs +++ b/sig/orb/models/evaluate_price_group.rbs @@ -22,7 +22,7 @@ module Orb ) -> void | (?Orb::Models::evaluate_price_group | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::evaluate_price_group + def to_hash: -> Orb::Models::evaluate_price_group type grouping_value = String | Float | bool diff --git a/sig/orb/models/event_deprecate_params.rbs b/sig/orb/models/event_deprecate_params.rbs index 168e18ce..51b19b96 100644 --- a/sig/orb/models/event_deprecate_params.rbs +++ b/sig/orb/models/event_deprecate_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::event_deprecate_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::event_deprecate_params + def to_hash: -> Orb::Models::event_deprecate_params end end end diff --git a/sig/orb/models/event_deprecate_response.rbs b/sig/orb/models/event_deprecate_response.rbs index 5d92b4c8..a416f93d 100644 --- a/sig/orb/models/event_deprecate_response.rbs +++ b/sig/orb/models/event_deprecate_response.rbs @@ -9,7 +9,7 @@ module Orb (deprecated: String) -> void | (?Orb::Models::event_deprecate_response | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::event_deprecate_response + def to_hash: -> Orb::Models::event_deprecate_response end end end diff --git a/sig/orb/models/event_ingest_params.rbs b/sig/orb/models/event_ingest_params.rbs index 5104030c..22b3e044 100644 --- a/sig/orb/models/event_ingest_params.rbs +++ b/sig/orb/models/event_ingest_params.rbs @@ -29,7 +29,7 @@ module Orb ) -> void | (?Orb::Models::event_ingest_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::event_ingest_params + def to_hash: -> Orb::Models::event_ingest_params type event = { @@ -67,7 +67,7 @@ module Orb ?Orb::Models::EventIngestParams::event | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::EventIngestParams::event + def to_hash: -> Orb::Models::EventIngestParams::event end end end diff --git a/sig/orb/models/event_ingest_response.rbs b/sig/orb/models/event_ingest_response.rbs index bcdb1f80..5fadc016 100644 --- a/sig/orb/models/event_ingest_response.rbs +++ b/sig/orb/models/event_ingest_response.rbs @@ -18,7 +18,7 @@ module Orb ) -> void | (?Orb::Models::event_ingest_response | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::event_ingest_response + def to_hash: -> Orb::Models::event_ingest_response type validation_failed = { idempotency_key: String, validation_errors: Array[String] } @@ -35,7 +35,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::EventIngestResponse::validation_failed + def to_hash: -> Orb::Models::EventIngestResponse::validation_failed end type debug = { duplicate: Array[String], ingested: Array[String] } @@ -51,7 +51,7 @@ module Orb ?Orb::Models::EventIngestResponse::debug | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::EventIngestResponse::debug + def to_hash: -> Orb::Models::EventIngestResponse::debug end end end diff --git a/sig/orb/models/event_search_params.rbs b/sig/orb/models/event_search_params.rbs index ffb5a958..56a047ad 100644 --- a/sig/orb/models/event_search_params.rbs +++ b/sig/orb/models/event_search_params.rbs @@ -23,7 +23,7 @@ module Orb ) -> void | (?Orb::Models::event_search_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::event_search_params + def to_hash: -> Orb::Models::event_search_params end end end diff --git a/sig/orb/models/event_search_response.rbs b/sig/orb/models/event_search_response.rbs index 6c7571cc..eb6ed86e 100644 --- a/sig/orb/models/event_search_response.rbs +++ b/sig/orb/models/event_search_response.rbs @@ -10,7 +10,7 @@ module Orb (data: Array[Orb::Models::EventSearchResponse::Data]) -> void | (?Orb::Models::event_search_response | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::event_search_response + def to_hash: -> Orb::Models::event_search_response type data = { @@ -52,7 +52,7 @@ module Orb ?Orb::Models::EventSearchResponse::data | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::EventSearchResponse::data + def to_hash: -> Orb::Models::EventSearchResponse::data end end end diff --git a/sig/orb/models/event_update_params.rbs b/sig/orb/models/event_update_params.rbs index a44a839b..f26a87fa 100644 --- a/sig/orb/models/event_update_params.rbs +++ b/sig/orb/models/event_update_params.rbs @@ -35,7 +35,7 @@ module Orb ) -> void | (?Orb::Models::event_update_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::event_update_params + def to_hash: -> Orb::Models::event_update_params end end end diff --git a/sig/orb/models/event_update_response.rbs b/sig/orb/models/event_update_response.rbs index ccb25ebb..55955d7d 100644 --- a/sig/orb/models/event_update_response.rbs +++ b/sig/orb/models/event_update_response.rbs @@ -9,7 +9,7 @@ module Orb (amended: String) -> void | (?Orb::Models::event_update_response | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::event_update_response + def to_hash: -> Orb::Models::event_update_response end end end diff --git a/sig/orb/models/events/backfill_close_params.rbs b/sig/orb/models/events/backfill_close_params.rbs index 25ee0466..577540e4 100644 --- a/sig/orb/models/events/backfill_close_params.rbs +++ b/sig/orb/models/events/backfill_close_params.rbs @@ -13,7 +13,7 @@ module Orb ?Orb::Models::Events::backfill_close_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::backfill_close_params + def to_hash: -> Orb::Models::Events::backfill_close_params end end end diff --git a/sig/orb/models/events/backfill_close_response.rbs b/sig/orb/models/events/backfill_close_response.rbs index bb0371e9..e5bc2016 100644 --- a/sig/orb/models/events/backfill_close_response.rbs +++ b/sig/orb/models/events/backfill_close_response.rbs @@ -53,7 +53,7 @@ module Orb ?Orb::Models::Events::backfill_close_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::backfill_close_response + def to_hash: -> Orb::Models::Events::backfill_close_response type status = :pending | :reflected | :pending_revert | :reverted diff --git a/sig/orb/models/events/backfill_create_params.rbs b/sig/orb/models/events/backfill_create_params.rbs index 517482b7..2ea211e4 100644 --- a/sig/orb/models/events/backfill_create_params.rbs +++ b/sig/orb/models/events/backfill_create_params.rbs @@ -48,7 +48,7 @@ module Orb ?Orb::Models::Events::backfill_create_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::backfill_create_params + def to_hash: -> Orb::Models::Events::backfill_create_params end end end diff --git a/sig/orb/models/events/backfill_create_response.rbs b/sig/orb/models/events/backfill_create_response.rbs index 8a10dbd6..b49dfc72 100644 --- a/sig/orb/models/events/backfill_create_response.rbs +++ b/sig/orb/models/events/backfill_create_response.rbs @@ -53,7 +53,7 @@ module Orb ?Orb::Models::Events::backfill_create_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::backfill_create_response + def to_hash: -> Orb::Models::Events::backfill_create_response type status = :pending | :reflected | :pending_revert | :reverted diff --git a/sig/orb/models/events/backfill_fetch_params.rbs b/sig/orb/models/events/backfill_fetch_params.rbs index 1987c3b9..e3bfbd9e 100644 --- a/sig/orb/models/events/backfill_fetch_params.rbs +++ b/sig/orb/models/events/backfill_fetch_params.rbs @@ -13,7 +13,7 @@ module Orb ?Orb::Models::Events::backfill_fetch_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::backfill_fetch_params + def to_hash: -> Orb::Models::Events::backfill_fetch_params end end end diff --git a/sig/orb/models/events/backfill_fetch_response.rbs b/sig/orb/models/events/backfill_fetch_response.rbs index 73a704bd..fb25f8f1 100644 --- a/sig/orb/models/events/backfill_fetch_response.rbs +++ b/sig/orb/models/events/backfill_fetch_response.rbs @@ -53,7 +53,7 @@ module Orb ?Orb::Models::Events::backfill_fetch_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::backfill_fetch_response + def to_hash: -> Orb::Models::Events::backfill_fetch_response type status = :pending | :reflected | :pending_revert | :reverted diff --git a/sig/orb/models/events/backfill_list_params.rbs b/sig/orb/models/events/backfill_list_params.rbs index 98796400..76b3d5ba 100644 --- a/sig/orb/models/events/backfill_list_params.rbs +++ b/sig/orb/models/events/backfill_list_params.rbs @@ -24,7 +24,7 @@ module Orb ?Orb::Models::Events::backfill_list_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::backfill_list_params + def to_hash: -> Orb::Models::Events::backfill_list_params end end end diff --git a/sig/orb/models/events/backfill_list_response.rbs b/sig/orb/models/events/backfill_list_response.rbs index 6bbb38aa..39c71c80 100644 --- a/sig/orb/models/events/backfill_list_response.rbs +++ b/sig/orb/models/events/backfill_list_response.rbs @@ -53,7 +53,7 @@ module Orb ?Orb::Models::Events::backfill_list_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::backfill_list_response + def to_hash: -> Orb::Models::Events::backfill_list_response type status = :pending | :reflected | :pending_revert | :reverted diff --git a/sig/orb/models/events/backfill_revert_params.rbs b/sig/orb/models/events/backfill_revert_params.rbs index d03ff0cf..7c141533 100644 --- a/sig/orb/models/events/backfill_revert_params.rbs +++ b/sig/orb/models/events/backfill_revert_params.rbs @@ -13,7 +13,7 @@ module Orb ?Orb::Models::Events::backfill_revert_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::backfill_revert_params + def to_hash: -> Orb::Models::Events::backfill_revert_params end end end diff --git a/sig/orb/models/events/backfill_revert_response.rbs b/sig/orb/models/events/backfill_revert_response.rbs index 5ffe9364..095fc132 100644 --- a/sig/orb/models/events/backfill_revert_response.rbs +++ b/sig/orb/models/events/backfill_revert_response.rbs @@ -53,7 +53,7 @@ module Orb ?Orb::Models::Events::backfill_revert_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::backfill_revert_response + def to_hash: -> Orb::Models::Events::backfill_revert_response type status = :pending | :reflected | :pending_revert | :reverted diff --git a/sig/orb/models/events/event_volumes.rbs b/sig/orb/models/events/event_volumes.rbs index 36bead74..69ed493e 100644 --- a/sig/orb/models/events/event_volumes.rbs +++ b/sig/orb/models/events/event_volumes.rbs @@ -14,7 +14,7 @@ module Orb (data: Array[Orb::Models::Events::EventVolumes::Data]) -> void | (?Orb::Models::Events::event_volumes | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Events::event_volumes + def to_hash: -> Orb::Models::Events::event_volumes type data = { count: Integer, timeframe_end: Time, timeframe_start: Time } @@ -32,7 +32,7 @@ module Orb ?Orb::Models::Events::EventVolumes::data | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::EventVolumes::data + def to_hash: -> Orb::Models::Events::EventVolumes::data end end end diff --git a/sig/orb/models/events/volume_list_params.rbs b/sig/orb/models/events/volume_list_params.rbs index ff1f1e5d..31506dbe 100644 --- a/sig/orb/models/events/volume_list_params.rbs +++ b/sig/orb/models/events/volume_list_params.rbs @@ -38,7 +38,7 @@ module Orb ?Orb::Models::Events::volume_list_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Events::volume_list_params + def to_hash: -> Orb::Models::Events::volume_list_params end end end diff --git a/sig/orb/models/invoice.rbs b/sig/orb/models/invoice.rbs index bd547b72..e2e86ff1 100644 --- a/sig/orb/models/invoice.rbs +++ b/sig/orb/models/invoice.rbs @@ -174,7 +174,7 @@ module Orb ) -> void | (?Orb::Models::invoice | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::invoice + def to_hash: -> Orb::Models::invoice type auto_collection = { @@ -204,7 +204,7 @@ module Orb ?Orb::Models::Invoice::auto_collection | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::auto_collection + def to_hash: -> Orb::Models::Invoice::auto_collection end type billing_address = @@ -243,7 +243,7 @@ module Orb ?Orb::Models::Invoice::billing_address | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::billing_address + def to_hash: -> Orb::Models::Invoice::billing_address end type credit_note = @@ -284,7 +284,7 @@ module Orb ) -> void | (?Orb::Models::Invoice::credit_note | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Invoice::credit_note + def to_hash: -> Orb::Models::Invoice::credit_note end type customer = { id: String, external_customer_id: String? } @@ -298,7 +298,7 @@ module Orb (id: String, external_customer_id: String?) -> void | (?Orb::Models::Invoice::customer | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Invoice::customer + def to_hash: -> Orb::Models::Invoice::customer end type customer_balance_transaction = @@ -354,7 +354,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::customer_balance_transaction + def to_hash: -> Orb::Models::Invoice::customer_balance_transaction type action = :applied_to_invoice @@ -391,7 +391,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::CustomerBalanceTransaction::credit_note + def to_hash: -> Orb::Models::Invoice::CustomerBalanceTransaction::credit_note end type invoice = { id: String } @@ -406,7 +406,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::CustomerBalanceTransaction::invoice + def to_hash: -> Orb::Models::Invoice::CustomerBalanceTransaction::invoice end type type_ = :increment | :decrement @@ -443,7 +443,7 @@ module Orb ?Orb::Models::Invoice::customer_tax_id | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::customer_tax_id + def to_hash: -> Orb::Models::Invoice::customer_tax_id type country = :AD @@ -858,7 +858,7 @@ module Orb ) -> void | (?Orb::Models::Invoice::line_item | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Invoice::line_item + def to_hash: -> Orb::Models::Invoice::line_item type adjustment = Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment @@ -909,7 +909,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -953,7 +953,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -997,7 +997,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -1045,7 +1045,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -1089,7 +1089,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::Invoice::LineItem::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::Invoice::LineItem::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::Invoice::LineItem::Adjustment::MaximumAdjustment]] @@ -1112,7 +1112,7 @@ module Orb ?Orb::Models::Invoice::LineItem::maximum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::maximum + def to_hash: -> Orb::Models::Invoice::LineItem::maximum end type minimum = @@ -1132,7 +1132,7 @@ module Orb ?Orb::Models::Invoice::LineItem::minimum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::minimum + def to_hash: -> Orb::Models::Invoice::LineItem::minimum end type sub_line_item = @@ -1178,7 +1178,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::SubLineItem::matrix_sub_line_item + def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::matrix_sub_line_item type grouping = { key: String, value: String? } @@ -1194,7 +1194,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::grouping + def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::grouping end type matrix_config = { dimension_values: Array[String?] } @@ -1209,7 +1209,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::matrix_config + def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::matrix_config end end @@ -1250,7 +1250,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::SubLineItem::tier_sub_line_item + def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::tier_sub_line_item type grouping = { key: String, value: String? } @@ -1266,7 +1266,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::grouping + def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::grouping end type tier_config = @@ -1290,7 +1290,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::tier_config + def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::tier_config end end @@ -1327,7 +1327,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::SubLineItem::other_sub_line_item + def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::other_sub_line_item type grouping = { key: String, value: String? } @@ -1343,7 +1343,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::grouping + def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::grouping end end @@ -1374,7 +1374,7 @@ module Orb ?Orb::Models::Invoice::LineItem::tax_amount | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::LineItem::tax_amount + def to_hash: -> Orb::Models::Invoice::LineItem::tax_amount end end @@ -1390,7 +1390,7 @@ module Orb (applies_to_price_ids: Array[String], maximum_amount: String) -> void | (?Orb::Models::Invoice::maximum | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Invoice::maximum + def to_hash: -> Orb::Models::Invoice::maximum end type minimum = @@ -1405,7 +1405,7 @@ module Orb (applies_to_price_ids: Array[String], minimum_amount: String) -> void | (?Orb::Models::Invoice::minimum | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Invoice::minimum + def to_hash: -> Orb::Models::Invoice::minimum end type payment_attempt = @@ -1444,7 +1444,7 @@ module Orb ?Orb::Models::Invoice::payment_attempt | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::payment_attempt + def to_hash: -> Orb::Models::Invoice::payment_attempt type payment_provider = :stripe @@ -1491,7 +1491,7 @@ module Orb ?Orb::Models::Invoice::shipping_address | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Invoice::shipping_address + def to_hash: -> Orb::Models::Invoice::shipping_address end type status = :issued | :paid | :synced | :void | :draft @@ -1515,7 +1515,7 @@ module Orb (id: String) -> void | (?Orb::Models::Invoice::subscription | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Invoice::subscription + def to_hash: -> Orb::Models::Invoice::subscription end end end diff --git a/sig/orb/models/invoice_create_params.rbs b/sig/orb/models/invoice_create_params.rbs index 32ea1ce7..527575d5 100644 --- a/sig/orb/models/invoice_create_params.rbs +++ b/sig/orb/models/invoice_create_params.rbs @@ -57,7 +57,7 @@ module Orb ) -> void | (?Orb::Models::invoice_create_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::invoice_create_params + def to_hash: -> Orb::Models::invoice_create_params type line_item = { @@ -99,7 +99,7 @@ module Orb ?Orb::Models::InvoiceCreateParams::line_item | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceCreateParams::line_item + def to_hash: -> Orb::Models::InvoiceCreateParams::line_item type model_type = :unit @@ -121,7 +121,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceCreateParams::LineItem::unit_config + def to_hash: -> Orb::Models::InvoiceCreateParams::LineItem::unit_config end end end diff --git a/sig/orb/models/invoice_fetch_params.rbs b/sig/orb/models/invoice_fetch_params.rbs index f1f33b5c..5cc201e8 100644 --- a/sig/orb/models/invoice_fetch_params.rbs +++ b/sig/orb/models/invoice_fetch_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::invoice_fetch_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::invoice_fetch_params + def to_hash: -> Orb::Models::invoice_fetch_params end end end diff --git a/sig/orb/models/invoice_fetch_upcoming_params.rbs b/sig/orb/models/invoice_fetch_upcoming_params.rbs index 1e194501..08deb93a 100644 --- a/sig/orb/models/invoice_fetch_upcoming_params.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_params.rbs @@ -15,7 +15,7 @@ module Orb ?Orb::Models::invoice_fetch_upcoming_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::invoice_fetch_upcoming_params + def to_hash: -> Orb::Models::invoice_fetch_upcoming_params end end end diff --git a/sig/orb/models/invoice_fetch_upcoming_response.rbs b/sig/orb/models/invoice_fetch_upcoming_response.rbs index bf981a19..bc8f22f3 100644 --- a/sig/orb/models/invoice_fetch_upcoming_response.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_response.rbs @@ -176,7 +176,7 @@ module Orb ?Orb::Models::invoice_fetch_upcoming_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::invoice_fetch_upcoming_response + def to_hash: -> Orb::Models::invoice_fetch_upcoming_response type auto_collection = { @@ -207,7 +207,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::auto_collection + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::auto_collection end type billing_address = @@ -247,7 +247,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::billing_address + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::billing_address end type credit_note = @@ -291,7 +291,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::credit_note + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::credit_note end type customer = { id: String, external_customer_id: String? } @@ -308,7 +308,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::customer + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer end type customer_balance_transaction = @@ -364,7 +364,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::customer_balance_transaction + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer_balance_transaction type action = :applied_to_invoice @@ -401,7 +401,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::credit_note + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::credit_note end type invoice = { id: String } @@ -416,7 +416,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::invoice + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::invoice end type type_ = :increment | :decrement @@ -454,7 +454,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::customer_tax_id + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer_tax_id type country = :AD @@ -872,7 +872,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::line_item + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::line_item type adjustment = Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment @@ -923,7 +923,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -967,7 +967,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -1011,7 +1011,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -1059,7 +1059,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -1103,7 +1103,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MaximumAdjustment]] @@ -1127,7 +1127,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::maximum + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::maximum end type minimum = @@ -1148,7 +1148,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::minimum + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::minimum end type sub_line_item = @@ -1194,7 +1194,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::matrix_sub_line_item + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::matrix_sub_line_item type grouping = { key: String, value: String? } @@ -1210,7 +1210,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::grouping + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::grouping end type matrix_config = { dimension_values: Array[String?] } @@ -1225,7 +1225,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::matrix_config + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::matrix_config end end @@ -1266,7 +1266,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::tier_sub_line_item + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::tier_sub_line_item type grouping = { key: String, value: String? } @@ -1282,7 +1282,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::grouping + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::grouping end type tier_config = @@ -1306,7 +1306,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::tier_config + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::tier_config end end @@ -1343,7 +1343,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::other_sub_line_item + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::other_sub_line_item type grouping = { key: String, value: String? } @@ -1359,7 +1359,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::grouping + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::grouping end end @@ -1391,7 +1391,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::tax_amount + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::tax_amount end end @@ -1410,7 +1410,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::maximum + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::maximum end type minimum = @@ -1428,7 +1428,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::minimum + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::minimum end type payment_attempt = @@ -1468,7 +1468,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::payment_attempt + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::payment_attempt type payment_provider = :stripe @@ -1516,7 +1516,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::shipping_address + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::shipping_address end type status = :issued | :paid | :synced | :void | :draft @@ -1543,7 +1543,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceFetchUpcomingResponse::subscription + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::subscription end end end diff --git a/sig/orb/models/invoice_issue_params.rbs b/sig/orb/models/invoice_issue_params.rbs index fef1a4b8..e1cf813c 100644 --- a/sig/orb/models/invoice_issue_params.rbs +++ b/sig/orb/models/invoice_issue_params.rbs @@ -14,7 +14,7 @@ module Orb (synchronous: bool, request_options: Orb::request_opts) -> void | (?Orb::Models::invoice_issue_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::invoice_issue_params + def to_hash: -> Orb::Models::invoice_issue_params end end end diff --git a/sig/orb/models/invoice_line_item_create_params.rbs b/sig/orb/models/invoice_line_item_create_params.rbs index aeec15b8..e38b9a5d 100644 --- a/sig/orb/models/invoice_line_item_create_params.rbs +++ b/sig/orb/models/invoice_line_item_create_params.rbs @@ -41,7 +41,7 @@ module Orb ?Orb::Models::invoice_line_item_create_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::invoice_line_item_create_params + def to_hash: -> Orb::Models::invoice_line_item_create_params end end end diff --git a/sig/orb/models/invoice_line_item_create_response.rbs b/sig/orb/models/invoice_line_item_create_response.rbs index 703c1b8c..bdfe4290 100644 --- a/sig/orb/models/invoice_line_item_create_response.rbs +++ b/sig/orb/models/invoice_line_item_create_response.rbs @@ -92,7 +92,7 @@ module Orb ?Orb::Models::invoice_line_item_create_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::invoice_line_item_create_response + def to_hash: -> Orb::Models::invoice_line_item_create_response type adjustment = Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment @@ -143,7 +143,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -187,7 +187,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -231,7 +231,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -279,7 +279,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -323,7 +323,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MaximumAdjustment]] @@ -344,7 +344,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::maximum + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::maximum end type minimum = @@ -362,7 +362,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::minimum + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::minimum end type sub_line_item = @@ -408,7 +408,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::matrix_sub_line_item + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::matrix_sub_line_item type grouping = { key: String, value: String? } @@ -424,7 +424,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::grouping + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::grouping end type matrix_config = { dimension_values: Array[String?] } @@ -439,7 +439,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::matrix_config + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::matrix_config end end @@ -480,7 +480,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::tier_sub_line_item + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::tier_sub_line_item type grouping = { key: String, value: String? } @@ -496,7 +496,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::grouping + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::grouping end type tier_config = @@ -520,7 +520,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::tier_config + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::tier_config end end @@ -557,7 +557,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::other_sub_line_item + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::other_sub_line_item type grouping = { key: String, value: String? } @@ -573,7 +573,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::grouping + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::grouping end end @@ -605,7 +605,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::InvoiceLineItemCreateResponse::tax_amount + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::tax_amount end end end diff --git a/sig/orb/models/invoice_list_params.rbs b/sig/orb/models/invoice_list_params.rbs index 84e73fe8..9e322ce1 100644 --- a/sig/orb/models/invoice_list_params.rbs +++ b/sig/orb/models/invoice_list_params.rbs @@ -93,7 +93,7 @@ module Orb ) -> void | (?Orb::Models::invoice_list_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::invoice_list_params + def to_hash: -> Orb::Models::invoice_list_params type date_type = :due_date | :invoice_date diff --git a/sig/orb/models/invoice_mark_paid_params.rbs b/sig/orb/models/invoice_mark_paid_params.rbs index 797b925e..3d52fc9a 100644 --- a/sig/orb/models/invoice_mark_paid_params.rbs +++ b/sig/orb/models/invoice_mark_paid_params.rbs @@ -23,7 +23,7 @@ module Orb ) -> void | (?Orb::Models::invoice_mark_paid_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::invoice_mark_paid_params + def to_hash: -> Orb::Models::invoice_mark_paid_params end end end diff --git a/sig/orb/models/invoice_pay_params.rbs b/sig/orb/models/invoice_pay_params.rbs index 89bbfb4b..6c8f6a54 100644 --- a/sig/orb/models/invoice_pay_params.rbs +++ b/sig/orb/models/invoice_pay_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::invoice_pay_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::invoice_pay_params + def to_hash: -> Orb::Models::invoice_pay_params end end end diff --git a/sig/orb/models/invoice_update_params.rbs b/sig/orb/models/invoice_update_params.rbs index 20930460..dd826c5c 100644 --- a/sig/orb/models/invoice_update_params.rbs +++ b/sig/orb/models/invoice_update_params.rbs @@ -16,7 +16,7 @@ module Orb ) -> void | (?Orb::Models::invoice_update_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::invoice_update_params + def to_hash: -> Orb::Models::invoice_update_params end end end diff --git a/sig/orb/models/invoice_void_params.rbs b/sig/orb/models/invoice_void_params.rbs index c3674d37..e3be7b60 100644 --- a/sig/orb/models/invoice_void_params.rbs +++ b/sig/orb/models/invoice_void_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::invoice_void_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::invoice_void_params + def to_hash: -> Orb::Models::invoice_void_params end end end diff --git a/sig/orb/models/item.rbs b/sig/orb/models/item.rbs index 60ea3458..29309cdb 100644 --- a/sig/orb/models/item.rbs +++ b/sig/orb/models/item.rbs @@ -26,7 +26,7 @@ module Orb ) -> void | (?Orb::Models::item | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::item + def to_hash: -> Orb::Models::item type external_connection = { @@ -48,7 +48,7 @@ module Orb ?Orb::Models::Item::external_connection | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Item::external_connection + def to_hash: -> Orb::Models::Item::external_connection type external_connection_name = :stripe diff --git a/sig/orb/models/item_create_params.rbs b/sig/orb/models/item_create_params.rbs index b30805d2..102a2610 100644 --- a/sig/orb/models/item_create_params.rbs +++ b/sig/orb/models/item_create_params.rbs @@ -12,7 +12,7 @@ module Orb (name: String, request_options: Orb::request_opts) -> void | (?Orb::Models::item_create_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::item_create_params + def to_hash: -> Orb::Models::item_create_params end end end diff --git a/sig/orb/models/item_fetch_params.rbs b/sig/orb/models/item_fetch_params.rbs index 7d9662a7..a66414d6 100644 --- a/sig/orb/models/item_fetch_params.rbs +++ b/sig/orb/models/item_fetch_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::item_fetch_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::item_fetch_params + def to_hash: -> Orb::Models::item_fetch_params end end end diff --git a/sig/orb/models/item_list_params.rbs b/sig/orb/models/item_list_params.rbs index 9308f0be..4363fe53 100644 --- a/sig/orb/models/item_list_params.rbs +++ b/sig/orb/models/item_list_params.rbs @@ -21,7 +21,7 @@ module Orb ) -> void | (?Orb::Models::item_list_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::item_list_params + def to_hash: -> Orb::Models::item_list_params end end end diff --git a/sig/orb/models/item_update_params.rbs b/sig/orb/models/item_update_params.rbs index 0eea2921..a86b8115 100644 --- a/sig/orb/models/item_update_params.rbs +++ b/sig/orb/models/item_update_params.rbs @@ -23,7 +23,7 @@ module Orb ) -> void | (?Orb::Models::item_update_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::item_update_params + def to_hash: -> Orb::Models::item_update_params type external_connection = { @@ -46,7 +46,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::ItemUpdateParams::external_connection + def to_hash: -> Orb::Models::ItemUpdateParams::external_connection type external_connection_name = :stripe diff --git a/sig/orb/models/metric_create_params.rbs b/sig/orb/models/metric_create_params.rbs index 5dd2922c..260e6bed 100644 --- a/sig/orb/models/metric_create_params.rbs +++ b/sig/orb/models/metric_create_params.rbs @@ -35,7 +35,7 @@ module Orb ) -> void | (?Orb::Models::metric_create_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::metric_create_params + def to_hash: -> Orb::Models::metric_create_params end end end diff --git a/sig/orb/models/metric_fetch_params.rbs b/sig/orb/models/metric_fetch_params.rbs index c254ca7f..ac9ec91b 100644 --- a/sig/orb/models/metric_fetch_params.rbs +++ b/sig/orb/models/metric_fetch_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::metric_fetch_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::metric_fetch_params + def to_hash: -> Orb::Models::metric_fetch_params end end end diff --git a/sig/orb/models/metric_list_params.rbs b/sig/orb/models/metric_list_params.rbs index 910bd766..40dea782 100644 --- a/sig/orb/models/metric_list_params.rbs +++ b/sig/orb/models/metric_list_params.rbs @@ -41,7 +41,7 @@ module Orb ) -> void | (?Orb::Models::metric_list_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::metric_list_params + def to_hash: -> Orb::Models::metric_list_params end end end diff --git a/sig/orb/models/metric_update_params.rbs b/sig/orb/models/metric_update_params.rbs index c881be78..f511b3d9 100644 --- a/sig/orb/models/metric_update_params.rbs +++ b/sig/orb/models/metric_update_params.rbs @@ -16,7 +16,7 @@ module Orb ) -> void | (?Orb::Models::metric_update_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::metric_update_params + def to_hash: -> Orb::Models::metric_update_params end end end diff --git a/sig/orb/models/pagination_metadata.rbs b/sig/orb/models/pagination_metadata.rbs index 8ce287e0..76ae3631 100644 --- a/sig/orb/models/pagination_metadata.rbs +++ b/sig/orb/models/pagination_metadata.rbs @@ -11,7 +11,7 @@ module Orb (has_more: bool, next_cursor: String?) -> void | (?Orb::Models::pagination_metadata | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::pagination_metadata + def to_hash: -> Orb::Models::pagination_metadata end end end diff --git a/sig/orb/models/percentage_discount.rbs b/sig/orb/models/percentage_discount.rbs index aabf499e..f4335143 100644 --- a/sig/orb/models/percentage_discount.rbs +++ b/sig/orb/models/percentage_discount.rbs @@ -26,7 +26,7 @@ module Orb ) -> void | (?Orb::Models::percentage_discount | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::percentage_discount + def to_hash: -> Orb::Models::percentage_discount type discount_type = :percentage diff --git a/sig/orb/models/plan.rbs b/sig/orb/models/plan.rbs index 15a007b6..ff47adb7 100644 --- a/sig/orb/models/plan.rbs +++ b/sig/orb/models/plan.rbs @@ -106,7 +106,7 @@ module Orb ) -> void | (?Orb::Models::plan | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::plan + def to_hash: -> Orb::Models::plan type adjustment = Orb::Models::Plan::Adjustment::AmountDiscountAdjustment @@ -157,7 +157,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Plan::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::Plan::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -201,7 +201,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Plan::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::Plan::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -245,7 +245,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Plan::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::Plan::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -293,7 +293,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Plan::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::Plan::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -337,7 +337,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Plan::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::Plan::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::Plan::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::Plan::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::Plan::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::Plan::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::Plan::Adjustment::MaximumAdjustment]] @@ -356,7 +356,7 @@ module Orb (id: String?, external_plan_id: String?, name: String?) -> void | (?Orb::Models::Plan::base_plan | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Plan::base_plan + def to_hash: -> Orb::Models::Plan::base_plan end type maximum = @@ -371,7 +371,7 @@ module Orb (applies_to_price_ids: Array[String], maximum_amount: String) -> void | (?Orb::Models::Plan::maximum | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Plan::maximum + def to_hash: -> Orb::Models::Plan::maximum end type minimum = @@ -386,7 +386,7 @@ module Orb (applies_to_price_ids: Array[String], minimum_amount: String) -> void | (?Orb::Models::Plan::minimum | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Plan::minimum + def to_hash: -> Orb::Models::Plan::minimum end type plan_phase = @@ -443,7 +443,7 @@ module Orb ) -> void | (?Orb::Models::Plan::plan_phase | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Plan::plan_phase + def to_hash: -> Orb::Models::Plan::plan_phase type duration_unit = :daily | :monthly | :quarterly | :semi_annual | :annual @@ -475,7 +475,7 @@ module Orb ?Orb::Models::Plan::PlanPhase::maximum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Plan::PlanPhase::maximum + def to_hash: -> Orb::Models::Plan::PlanPhase::maximum end type minimum = @@ -495,7 +495,7 @@ module Orb ?Orb::Models::Plan::PlanPhase::minimum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Plan::PlanPhase::minimum + def to_hash: -> Orb::Models::Plan::PlanPhase::minimum end end @@ -512,7 +512,7 @@ module Orb (id: String, created_at: Time, name: String) -> void | (?Orb::Models::Plan::product | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Plan::product + def to_hash: -> Orb::Models::Plan::product end type status = :active | :archived | :draft @@ -543,7 +543,7 @@ module Orb ) -> void | (?Orb::Models::Plan::trial_config | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Plan::trial_config + def to_hash: -> Orb::Models::Plan::trial_config type trial_period_unit = :days diff --git a/sig/orb/models/plan_create_params.rbs b/sig/orb/models/plan_create_params.rbs index 1bd59048..a66a1add 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -49,7 +49,7 @@ module Orb ) -> void | (?Orb::Models::plan_create_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::plan_create_params + def to_hash: -> Orb::Models::plan_create_params type price = Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice @@ -151,7 +151,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -179,7 +179,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::unit_config + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::unit_config end type billing_cycle_configuration = @@ -203,7 +203,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -236,7 +236,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -322,7 +322,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_package_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_package_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -353,7 +353,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::package_config + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::package_config end type billing_cycle_configuration = @@ -377,7 +377,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -410,7 +410,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -496,7 +496,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_matrix_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_matrix_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -537,7 +537,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::matrix_config + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::matrix_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -554,7 +554,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::matrix_value + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::matrix_value end end @@ -579,7 +579,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -612,7 +612,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -698,7 +698,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -731,7 +731,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::tiered_config + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::tiered_config type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -754,7 +754,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::tier + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::tier end end @@ -779,7 +779,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -812,7 +812,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -898,7 +898,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_bps_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_bps_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -931,7 +931,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::tiered_bps_config + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::tiered_bps_config type tier = { @@ -962,7 +962,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::tier + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::tier end end @@ -987,7 +987,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1020,7 +1020,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1106,7 +1106,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_bps_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bps_price type bps_config = { bps: Float, per_unit_maximum: String? } @@ -1122,7 +1122,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::bps_config + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::bps_config end type cadence = @@ -1160,7 +1160,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1193,7 +1193,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1279,7 +1279,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_bps_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_bps_price type bulk_bps_config = { @@ -1298,7 +1298,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::bulk_bps_config + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::bulk_bps_config type tier = { bps: Float, maximum_amount: String?, per_unit_maximum: String? } @@ -1321,7 +1321,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::tier + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::tier end end @@ -1360,7 +1360,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1393,7 +1393,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1479,7 +1479,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_price type bulk_config = { @@ -1498,7 +1498,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::bulk_config + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::bulk_config type tier = { unit_amount: String, maximum_units: Float? } @@ -1514,7 +1514,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::tier + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::tier end end @@ -1553,7 +1553,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1586,7 +1586,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1672,7 +1672,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_threshold_total_amount_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_threshold_total_amount_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -1709,7 +1709,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1742,7 +1742,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1828,7 +1828,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_package_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_package_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -1865,7 +1865,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1898,7 +1898,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1984,7 +1984,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_with_minimum_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_with_minimum_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2021,7 +2021,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2054,7 +2054,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2140,7 +2140,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_with_percent_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_with_percent_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2177,7 +2177,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2210,7 +2210,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2296,7 +2296,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_package_with_allocation_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_package_with_allocation_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2333,7 +2333,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2366,7 +2366,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2452,7 +2452,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_tier_with_proration_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tier_with_proration_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2489,7 +2489,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2522,7 +2522,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2608,7 +2608,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_with_proration_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_with_proration_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2645,7 +2645,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2678,7 +2678,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2764,7 +2764,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_allocation_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_allocation_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2801,7 +2801,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2834,7 +2834,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2920,7 +2920,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_prorated_minimum_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_prorated_minimum_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -2957,7 +2957,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2990,7 +2990,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3076,7 +3076,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_metered_minimum_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_metered_minimum_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3113,7 +3113,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3146,7 +3146,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3232,7 +3232,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_matrix_with_display_name_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_matrix_with_display_name_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3269,7 +3269,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3302,7 +3302,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3388,7 +3388,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_with_proration_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_with_proration_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3425,7 +3425,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3458,7 +3458,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3544,7 +3544,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_tiered_package_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_tiered_package_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3581,7 +3581,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3614,7 +3614,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3700,7 +3700,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_max_group_tiered_package_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_max_group_tiered_package_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3737,7 +3737,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3770,7 +3770,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3856,7 +3856,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_unit_pricing_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_unit_pricing_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -3893,7 +3893,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3926,7 +3926,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4012,7 +4012,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_tiered_pricing_price + def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_tiered_pricing_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -4049,7 +4049,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4082,7 +4082,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month diff --git a/sig/orb/models/plan_fetch_params.rbs b/sig/orb/models/plan_fetch_params.rbs index 7b10da7c..f7936936 100644 --- a/sig/orb/models/plan_fetch_params.rbs +++ b/sig/orb/models/plan_fetch_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::plan_fetch_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::plan_fetch_params + def to_hash: -> Orb::Models::plan_fetch_params end end end diff --git a/sig/orb/models/plan_list_params.rbs b/sig/orb/models/plan_list_params.rbs index d346d7d5..90a213ff 100644 --- a/sig/orb/models/plan_list_params.rbs +++ b/sig/orb/models/plan_list_params.rbs @@ -47,7 +47,7 @@ module Orb ) -> void | (?Orb::Models::plan_list_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::plan_list_params + def to_hash: -> Orb::Models::plan_list_params type status = :active | :archived | :draft diff --git a/sig/orb/models/plan_update_params.rbs b/sig/orb/models/plan_update_params.rbs index ed40d565..1f26547b 100644 --- a/sig/orb/models/plan_update_params.rbs +++ b/sig/orb/models/plan_update_params.rbs @@ -20,7 +20,7 @@ module Orb ) -> void | (?Orb::Models::plan_update_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::plan_update_params + def to_hash: -> Orb::Models::plan_update_params end end end diff --git a/sig/orb/models/plans/external_plan_id_fetch_params.rbs b/sig/orb/models/plans/external_plan_id_fetch_params.rbs index ca8c0787..8f0b52a6 100644 --- a/sig/orb/models/plans/external_plan_id_fetch_params.rbs +++ b/sig/orb/models/plans/external_plan_id_fetch_params.rbs @@ -14,7 +14,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Plans::external_plan_id_fetch_params + def to_hash: -> Orb::Models::Plans::external_plan_id_fetch_params end end end diff --git a/sig/orb/models/plans/external_plan_id_update_params.rbs b/sig/orb/models/plans/external_plan_id_update_params.rbs index 06de127a..4a383c53 100644 --- a/sig/orb/models/plans/external_plan_id_update_params.rbs +++ b/sig/orb/models/plans/external_plan_id_update_params.rbs @@ -24,7 +24,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Plans::external_plan_id_update_params + def to_hash: -> Orb::Models::Plans::external_plan_id_update_params end end end diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index b6493360..10a21c8b 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -136,7 +136,7 @@ module Orb ) -> void | (?Orb::Models::Price::unit_price | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Price::unit_price + def to_hash: -> Orb::Models::Price::unit_price type billable_metric = { id: String } @@ -150,7 +150,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitPrice::billable_metric + def to_hash: -> Orb::Models::Price::UnitPrice::billable_metric end type billing_cycle_configuration = @@ -174,7 +174,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::UnitPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -214,7 +214,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitPrice::credit_allocation + def to_hash: -> Orb::Models::Price::UnitPrice::credit_allocation end type invoicing_cycle_configuration = @@ -238,7 +238,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::UnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -263,7 +263,7 @@ module Orb ?Orb::Models::Price::UnitPrice::item | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitPrice::item + def to_hash: -> Orb::Models::Price::UnitPrice::item end type maximum = @@ -283,7 +283,7 @@ module Orb ?Orb::Models::Price::UnitPrice::maximum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitPrice::maximum + def to_hash: -> Orb::Models::Price::UnitPrice::maximum end type minimum = @@ -303,7 +303,7 @@ module Orb ?Orb::Models::Price::UnitPrice::minimum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitPrice::minimum + def to_hash: -> Orb::Models::Price::UnitPrice::minimum end type price_type = :usage_price | :fixed_price @@ -326,7 +326,7 @@ module Orb ?Orb::Models::Price::UnitPrice::unit_config | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitPrice::unit_config + def to_hash: -> Orb::Models::Price::UnitPrice::unit_config end type dimensional_price_configuration = @@ -350,7 +350,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::UnitPrice::dimensional_price_configuration end end @@ -460,7 +460,7 @@ module Orb ) -> void | (?Orb::Models::Price::package_price | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Price::package_price + def to_hash: -> Orb::Models::Price::package_price type billable_metric = { id: String } @@ -474,7 +474,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackagePrice::billable_metric + def to_hash: -> Orb::Models::Price::PackagePrice::billable_metric end type billing_cycle_configuration = @@ -498,7 +498,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::PackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -538,7 +538,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackagePrice::credit_allocation + def to_hash: -> Orb::Models::Price::PackagePrice::credit_allocation end type invoicing_cycle_configuration = @@ -562,7 +562,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::PackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -587,7 +587,7 @@ module Orb ?Orb::Models::Price::PackagePrice::item | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackagePrice::item + def to_hash: -> Orb::Models::Price::PackagePrice::item end type maximum = @@ -607,7 +607,7 @@ module Orb ?Orb::Models::Price::PackagePrice::maximum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackagePrice::maximum + def to_hash: -> Orb::Models::Price::PackagePrice::maximum end type minimum = @@ -627,7 +627,7 @@ module Orb ?Orb::Models::Price::PackagePrice::minimum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackagePrice::minimum + def to_hash: -> Orb::Models::Price::PackagePrice::minimum end type package_config = { package_amount: String, package_size: Integer } @@ -644,7 +644,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackagePrice::package_config + def to_hash: -> Orb::Models::Price::PackagePrice::package_config end type price_type = :usage_price | :fixed_price @@ -677,7 +677,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackagePrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::PackagePrice::dimensional_price_configuration end end @@ -787,7 +787,7 @@ module Orb ) -> void | (?Orb::Models::Price::matrix_price | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Price::matrix_price + def to_hash: -> Orb::Models::Price::matrix_price type billable_metric = { id: String } @@ -801,7 +801,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixPrice::billable_metric + def to_hash: -> Orb::Models::Price::MatrixPrice::billable_metric end type billing_cycle_configuration = @@ -825,7 +825,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::MatrixPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -865,7 +865,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixPrice::credit_allocation + def to_hash: -> Orb::Models::Price::MatrixPrice::credit_allocation end type invoicing_cycle_configuration = @@ -889,7 +889,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::MatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -914,7 +914,7 @@ module Orb ?Orb::Models::Price::MatrixPrice::item | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixPrice::item + def to_hash: -> Orb::Models::Price::MatrixPrice::item end type matrix_config = @@ -942,7 +942,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixPrice::matrix_config + def to_hash: -> Orb::Models::Price::MatrixPrice::matrix_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -959,7 +959,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixPrice::MatrixConfig::matrix_value + def to_hash: -> Orb::Models::Price::MatrixPrice::MatrixConfig::matrix_value end end @@ -980,7 +980,7 @@ module Orb ?Orb::Models::Price::MatrixPrice::maximum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixPrice::maximum + def to_hash: -> Orb::Models::Price::MatrixPrice::maximum end type minimum = @@ -1000,7 +1000,7 @@ module Orb ?Orb::Models::Price::MatrixPrice::minimum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixPrice::minimum + def to_hash: -> Orb::Models::Price::MatrixPrice::minimum end type price_type = :usage_price | :fixed_price @@ -1033,7 +1033,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::MatrixPrice::dimensional_price_configuration end end @@ -1143,7 +1143,7 @@ module Orb ) -> void | (?Orb::Models::Price::tiered_price | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Price::tiered_price + def to_hash: -> Orb::Models::Price::tiered_price type billable_metric = { id: String } @@ -1157,7 +1157,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPrice::billable_metric + def to_hash: -> Orb::Models::Price::TieredPrice::billable_metric end type billing_cycle_configuration = @@ -1181,7 +1181,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1221,7 +1221,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPrice::credit_allocation + def to_hash: -> Orb::Models::Price::TieredPrice::credit_allocation end type invoicing_cycle_configuration = @@ -1245,7 +1245,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1270,7 +1270,7 @@ module Orb ?Orb::Models::Price::TieredPrice::item | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPrice::item + def to_hash: -> Orb::Models::Price::TieredPrice::item end type maximum = @@ -1290,7 +1290,7 @@ module Orb ?Orb::Models::Price::TieredPrice::maximum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPrice::maximum + def to_hash: -> Orb::Models::Price::TieredPrice::maximum end type minimum = @@ -1310,7 +1310,7 @@ module Orb ?Orb::Models::Price::TieredPrice::minimum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPrice::minimum + def to_hash: -> Orb::Models::Price::TieredPrice::minimum end type price_type = :usage_price | :fixed_price @@ -1337,7 +1337,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPrice::tiered_config + def to_hash: -> Orb::Models::Price::TieredPrice::tiered_config type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -1360,7 +1360,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPrice::TieredConfig::tier + def to_hash: -> Orb::Models::Price::TieredPrice::TieredConfig::tier end end @@ -1385,7 +1385,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::TieredPrice::dimensional_price_configuration end end @@ -1497,7 +1497,7 @@ module Orb ?Orb::Models::Price::tiered_bps_price | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::tiered_bps_price + def to_hash: -> Orb::Models::Price::tiered_bps_price type billable_metric = { id: String } @@ -1511,7 +1511,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredBpsPrice::billable_metric + def to_hash: -> Orb::Models::Price::TieredBpsPrice::billable_metric end type billing_cycle_configuration = @@ -1535,7 +1535,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1575,7 +1575,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredBpsPrice::credit_allocation + def to_hash: -> Orb::Models::Price::TieredBpsPrice::credit_allocation end type invoicing_cycle_configuration = @@ -1599,7 +1599,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1624,7 +1624,7 @@ module Orb ?Orb::Models::Price::TieredBpsPrice::item | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredBpsPrice::item + def to_hash: -> Orb::Models::Price::TieredBpsPrice::item end type maximum = @@ -1644,7 +1644,7 @@ module Orb ?Orb::Models::Price::TieredBpsPrice::maximum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredBpsPrice::maximum + def to_hash: -> Orb::Models::Price::TieredBpsPrice::maximum end type minimum = @@ -1664,7 +1664,7 @@ module Orb ?Orb::Models::Price::TieredBpsPrice::minimum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredBpsPrice::minimum + def to_hash: -> Orb::Models::Price::TieredBpsPrice::minimum end type price_type = :usage_price | :fixed_price @@ -1693,7 +1693,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredBpsPrice::tiered_bps_config + def to_hash: -> Orb::Models::Price::TieredBpsPrice::tiered_bps_config type tier = { @@ -1724,7 +1724,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::tier + def to_hash: -> Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::tier end end @@ -1749,7 +1749,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredBpsPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::TieredBpsPrice::dimensional_price_configuration end end @@ -1859,7 +1859,7 @@ module Orb ) -> void | (?Orb::Models::Price::bps_price | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Price::bps_price + def to_hash: -> Orb::Models::Price::bps_price type billable_metric = { id: String } @@ -1873,7 +1873,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BpsPrice::billable_metric + def to_hash: -> Orb::Models::Price::BpsPrice::billable_metric end type billing_cycle_configuration = @@ -1897,7 +1897,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::BpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1922,7 +1922,7 @@ module Orb ?Orb::Models::Price::BpsPrice::bps_config | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BpsPrice::bps_config + def to_hash: -> Orb::Models::Price::BpsPrice::bps_config end type cadence = @@ -1953,7 +1953,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BpsPrice::credit_allocation + def to_hash: -> Orb::Models::Price::BpsPrice::credit_allocation end type invoicing_cycle_configuration = @@ -1977,7 +1977,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::BpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2002,7 +2002,7 @@ module Orb ?Orb::Models::Price::BpsPrice::item | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BpsPrice::item + def to_hash: -> Orb::Models::Price::BpsPrice::item end type maximum = @@ -2022,7 +2022,7 @@ module Orb ?Orb::Models::Price::BpsPrice::maximum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BpsPrice::maximum + def to_hash: -> Orb::Models::Price::BpsPrice::maximum end type minimum = @@ -2042,7 +2042,7 @@ module Orb ?Orb::Models::Price::BpsPrice::minimum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BpsPrice::minimum + def to_hash: -> Orb::Models::Price::BpsPrice::minimum end type price_type = :usage_price | :fixed_price @@ -2075,7 +2075,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BpsPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::BpsPrice::dimensional_price_configuration end end @@ -2185,7 +2185,7 @@ module Orb ) -> void | (?Orb::Models::Price::bulk_bps_price | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Price::bulk_bps_price + def to_hash: -> Orb::Models::Price::bulk_bps_price type billable_metric = { id: String } @@ -2199,7 +2199,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkBpsPrice::billable_metric + def to_hash: -> Orb::Models::Price::BulkBpsPrice::billable_metric end type billing_cycle_configuration = @@ -2223,7 +2223,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::BulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2252,7 +2252,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkBpsPrice::bulk_bps_config + def to_hash: -> Orb::Models::Price::BulkBpsPrice::bulk_bps_config type tier = { bps: Float, maximum_amount: String?, per_unit_maximum: String? } @@ -2275,7 +2275,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::tier + def to_hash: -> Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::tier end end @@ -2307,7 +2307,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkBpsPrice::credit_allocation + def to_hash: -> Orb::Models::Price::BulkBpsPrice::credit_allocation end type invoicing_cycle_configuration = @@ -2331,7 +2331,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::BulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2356,7 +2356,7 @@ module Orb ?Orb::Models::Price::BulkBpsPrice::item | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkBpsPrice::item + def to_hash: -> Orb::Models::Price::BulkBpsPrice::item end type maximum = @@ -2376,7 +2376,7 @@ module Orb ?Orb::Models::Price::BulkBpsPrice::maximum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkBpsPrice::maximum + def to_hash: -> Orb::Models::Price::BulkBpsPrice::maximum end type minimum = @@ -2396,7 +2396,7 @@ module Orb ?Orb::Models::Price::BulkBpsPrice::minimum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkBpsPrice::minimum + def to_hash: -> Orb::Models::Price::BulkBpsPrice::minimum end type price_type = :usage_price | :fixed_price @@ -2429,7 +2429,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkBpsPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::BulkBpsPrice::dimensional_price_configuration end end @@ -2539,7 +2539,7 @@ module Orb ) -> void | (?Orb::Models::Price::bulk_price | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::Price::bulk_price + def to_hash: -> Orb::Models::Price::bulk_price type billable_metric = { id: String } @@ -2553,7 +2553,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkPrice::billable_metric + def to_hash: -> Orb::Models::Price::BulkPrice::billable_metric end type billing_cycle_configuration = @@ -2577,7 +2577,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::BulkPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2603,7 +2603,7 @@ module Orb ?Orb::Models::Price::BulkPrice::bulk_config | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkPrice::bulk_config + def to_hash: -> Orb::Models::Price::BulkPrice::bulk_config type tier = { unit_amount: String, maximum_units: Float? } @@ -2619,7 +2619,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkPrice::BulkConfig::tier + def to_hash: -> Orb::Models::Price::BulkPrice::BulkConfig::tier end end @@ -2651,7 +2651,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkPrice::credit_allocation + def to_hash: -> Orb::Models::Price::BulkPrice::credit_allocation end type invoicing_cycle_configuration = @@ -2675,7 +2675,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::BulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2700,7 +2700,7 @@ module Orb ?Orb::Models::Price::BulkPrice::item | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkPrice::item + def to_hash: -> Orb::Models::Price::BulkPrice::item end type maximum = @@ -2720,7 +2720,7 @@ module Orb ?Orb::Models::Price::BulkPrice::maximum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkPrice::maximum + def to_hash: -> Orb::Models::Price::BulkPrice::maximum end type minimum = @@ -2740,7 +2740,7 @@ module Orb ?Orb::Models::Price::BulkPrice::minimum | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkPrice::minimum + def to_hash: -> Orb::Models::Price::BulkPrice::minimum end type price_type = :usage_price | :fixed_price @@ -2773,7 +2773,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::BulkPrice::dimensional_price_configuration end end @@ -2886,7 +2886,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::threshold_total_amount_price + def to_hash: -> Orb::Models::Price::threshold_total_amount_price type billable_metric = { id: String } @@ -2900,7 +2900,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ThresholdTotalAmountPrice::billable_metric + def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::billable_metric end type billing_cycle_configuration = @@ -2924,7 +2924,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ThresholdTotalAmountPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2964,7 +2964,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ThresholdTotalAmountPrice::credit_allocation + def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::credit_allocation end type invoicing_cycle_configuration = @@ -2988,7 +2988,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ThresholdTotalAmountPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3014,7 +3014,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ThresholdTotalAmountPrice::item + def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::item end type maximum = @@ -3035,7 +3035,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ThresholdTotalAmountPrice::maximum + def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::maximum end type minimum = @@ -3056,7 +3056,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ThresholdTotalAmountPrice::minimum + def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::minimum end type price_type = :usage_price | :fixed_price @@ -3089,7 +3089,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ThresholdTotalAmountPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::dimensional_price_configuration end end @@ -3201,7 +3201,7 @@ module Orb ?Orb::Models::Price::tiered_package_price | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::tiered_package_price + def to_hash: -> Orb::Models::Price::tiered_package_price type billable_metric = { id: String } @@ -3215,7 +3215,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackagePrice::billable_metric + def to_hash: -> Orb::Models::Price::TieredPackagePrice::billable_metric end type billing_cycle_configuration = @@ -3239,7 +3239,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3279,7 +3279,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackagePrice::credit_allocation + def to_hash: -> Orb::Models::Price::TieredPackagePrice::credit_allocation end type invoicing_cycle_configuration = @@ -3303,7 +3303,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3329,7 +3329,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackagePrice::item + def to_hash: -> Orb::Models::Price::TieredPackagePrice::item end type maximum = @@ -3350,7 +3350,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackagePrice::maximum + def to_hash: -> Orb::Models::Price::TieredPackagePrice::maximum end type minimum = @@ -3371,7 +3371,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackagePrice::minimum + def to_hash: -> Orb::Models::Price::TieredPackagePrice::minimum end type price_type = :usage_price | :fixed_price @@ -3404,7 +3404,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackagePrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::TieredPackagePrice::dimensional_price_configuration end end @@ -3516,7 +3516,7 @@ module Orb ?Orb::Models::Price::grouped_tiered_price | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::grouped_tiered_price + def to_hash: -> Orb::Models::Price::grouped_tiered_price type billable_metric = { id: String } @@ -3530,7 +3530,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPrice::billable_metric + def to_hash: -> Orb::Models::Price::GroupedTieredPrice::billable_metric end type billing_cycle_configuration = @@ -3554,7 +3554,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::GroupedTieredPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3594,7 +3594,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPrice::credit_allocation + def to_hash: -> Orb::Models::Price::GroupedTieredPrice::credit_allocation end type invoicing_cycle_configuration = @@ -3618,7 +3618,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::GroupedTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3644,7 +3644,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPrice::item + def to_hash: -> Orb::Models::Price::GroupedTieredPrice::item end type maximum = @@ -3665,7 +3665,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPrice::maximum + def to_hash: -> Orb::Models::Price::GroupedTieredPrice::maximum end type minimum = @@ -3686,7 +3686,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPrice::minimum + def to_hash: -> Orb::Models::Price::GroupedTieredPrice::minimum end type price_type = :usage_price | :fixed_price @@ -3719,7 +3719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::GroupedTieredPrice::dimensional_price_configuration end end @@ -3831,7 +3831,7 @@ module Orb ?Orb::Models::Price::tiered_with_minimum_price | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::tiered_with_minimum_price + def to_hash: -> Orb::Models::Price::tiered_with_minimum_price type billable_metric = { id: String } @@ -3845,7 +3845,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithMinimumPrice::billable_metric + def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::billable_metric end type billing_cycle_configuration = @@ -3869,7 +3869,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3909,7 +3909,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithMinimumPrice::credit_allocation + def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::credit_allocation end type invoicing_cycle_configuration = @@ -3933,7 +3933,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3959,7 +3959,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithMinimumPrice::item + def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::item end type maximum = @@ -3980,7 +3980,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithMinimumPrice::maximum + def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::maximum end type minimum = @@ -4001,7 +4001,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithMinimumPrice::minimum + def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::minimum end type price_type = :usage_price | :fixed_price @@ -4034,7 +4034,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithMinimumPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::dimensional_price_configuration end end @@ -4147,7 +4147,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::tiered_package_with_minimum_price + def to_hash: -> Orb::Models::Price::tiered_package_with_minimum_price type billable_metric = { id: String } @@ -4161,7 +4161,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackageWithMinimumPrice::billable_metric + def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::billable_metric end type billing_cycle_configuration = @@ -4185,7 +4185,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackageWithMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4225,7 +4225,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackageWithMinimumPrice::credit_allocation + def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::credit_allocation end type invoicing_cycle_configuration = @@ -4249,7 +4249,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackageWithMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4275,7 +4275,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackageWithMinimumPrice::item + def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::item end type maximum = @@ -4296,7 +4296,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackageWithMinimumPrice::maximum + def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::maximum end type minimum = @@ -4317,7 +4317,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackageWithMinimumPrice::minimum + def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::minimum end type price_type = :usage_price | :fixed_price @@ -4350,7 +4350,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredPackageWithMinimumPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::dimensional_price_configuration end end @@ -4463,7 +4463,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::package_with_allocation_price + def to_hash: -> Orb::Models::Price::package_with_allocation_price type billable_metric = { id: String } @@ -4477,7 +4477,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackageWithAllocationPrice::billable_metric + def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::billable_metric end type billing_cycle_configuration = @@ -4501,7 +4501,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackageWithAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4541,7 +4541,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackageWithAllocationPrice::credit_allocation + def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::credit_allocation end type invoicing_cycle_configuration = @@ -4565,7 +4565,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackageWithAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4591,7 +4591,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackageWithAllocationPrice::item + def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::item end type maximum = @@ -4612,7 +4612,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackageWithAllocationPrice::maximum + def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::maximum end type minimum = @@ -4633,7 +4633,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackageWithAllocationPrice::minimum + def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::minimum end type price_type = :usage_price | :fixed_price @@ -4666,7 +4666,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::PackageWithAllocationPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::dimensional_price_configuration end end @@ -4778,7 +4778,7 @@ module Orb ?Orb::Models::Price::unit_with_percent_price | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::unit_with_percent_price + def to_hash: -> Orb::Models::Price::unit_with_percent_price type billable_metric = { id: String } @@ -4792,7 +4792,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithPercentPrice::billable_metric + def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::billable_metric end type billing_cycle_configuration = @@ -4816,7 +4816,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithPercentPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4856,7 +4856,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithPercentPrice::credit_allocation + def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::credit_allocation end type invoicing_cycle_configuration = @@ -4880,7 +4880,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithPercentPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4906,7 +4906,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithPercentPrice::item + def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::item end type maximum = @@ -4927,7 +4927,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithPercentPrice::maximum + def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::maximum end type minimum = @@ -4948,7 +4948,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithPercentPrice::minimum + def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::minimum end type price_type = :usage_price | :fixed_price @@ -4981,7 +4981,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithPercentPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::dimensional_price_configuration end end @@ -5094,7 +5094,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::matrix_with_allocation_price + def to_hash: -> Orb::Models::Price::matrix_with_allocation_price type billable_metric = { id: String } @@ -5108,7 +5108,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithAllocationPrice::billable_metric + def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::billable_metric end type billing_cycle_configuration = @@ -5132,7 +5132,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5172,7 +5172,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithAllocationPrice::credit_allocation + def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::credit_allocation end type invoicing_cycle_configuration = @@ -5196,7 +5196,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5222,7 +5222,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithAllocationPrice::item + def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::item end type matrix_with_allocation_config = @@ -5254,7 +5254,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithAllocationPrice::matrix_with_allocation_config + def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::matrix_with_allocation_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -5271,7 +5271,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value + def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value end end @@ -5293,7 +5293,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithAllocationPrice::maximum + def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::maximum end type minimum = @@ -5314,7 +5314,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithAllocationPrice::minimum + def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::minimum end type price_type = :usage_price | :fixed_price @@ -5347,7 +5347,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithAllocationPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::dimensional_price_configuration end end @@ -5460,7 +5460,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::tiered_with_proration_price + def to_hash: -> Orb::Models::Price::tiered_with_proration_price type billable_metric = { id: String } @@ -5474,7 +5474,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithProrationPrice::billable_metric + def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::billable_metric end type billing_cycle_configuration = @@ -5498,7 +5498,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5538,7 +5538,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithProrationPrice::credit_allocation + def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::credit_allocation end type invoicing_cycle_configuration = @@ -5562,7 +5562,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5588,7 +5588,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithProrationPrice::item + def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::item end type maximum = @@ -5609,7 +5609,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithProrationPrice::maximum + def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::maximum end type minimum = @@ -5630,7 +5630,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithProrationPrice::minimum + def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::minimum end type price_type = :usage_price | :fixed_price @@ -5663,7 +5663,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::TieredWithProrationPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::dimensional_price_configuration end end @@ -5775,7 +5775,7 @@ module Orb ?Orb::Models::Price::unit_with_proration_price | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::unit_with_proration_price + def to_hash: -> Orb::Models::Price::unit_with_proration_price type billable_metric = { id: String } @@ -5789,7 +5789,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithProrationPrice::billable_metric + def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::billable_metric end type billing_cycle_configuration = @@ -5813,7 +5813,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5853,7 +5853,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithProrationPrice::credit_allocation + def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::credit_allocation end type invoicing_cycle_configuration = @@ -5877,7 +5877,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5903,7 +5903,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithProrationPrice::item + def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::item end type maximum = @@ -5924,7 +5924,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithProrationPrice::maximum + def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::maximum end type minimum = @@ -5945,7 +5945,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithProrationPrice::minimum + def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::minimum end type price_type = :usage_price | :fixed_price @@ -5978,7 +5978,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::UnitWithProrationPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::dimensional_price_configuration end end @@ -6090,7 +6090,7 @@ module Orb ?Orb::Models::Price::grouped_allocation_price | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::grouped_allocation_price + def to_hash: -> Orb::Models::Price::grouped_allocation_price type billable_metric = { id: String } @@ -6104,7 +6104,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedAllocationPrice::billable_metric + def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::billable_metric end type billing_cycle_configuration = @@ -6128,7 +6128,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6168,7 +6168,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedAllocationPrice::credit_allocation + def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::credit_allocation end type invoicing_cycle_configuration = @@ -6192,7 +6192,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6218,7 +6218,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedAllocationPrice::item + def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::item end type maximum = @@ -6239,7 +6239,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedAllocationPrice::maximum + def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::maximum end type minimum = @@ -6260,7 +6260,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedAllocationPrice::minimum + def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::minimum end type price_type = :usage_price | :fixed_price @@ -6293,7 +6293,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedAllocationPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::dimensional_price_configuration end end @@ -6406,7 +6406,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::grouped_with_prorated_minimum_price + def to_hash: -> Orb::Models::Price::grouped_with_prorated_minimum_price type billable_metric = { id: String } @@ -6420,7 +6420,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::billable_metric + def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::billable_metric end type billing_cycle_configuration = @@ -6444,7 +6444,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6484,7 +6484,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::credit_allocation + def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::credit_allocation end type invoicing_cycle_configuration = @@ -6508,7 +6508,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6534,7 +6534,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::item + def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::item end type maximum = @@ -6555,7 +6555,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::maximum + def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::maximum end type minimum = @@ -6576,7 +6576,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::minimum + def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::minimum end type price_type = :usage_price | :fixed_price @@ -6609,7 +6609,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::dimensional_price_configuration end end @@ -6722,7 +6722,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::grouped_with_metered_minimum_price + def to_hash: -> Orb::Models::Price::grouped_with_metered_minimum_price type billable_metric = { id: String } @@ -6736,7 +6736,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::billable_metric + def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::billable_metric end type billing_cycle_configuration = @@ -6760,7 +6760,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6800,7 +6800,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::credit_allocation + def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::credit_allocation end type invoicing_cycle_configuration = @@ -6824,7 +6824,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6850,7 +6850,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::item + def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::item end type maximum = @@ -6871,7 +6871,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::maximum + def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::maximum end type minimum = @@ -6892,7 +6892,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::minimum + def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::minimum end type price_type = :usage_price | :fixed_price @@ -6925,7 +6925,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::dimensional_price_configuration end end @@ -7038,7 +7038,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::matrix_with_display_name_price + def to_hash: -> Orb::Models::Price::matrix_with_display_name_price type billable_metric = { id: String } @@ -7052,7 +7052,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithDisplayNamePrice::billable_metric + def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::billable_metric end type billing_cycle_configuration = @@ -7076,7 +7076,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithDisplayNamePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -7116,7 +7116,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithDisplayNamePrice::credit_allocation + def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::credit_allocation end type invoicing_cycle_configuration = @@ -7140,7 +7140,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithDisplayNamePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -7166,7 +7166,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithDisplayNamePrice::item + def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::item end type maximum = @@ -7187,7 +7187,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithDisplayNamePrice::maximum + def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::maximum end type minimum = @@ -7208,7 +7208,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithDisplayNamePrice::minimum + def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::minimum end type price_type = :usage_price | :fixed_price @@ -7241,7 +7241,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MatrixWithDisplayNamePrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::dimensional_price_configuration end end @@ -7353,7 +7353,7 @@ module Orb ?Orb::Models::Price::bulk_with_proration_price | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::bulk_with_proration_price + def to_hash: -> Orb::Models::Price::bulk_with_proration_price type billable_metric = { id: String } @@ -7367,7 +7367,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkWithProrationPrice::billable_metric + def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::billable_metric end type billing_cycle_configuration = @@ -7391,7 +7391,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -7431,7 +7431,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkWithProrationPrice::credit_allocation + def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::credit_allocation end type invoicing_cycle_configuration = @@ -7455,7 +7455,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -7481,7 +7481,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkWithProrationPrice::item + def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::item end type maximum = @@ -7502,7 +7502,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkWithProrationPrice::maximum + def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::maximum end type minimum = @@ -7523,7 +7523,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkWithProrationPrice::minimum + def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::minimum end type price_type = :usage_price | :fixed_price @@ -7556,7 +7556,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::BulkWithProrationPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::dimensional_price_configuration end end @@ -7669,7 +7669,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::grouped_tiered_package_price + def to_hash: -> Orb::Models::Price::grouped_tiered_package_price type billable_metric = { id: String } @@ -7683,7 +7683,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPackagePrice::billable_metric + def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::billable_metric end type billing_cycle_configuration = @@ -7707,7 +7707,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -7747,7 +7747,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPackagePrice::credit_allocation + def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::credit_allocation end type invoicing_cycle_configuration = @@ -7771,7 +7771,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -7797,7 +7797,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPackagePrice::item + def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::item end type maximum = @@ -7818,7 +7818,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPackagePrice::maximum + def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::maximum end type minimum = @@ -7839,7 +7839,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPackagePrice::minimum + def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::minimum end type price_type = :usage_price | :fixed_price @@ -7872,7 +7872,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::GroupedTieredPackagePrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::dimensional_price_configuration end end @@ -7985,7 +7985,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::max_group_tiered_package_price + def to_hash: -> Orb::Models::Price::max_group_tiered_package_price type billable_metric = { id: String } @@ -7999,7 +7999,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MaxGroupTieredPackagePrice::billable_metric + def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::billable_metric end type billing_cycle_configuration = @@ -8023,7 +8023,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MaxGroupTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -8063,7 +8063,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MaxGroupTieredPackagePrice::credit_allocation + def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::credit_allocation end type invoicing_cycle_configuration = @@ -8087,7 +8087,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MaxGroupTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -8113,7 +8113,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MaxGroupTieredPackagePrice::item + def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::item end type maximum = @@ -8134,7 +8134,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MaxGroupTieredPackagePrice::maximum + def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::maximum end type minimum = @@ -8155,7 +8155,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MaxGroupTieredPackagePrice::minimum + def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::minimum end type price_type = :usage_price | :fixed_price @@ -8188,7 +8188,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::MaxGroupTieredPackagePrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::dimensional_price_configuration end end @@ -8301,7 +8301,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::scalable_matrix_with_unit_pricing_price + def to_hash: -> Orb::Models::Price::scalable_matrix_with_unit_pricing_price type billable_metric = { id: String } @@ -8315,7 +8315,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billable_metric + def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billable_metric end type billing_cycle_configuration = @@ -8339,7 +8339,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -8379,7 +8379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::credit_allocation + def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::credit_allocation end type invoicing_cycle_configuration = @@ -8403,7 +8403,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -8429,7 +8429,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::item + def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::item end type maximum = @@ -8450,7 +8450,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::maximum + def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::maximum end type minimum = @@ -8471,7 +8471,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::minimum + def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::minimum end type price_type = :usage_price | :fixed_price @@ -8504,7 +8504,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::dimensional_price_configuration end end @@ -8617,7 +8617,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::scalable_matrix_with_tiered_pricing_price + def to_hash: -> Orb::Models::Price::scalable_matrix_with_tiered_pricing_price type billable_metric = { id: String } @@ -8631,7 +8631,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billable_metric + def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billable_metric end type billing_cycle_configuration = @@ -8655,7 +8655,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -8695,7 +8695,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::credit_allocation + def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::credit_allocation end type invoicing_cycle_configuration = @@ -8719,7 +8719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -8745,7 +8745,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::item + def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::item end type maximum = @@ -8766,7 +8766,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::maximum + def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::maximum end type minimum = @@ -8787,7 +8787,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::minimum + def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::minimum end type price_type = :usage_price | :fixed_price @@ -8820,7 +8820,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::dimensional_price_configuration + def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::dimensional_price_configuration end end diff --git a/sig/orb/models/price_create_params.rbs b/sig/orb/models/price_create_params.rbs index cc2cb76a..48defa26 100644 --- a/sig/orb/models/price_create_params.rbs +++ b/sig/orb/models/price_create_params.rbs @@ -179,7 +179,7 @@ module Orb ) -> void | (?Orb::Models::price_create_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::price_create_params + def to_hash: -> Orb::Models::price_create_params type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom @@ -214,7 +214,7 @@ module Orb ?Orb::Models::PriceCreateParams::unit_config | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::unit_config + def to_hash: -> Orb::Models::PriceCreateParams::unit_config end type billing_cycle_configuration = @@ -238,7 +238,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::billing_cycle_configuration + def to_hash: -> Orb::Models::PriceCreateParams::billing_cycle_configuration type duration_unit = :day | :month @@ -271,7 +271,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::invoicing_cycle_configuration + def to_hash: -> Orb::Models::PriceCreateParams::invoicing_cycle_configuration type duration_unit = :day | :month @@ -297,7 +297,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::package_config + def to_hash: -> Orb::Models::PriceCreateParams::package_config end type matrix_config = @@ -324,7 +324,7 @@ module Orb ?Orb::Models::PriceCreateParams::matrix_config | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::matrix_config + def to_hash: -> Orb::Models::PriceCreateParams::matrix_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -341,7 +341,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::MatrixConfig::matrix_value + def to_hash: -> Orb::Models::PriceCreateParams::MatrixConfig::matrix_value end end @@ -374,7 +374,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::matrix_with_allocation_config + def to_hash: -> Orb::Models::PriceCreateParams::matrix_with_allocation_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -391,7 +391,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::matrix_value + def to_hash: -> Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::matrix_value end end @@ -409,7 +409,7 @@ module Orb ?Orb::Models::PriceCreateParams::tiered_config | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::tiered_config + def to_hash: -> Orb::Models::PriceCreateParams::tiered_config type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -428,7 +428,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::TieredConfig::tier + def to_hash: -> Orb::Models::PriceCreateParams::TieredConfig::tier end end @@ -447,7 +447,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::tiered_bps_config + def to_hash: -> Orb::Models::PriceCreateParams::tiered_bps_config type tier = { @@ -478,7 +478,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::TieredBpsConfig::tier + def to_hash: -> Orb::Models::PriceCreateParams::TieredBpsConfig::tier end end @@ -495,7 +495,7 @@ module Orb ?Orb::Models::PriceCreateParams::bps_config | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::bps_config + def to_hash: -> Orb::Models::PriceCreateParams::bps_config end type bulk_bps_config = @@ -513,7 +513,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::bulk_bps_config + def to_hash: -> Orb::Models::PriceCreateParams::bulk_bps_config type tier = { bps: Float, maximum_amount: String?, per_unit_maximum: String? } @@ -536,7 +536,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::BulkBpsConfig::tier + def to_hash: -> Orb::Models::PriceCreateParams::BulkBpsConfig::tier end end @@ -554,7 +554,7 @@ module Orb ?Orb::Models::PriceCreateParams::bulk_config | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::bulk_config + def to_hash: -> Orb::Models::PriceCreateParams::bulk_config type tier = { unit_amount: String, maximum_units: Float? } @@ -570,7 +570,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::PriceCreateParams::BulkConfig::tier + def to_hash: -> Orb::Models::PriceCreateParams::BulkConfig::tier end end end diff --git a/sig/orb/models/price_evaluate_params.rbs b/sig/orb/models/price_evaluate_params.rbs index 8b8fdc08..e5ecdab8 100644 --- a/sig/orb/models/price_evaluate_params.rbs +++ b/sig/orb/models/price_evaluate_params.rbs @@ -41,7 +41,7 @@ module Orb ) -> void | (?Orb::Models::price_evaluate_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::price_evaluate_params + def to_hash: -> Orb::Models::price_evaluate_params end end end diff --git a/sig/orb/models/price_evaluate_response.rbs b/sig/orb/models/price_evaluate_response.rbs index 0e441694..6c4decbc 100644 --- a/sig/orb/models/price_evaluate_response.rbs +++ b/sig/orb/models/price_evaluate_response.rbs @@ -10,7 +10,7 @@ module Orb (data: Array[Orb::Models::EvaluatePriceGroup]) -> void | (?Orb::Models::price_evaluate_response | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::price_evaluate_response + def to_hash: -> Orb::Models::price_evaluate_response end end end diff --git a/sig/orb/models/price_fetch_params.rbs b/sig/orb/models/price_fetch_params.rbs index ff8c82a1..cb8d1461 100644 --- a/sig/orb/models/price_fetch_params.rbs +++ b/sig/orb/models/price_fetch_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::price_fetch_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::price_fetch_params + def to_hash: -> Orb::Models::price_fetch_params end end end diff --git a/sig/orb/models/price_list_params.rbs b/sig/orb/models/price_list_params.rbs index dddd335d..8522f521 100644 --- a/sig/orb/models/price_list_params.rbs +++ b/sig/orb/models/price_list_params.rbs @@ -21,7 +21,7 @@ module Orb ) -> void | (?Orb::Models::price_list_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::price_list_params + def to_hash: -> Orb::Models::price_list_params end end end diff --git a/sig/orb/models/price_update_params.rbs b/sig/orb/models/price_update_params.rbs index 5652a29b..7bec31c8 100644 --- a/sig/orb/models/price_update_params.rbs +++ b/sig/orb/models/price_update_params.rbs @@ -16,7 +16,7 @@ module Orb ) -> void | (?Orb::Models::price_update_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::price_update_params + def to_hash: -> Orb::Models::price_update_params end end end diff --git a/sig/orb/models/prices/external_price_id_fetch_params.rbs b/sig/orb/models/prices/external_price_id_fetch_params.rbs index 9f310f0d..8e583dd0 100644 --- a/sig/orb/models/prices/external_price_id_fetch_params.rbs +++ b/sig/orb/models/prices/external_price_id_fetch_params.rbs @@ -14,7 +14,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Prices::external_price_id_fetch_params + def to_hash: -> Orb::Models::Prices::external_price_id_fetch_params end end end diff --git a/sig/orb/models/prices/external_price_id_update_params.rbs b/sig/orb/models/prices/external_price_id_update_params.rbs index 88e192a5..2fa964c1 100644 --- a/sig/orb/models/prices/external_price_id_update_params.rbs +++ b/sig/orb/models/prices/external_price_id_update_params.rbs @@ -20,7 +20,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Prices::external_price_id_update_params + def to_hash: -> Orb::Models::Prices::external_price_id_update_params end end end diff --git a/sig/orb/models/subscription.rbs b/sig/orb/models/subscription.rbs index 5110cf72..eb3da63e 100644 --- a/sig/orb/models/subscription.rbs +++ b/sig/orb/models/subscription.rbs @@ -110,7 +110,7 @@ module Orb ) -> void | (?Orb::Models::subscription | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::subscription + def to_hash: -> Orb::Models::subscription type adjustment_interval = { @@ -145,7 +145,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::adjustment_interval + def to_hash: -> Orb::Models::Subscription::adjustment_interval type adjustment = Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -196,7 +196,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -240,7 +240,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -284,7 +284,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -332,7 +332,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -376,7 +376,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -400,7 +400,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::Subscription::billing_cycle_anchor_configuration end type discount_interval = @@ -446,7 +446,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::Subscription::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -486,7 +486,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::Subscription::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -526,7 +526,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::Subscription::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval]] @@ -556,7 +556,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::Subscription::fixed_fee_quantity_schedule end type maximum_interval = @@ -591,7 +591,7 @@ module Orb ?Orb::Models::Subscription::maximum_interval | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::maximum_interval + def to_hash: -> Orb::Models::Subscription::maximum_interval end type minimum_interval = @@ -626,7 +626,7 @@ module Orb ?Orb::Models::Subscription::minimum_interval | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::minimum_interval + def to_hash: -> Orb::Models::Subscription::minimum_interval end type price_interval = @@ -673,7 +673,7 @@ module Orb ?Orb::Models::Subscription::price_interval | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::price_interval + def to_hash: -> Orb::Models::Subscription::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -692,7 +692,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::Subscription::PriceInterval::fixed_fee_quantity_transition end end @@ -712,7 +712,7 @@ module Orb ?Orb::Models::Subscription::redeemed_coupon | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::redeemed_coupon + def to_hash: -> Orb::Models::Subscription::redeemed_coupon end type status = :active | :ended | :upcoming @@ -736,7 +736,7 @@ module Orb ?Orb::Models::Subscription::trial_info | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::Subscription::trial_info + def to_hash: -> Orb::Models::Subscription::trial_info end end end diff --git a/sig/orb/models/subscription_cancel_params.rbs b/sig/orb/models/subscription_cancel_params.rbs index 56b5a7f8..185db643 100644 --- a/sig/orb/models/subscription_cancel_params.rbs +++ b/sig/orb/models/subscription_cancel_params.rbs @@ -25,7 +25,7 @@ module Orb ?Orb::Models::subscription_cancel_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_cancel_params + def to_hash: -> Orb::Models::subscription_cancel_params type cancel_option = :end_of_subscription_term | :immediate | :requested_date diff --git a/sig/orb/models/subscription_cancel_response.rbs b/sig/orb/models/subscription_cancel_response.rbs index 42fbd964..862f1b48 100644 --- a/sig/orb/models/subscription_cancel_response.rbs +++ b/sig/orb/models/subscription_cancel_response.rbs @@ -112,7 +112,7 @@ module Orb ?Orb::Models::subscription_cancel_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_cancel_response + def to_hash: -> Orb::Models::subscription_cancel_response type adjustment_interval = { @@ -147,7 +147,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::adjustment_interval + def to_hash: -> Orb::Models::SubscriptionCancelResponse::adjustment_interval type adjustment = Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -198,7 +198,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -242,7 +242,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -286,7 +286,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -334,7 +334,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -378,7 +378,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -402,7 +402,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionCancelResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -448,7 +448,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -488,7 +488,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -528,7 +528,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval]] @@ -558,7 +558,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::SubscriptionCancelResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -594,7 +594,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::maximum_interval + def to_hash: -> Orb::Models::SubscriptionCancelResponse::maximum_interval end type minimum_interval = @@ -630,7 +630,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::minimum_interval + def to_hash: -> Orb::Models::SubscriptionCancelResponse::minimum_interval end type price_interval = @@ -678,7 +678,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::price_interval + def to_hash: -> Orb::Models::SubscriptionCancelResponse::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -697,7 +697,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionCancelResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -718,7 +718,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::redeemed_coupon + def to_hash: -> Orb::Models::SubscriptionCancelResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -743,7 +743,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCancelResponse::trial_info + def to_hash: -> Orb::Models::SubscriptionCancelResponse::trial_info end end end diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index f031ad9b..49f2e3f7 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -139,7 +139,7 @@ module Orb ?Orb::Models::subscription_create_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_create_params + def to_hash: -> Orb::Models::subscription_create_params type add_adjustment = { @@ -170,7 +170,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::add_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateParams::add_adjustment type adjustment = Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount @@ -211,7 +211,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_percentage_discount + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_percentage_discount end type new_usage_discount = @@ -245,7 +245,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_usage_discount + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_usage_discount end type new_amount_discount = @@ -279,7 +279,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_amount_discount + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_amount_discount end type new_minimum = @@ -317,7 +317,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_minimum + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_minimum end type new_maximum = @@ -351,7 +351,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_maximum + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_maximum end private def self.variants: -> [[:percentage_discount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount], [:usage_discount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount], [:amount_discount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount], [:minimum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum], [:maximum, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum]] @@ -407,7 +407,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::add_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::add_price type discount = { @@ -438,7 +438,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::discount + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::discount type discount_type = :percentage | :usage | :amount @@ -549,7 +549,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_price type cadence = :annual @@ -582,7 +582,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config end type billing_cycle_configuration = @@ -606,7 +606,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -639,7 +639,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -729,7 +729,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_price type cadence = :annual @@ -765,7 +765,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config end type billing_cycle_configuration = @@ -789,7 +789,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -822,7 +822,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -912,7 +912,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_matrix_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_matrix_price type cadence = :annual @@ -958,7 +958,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -978,7 +978,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end end @@ -1003,7 +1003,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1036,7 +1036,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1126,7 +1126,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_price type cadence = :annual @@ -1164,7 +1164,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -1187,7 +1187,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end end @@ -1212,7 +1212,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1245,7 +1245,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1335,7 +1335,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_bps_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_bps_price type cadence = :annual @@ -1373,7 +1373,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config type tier = { @@ -1404,7 +1404,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end end @@ -1429,7 +1429,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1462,7 +1462,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1552,7 +1552,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bps_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bps_price type bps_config = { bps: Float, per_unit_maximum: String? } @@ -1568,7 +1568,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config end type cadence = @@ -1611,7 +1611,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1644,7 +1644,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1734,7 +1734,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_bps_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_bps_price type bulk_bps_config = { @@ -1753,7 +1753,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config type tier = { @@ -1780,7 +1780,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end end @@ -1824,7 +1824,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1857,7 +1857,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1947,7 +1947,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_price type bulk_config = { @@ -1966,7 +1966,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config type tier = { unit_amount: String, maximum_units: Float? } @@ -1982,7 +1982,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end end @@ -2026,7 +2026,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2059,7 +2059,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2149,7 +2149,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_threshold_total_amount_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_threshold_total_amount_price type cadence = :annual @@ -2191,7 +2191,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2224,7 +2224,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2314,7 +2314,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_package_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_package_price type cadence = :annual @@ -2356,7 +2356,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2389,7 +2389,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2479,7 +2479,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_with_minimum_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_with_minimum_price type cadence = :annual @@ -2521,7 +2521,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2554,7 +2554,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2644,7 +2644,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_percent_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_percent_price type cadence = :annual @@ -2686,7 +2686,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2719,7 +2719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2809,7 +2809,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_with_allocation_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_with_allocation_price type cadence = :annual @@ -2851,7 +2851,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2884,7 +2884,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2974,7 +2974,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tier_with_proration_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tier_with_proration_price type cadence = :annual @@ -3016,7 +3016,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3049,7 +3049,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3139,7 +3139,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_proration_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_proration_price type cadence = :annual @@ -3181,7 +3181,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3214,7 +3214,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3304,7 +3304,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_allocation_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_allocation_price type cadence = :annual @@ -3346,7 +3346,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3379,7 +3379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3469,7 +3469,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price type cadence = :annual @@ -3511,7 +3511,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3544,7 +3544,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3634,7 +3634,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_with_proration_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_with_proration_price type cadence = :annual @@ -3676,7 +3676,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3709,7 +3709,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3743,7 +3743,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::billing_cycle_anchor_configuration end type external_marketplace = :google | :aws | :azure @@ -3768,7 +3768,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::remove_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateParams::remove_adjustment end type remove_price = { external_price_id: String?, price_id: String? } @@ -3785,7 +3785,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::remove_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::remove_price end type replace_adjustment = @@ -3809,7 +3809,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::replace_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateParams::replace_adjustment type adjustment = Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount @@ -3850,7 +3850,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_percentage_discount + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_percentage_discount end type new_usage_discount = @@ -3884,7 +3884,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_usage_discount + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_usage_discount end type new_amount_discount = @@ -3918,7 +3918,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_amount_discount + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_amount_discount end type new_minimum = @@ -3956,7 +3956,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_minimum + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_minimum end type new_maximum = @@ -3990,7 +3990,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_maximum + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_maximum end private def self.variants: -> [[:percentage_discount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount], [:usage_discount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount], [:amount_discount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount], [:minimum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum], [:maximum, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum]] @@ -4042,7 +4042,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::replace_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::replace_price type discount = { @@ -4073,7 +4073,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::discount + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::discount type discount_type = :percentage | :usage | :amount @@ -4184,7 +4184,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_price type cadence = :annual @@ -4217,7 +4217,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config end type billing_cycle_configuration = @@ -4241,7 +4241,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4274,7 +4274,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4364,7 +4364,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_price type cadence = :annual @@ -4400,7 +4400,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config end type billing_cycle_configuration = @@ -4424,7 +4424,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4457,7 +4457,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4547,7 +4547,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_matrix_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_matrix_price type cadence = :annual @@ -4593,7 +4593,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -4613,7 +4613,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end end @@ -4638,7 +4638,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4671,7 +4671,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4761,7 +4761,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_price type cadence = :annual @@ -4799,7 +4799,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -4822,7 +4822,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end end @@ -4847,7 +4847,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4880,7 +4880,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4970,7 +4970,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_bps_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_bps_price type cadence = :annual @@ -5008,7 +5008,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config type tier = { @@ -5039,7 +5039,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end end @@ -5064,7 +5064,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5097,7 +5097,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5187,7 +5187,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bps_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bps_price type bps_config = { bps: Float, per_unit_maximum: String? } @@ -5203,7 +5203,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config end type cadence = @@ -5246,7 +5246,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5279,7 +5279,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5369,7 +5369,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_bps_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_bps_price type bulk_bps_config = { @@ -5388,7 +5388,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config type tier = { @@ -5415,7 +5415,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end end @@ -5459,7 +5459,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5492,7 +5492,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5582,7 +5582,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_price type bulk_config = { @@ -5601,7 +5601,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config type tier = { unit_amount: String, maximum_units: Float? } @@ -5617,7 +5617,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end end @@ -5661,7 +5661,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5694,7 +5694,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5784,7 +5784,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price type cadence = :annual @@ -5826,7 +5826,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5859,7 +5859,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5949,7 +5949,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_package_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_package_price type cadence = :annual @@ -5991,7 +5991,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6024,7 +6024,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6114,7 +6114,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price type cadence = :annual @@ -6156,7 +6156,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6189,7 +6189,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6279,7 +6279,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_percent_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_percent_price type cadence = :annual @@ -6321,7 +6321,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6354,7 +6354,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6444,7 +6444,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_with_allocation_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_with_allocation_price type cadence = :annual @@ -6486,7 +6486,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6519,7 +6519,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6609,7 +6609,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tier_with_proration_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tier_with_proration_price type cadence = :annual @@ -6651,7 +6651,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6684,7 +6684,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6774,7 +6774,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_proration_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_proration_price type cadence = :annual @@ -6816,7 +6816,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6849,7 +6849,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6939,7 +6939,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_allocation_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_allocation_price type cadence = :annual @@ -6981,7 +6981,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -7014,7 +7014,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -7104,7 +7104,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price type cadence = :annual @@ -7146,7 +7146,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -7179,7 +7179,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -7269,7 +7269,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price type cadence = :annual @@ -7311,7 +7311,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -7344,7 +7344,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month diff --git a/sig/orb/models/subscription_create_response.rbs b/sig/orb/models/subscription_create_response.rbs index aa4c8265..8b1ffdbc 100644 --- a/sig/orb/models/subscription_create_response.rbs +++ b/sig/orb/models/subscription_create_response.rbs @@ -112,7 +112,7 @@ module Orb ?Orb::Models::subscription_create_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_create_response + def to_hash: -> Orb::Models::subscription_create_response type adjustment_interval = { @@ -147,7 +147,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::adjustment_interval + def to_hash: -> Orb::Models::SubscriptionCreateResponse::adjustment_interval type adjustment = Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -198,7 +198,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -242,7 +242,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -286,7 +286,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -334,7 +334,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -378,7 +378,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -402,7 +402,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionCreateResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -448,7 +448,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -488,7 +488,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -528,7 +528,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval]] @@ -558,7 +558,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::SubscriptionCreateResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -594,7 +594,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::maximum_interval + def to_hash: -> Orb::Models::SubscriptionCreateResponse::maximum_interval end type minimum_interval = @@ -630,7 +630,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::minimum_interval + def to_hash: -> Orb::Models::SubscriptionCreateResponse::minimum_interval end type price_interval = @@ -678,7 +678,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::price_interval + def to_hash: -> Orb::Models::SubscriptionCreateResponse::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -697,7 +697,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionCreateResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -718,7 +718,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::redeemed_coupon + def to_hash: -> Orb::Models::SubscriptionCreateResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -743,7 +743,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionCreateResponse::trial_info + def to_hash: -> Orb::Models::SubscriptionCreateResponse::trial_info end end end diff --git a/sig/orb/models/subscription_fetch_costs_params.rbs b/sig/orb/models/subscription_fetch_costs_params.rbs index 5ee96b5c..49ecb487 100644 --- a/sig/orb/models/subscription_fetch_costs_params.rbs +++ b/sig/orb/models/subscription_fetch_costs_params.rbs @@ -33,7 +33,7 @@ module Orb ?Orb::Models::subscription_fetch_costs_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_fetch_costs_params + def to_hash: -> Orb::Models::subscription_fetch_costs_params type view_mode = :periodic | :cumulative diff --git a/sig/orb/models/subscription_fetch_costs_response.rbs b/sig/orb/models/subscription_fetch_costs_response.rbs index cc8cf092..d1855b72 100644 --- a/sig/orb/models/subscription_fetch_costs_response.rbs +++ b/sig/orb/models/subscription_fetch_costs_response.rbs @@ -12,7 +12,7 @@ module Orb ?Orb::Models::subscription_fetch_costs_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_fetch_costs_response + def to_hash: -> Orb::Models::subscription_fetch_costs_response type data = { @@ -47,7 +47,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionFetchCostsResponse::data + def to_hash: -> Orb::Models::SubscriptionFetchCostsResponse::data type per_price_cost = { @@ -78,7 +78,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionFetchCostsResponse::Data::per_price_cost + def to_hash: -> Orb::Models::SubscriptionFetchCostsResponse::Data::per_price_cost end end end diff --git a/sig/orb/models/subscription_fetch_params.rbs b/sig/orb/models/subscription_fetch_params.rbs index 99367a8b..0ddfd0bd 100644 --- a/sig/orb/models/subscription_fetch_params.rbs +++ b/sig/orb/models/subscription_fetch_params.rbs @@ -12,7 +12,7 @@ module Orb ?Orb::Models::subscription_fetch_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_fetch_params + def to_hash: -> Orb::Models::subscription_fetch_params end end end diff --git a/sig/orb/models/subscription_fetch_schedule_params.rbs b/sig/orb/models/subscription_fetch_schedule_params.rbs index 9418163b..53e24a1d 100644 --- a/sig/orb/models/subscription_fetch_schedule_params.rbs +++ b/sig/orb/models/subscription_fetch_schedule_params.rbs @@ -43,7 +43,7 @@ module Orb ?Orb::Models::subscription_fetch_schedule_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_fetch_schedule_params + def to_hash: -> Orb::Models::subscription_fetch_schedule_params end end end diff --git a/sig/orb/models/subscription_fetch_schedule_response.rbs b/sig/orb/models/subscription_fetch_schedule_response.rbs index 13bfd094..1d25b050 100644 --- a/sig/orb/models/subscription_fetch_schedule_response.rbs +++ b/sig/orb/models/subscription_fetch_schedule_response.rbs @@ -29,7 +29,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_fetch_schedule_response + def to_hash: -> Orb::Models::subscription_fetch_schedule_response type plan = { id: String?, external_plan_id: String?, name: String? } @@ -47,7 +47,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionFetchScheduleResponse::plan + def to_hash: -> Orb::Models::SubscriptionFetchScheduleResponse::plan end end end diff --git a/sig/orb/models/subscription_fetch_usage_params.rbs b/sig/orb/models/subscription_fetch_usage_params.rbs index 8bdbae17..84464d77 100644 --- a/sig/orb/models/subscription_fetch_usage_params.rbs +++ b/sig/orb/models/subscription_fetch_usage_params.rbs @@ -57,7 +57,7 @@ module Orb ?Orb::Models::subscription_fetch_usage_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_fetch_usage_params + def to_hash: -> Orb::Models::subscription_fetch_usage_params type granularity = :day diff --git a/sig/orb/models/subscription_list_params.rbs b/sig/orb/models/subscription_list_params.rbs index b51a957c..121f9f8b 100644 --- a/sig/orb/models/subscription_list_params.rbs +++ b/sig/orb/models/subscription_list_params.rbs @@ -53,7 +53,7 @@ module Orb ) -> void | (?Orb::Models::subscription_list_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::subscription_list_params + def to_hash: -> Orb::Models::subscription_list_params type status = :active | :ended | :upcoming diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index 8753447d..ac1db556 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -50,7 +50,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_price_intervals_params + def to_hash: -> Orb::Models::subscription_price_intervals_params type add = { @@ -105,7 +105,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::add + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::add type start_date = Time | Orb::Models::billing_cycle_relative_date @@ -142,7 +142,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::allocation_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::allocation_price type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -180,7 +180,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::amount_discount_creation_params + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::amount_discount_creation_params end type percentage_discount_creation_params = @@ -198,7 +198,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::percentage_discount_creation_params + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::percentage_discount_creation_params end type usage_discount_creation_params = @@ -216,7 +216,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::usage_discount_creation_params + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::usage_discount_creation_params end private def self.variants: -> [[:amount, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams], [:percentage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams], [:usage, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams]] @@ -243,7 +243,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::fixed_fee_quantity_transition end type price = @@ -349,7 +349,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_price type cadence = :annual @@ -382,7 +382,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::unit_config + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::unit_config end type billing_cycle_configuration = @@ -406,7 +406,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -439,7 +439,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -525,7 +525,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_price type cadence = :annual @@ -561,7 +561,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::package_config + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::package_config end type billing_cycle_configuration = @@ -585,7 +585,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -618,7 +618,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -704,7 +704,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_price type cadence = :annual @@ -750,7 +750,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::matrix_config + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::matrix_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -770,7 +770,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::matrix_value + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::matrix_value end end @@ -795,7 +795,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -828,7 +828,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -914,7 +914,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_allocation_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_allocation_price type cadence = :annual @@ -964,7 +964,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::matrix_with_allocation_config + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::matrix_with_allocation_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -984,7 +984,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value end end @@ -1009,7 +1009,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1042,7 +1042,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1128,7 +1128,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_price type cadence = :annual @@ -1166,7 +1166,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::tiered_config + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::tiered_config type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -1189,7 +1189,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::tier + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::tier end end @@ -1214,7 +1214,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1247,7 +1247,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1333,7 +1333,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_bps_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_bps_price type cadence = :annual @@ -1371,7 +1371,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::tiered_bps_config + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::tiered_bps_config type tier = { @@ -1402,7 +1402,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::tier + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::tier end end @@ -1427,7 +1427,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1460,7 +1460,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1546,7 +1546,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bps_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bps_price type bps_config = { bps: Float, per_unit_maximum: String? } @@ -1562,7 +1562,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::bps_config + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::bps_config end type cadence = @@ -1605,7 +1605,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1638,7 +1638,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1724,7 +1724,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_bps_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_bps_price type bulk_bps_config = { @@ -1743,7 +1743,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::bulk_bps_config + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::bulk_bps_config type tier = { @@ -1770,7 +1770,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::tier + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::tier end end @@ -1814,7 +1814,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1847,7 +1847,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1933,7 +1933,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_price type bulk_config = { @@ -1952,7 +1952,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::bulk_config + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::bulk_config type tier = { unit_amount: String, maximum_units: Float? } @@ -1968,7 +1968,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::tier + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::tier end end @@ -2012,7 +2012,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2045,7 +2045,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2131,7 +2131,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_threshold_total_amount_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_threshold_total_amount_price type cadence = :annual @@ -2173,7 +2173,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2206,7 +2206,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2292,7 +2292,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_price type cadence = :annual @@ -2334,7 +2334,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2367,7 +2367,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2453,7 +2453,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_price type cadence = :annual @@ -2495,7 +2495,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2528,7 +2528,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2614,7 +2614,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_max_group_tiered_package_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_max_group_tiered_package_price type cadence = :annual @@ -2656,7 +2656,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2689,7 +2689,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2775,7 +2775,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_minimum_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_minimum_price type cadence = :annual @@ -2817,7 +2817,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2850,7 +2850,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2936,7 +2936,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_with_allocation_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_with_allocation_price type cadence = :annual @@ -2978,7 +2978,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3011,7 +3011,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3097,7 +3097,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_with_minimum_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_with_minimum_price type cadence = :annual @@ -3139,7 +3139,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3172,7 +3172,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3258,7 +3258,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_percent_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_percent_price type cadence = :annual @@ -3300,7 +3300,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3333,7 +3333,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3419,7 +3419,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_proration_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_proration_price type cadence = :annual @@ -3461,7 +3461,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3494,7 +3494,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3580,7 +3580,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_proration_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_proration_price type cadence = :annual @@ -3622,7 +3622,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3655,7 +3655,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3741,7 +3741,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_allocation_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_allocation_price type cadence = :annual @@ -3783,7 +3783,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3816,7 +3816,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3902,7 +3902,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_prorated_minimum_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_prorated_minimum_price type cadence = :annual @@ -3944,7 +3944,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3977,7 +3977,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4063,7 +4063,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_metered_minimum_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_metered_minimum_price type cadence = :annual @@ -4105,7 +4105,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4138,7 +4138,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4224,7 +4224,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_display_name_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_display_name_price type cadence = :annual @@ -4266,7 +4266,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4299,7 +4299,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4385,7 +4385,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_with_proration_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_with_proration_price type cadence = :annual @@ -4427,7 +4427,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4460,7 +4460,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4546,7 +4546,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_package_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_package_price type cadence = :annual @@ -4588,7 +4588,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4621,7 +4621,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4707,7 +4707,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_unit_pricing_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_unit_pricing_price type cadence = :annual @@ -4749,7 +4749,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4782,7 +4782,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4868,7 +4868,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_tiered_pricing_price + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_tiered_pricing_price type cadence = :annual @@ -4910,7 +4910,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4943,7 +4943,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4985,7 +4985,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::add_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::add_adjustment type adjustment = Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount @@ -5026,7 +5026,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_percentage_discount + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_percentage_discount end type new_usage_discount = @@ -5060,7 +5060,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_usage_discount + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_usage_discount end type new_amount_discount = @@ -5094,7 +5094,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_amount_discount + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_amount_discount end type new_minimum = @@ -5132,7 +5132,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_minimum + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_minimum end type new_maximum = @@ -5166,7 +5166,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_maximum + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_maximum end private def self.variants: -> [[:percentage_discount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount], [:usage_discount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewUsageDiscount], [:amount_discount, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewAmountDiscount], [:minimum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum], [:maximum, Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum]] @@ -5222,7 +5222,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::edit + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::edit type end_date = Time | Orb::Models::billing_cycle_relative_date @@ -5245,7 +5245,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::Edit::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Edit::fixed_fee_quantity_transition end type start_date = Time | Orb::Models::billing_cycle_relative_date @@ -5284,7 +5284,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsParams::edit_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::edit_adjustment type end_date = Time | Orb::Models::billing_cycle_relative_date diff --git a/sig/orb/models/subscription_price_intervals_response.rbs b/sig/orb/models/subscription_price_intervals_response.rbs index 46e7349f..7de0d248 100644 --- a/sig/orb/models/subscription_price_intervals_response.rbs +++ b/sig/orb/models/subscription_price_intervals_response.rbs @@ -113,7 +113,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_price_intervals_response + def to_hash: -> Orb::Models::subscription_price_intervals_response type adjustment_interval = { @@ -148,7 +148,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::adjustment_interval + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::adjustment_interval type adjustment = Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -199,7 +199,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -243,7 +243,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -287,7 +287,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -335,7 +335,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -379,7 +379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -403,7 +403,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -449,7 +449,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -489,7 +489,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -529,7 +529,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval]] @@ -559,7 +559,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -595,7 +595,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::maximum_interval + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::maximum_interval end type minimum_interval = @@ -631,7 +631,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::minimum_interval + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::minimum_interval end type price_interval = @@ -679,7 +679,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::price_interval + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -698,7 +698,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -719,7 +719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::redeemed_coupon + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -744,7 +744,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionPriceIntervalsResponse::trial_info + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::trial_info end end end diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index b3339c8d..514b60cf 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -118,7 +118,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_schedule_plan_change_params + def to_hash: -> Orb::Models::subscription_schedule_plan_change_params type change_option = :requested_date | :end_of_subscription_term | :immediate @@ -160,7 +160,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::add_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::add_adjustment type adjustment = Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount @@ -201,7 +201,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_percentage_discount + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_percentage_discount end type new_usage_discount = @@ -235,7 +235,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_usage_discount + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_usage_discount end type new_amount_discount = @@ -269,7 +269,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_amount_discount + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_amount_discount end type new_minimum = @@ -307,7 +307,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_minimum + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_minimum end type new_maximum = @@ -341,7 +341,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_maximum + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_maximum end private def self.variants: -> [[:percentage_discount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount], [:usage_discount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount], [:amount_discount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount], [:minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum], [:maximum, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum]] @@ -397,7 +397,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::add_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::add_price type discount = { @@ -428,7 +428,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::discount + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::discount type discount_type = :percentage | :usage | :amount @@ -539,7 +539,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_price type cadence = :annual @@ -572,7 +572,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config end type billing_cycle_configuration = @@ -596,7 +596,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -629,7 +629,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -719,7 +719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_price type cadence = :annual @@ -755,7 +755,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config end type billing_cycle_configuration = @@ -779,7 +779,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -812,7 +812,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -902,7 +902,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_matrix_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_matrix_price type cadence = :annual @@ -948,7 +948,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -968,7 +968,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end end @@ -993,7 +993,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1026,7 +1026,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1116,7 +1116,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_price type cadence = :annual @@ -1154,7 +1154,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -1177,7 +1177,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end end @@ -1202,7 +1202,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1235,7 +1235,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1325,7 +1325,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_bps_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_bps_price type cadence = :annual @@ -1363,7 +1363,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config type tier = { @@ -1394,7 +1394,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end end @@ -1419,7 +1419,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1452,7 +1452,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1542,7 +1542,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bps_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bps_price type bps_config = { bps: Float, per_unit_maximum: String? } @@ -1558,7 +1558,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config end type cadence = @@ -1601,7 +1601,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1634,7 +1634,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1724,7 +1724,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_bps_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_bps_price type bulk_bps_config = { @@ -1743,7 +1743,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config type tier = { @@ -1770,7 +1770,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end end @@ -1814,7 +1814,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -1847,7 +1847,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -1937,7 +1937,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_price type bulk_config = { @@ -1956,7 +1956,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config type tier = { unit_amount: String, maximum_units: Float? } @@ -1972,7 +1972,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end end @@ -2016,7 +2016,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2049,7 +2049,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2139,7 +2139,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_threshold_total_amount_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_threshold_total_amount_price type cadence = :annual @@ -2181,7 +2181,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2214,7 +2214,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2304,7 +2304,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_package_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_package_price type cadence = :annual @@ -2346,7 +2346,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2379,7 +2379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2469,7 +2469,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_with_minimum_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_with_minimum_price type cadence = :annual @@ -2511,7 +2511,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2544,7 +2544,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2634,7 +2634,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_percent_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_percent_price type cadence = :annual @@ -2676,7 +2676,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2709,7 +2709,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2799,7 +2799,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_with_allocation_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_with_allocation_price type cadence = :annual @@ -2841,7 +2841,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -2874,7 +2874,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -2964,7 +2964,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tier_with_proration_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tier_with_proration_price type cadence = :annual @@ -3006,7 +3006,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3039,7 +3039,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3129,7 +3129,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_proration_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_proration_price type cadence = :annual @@ -3171,7 +3171,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3204,7 +3204,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3294,7 +3294,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_allocation_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_allocation_price type cadence = :annual @@ -3336,7 +3336,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3369,7 +3369,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3459,7 +3459,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price type cadence = :annual @@ -3501,7 +3501,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3534,7 +3534,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3624,7 +3624,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_with_proration_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_with_proration_price type cadence = :annual @@ -3666,7 +3666,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -3699,7 +3699,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -3744,7 +3744,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_anchor_configuration end type remove_adjustment = { adjustment_id: String } @@ -3759,7 +3759,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::remove_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::remove_adjustment end type remove_price = { external_price_id: String?, price_id: String? } @@ -3776,7 +3776,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::remove_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::remove_price end type replace_adjustment = @@ -3800,7 +3800,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::replace_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::replace_adjustment type adjustment = Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount @@ -3841,7 +3841,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_percentage_discount + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_percentage_discount end type new_usage_discount = @@ -3875,7 +3875,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_usage_discount + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_usage_discount end type new_amount_discount = @@ -3909,7 +3909,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_amount_discount + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_amount_discount end type new_minimum = @@ -3947,7 +3947,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_minimum + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_minimum end type new_maximum = @@ -3981,7 +3981,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_maximum + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_maximum end private def self.variants: -> [[:percentage_discount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount], [:usage_discount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount], [:amount_discount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount], [:minimum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum], [:maximum, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum]] @@ -4033,7 +4033,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::replace_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::replace_price type discount = { @@ -4064,7 +4064,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::discount + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::discount type discount_type = :percentage | :usage | :amount @@ -4175,7 +4175,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_price type cadence = :annual @@ -4208,7 +4208,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config end type billing_cycle_configuration = @@ -4232,7 +4232,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4265,7 +4265,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4355,7 +4355,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_price type cadence = :annual @@ -4391,7 +4391,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config end type billing_cycle_configuration = @@ -4415,7 +4415,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4448,7 +4448,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4538,7 +4538,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_matrix_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_matrix_price type cadence = :annual @@ -4584,7 +4584,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config type matrix_value = { dimension_values: Array[String?], unit_amount: String } @@ -4604,7 +4604,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end end @@ -4629,7 +4629,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4662,7 +4662,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4752,7 +4752,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_price type cadence = :annual @@ -4790,7 +4790,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config type tier = { first_unit: Float, unit_amount: String, last_unit: Float? } @@ -4813,7 +4813,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end end @@ -4838,7 +4838,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -4871,7 +4871,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -4961,7 +4961,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_bps_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_bps_price type cadence = :annual @@ -4999,7 +4999,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config type tier = { @@ -5030,7 +5030,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end end @@ -5055,7 +5055,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5088,7 +5088,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5178,7 +5178,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bps_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bps_price type bps_config = { bps: Float, per_unit_maximum: String? } @@ -5194,7 +5194,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config end type cadence = @@ -5237,7 +5237,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5270,7 +5270,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5360,7 +5360,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_bps_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_bps_price type bulk_bps_config = { @@ -5379,7 +5379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config type tier = { @@ -5406,7 +5406,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end end @@ -5450,7 +5450,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5483,7 +5483,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5573,7 +5573,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_price type bulk_config = { @@ -5592,7 +5592,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config type tier = { unit_amount: String, maximum_units: Float? } @@ -5608,7 +5608,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end end @@ -5652,7 +5652,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5685,7 +5685,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5775,7 +5775,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price type cadence = :annual @@ -5817,7 +5817,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -5850,7 +5850,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -5940,7 +5940,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_package_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_package_price type cadence = :annual @@ -5982,7 +5982,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6015,7 +6015,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6105,7 +6105,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price type cadence = :annual @@ -6147,7 +6147,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6180,7 +6180,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6270,7 +6270,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_percent_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_percent_price type cadence = :annual @@ -6312,7 +6312,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6345,7 +6345,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6435,7 +6435,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_with_allocation_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_with_allocation_price type cadence = :annual @@ -6477,7 +6477,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6510,7 +6510,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6600,7 +6600,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tier_with_proration_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tier_with_proration_price type cadence = :annual @@ -6642,7 +6642,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6675,7 +6675,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6765,7 +6765,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_proration_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_proration_price type cadence = :annual @@ -6807,7 +6807,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -6840,7 +6840,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -6930,7 +6930,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_allocation_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_allocation_price type cadence = :annual @@ -6972,7 +6972,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -7005,7 +7005,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -7095,7 +7095,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price type cadence = :annual @@ -7137,7 +7137,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -7170,7 +7170,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month @@ -7260,7 +7260,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price type cadence = :annual @@ -7302,7 +7302,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month @@ -7335,7 +7335,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month diff --git a/sig/orb/models/subscription_schedule_plan_change_response.rbs b/sig/orb/models/subscription_schedule_plan_change_response.rbs index 2cdac9c6..28a638de 100644 --- a/sig/orb/models/subscription_schedule_plan_change_response.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_response.rbs @@ -113,7 +113,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_schedule_plan_change_response + def to_hash: -> Orb::Models::subscription_schedule_plan_change_response type adjustment_interval = { @@ -148,7 +148,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::adjustment_interval + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::adjustment_interval type adjustment = Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -199,7 +199,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -243,7 +243,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -287,7 +287,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -335,7 +335,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -379,7 +379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -403,7 +403,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -449,7 +449,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -489,7 +489,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -529,7 +529,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval]] @@ -559,7 +559,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -595,7 +595,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::maximum_interval + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::maximum_interval end type minimum_interval = @@ -631,7 +631,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::minimum_interval + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::minimum_interval end type price_interval = @@ -679,7 +679,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::price_interval + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -698,7 +698,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -719,7 +719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::redeemed_coupon + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -744,7 +744,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::trial_info + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::trial_info end end end diff --git a/sig/orb/models/subscription_trigger_phase_params.rbs b/sig/orb/models/subscription_trigger_phase_params.rbs index ca960143..29cbcb8f 100644 --- a/sig/orb/models/subscription_trigger_phase_params.rbs +++ b/sig/orb/models/subscription_trigger_phase_params.rbs @@ -15,7 +15,7 @@ module Orb ?Orb::Models::subscription_trigger_phase_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_trigger_phase_params + def to_hash: -> Orb::Models::subscription_trigger_phase_params end end end diff --git a/sig/orb/models/subscription_trigger_phase_response.rbs b/sig/orb/models/subscription_trigger_phase_response.rbs index c6ae69ce..661024be 100644 --- a/sig/orb/models/subscription_trigger_phase_response.rbs +++ b/sig/orb/models/subscription_trigger_phase_response.rbs @@ -113,7 +113,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_trigger_phase_response + def to_hash: -> Orb::Models::subscription_trigger_phase_response type adjustment_interval = { @@ -148,7 +148,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::adjustment_interval + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::adjustment_interval type adjustment = Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -199,7 +199,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -243,7 +243,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -287,7 +287,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -335,7 +335,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -379,7 +379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -403,7 +403,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -449,7 +449,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -489,7 +489,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -529,7 +529,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval]] @@ -559,7 +559,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -595,7 +595,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::maximum_interval + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::maximum_interval end type minimum_interval = @@ -631,7 +631,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::minimum_interval + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::minimum_interval end type price_interval = @@ -679,7 +679,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::price_interval + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -698,7 +698,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -719,7 +719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::redeemed_coupon + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -744,7 +744,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionTriggerPhaseResponse::trial_info + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::trial_info end end end diff --git a/sig/orb/models/subscription_unschedule_cancellation_params.rbs b/sig/orb/models/subscription_unschedule_cancellation_params.rbs index a6f22d87..d17dd4b4 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_params.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_params.rbs @@ -14,7 +14,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_unschedule_cancellation_params + def to_hash: -> Orb::Models::subscription_unschedule_cancellation_params end end end diff --git a/sig/orb/models/subscription_unschedule_cancellation_response.rbs b/sig/orb/models/subscription_unschedule_cancellation_response.rbs index c03493ac..c1e566d1 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_response.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_response.rbs @@ -113,7 +113,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_unschedule_cancellation_response + def to_hash: -> Orb::Models::subscription_unschedule_cancellation_response type adjustment_interval = { @@ -148,7 +148,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::adjustment_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::adjustment_interval type adjustment = Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -199,7 +199,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -243,7 +243,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -287,7 +287,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -335,7 +335,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -379,7 +379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -403,7 +403,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -449,7 +449,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -489,7 +489,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -529,7 +529,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval]] @@ -559,7 +559,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -595,7 +595,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::maximum_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::maximum_interval end type minimum_interval = @@ -631,7 +631,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::minimum_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::minimum_interval end type price_interval = @@ -679,7 +679,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::price_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -698,7 +698,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -719,7 +719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::redeemed_coupon + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -744,7 +744,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::trial_info + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::trial_info end end end diff --git a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs index aed0fecb..e878f227 100644 --- a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +++ b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs @@ -16,7 +16,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_params + def to_hash: -> Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_params end end end diff --git a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs index 39d69359..374101a5 100644 --- a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +++ b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs @@ -113,7 +113,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_response + def to_hash: -> Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_response type adjustment_interval = { @@ -148,7 +148,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::adjustment_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::adjustment_interval type adjustment = Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -199,7 +199,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -243,7 +243,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -287,7 +287,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -335,7 +335,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -379,7 +379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -403,7 +403,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -449,7 +449,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -489,7 +489,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -529,7 +529,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval]] @@ -559,7 +559,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -595,7 +595,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::maximum_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::maximum_interval end type minimum_interval = @@ -631,7 +631,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::minimum_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::minimum_interval end type price_interval = @@ -679,7 +679,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::price_interval + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -698,7 +698,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -719,7 +719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::redeemed_coupon + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -744,7 +744,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::trial_info + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::trial_info end end end diff --git a/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs b/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs index c1f04150..65880357 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs @@ -14,7 +14,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_unschedule_pending_plan_changes_params + def to_hash: -> Orb::Models::subscription_unschedule_pending_plan_changes_params end end end diff --git a/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs b/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs index 7fa64424..de5aa1fd 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs @@ -113,7 +113,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_unschedule_pending_plan_changes_response + def to_hash: -> Orb::Models::subscription_unschedule_pending_plan_changes_response type adjustment_interval = { @@ -148,7 +148,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::adjustment_interval + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::adjustment_interval type adjustment = Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -199,7 +199,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -243,7 +243,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -287,7 +287,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -335,7 +335,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -379,7 +379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -403,7 +403,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -449,7 +449,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -489,7 +489,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -529,7 +529,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval]] @@ -559,7 +559,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -595,7 +595,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::maximum_interval + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::maximum_interval end type minimum_interval = @@ -631,7 +631,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::minimum_interval + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::minimum_interval end type price_interval = @@ -679,7 +679,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::price_interval + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -698,7 +698,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -719,7 +719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::redeemed_coupon + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -744,7 +744,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::trial_info + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::trial_info end end end diff --git a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs index d28bab1e..d1a1055f 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs @@ -38,7 +38,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_update_fixed_fee_quantity_params + def to_hash: -> Orb::Models::subscription_update_fixed_fee_quantity_params type change_option = :immediate | :upcoming_invoice | :effective_date diff --git a/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs b/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs index 43cbc8e2..38ef1649 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs @@ -113,7 +113,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_update_fixed_fee_quantity_response + def to_hash: -> Orb::Models::subscription_update_fixed_fee_quantity_response type adjustment_interval = { @@ -148,7 +148,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::adjustment_interval + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::adjustment_interval type adjustment = Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -199,7 +199,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -243,7 +243,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -287,7 +287,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -335,7 +335,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -379,7 +379,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -403,7 +403,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -449,7 +449,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -489,7 +489,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -529,7 +529,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval]] @@ -559,7 +559,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -595,7 +595,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::maximum_interval + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::maximum_interval end type minimum_interval = @@ -631,7 +631,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::minimum_interval + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::minimum_interval end type price_interval = @@ -679,7 +679,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::price_interval + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -698,7 +698,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -719,7 +719,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::redeemed_coupon + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -744,7 +744,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::trial_info + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::trial_info end end end diff --git a/sig/orb/models/subscription_update_params.rbs b/sig/orb/models/subscription_update_params.rbs index 7b539a8c..0b6c4db0 100644 --- a/sig/orb/models/subscription_update_params.rbs +++ b/sig/orb/models/subscription_update_params.rbs @@ -37,7 +37,7 @@ module Orb ?Orb::Models::subscription_update_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_update_params + def to_hash: -> Orb::Models::subscription_update_params end end end diff --git a/sig/orb/models/subscription_update_trial_params.rbs b/sig/orb/models/subscription_update_trial_params.rbs index c551cb70..d9de684d 100644 --- a/sig/orb/models/subscription_update_trial_params.rbs +++ b/sig/orb/models/subscription_update_trial_params.rbs @@ -27,7 +27,7 @@ module Orb ?Orb::Models::subscription_update_trial_params | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_update_trial_params + def to_hash: -> Orb::Models::subscription_update_trial_params type trial_end_date = Time diff --git a/sig/orb/models/subscription_update_trial_response.rbs b/sig/orb/models/subscription_update_trial_response.rbs index ee16aa5a..f185e5a4 100644 --- a/sig/orb/models/subscription_update_trial_response.rbs +++ b/sig/orb/models/subscription_update_trial_response.rbs @@ -112,7 +112,7 @@ module Orb ?Orb::Models::subscription_update_trial_response | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::subscription_update_trial_response + def to_hash: -> Orb::Models::subscription_update_trial_response type adjustment_interval = { @@ -147,7 +147,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::adjustment_interval + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::adjustment_interval type adjustment = Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment @@ -198,7 +198,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment end type percentage_discount_adjustment = @@ -242,7 +242,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment end type usage_discount_adjustment = @@ -286,7 +286,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment end type minimum_adjustment = @@ -334,7 +334,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::minimum_adjustment end type maximum_adjustment = @@ -378,7 +378,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::maximum_adjustment end private def self.variants: -> [[:amount_discount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment], [:usage_discount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MinimumAdjustment], [:maximum, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MaximumAdjustment]] @@ -402,7 +402,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::billing_cycle_anchor_configuration + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::billing_cycle_anchor_configuration end type discount_interval = @@ -448,7 +448,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::amount_discount_interval + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::amount_discount_interval end type percentage_discount_interval = @@ -488,7 +488,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::percentage_discount_interval + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::percentage_discount_interval end type usage_discount_interval = @@ -528,7 +528,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::usage_discount_interval + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::usage_discount_interval end private def self.variants: -> [[:amount, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval], [:percentage, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval], [:usage, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval]] @@ -558,7 +558,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::fixed_fee_quantity_schedule + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::fixed_fee_quantity_schedule end type maximum_interval = @@ -594,7 +594,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::maximum_interval + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::maximum_interval end type minimum_interval = @@ -630,7 +630,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::minimum_interval + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::minimum_interval end type price_interval = @@ -678,7 +678,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::price_interval + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::price_interval type fixed_fee_quantity_transition = { effective_date: Time, price_id: String, quantity: Integer } @@ -697,7 +697,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::fixed_fee_quantity_transition + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::fixed_fee_quantity_transition end end @@ -718,7 +718,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::redeemed_coupon + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::redeemed_coupon end type status = :active | :ended | :upcoming @@ -743,7 +743,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUpdateTrialResponse::trial_info + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::trial_info end end end diff --git a/sig/orb/models/subscription_usage.rbs b/sig/orb/models/subscription_usage.rbs index 2a60449c..5a8b8570 100644 --- a/sig/orb/models/subscription_usage.rbs +++ b/sig/orb/models/subscription_usage.rbs @@ -22,7 +22,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUsage::ungrouped_subscription_usage + def to_hash: -> Orb::Models::SubscriptionUsage::ungrouped_subscription_usage type data = { @@ -49,7 +49,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::data + def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::data type billable_metric = { id: String, name: String } @@ -65,7 +65,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::billable_metric + def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::billable_metric end type usage = @@ -89,7 +89,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::usage + def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::usage end type view_mode = :periodic | :cumulative @@ -124,7 +124,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUsage::grouped_subscription_usage + def to_hash: -> Orb::Models::SubscriptionUsage::grouped_subscription_usage type data = { @@ -155,7 +155,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::data + def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::data type billable_metric = { id: String, name: String } @@ -171,7 +171,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::billable_metric + def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::billable_metric end type metric_group = { property_key: String, property_value: String } @@ -188,7 +188,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::metric_group + def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::metric_group end type usage = @@ -212,7 +212,7 @@ module Orb | Orb::BaseModel data ) -> void - def to_h: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::usage + def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::usage end type view_mode = :periodic | :cumulative diff --git a/sig/orb/models/subscriptions.rbs b/sig/orb/models/subscriptions.rbs index b79a5064..7269d583 100644 --- a/sig/orb/models/subscriptions.rbs +++ b/sig/orb/models/subscriptions.rbs @@ -18,7 +18,7 @@ module Orb ) -> void | (?Orb::Models::subscriptions_api | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::subscriptions_api + def to_hash: -> Orb::Models::subscriptions_api end end end diff --git a/sig/orb/models/top_level_ping_params.rbs b/sig/orb/models/top_level_ping_params.rbs index 87cd898c..aa55a1a2 100644 --- a/sig/orb/models/top_level_ping_params.rbs +++ b/sig/orb/models/top_level_ping_params.rbs @@ -10,7 +10,7 @@ module Orb (request_options: Orb::request_opts) -> void | (?Orb::Models::top_level_ping_params | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::top_level_ping_params + def to_hash: -> Orb::Models::top_level_ping_params end end end diff --git a/sig/orb/models/top_level_ping_response.rbs b/sig/orb/models/top_level_ping_response.rbs index 7bfdbeea..12ff3d6f 100644 --- a/sig/orb/models/top_level_ping_response.rbs +++ b/sig/orb/models/top_level_ping_response.rbs @@ -9,7 +9,7 @@ module Orb (response: String) -> void | (?Orb::Models::top_level_ping_response | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::top_level_ping_response + def to_hash: -> Orb::Models::top_level_ping_response end end end diff --git a/sig/orb/models/trial_discount.rbs b/sig/orb/models/trial_discount.rbs index e72d03a0..410736b8 100644 --- a/sig/orb/models/trial_discount.rbs +++ b/sig/orb/models/trial_discount.rbs @@ -30,7 +30,7 @@ module Orb ) -> void | (?Orb::Models::trial_discount | Orb::BaseModel data) -> void - def to_h: -> Orb::Models::trial_discount + def to_hash: -> Orb::Models::trial_discount type discount_type = :trial diff --git a/sig/orb/page.rbs b/sig/orb/page.rbs index 300f59f3..7c698f92 100644 --- a/sig/orb/page.rbs +++ b/sig/orb/page.rbs @@ -23,7 +23,7 @@ module Orb (has_more: bool, next_cursor: String?) -> void | (?pagination_metadata | Orb::BaseModel data) -> void - def to_h: -> pagination_metadata + def to_hash: -> pagination_metadata end end end diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index ea7edf9a..11891c0b 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.2" + VERSION: "0.1.0-alpha.3" end