diff --git a/.gitignore b/.gitignore index 9d9b65f8..bf34ae81 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,5 @@ .yardoc/ doc/ sorbet/ -bin/ Brewfile.lock.json *.gem diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b56c3d0b..e8285b71 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.4" + ".": "0.1.0-alpha.5" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index ae59be0a..8070692c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 103 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-0dbb8ba730f755468357ebda41332664e8396faf29a6a6a64ad37cf35cf70d0c.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-43a4d1d907fd25faa99fef58ba7afb3dd39fae36f955b29bfe27b4bfdaa0ee54.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b45a66b..65ddab21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## 0.1.0-alpha.5 (2025-02-07) + +Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.4...v0.1.0-alpha.5) + +### Features + +* **api:** api update ([#20](https://github.com/orbcorp/orb-ruby/issues/20)) ([42c0f92](https://github.com/orbcorp/orb-ruby/commit/42c0f9247cb57c4d6654b596261612c1a6dafbd0)) +* bundle typing manifests with gem release ([#17](https://github.com/orbcorp/orb-ruby/issues/17)) ([68023cc](https://github.com/orbcorp/orb-ruby/commit/68023ccc8969d72343cb78714878f908aa15627a)) + + +### Chores + +* do not git ignore `bin/` ([#16](https://github.com/orbcorp/orb-ruby/issues/16)) ([fc125dd](https://github.com/orbcorp/orb-ruby/commit/fc125dd7dc0ba99427bba5779d115d5231c9999c)) +* fully qualify `Array` and `Hash` in rbs files to avoid collisions ([#19](https://github.com/orbcorp/orb-ruby/issues/19)) ([291a741](https://github.com/orbcorp/orb-ruby/commit/291a741ba6f569df26328854a3a951502a652fae)) +* **internal:** codegen related update ([#18](https://github.com/orbcorp/orb-ruby/issues/18)) ([88b565d](https://github.com/orbcorp/orb-ruby/commit/88b565db466d101670a2951ba881e24304ce633a)) +* **internal:** version bump ([#14](https://github.com/orbcorp/orb-ruby/issues/14)) ([338b17a](https://github.com/orbcorp/orb-ruby/commit/338b17ad3c66fa1641fc51860b6845b8606652c5)) + ## 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) diff --git a/Gemfile.lock b/Gemfile.lock index 5e78dd5c..1b96df13 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.3) + orb (0.1.0.pre.alpha.4) 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.11805) - sorbet-static (= 0.5.11805) - sorbet-static (0.5.11805-x86_64-linux) + sorbet (0.5.11810) + sorbet-static (= 0.5.11810) + sorbet-static (0.5.11810-x86_64-linux) steep (1.9.4) activesupport (>= 5.1) concurrent-ruby (>= 1.1.10) diff --git a/bin/check-release-environment b/bin/check-release-environment new file mode 100644 index 00000000..32469218 --- /dev/null +++ b/bin/check-release-environment @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +errors=() + +if [ -z "${GEM_HOST_API_KEY}" ]; then + errors+=("The ORB_GEM_HOST_API_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets") +fi + +lenErrors=${#errors[@]} + +if [[ lenErrors -gt 0 ]]; then + echo -e "Found the following errors in the release environment:\n" + + for error in "${errors[@]}"; do + echo -e "- $error\n" + done + + exit 1 +fi + +echo "The environment is ready to push releases!" diff --git a/bin/publish-gem b/bin/publish-gem new file mode 100644 index 00000000..8444af20 --- /dev/null +++ b/bin/publish-gem @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -Eeuo pipefail + +cd -- "$(dirname -- "$0")/.." + +bundle +find . -maxdepth 1 -type f -name "*.gem" -delete +rake release \ No newline at end of file diff --git a/lib/orb/models/events/backfill_close_response.rb b/lib/orb/models/events/backfill_close_response.rb index 5a36d105..dcc01091 100644 --- a/lib/orb/models/events/backfill_close_response.rb +++ b/lib/orb/models/events/backfill_close_response.rb @@ -45,6 +45,14 @@ class BackfillCloseResponse < Orb::BaseModel # @return [Integer] required :events_ingested, Integer + # @!attribute replace_existing_events + # If `true`, existing events in the backfill's timeframe will be replaced with the + # newly ingested events associated with the backfill. If `false`, newly ingested + # events will be added to the existing events. + # + # @return [Boolean] + required :replace_existing_events, Orb::BooleanModel + # @!attribute reverted_at # The time at which this backfill was reverted. # @@ -84,6 +92,7 @@ class BackfillCloseResponse < Orb::BaseModel # # @param created_at [Time] # # @param customer_id [String, nil] # # @param events_ingested [Integer] + # # @param replace_existing_events [Boolean] # # @param reverted_at [Time, nil] # # @param status [Symbol, Orb::Models::Events::BackfillCloseResponse::Status] # # @param timeframe_end [Time] @@ -96,6 +105,7 @@ class BackfillCloseResponse < Orb::BaseModel # created_at:, # customer_id:, # events_ingested:, + # replace_existing_events:, # reverted_at:, # status:, # timeframe_end:, diff --git a/lib/orb/models/events/backfill_create_response.rb b/lib/orb/models/events/backfill_create_response.rb index 7bc67a70..52716fa4 100644 --- a/lib/orb/models/events/backfill_create_response.rb +++ b/lib/orb/models/events/backfill_create_response.rb @@ -45,6 +45,14 @@ class BackfillCreateResponse < Orb::BaseModel # @return [Integer] required :events_ingested, Integer + # @!attribute replace_existing_events + # If `true`, existing events in the backfill's timeframe will be replaced with the + # newly ingested events associated with the backfill. If `false`, newly ingested + # events will be added to the existing events. + # + # @return [Boolean] + required :replace_existing_events, Orb::BooleanModel + # @!attribute reverted_at # The time at which this backfill was reverted. # @@ -84,6 +92,7 @@ class BackfillCreateResponse < Orb::BaseModel # # @param created_at [Time] # # @param customer_id [String, nil] # # @param events_ingested [Integer] + # # @param replace_existing_events [Boolean] # # @param reverted_at [Time, nil] # # @param status [Symbol, Orb::Models::Events::BackfillCreateResponse::Status] # # @param timeframe_end [Time] @@ -96,6 +105,7 @@ class BackfillCreateResponse < Orb::BaseModel # created_at:, # customer_id:, # events_ingested:, + # replace_existing_events:, # reverted_at:, # status:, # timeframe_end:, diff --git a/lib/orb/models/events/backfill_fetch_response.rb b/lib/orb/models/events/backfill_fetch_response.rb index f280666e..e0f27cf1 100644 --- a/lib/orb/models/events/backfill_fetch_response.rb +++ b/lib/orb/models/events/backfill_fetch_response.rb @@ -45,6 +45,14 @@ class BackfillFetchResponse < Orb::BaseModel # @return [Integer] required :events_ingested, Integer + # @!attribute replace_existing_events + # If `true`, existing events in the backfill's timeframe will be replaced with the + # newly ingested events associated with the backfill. If `false`, newly ingested + # events will be added to the existing events. + # + # @return [Boolean] + required :replace_existing_events, Orb::BooleanModel + # @!attribute reverted_at # The time at which this backfill was reverted. # @@ -84,6 +92,7 @@ class BackfillFetchResponse < Orb::BaseModel # # @param created_at [Time] # # @param customer_id [String, nil] # # @param events_ingested [Integer] + # # @param replace_existing_events [Boolean] # # @param reverted_at [Time, nil] # # @param status [Symbol, Orb::Models::Events::BackfillFetchResponse::Status] # # @param timeframe_end [Time] @@ -96,6 +105,7 @@ class BackfillFetchResponse < Orb::BaseModel # created_at:, # customer_id:, # events_ingested:, + # replace_existing_events:, # reverted_at:, # status:, # timeframe_end:, diff --git a/lib/orb/models/events/backfill_list_response.rb b/lib/orb/models/events/backfill_list_response.rb index ef14a1eb..1d9794e0 100644 --- a/lib/orb/models/events/backfill_list_response.rb +++ b/lib/orb/models/events/backfill_list_response.rb @@ -45,6 +45,14 @@ class BackfillListResponse < Orb::BaseModel # @return [Integer] required :events_ingested, Integer + # @!attribute replace_existing_events + # If `true`, existing events in the backfill's timeframe will be replaced with the + # newly ingested events associated with the backfill. If `false`, newly ingested + # events will be added to the existing events. + # + # @return [Boolean] + required :replace_existing_events, Orb::BooleanModel + # @!attribute reverted_at # The time at which this backfill was reverted. # @@ -84,6 +92,7 @@ class BackfillListResponse < Orb::BaseModel # # @param created_at [Time] # # @param customer_id [String, nil] # # @param events_ingested [Integer] + # # @param replace_existing_events [Boolean] # # @param reverted_at [Time, nil] # # @param status [Symbol, Orb::Models::Events::BackfillListResponse::Status] # # @param timeframe_end [Time] @@ -96,6 +105,7 @@ class BackfillListResponse < Orb::BaseModel # created_at:, # customer_id:, # events_ingested:, + # replace_existing_events:, # reverted_at:, # status:, # timeframe_end:, diff --git a/lib/orb/models/events/backfill_revert_response.rb b/lib/orb/models/events/backfill_revert_response.rb index f5e21288..1efaf526 100644 --- a/lib/orb/models/events/backfill_revert_response.rb +++ b/lib/orb/models/events/backfill_revert_response.rb @@ -45,6 +45,14 @@ class BackfillRevertResponse < Orb::BaseModel # @return [Integer] required :events_ingested, Integer + # @!attribute replace_existing_events + # If `true`, existing events in the backfill's timeframe will be replaced with the + # newly ingested events associated with the backfill. If `false`, newly ingested + # events will be added to the existing events. + # + # @return [Boolean] + required :replace_existing_events, Orb::BooleanModel + # @!attribute reverted_at # The time at which this backfill was reverted. # @@ -84,6 +92,7 @@ class BackfillRevertResponse < Orb::BaseModel # # @param created_at [Time] # # @param customer_id [String, nil] # # @param events_ingested [Integer] + # # @param replace_existing_events [Boolean] # # @param reverted_at [Time, nil] # # @param status [Symbol, Orb::Models::Events::BackfillRevertResponse::Status] # # @param timeframe_end [Time] @@ -96,6 +105,7 @@ class BackfillRevertResponse < Orb::BaseModel # created_at:, # customer_id:, # events_ingested:, + # replace_existing_events:, # reverted_at:, # status:, # timeframe_end:, diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index cb2617ef..5335150a 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -1264,26 +1264,27 @@ class LineItem < Orb::BaseModel required :id, String # @!attribute adjusted_subtotal - # The line amount after any adjustments, before overage conversion, credits and + # The line amount after any adjustments and before overage conversion, credits and # partial invoicing. # # @return [String] required :adjusted_subtotal, String # @!attribute adjustments - # All adjustments applied to the line item. + # All adjustments (ie. maximums, minimums, discounts) applied to the line item. # - # @return [Array] + # @return [Array] required :adjustments, -> { Orb::ArrayOf[union: Orb::Models::Invoice::LineItem::Adjustment] } # @!attribute amount - # The final amount after any discounts or minimums. + # The final amount for a line item after all adjustments and pre paid credits have + # been applied. # # @return [String] required :amount, String # @!attribute credits_applied - # The number of credits used + # The number of prepaid credits applied. # # @return [String] required :credits_applied, String @@ -1359,6 +1360,7 @@ class LineItem < Orb::BaseModel required :price, union: -> { Orb::Models::Price }, nil?: true # @!attribute quantity + # Either the fixed fee quantity or the usage during the service period. # # @return [Float] required :quantity, Float @@ -1377,7 +1379,7 @@ class LineItem < Orb::BaseModel required :sub_line_items, -> { Orb::ArrayOf[union: Orb::Models::Invoice::LineItem::SubLineItem] } # @!attribute subtotal - # The line amount before any line item-specific discounts or minimums. + # The line amount before before any adjustments. # # @return [String] required :subtotal, String @@ -1392,7 +1394,7 @@ class LineItem < Orb::BaseModel # @!parse # # @param id [String] # # @param adjusted_subtotal [String] - # # @param adjustments [Array] + # # @param adjustments [Array] # # @param amount [String] # # @param credits_applied [String] # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::Discount::UsageDiscount, Orb::Models::AmountDiscount, nil] @@ -1444,63 +1446,62 @@ class LineItem < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Invoice::LineItem::Adjustment::UsageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Invoice::LineItem::Adjustment::MinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Invoice::LineItem::Adjustment::MaximumAdjustment ... + # in {adjustment_type: "usage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment ... + # in {adjustment_type: "amount_discount", id: String, amount: String, amount_discount: String} + # # Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment ... + # in {adjustment_type: "percentage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment ... + # in {adjustment_type: "minimum", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment ... + # in {adjustment_type: "maximum", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment + # in Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment # # ... - # in Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment # # ... - # in Orb::Models::Invoice::LineItem::Adjustment::UsageDiscountAdjustment + # in Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment # # ... - # in Orb::Models::Invoice::LineItem::Adjustment::MinimumAdjustment + # in Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment # # ... - # in Orb::Models::Invoice::LineItem::Adjustment::MaximumAdjustment + # in Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment } + variant :amount_discount, - -> { - Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment - } + -> { Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, -> { Orb::Models::Invoice::LineItem::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment } - variant :minimum, -> { Orb::Models::Invoice::LineItem::Adjustment::MinimumAdjustment } + variant :minimum, -> { Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment } - variant :maximum, -> { Orb::Models::Invoice::LineItem::Adjustment::MaximumAdjustment } + variant :maximum, -> { Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # monetary_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class MonetaryUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -1508,15 +1509,14 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. + # @!attribute amount + # The value applied by an adjustment. # # @return [String] - required :amount_discount, String + required :amount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -1531,35 +1531,36 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, - # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -1570,16 +1571,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # monetary_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount: String, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, - # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class MonetaryAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -1587,8 +1588,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -1603,19 +1617,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # @@ -1624,21 +1625,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, - # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -1649,16 +1650,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # monetary_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class MonetaryPercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -1666,8 +1667,14 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount + + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -1682,11 +1689,12 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true + # @return [Float] + required :percentage_discount, Float # @!attribute reason # The reason for the adjustment. @@ -1694,30 +1702,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param plan_phase_order [Integer, nil] + # # @param percentage_discount [Float] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, - # plan_phase_order:, + # percentage_discount:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -1728,16 +1729,16 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # monetary_minimum_adjustment => { # id: String, # adjustment_type: :minimum, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # item_id: String, # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class MonetaryMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -1748,6 +1749,12 @@ class MinimumAdjustment < Orb::BaseModel # @return [Symbol, :minimum] required :adjustment_type, const: :minimum + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String + # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. # @@ -1774,12 +1781,6 @@ class MinimumAdjustment < Orb::BaseModel # @return [String] required :minimum_amount, String - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # @@ -1788,21 +1789,21 @@ class MinimumAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param item_id [String] # # @param minimum_amount [String] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] # # @param adjustment_type [Symbol, :minimum] # # # def initialize( # id:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, # item_id:, # minimum_amount:, - # plan_phase_order:, # reason:, # adjustment_type: :minimum, # ** @@ -1815,16 +1816,16 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # monetary_maximum_adjustment => { # id: String, # adjustment_type: :maximum, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # maximum_amount: String, # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class MonetaryMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -1835,6 +1836,12 @@ class MaximumAdjustment < Orb::BaseModel # @return [Symbol, :maximum] required :adjustment_type, const: :maximum + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String + # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. # @@ -1855,12 +1862,6 @@ class MaximumAdjustment < Orb::BaseModel # @return [String] required :maximum_amount, String - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # @@ -1869,19 +1870,19 @@ class MaximumAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param maximum_amount [String] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] # # @param adjustment_type [Symbol, :maximum] # # # def initialize( # id:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, # maximum_amount:, - # plan_phase_order:, # reason:, # adjustment_type: :maximum, # ** diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index d4ff2169..7711bd81 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -1273,27 +1273,28 @@ class LineItem < Orb::BaseModel required :id, String # @!attribute adjusted_subtotal - # The line amount after any adjustments, before overage conversion, credits and + # The line amount after any adjustments and before overage conversion, credits and # partial invoicing. # # @return [String] required :adjusted_subtotal, String # @!attribute adjustments - # All adjustments applied to the line item. + # All adjustments (ie. maximums, minimums, discounts) applied to the line item. # - # @return [Array] + # @return [Array] required :adjustments, -> { Orb::ArrayOf[union: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment] } # @!attribute amount - # The final amount after any discounts or minimums. + # The final amount for a line item after all adjustments and pre paid credits have + # been applied. # # @return [String] required :amount, String # @!attribute credits_applied - # The number of credits used + # The number of prepaid credits applied. # # @return [String] required :credits_applied, String @@ -1369,6 +1370,7 @@ class LineItem < Orb::BaseModel required :price, union: -> { Orb::Models::Price }, nil?: true # @!attribute quantity + # Either the fixed fee quantity or the usage during the service period. # # @return [Float] required :quantity, Float @@ -1388,7 +1390,7 @@ class LineItem < Orb::BaseModel -> { Orb::ArrayOf[union: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem] } # @!attribute subtotal - # The line amount before any line item-specific discounts or minimums. + # The line amount before before any adjustments. # # @return [String] required :subtotal, String @@ -1406,7 +1408,7 @@ class LineItem < Orb::BaseModel # @!parse # # @param id [String] # # @param adjusted_subtotal [String] - # # @param adjustments [Array] + # # @param adjustments [Array] # # @param amount [String] # # @param credits_applied [String] # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::Discount::UsageDiscount, Orb::Models::AmountDiscount, nil] @@ -1458,64 +1460,64 @@ class LineItem < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MaximumAdjustment ... + # in {adjustment_type: "usage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment ... + # in {adjustment_type: "amount_discount", id: String, amount: String, amount_discount: String} + # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment ... + # in {adjustment_type: "percentage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment ... + # in {adjustment_type: "minimum", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment ... + # in {adjustment_type: "maximum", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment + # in Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment # # ... - # in Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment # # ... - # in Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscountAdjustment + # in Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment # # ... - # in Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MinimumAdjustment + # in Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment # # ... - # in Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MaximumAdjustment + # in Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MinimumAdjustment } + -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment } variant :maximum, - -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MaximumAdjustment } + -> { Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # monetary_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class MonetaryUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -1523,15 +1525,14 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. + # @!attribute amount + # The value applied by an adjustment. # # @return [String] - required :amount_discount, String + required :amount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -1546,35 +1547,36 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, - # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -1585,16 +1587,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # monetary_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount: String, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, - # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class MonetaryAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -1602,8 +1604,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -1618,19 +1633,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # @@ -1639,21 +1641,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, - # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -1664,16 +1666,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # monetary_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class MonetaryPercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -1681,8 +1683,14 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount + + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -1697,11 +1705,12 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true + # @return [Float] + required :percentage_discount, Float # @!attribute reason # The reason for the adjustment. @@ -1709,30 +1718,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param plan_phase_order [Integer, nil] + # # @param percentage_discount [Float] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, - # plan_phase_order:, + # percentage_discount:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -1743,16 +1745,16 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # monetary_minimum_adjustment => { # id: String, # adjustment_type: :minimum, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # item_id: String, # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class MonetaryMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -1763,6 +1765,12 @@ class MinimumAdjustment < Orb::BaseModel # @return [Symbol, :minimum] required :adjustment_type, const: :minimum + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String + # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. # @@ -1789,12 +1797,6 @@ class MinimumAdjustment < Orb::BaseModel # @return [String] required :minimum_amount, String - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # @@ -1803,21 +1805,21 @@ class MinimumAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param item_id [String] # # @param minimum_amount [String] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] # # @param adjustment_type [Symbol, :minimum] # # # def initialize( # id:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, # item_id:, # minimum_amount:, - # plan_phase_order:, # reason:, # adjustment_type: :minimum, # ** @@ -1830,16 +1832,16 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # monetary_maximum_adjustment => { # id: String, # adjustment_type: :maximum, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # maximum_amount: String, # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class MonetaryMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -1850,6 +1852,12 @@ class MaximumAdjustment < Orb::BaseModel # @return [Symbol, :maximum] required :adjustment_type, const: :maximum + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String + # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. # @@ -1870,12 +1878,6 @@ class MaximumAdjustment < Orb::BaseModel # @return [String] required :maximum_amount, String - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # @@ -1884,19 +1886,19 @@ class MaximumAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param maximum_amount [String] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] # # @param adjustment_type [Symbol, :maximum] # # # def initialize( # id:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, # maximum_amount:, - # plan_phase_order:, # reason:, # adjustment_type: :maximum, # ** diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index 6bc43e64..d81c980c 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -21,29 +21,30 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel required :id, String # @!attribute adjusted_subtotal - # The line amount after any adjustments, before overage conversion, credits and + # The line amount after any adjustments and before overage conversion, credits and # partial invoicing. # # @return [String] required :adjusted_subtotal, String # @!attribute adjustments - # All adjustments applied to the line item. + # All adjustments (ie. maximums, minimums, discounts) applied to the line item. # - # @return [Array] + # @return [Array] required :adjustments, -> { Orb::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::Adjustment] } # @!attribute amount - # The final amount after any discounts or minimums. + # The final amount for a line item after all adjustments and pre paid credits have + # been applied. # # @return [String] required :amount, String # @!attribute credits_applied - # The number of credits used + # The number of prepaid credits applied. # # @return [String] required :credits_applied, String @@ -119,6 +120,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel required :price, union: -> { Orb::Models::Price }, nil?: true # @!attribute quantity + # Either the fixed fee quantity or the usage during the service period. # # @return [Float] required :quantity, Float @@ -138,7 +140,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel -> { Orb::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem] } # @!attribute subtotal - # The line amount before any line item-specific discounts or minimums. + # The line amount before before any adjustments. # # @return [String] required :subtotal, String @@ -153,7 +155,7 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # @!parse # # @param id [String] # # @param adjusted_subtotal [String] - # # @param adjustments [Array] + # # @param adjustments [Array] # # @param amount [String] # # @param credits_applied [String] # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::Discount::UsageDiscount, Orb::Models::AmountDiscount, nil] @@ -205,62 +207,68 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # @example # ```ruby # case adjustment - # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment ... - # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscountAdjustment ... - # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MinimumAdjustment ... - # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MaximumAdjustment ... + # in {adjustment_type: "usage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment ... + # in {adjustment_type: "amount_discount", id: String, amount: String, amount_discount: String} + # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment ... + # in {adjustment_type: "percentage_discount", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment ... + # in {adjustment_type: "minimum", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment ... + # in {adjustment_type: "maximum", id: String, amount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} + # # Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment + # in Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment # # ... - # in Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment # # ... - # in Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscountAdjustment + # in Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment # # ... - # in Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MinimumAdjustment + # in Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment # # ... - # in Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MaximumAdjustment + # in Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment } - variant :minimum, -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MinimumAdjustment } + variant :minimum, + -> { + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment + } - variant :maximum, -> { Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MaximumAdjustment } + variant :maximum, + -> { + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment + } # @example # ```ruby - # amount_discount_adjustment => { + # monetary_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class MonetaryUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -268,15 +276,14 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. + # @!attribute amount + # The value applied by an adjustment. # # @return [String] - required :amount_discount, String + required :amount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -291,35 +298,36 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, - # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -330,16 +338,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # monetary_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount: String, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, - # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class MonetaryAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -347,8 +355,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -363,19 +384,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # @@ -384,21 +392,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, - # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -409,16 +417,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # monetary_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class MonetaryPercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -426,8 +434,14 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount + + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -442,11 +456,12 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true + # @return [Float] + required :percentage_discount, Float # @!attribute reason # The reason for the adjustment. @@ -454,30 +469,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param plan_phase_order [Integer, nil] + # # @param percentage_discount [Float] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, - # plan_phase_order:, + # percentage_discount:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -488,16 +496,16 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # monetary_minimum_adjustment => { # id: String, # adjustment_type: :minimum, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # item_id: String, # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class MonetaryMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -508,6 +516,12 @@ class MinimumAdjustment < Orb::BaseModel # @return [Symbol, :minimum] required :adjustment_type, const: :minimum + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String + # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. # @@ -534,12 +548,6 @@ class MinimumAdjustment < Orb::BaseModel # @return [String] required :minimum_amount, String - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # @@ -548,21 +556,21 @@ class MinimumAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param item_id [String] # # @param minimum_amount [String] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] # # @param adjustment_type [Symbol, :minimum] # # # def initialize( # id:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, # item_id:, # minimum_amount:, - # plan_phase_order:, # reason:, # adjustment_type: :minimum, # ** @@ -575,16 +583,16 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # monetary_maximum_adjustment => { # id: String, # adjustment_type: :maximum, + # amount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # maximum_amount: String, # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class MonetaryMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -595,6 +603,12 @@ class MaximumAdjustment < Orb::BaseModel # @return [Symbol, :maximum] required :adjustment_type, const: :maximum + # @!attribute amount + # The value applied by an adjustment. + # + # @return [String] + required :amount, String + # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. # @@ -615,12 +629,6 @@ class MaximumAdjustment < Orb::BaseModel # @return [String] required :maximum_amount, String - # @!attribute plan_phase_order - # The plan phase in which this adjustment is active. - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - # @!attribute reason # The reason for the adjustment. # @@ -629,19 +637,19 @@ class MaximumAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param maximum_amount [String] - # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] # # @param adjustment_type [Symbol, :maximum] # # # def initialize( # id:, + # amount:, # applies_to_price_ids:, # is_invoice_level:, # maximum_amount:, - # plan_phase_order:, # reason:, # adjustment_type: :maximum, # ** diff --git a/lib/orb/models/plan.rb b/lib/orb/models/plan.rb index 6c346d30..83d526a2 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -23,7 +23,7 @@ class Plan < Orb::BaseModel # Adjustments for this plan. If the plan has phases, this includes adjustments # across all phases of the plan. # - # @return [Array] + # @return [Array] required :adjustments, -> { Orb::ArrayOf[union: Orb::Models::Plan::Adjustment] } # @!attribute base_plan @@ -165,7 +165,7 @@ class Plan < Orb::BaseModel # # [Price resource](/reference/price). # # # # @param id [String] - # # @param adjustments [Array] + # # @param adjustments [Array] # # @param base_plan [Orb::Models::Plan::BasePlan, nil] # # @param base_plan_id [String, nil] # # @param created_at [Time] @@ -226,59 +226,62 @@ class Plan < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::Plan::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Plan::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Plan::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Plan::Adjustment::MinimumAdjustment ... + # # Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Plan::Adjustment::MaximumAdjustment ... + # # Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::Plan::Adjustment::AmountDiscountAdjustment + # in Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::Plan::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::Plan::Adjustment::UsageDiscountAdjustment + # in Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::Plan::Adjustment::MinimumAdjustment + # in Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::Plan::Adjustment::MaximumAdjustment + # in Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type - variant :amount_discount, -> { Orb::Models::Plan::Adjustment::AmountDiscountAdjustment } + variant :usage_discount, -> { Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment } - variant :percentage_discount, -> { Orb::Models::Plan::Adjustment::PercentageDiscountAdjustment } + variant :amount_discount, -> { Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment } - variant :usage_discount, -> { Orb::Models::Plan::Adjustment::UsageDiscountAdjustment } + variant :percentage_discount, + -> { + Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment + } - variant :minimum, -> { Orb::Models::Plan::Adjustment::MinimumAdjustment } + variant :minimum, -> { Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment } - variant :maximum, -> { Orb::Models::Plan::Adjustment::MaximumAdjustment } + variant :maximum, -> { Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -286,15 +289,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -321,23 +317,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -348,16 +351,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -365,8 +368,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -381,13 +391,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -402,21 +405,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -427,16 +430,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -444,8 +447,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -460,6 +463,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -472,30 +482,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -506,7 +509,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -515,7 +518,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -593,7 +596,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -602,7 +605,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription.rb b/lib/orb/models/subscription.rb index d60819cf..314a017c 100644 --- a/lib/orb/models/subscription.rb +++ b/lib/orb/models/subscription.rb @@ -293,7 +293,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment } # @!attribute applies_to_price_interval_ids @@ -316,7 +316,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -330,68 +330,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::Subscription::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::Subscription::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { - Orb::Models::Subscription::AdjustmentInterval::Adjustment::MinimumAdjustment - } + -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { - Orb::Models::Subscription::AdjustmentInterval::Adjustment::MaximumAdjustment - } + -> { Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -399,15 +395,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -434,23 +423,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -461,16 +457,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -478,8 +474,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -494,13 +497,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -515,21 +511,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -540,16 +536,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -557,8 +553,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -573,6 +569,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -585,30 +588,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -619,7 +615,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -628,7 +624,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -706,7 +702,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -715,7 +711,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription_cancel_response.rb b/lib/orb/models/subscription_cancel_response.rb index 11056e97..48f10ad8 100644 --- a/lib/orb/models/subscription_cancel_response.rb +++ b/lib/orb/models/subscription_cancel_response.rb @@ -281,7 +281,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment } @@ -305,7 +305,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -319,64 +319,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MinimumAdjustment } + -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MaximumAdjustment } + -> { Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -384,15 +384,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -419,23 +412,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -446,16 +446,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -463,8 +463,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -479,13 +486,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -500,21 +500,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -525,16 +525,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -542,8 +542,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -558,6 +558,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -570,30 +577,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -604,7 +604,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -613,7 +613,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -691,7 +691,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -700,7 +700,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 459f629e..aa2acd0a 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -310,8 +310,7 @@ class AddAdjustment < Orb::BaseModel # @!attribute end_date # The end date of the adjustment interval. This is the date that the adjustment - # will stop affecting prices on the subscription. If null, the adjustment will - # start when the phase or subscription starts. + # will stop affecting prices on the subscription. # # @return [Time, nil] optional :end_date, Time, nil?: true diff --git a/lib/orb/models/subscription_create_response.rb b/lib/orb/models/subscription_create_response.rb index 14f0ee08..bce57697 100644 --- a/lib/orb/models/subscription_create_response.rb +++ b/lib/orb/models/subscription_create_response.rb @@ -281,7 +281,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment } @@ -305,7 +305,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -319,64 +319,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MinimumAdjustment } + -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MaximumAdjustment } + -> { Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -384,15 +384,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -419,23 +412,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -446,16 +446,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -463,8 +463,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -479,13 +486,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -500,21 +500,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -525,16 +525,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -542,8 +542,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -558,6 +558,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -570,30 +577,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -604,7 +604,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -613,7 +613,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -691,7 +691,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -700,7 +700,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription_price_intervals_response.rb b/lib/orb/models/subscription_price_intervals_response.rb index c457beef..f58bfecf 100644 --- a/lib/orb/models/subscription_price_intervals_response.rb +++ b/lib/orb/models/subscription_price_intervals_response.rb @@ -280,7 +280,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment } @@ -304,7 +304,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -318,64 +318,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MinimumAdjustment } + -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MaximumAdjustment } + -> { Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -383,15 +383,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -418,23 +411,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -445,16 +445,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -462,8 +462,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -478,13 +485,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -499,21 +499,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -524,16 +524,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -541,8 +541,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -557,6 +557,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -569,30 +576,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -603,7 +603,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -612,7 +612,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -690,7 +690,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -699,7 +699,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index c22adc25..e43bfacf 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -305,8 +305,7 @@ class AddAdjustment < Orb::BaseModel # @!attribute end_date # The end date of the adjustment interval. This is the date that the adjustment - # will stop affecting prices on the subscription. If null, the adjustment will - # start when the phase or subscription starts. + # will stop affecting prices on the subscription. # # @return [Time, nil] optional :end_date, Time, nil?: true diff --git a/lib/orb/models/subscription_schedule_plan_change_response.rb b/lib/orb/models/subscription_schedule_plan_change_response.rb index 71dff21a..a0324818 100644 --- a/lib/orb/models/subscription_schedule_plan_change_response.rb +++ b/lib/orb/models/subscription_schedule_plan_change_response.rb @@ -284,7 +284,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment @@ -310,7 +310,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -324,64 +324,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MinimumAdjustment } + -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MaximumAdjustment } + -> { Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -389,15 +389,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -424,23 +417,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -451,16 +451,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -468,8 +468,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -484,13 +491,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -505,21 +505,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -530,16 +530,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -547,8 +547,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -563,6 +563,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -575,30 +582,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -609,7 +609,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -618,7 +618,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -696,7 +696,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -705,7 +705,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription_trigger_phase_response.rb b/lib/orb/models/subscription_trigger_phase_response.rb index dd2a3912..eab928d2 100644 --- a/lib/orb/models/subscription_trigger_phase_response.rb +++ b/lib/orb/models/subscription_trigger_phase_response.rb @@ -280,7 +280,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment } @@ -304,7 +304,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -318,64 +318,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MinimumAdjustment } + -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MaximumAdjustment } + -> { Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -383,15 +383,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -418,23 +411,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -445,16 +445,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -462,8 +462,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -478,13 +485,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -499,21 +499,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -524,16 +524,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -541,8 +541,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -557,6 +557,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -569,30 +576,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -603,7 +603,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -612,7 +612,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -690,7 +690,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -699,7 +699,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription_unschedule_cancellation_response.rb b/lib/orb/models/subscription_unschedule_cancellation_response.rb index de47e47f..ec0e3fb1 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_response.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_response.rb @@ -286,7 +286,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment @@ -312,7 +312,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -326,64 +326,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MinimumAdjustment } + -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MaximumAdjustment } + -> { Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -391,15 +391,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -426,23 +419,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -453,16 +453,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -470,8 +470,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -486,13 +493,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -507,21 +507,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -532,16 +532,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -549,8 +549,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -565,6 +565,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -577,30 +584,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -611,7 +611,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -620,7 +620,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -698,7 +698,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -707,7 +707,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb b/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb index 45aabaaf..c2d34117 100644 --- a/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +++ b/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb @@ -298,7 +298,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment @@ -324,7 +324,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -338,64 +338,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment } + -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment } + -> { Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -403,15 +403,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -438,23 +431,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -465,16 +465,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -482,8 +482,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -498,13 +505,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -519,21 +519,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -544,16 +544,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -561,8 +561,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -577,6 +577,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -589,30 +596,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -623,7 +623,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -632,7 +632,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -710,7 +710,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -719,7 +719,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb index d2ec4004..5048a8c9 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb @@ -292,7 +292,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment @@ -318,7 +318,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -332,64 +332,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment } + -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment } + -> { Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -397,15 +397,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -432,23 +425,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -459,16 +459,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -476,8 +476,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -492,13 +499,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -513,21 +513,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -538,16 +538,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -555,8 +555,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -571,6 +571,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -583,30 +590,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -617,7 +617,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -626,7 +626,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -704,7 +704,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -713,7 +713,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb index 71fbbd82..9d986690 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb @@ -286,7 +286,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment @@ -312,7 +312,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -326,64 +326,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MinimumAdjustment } + -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MaximumAdjustment } + -> { Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -391,15 +391,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -426,23 +419,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -453,16 +453,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -470,8 +470,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -486,13 +493,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -507,21 +507,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -532,16 +532,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -549,8 +549,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -565,6 +565,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -577,30 +584,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -611,7 +611,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -620,7 +620,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -698,7 +698,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -707,7 +707,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/models/subscription_update_trial_response.rb b/lib/orb/models/subscription_update_trial_response.rb index faf4a6d4..34b6b1c5 100644 --- a/lib/orb/models/subscription_update_trial_response.rb +++ b/lib/orb/models/subscription_update_trial_response.rb @@ -282,7 +282,7 @@ class AdjustmentInterval < Orb::BaseModel # @!attribute adjustment # - # @return [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] + # @return [Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] required :adjustment, union: -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment } @@ -306,7 +306,7 @@ class AdjustmentInterval < Orb::BaseModel # @!parse # # @param id [String] - # # @param adjustment [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] + # # @param adjustment [Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment] # # @param applies_to_price_interval_ids [Array] # # @param end_date [Time, nil] # # @param start_date [Time] @@ -320,64 +320,64 @@ class AdjustmentInterval < Orb::BaseModel # @example # ```ruby # case adjustment + # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} + # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ... # in {adjustment_type: "amount_discount", id: String, amount_discount: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }} - # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment ... + # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ... # in {adjustment_type: "percentage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment ... - # in {adjustment_type: "usage_discount", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment ... + # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ... # in {adjustment_type: "minimum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MinimumAdjustment ... + # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ... # in {adjustment_type: "maximum", id: String, applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, is_invoice_level: Orb::BooleanModel} - # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MaximumAdjustment ... + # # Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ... # end # ``` # # @example # ```ruby # case adjustment - # in Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + # in Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + # in Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + # in Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment # # ... - # in Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + # in Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment # # ... - # in Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + # in Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment # # ... # end # ``` class Adjustment < Orb::Union discriminator :adjustment_type + variant :usage_discount, + -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment } + variant :amount_discount, - -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment } + -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment } variant :percentage_discount, - -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment } - - variant :usage_discount, - -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment } + -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment } variant :minimum, - -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MinimumAdjustment } + -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment } variant :maximum, - -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MaximumAdjustment } + -> { Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment } # @example # ```ruby - # amount_discount_adjustment => { + # plan_phase_usage_discount_adjustment => { # id: String, - # adjustment_type: :amount_discount, - # amount_discount: String, + # adjustment_type: :usage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, + # plan_phase_order: Integer, # **_ # } # ``` - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -385,15 +385,8 @@ class AmountDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :amount_discount] - required :adjustment_type, const: :amount_discount - - # @!attribute amount_discount - # The amount by which to discount the prices this adjustment applies to in a given - # billing period. - # - # @return [String] - required :amount_discount, String + # @return [Symbol, :usage_discount] + required :adjustment_type, const: :usage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -420,23 +413,30 @@ class AmountDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true + # @!attribute usage_discount + # The number of usage units by which to discount the price this adjustment applies + # to in a given billing period. + # + # @return [Float] + required :usage_discount, Float + # @!parse # # @param id [String] - # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :amount_discount] + # # @param usage_discount [Float] + # # @param adjustment_type [Symbol, :usage_discount] # # # def initialize( # id:, - # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, # plan_phase_order:, # reason:, - # adjustment_type: :amount_discount, + # usage_discount:, + # adjustment_type: :usage_discount, # ** # ) # super @@ -447,16 +447,16 @@ class AmountDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # percentage_discount_adjustment => { + # plan_phase_amount_discount_adjustment => { # id: String, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, + # amount_discount: String, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # percentage_discount: Float, # **_ # } # ``` - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -464,8 +464,15 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :percentage_discount] - required :adjustment_type, const: :percentage_discount + # @return [Symbol, :amount_discount] + required :adjustment_type, const: :amount_discount + + # @!attribute amount_discount + # The amount by which to discount the prices this adjustment applies to in a given + # billing period. + # + # @return [String] + required :amount_discount, String # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -480,13 +487,6 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel - # @!attribute percentage_discount - # The percentage (as a value between 0 and 1) by which to discount the price - # intervals this adjustment applies to in a given billing period. - # - # @return [Float] - required :percentage_discount, Float - # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -501,21 +501,21 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @!parse # # @param id [String] + # # @param amount_discount [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] - # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param adjustment_type [Symbol, :percentage_discount] + # # @param adjustment_type [Symbol, :amount_discount] # # # def initialize( # id:, + # amount_discount:, # applies_to_price_ids:, # is_invoice_level:, - # percentage_discount:, # plan_phase_order:, # reason:, - # adjustment_type: :percentage_discount, + # adjustment_type: :amount_discount, # ** # ) # super @@ -526,16 +526,16 @@ class PercentageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # usage_discount_adjustment => { + # plan_phase_percentage_discount_adjustment => { # id: String, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, # is_invoice_level: Orb::BooleanModel, - # plan_phase_order: Integer, + # percentage_discount: Float, # **_ # } # ``` - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -543,8 +543,8 @@ class UsageDiscountAdjustment < Orb::BaseModel # @!attribute adjustment_type # - # @return [Symbol, :usage_discount] - required :adjustment_type, const: :usage_discount + # @return [Symbol, :percentage_discount] + required :adjustment_type, const: :percentage_discount # @!attribute applies_to_price_ids # The price IDs that this adjustment applies to. @@ -559,6 +559,13 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [Boolean] required :is_invoice_level, Orb::BooleanModel + # @!attribute percentage_discount + # The percentage (as a value between 0 and 1) by which to discount the price + # intervals this adjustment applies to in a given billing period. + # + # @return [Float] + required :percentage_discount, Float + # @!attribute plan_phase_order # The plan phase in which this adjustment is active. # @@ -571,30 +578,23 @@ class UsageDiscountAdjustment < Orb::BaseModel # @return [String, nil] required :reason, String, nil?: true - # @!attribute usage_discount - # The number of usage units by which to discount the price this adjustment applies - # to in a given billing period. - # - # @return [Float] - required :usage_discount, Float - # @!parse # # @param id [String] # # @param applies_to_price_ids [Array] # # @param is_invoice_level [Boolean] + # # @param percentage_discount [Float] # # @param plan_phase_order [Integer, nil] # # @param reason [String, nil] - # # @param usage_discount [Float] - # # @param adjustment_type [Symbol, :usage_discount] + # # @param adjustment_type [Symbol, :percentage_discount] # # # def initialize( # id:, # applies_to_price_ids:, # is_invoice_level:, + # percentage_discount:, # plan_phase_order:, # reason:, - # usage_discount:, - # adjustment_type: :usage_discount, + # adjustment_type: :percentage_discount, # ** # ) # super @@ -605,7 +605,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # @example # ```ruby - # minimum_adjustment => { + # plan_phase_minimum_adjustment => { # id: String, # adjustment_type: :minimum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -614,7 +614,7 @@ class UsageDiscountAdjustment < Orb::BaseModel # **_ # } # ``` - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] @@ -692,7 +692,7 @@ class MinimumAdjustment < Orb::BaseModel # @example # ```ruby - # maximum_adjustment => { + # plan_phase_maximum_adjustment => { # id: String, # adjustment_type: :maximum, # applies_to_price_ids: -> { Orb::ArrayOf[String] === _1 }, @@ -701,7 +701,7 @@ class MinimumAdjustment < Orb::BaseModel # **_ # } # ``` - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel # @!attribute id # # @return [String] diff --git a/lib/orb/version.rb b/lib/orb/version.rb index 004089d6..f194cbd4 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.4" + VERSION = "0.1.0-alpha.5" end diff --git a/orb.gemspec b/orb.gemspec index c53793e9..bae6ea39 100644 --- a/orb.gemspec +++ b/orb.gemspec @@ -8,7 +8,7 @@ Gem::Specification.new do |s| s.summary = "Ruby library to access the Orb API" s.authors = ["Orb"] s.email = "team@withorb.com" - s.files = Dir["lib/**/*.rb"] + s.files = Dir["lib/**/*.rb", "rbi/**/*.rbi", "sig/**/*.rbs", "manifest.yaml"] s.extra_rdoc_files = ["README.md"] s.required_ruby_version = ">= 3.0.0" s.add_dependency "connection_pool" diff --git a/rbi/lib/orb/models/events/backfill_close_response.rbi b/rbi/lib/orb/models/events/backfill_close_response.rbi index 068478fa..bc0a6c38 100644 --- a/rbi/lib/orb/models/events/backfill_close_response.rbi +++ b/rbi/lib/orb/models/events/backfill_close_response.rbi @@ -19,6 +19,9 @@ module Orb sig { returns(Integer) } attr_accessor :events_ingested + sig { returns(T::Boolean) } + attr_accessor :replace_existing_events + sig { returns(T.nilable(Time)) } attr_accessor :reverted_at @@ -41,6 +44,7 @@ module Orb created_at: Time, customer_id: T.nilable(String), events_ingested: Integer, + replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), status: Symbol, timeframe_end: Time, @@ -54,6 +58,7 @@ module Orb created_at:, customer_id:, events_ingested:, + replace_existing_events:, reverted_at:, status:, timeframe_end:, @@ -70,6 +75,7 @@ module Orb created_at: Time, customer_id: T.nilable(String), events_ingested: Integer, + replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), status: Symbol, timeframe_end: Time, diff --git a/rbi/lib/orb/models/events/backfill_create_response.rbi b/rbi/lib/orb/models/events/backfill_create_response.rbi index 7a2b946f..2b43bb4b 100644 --- a/rbi/lib/orb/models/events/backfill_create_response.rbi +++ b/rbi/lib/orb/models/events/backfill_create_response.rbi @@ -19,6 +19,9 @@ module Orb sig { returns(Integer) } attr_accessor :events_ingested + sig { returns(T::Boolean) } + attr_accessor :replace_existing_events + sig { returns(T.nilable(Time)) } attr_accessor :reverted_at @@ -41,6 +44,7 @@ module Orb created_at: Time, customer_id: T.nilable(String), events_ingested: Integer, + replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), status: Symbol, timeframe_end: Time, @@ -54,6 +58,7 @@ module Orb created_at:, customer_id:, events_ingested:, + replace_existing_events:, reverted_at:, status:, timeframe_end:, @@ -70,6 +75,7 @@ module Orb created_at: Time, customer_id: T.nilable(String), events_ingested: Integer, + replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), status: Symbol, timeframe_end: Time, diff --git a/rbi/lib/orb/models/events/backfill_fetch_response.rbi b/rbi/lib/orb/models/events/backfill_fetch_response.rbi index e78bb132..96afca5c 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_response.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_response.rbi @@ -19,6 +19,9 @@ module Orb sig { returns(Integer) } attr_accessor :events_ingested + sig { returns(T::Boolean) } + attr_accessor :replace_existing_events + sig { returns(T.nilable(Time)) } attr_accessor :reverted_at @@ -41,6 +44,7 @@ module Orb created_at: Time, customer_id: T.nilable(String), events_ingested: Integer, + replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), status: Symbol, timeframe_end: Time, @@ -54,6 +58,7 @@ module Orb created_at:, customer_id:, events_ingested:, + replace_existing_events:, reverted_at:, status:, timeframe_end:, @@ -70,6 +75,7 @@ module Orb created_at: Time, customer_id: T.nilable(String), events_ingested: Integer, + replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), status: Symbol, timeframe_end: Time, diff --git a/rbi/lib/orb/models/events/backfill_list_response.rbi b/rbi/lib/orb/models/events/backfill_list_response.rbi index 4ebbacd0..77c9b9dc 100644 --- a/rbi/lib/orb/models/events/backfill_list_response.rbi +++ b/rbi/lib/orb/models/events/backfill_list_response.rbi @@ -19,6 +19,9 @@ module Orb sig { returns(Integer) } attr_accessor :events_ingested + sig { returns(T::Boolean) } + attr_accessor :replace_existing_events + sig { returns(T.nilable(Time)) } attr_accessor :reverted_at @@ -41,6 +44,7 @@ module Orb created_at: Time, customer_id: T.nilable(String), events_ingested: Integer, + replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), status: Symbol, timeframe_end: Time, @@ -54,6 +58,7 @@ module Orb created_at:, customer_id:, events_ingested:, + replace_existing_events:, reverted_at:, status:, timeframe_end:, @@ -70,6 +75,7 @@ module Orb created_at: Time, customer_id: T.nilable(String), events_ingested: Integer, + replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), status: Symbol, timeframe_end: Time, diff --git a/rbi/lib/orb/models/events/backfill_revert_response.rbi b/rbi/lib/orb/models/events/backfill_revert_response.rbi index eea373ca..44493763 100644 --- a/rbi/lib/orb/models/events/backfill_revert_response.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_response.rbi @@ -19,6 +19,9 @@ module Orb sig { returns(Integer) } attr_accessor :events_ingested + sig { returns(T::Boolean) } + attr_accessor :replace_existing_events + sig { returns(T.nilable(Time)) } attr_accessor :reverted_at @@ -41,6 +44,7 @@ module Orb created_at: Time, customer_id: T.nilable(String), events_ingested: Integer, + replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), status: Symbol, timeframe_end: Time, @@ -54,6 +58,7 @@ module Orb created_at:, customer_id:, events_ingested:, + replace_existing_events:, reverted_at:, status:, timeframe_end:, @@ -70,6 +75,7 @@ module Orb created_at: Time, customer_id: T.nilable(String), events_ingested: Integer, + replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), status: Symbol, timeframe_end: Time, diff --git a/rbi/lib/orb/models/invoice.rbi b/rbi/lib/orb/models/invoice.rbi index ae26dc37..5a9e1b35 100644 --- a/rbi/lib/orb/models/invoice.rbi +++ b/rbi/lib/orb/models/invoice.rbi @@ -778,11 +778,11 @@ module Orb 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 + Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, + Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment )] ) end @@ -897,11 +897,7 @@ module Orb 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 + Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment )], amount: String, credits_applied: String, @@ -993,7 +989,7 @@ module Orb 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 + Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment )], amount: String, credits_applied: String, @@ -1062,7 +1058,7 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -1070,7 +1066,7 @@ module Orb attr_accessor :adjustment_type sig { returns(String) } - attr_accessor :amount_discount + attr_accessor :amount sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1078,31 +1074,31 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - amount_discount: String, + amount: String, 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, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, + amount:, applies_to_price_ids:, is_invoice_level:, - plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -1111,11 +1107,11 @@ module Orb { id: String, adjustment_type: Symbol, - amount_discount: String, + amount: String, applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -1123,47 +1119,47 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class MonetaryAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason sig do params( id: String, + amount: String, + amount_discount: String, 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), adjustment_type: Symbol ).void end def initialize( id:, + amount:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, - plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -1172,10 +1168,10 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, + amount_discount: String, 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) } ) @@ -1184,47 +1180,47 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class MonetaryPercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + sig { returns(Float) } + attr_accessor :percentage_discount sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, + amount: String, applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), + percentage_discount: Float, reason: T.nilable(String), - usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, + amount:, applies_to_price_ids:, is_invoice_level:, - plan_phase_order:, + percentage_discount:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -1233,11 +1229,11 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, 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 + percentage_discount: Float, + reason: T.nilable(String) } ) end @@ -1245,13 +1241,16 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class MonetaryMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1264,31 +1263,28 @@ module Orb sig { returns(String) } attr_accessor :minimum_amount - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason sig do params( id: String, + amount: String, 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), adjustment_type: Symbol ).void end def initialize( id:, + amount:, applies_to_price_ids:, is_invoice_level:, item_id:, minimum_amount:, - plan_phase_order:, reason:, adjustment_type: :minimum ) @@ -1299,11 +1295,11 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, 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) } ) @@ -1312,13 +1308,16 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class MonetaryMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1328,29 +1327,26 @@ module Orb sig { returns(String) } attr_accessor :maximum_amount - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason sig do params( id: String, + amount: String, 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), adjustment_type: Symbol ).void end def initialize( id:, + amount:, applies_to_price_ids:, is_invoice_level:, maximum_amount:, - plan_phase_order:, reason:, adjustment_type: :maximum ) @@ -1361,10 +1357,10 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, 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) } ) @@ -1376,11 +1372,11 @@ module Orb sig do override.returns( [ - [Symbol, Orb::Models::Invoice::LineItem::Adjustment::AmountDiscountAdjustment], - [Symbol, Orb::Models::Invoice::LineItem::Adjustment::PercentageDiscountAdjustment], - [Symbol, Orb::Models::Invoice::LineItem::Adjustment::UsageDiscountAdjustment], - [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MinimumAdjustment], - [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MaximumAdjustment] + [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment], + [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment], + [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment], + [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment], + [Symbol, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment] ] ) end diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi index 81bcf131..c780e20e 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi @@ -782,7 +782,7 @@ module Orb 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 + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment )] ) end @@ -897,7 +897,7 @@ module Orb 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 + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment )], amount: String, credits_applied: String, @@ -987,7 +987,7 @@ module Orb 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 + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment )], amount: String, credits_applied: String, @@ -1054,7 +1054,7 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -1062,7 +1062,7 @@ module Orb attr_accessor :adjustment_type sig { returns(String) } - attr_accessor :amount_discount + attr_accessor :amount sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1070,31 +1070,31 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - amount_discount: String, + amount: String, 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, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, + amount:, applies_to_price_ids:, is_invoice_level:, - plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -1103,11 +1103,11 @@ module Orb { id: String, adjustment_type: Symbol, - amount_discount: String, + amount: String, applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -1115,47 +1115,47 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class MonetaryAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason sig do params( id: String, + amount: String, + amount_discount: String, 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), adjustment_type: Symbol ).void end def initialize( id:, + amount:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, - plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -1164,10 +1164,10 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, + amount_discount: String, 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) } ) @@ -1176,47 +1176,47 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class MonetaryPercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + sig { returns(Float) } + attr_accessor :percentage_discount sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, + amount: String, applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), + percentage_discount: Float, reason: T.nilable(String), - usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, + amount:, applies_to_price_ids:, is_invoice_level:, - plan_phase_order:, + percentage_discount:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -1225,11 +1225,11 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, 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 + percentage_discount: Float, + reason: T.nilable(String) } ) end @@ -1237,13 +1237,16 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class MonetaryMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1256,31 +1259,28 @@ module Orb sig { returns(String) } attr_accessor :minimum_amount - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason sig do params( id: String, + amount: String, 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), adjustment_type: Symbol ).void end def initialize( id:, + amount:, applies_to_price_ids:, is_invoice_level:, item_id:, minimum_amount:, - plan_phase_order:, reason:, adjustment_type: :minimum ) @@ -1291,11 +1291,11 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, 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) } ) @@ -1304,13 +1304,16 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class MonetaryMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -1320,29 +1323,26 @@ module Orb sig { returns(String) } attr_accessor :maximum_amount - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason sig do params( id: String, + amount: String, 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), adjustment_type: Symbol ).void end def initialize( id:, + amount:, applies_to_price_ids:, is_invoice_level:, maximum_amount:, - plan_phase_order:, reason:, adjustment_type: :maximum ) @@ -1353,10 +1353,10 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, 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) } ) @@ -1370,18 +1370,24 @@ module Orb [ [ Symbol, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscountAdjustment + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment ], [ Symbol, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscountAdjustment + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment ], [ Symbol, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscountAdjustment + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment ], - [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MinimumAdjustment], - [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MaximumAdjustment] + [ + Symbol, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment + ], + [ + Symbol, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment + ] ] ) 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 07bdcd3d..8c3ff41c 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_response.rbi @@ -12,11 +12,7 @@ module Orb 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 + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment )] ) end @@ -131,7 +127,7 @@ module Orb 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 + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment )], amount: String, credits_applied: String, @@ -221,7 +217,7 @@ module Orb 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 + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment )], amount: String, credits_applied: String, @@ -290,7 +286,7 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -298,7 +294,7 @@ module Orb attr_accessor :adjustment_type sig { returns(String) } - attr_accessor :amount_discount + attr_accessor :amount sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -306,31 +302,31 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - amount_discount: String, + amount: String, 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, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, + amount:, applies_to_price_ids:, is_invoice_level:, - plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -339,11 +335,11 @@ module Orb { id: String, adjustment_type: Symbol, - amount_discount: String, + amount: String, applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), - reason: T.nilable(String) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -351,47 +347,47 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class MonetaryAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason sig do params( id: String, + amount: String, + amount_discount: String, 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), adjustment_type: Symbol ).void end def initialize( id:, + amount:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, - plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -400,10 +396,10 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, + amount_discount: String, 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) } ) @@ -412,47 +408,47 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class MonetaryPercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + sig { returns(Float) } + attr_accessor :percentage_discount sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, + amount: String, applies_to_price_ids: T::Array[String], is_invoice_level: T::Boolean, - plan_phase_order: T.nilable(Integer), + percentage_discount: Float, reason: T.nilable(String), - usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, + amount:, applies_to_price_ids:, is_invoice_level:, - plan_phase_order:, + percentage_discount:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -461,11 +457,11 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, 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 + percentage_discount: Float, + reason: T.nilable(String) } ) end @@ -473,13 +469,16 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class MonetaryMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -492,31 +491,28 @@ module Orb sig { returns(String) } attr_accessor :minimum_amount - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason sig do params( id: String, + amount: String, 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), adjustment_type: Symbol ).void end def initialize( id:, + amount:, applies_to_price_ids:, is_invoice_level:, item_id:, minimum_amount:, - plan_phase_order:, reason:, adjustment_type: :minimum ) @@ -527,11 +523,11 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, 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) } ) @@ -540,13 +536,16 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class MonetaryMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -556,29 +555,26 @@ module Orb sig { returns(String) } attr_accessor :maximum_amount - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - sig { returns(T.nilable(String)) } attr_accessor :reason sig do params( id: String, + amount: String, 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), adjustment_type: Symbol ).void end def initialize( id:, + amount:, applies_to_price_ids:, is_invoice_level:, maximum_amount:, - plan_phase_order:, reason:, adjustment_type: :maximum ) @@ -589,10 +585,10 @@ module Orb { id: String, adjustment_type: Symbol, + amount: String, 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) } ) @@ -606,12 +602,18 @@ module Orb [ [ Symbol, - Orb::Models::InvoiceLineItemCreateResponse::Adjustment::AmountDiscountAdjustment + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment + ], + [ + Symbol, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment + ], + [ + Symbol, + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment ], - [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::PercentageDiscountAdjustment], - [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::UsageDiscountAdjustment], - [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MinimumAdjustment], - [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MaximumAdjustment] + [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment], + [Symbol, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment] ] ) end diff --git a/rbi/lib/orb/models/plan.rbi b/rbi/lib/orb/models/plan.rbi index 2c400acb..22b22d2f 100644 --- a/rbi/lib/orb/models/plan.rbi +++ b/rbi/lib/orb/models/plan.rbi @@ -9,11 +9,11 @@ module Orb 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 + Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment )] ) end @@ -132,11 +132,11 @@ module Orb params( 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 + Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment )], base_plan: T.nilable(Orb::Models::Plan::BasePlan), base_plan_id: T.nilable(String), @@ -230,11 +230,7 @@ module Orb { 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 + Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment )], base_plan: T.nilable(Orb::Models::Plan::BasePlan), base_plan_id: T.nilable(String), @@ -302,16 +298,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -324,25 +317,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -351,11 +347,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -363,22 +359,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -388,9 +384,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -398,12 +394,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -412,9 +408,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -424,7 +420,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -437,23 +433,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -461,10 +457,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -475,9 +471,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -485,7 +481,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -552,7 +548,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -616,11 +612,11 @@ module Orb sig do override.returns( [ - [Symbol, Orb::Models::Plan::Adjustment::AmountDiscountAdjustment], - [Symbol, Orb::Models::Plan::Adjustment::PercentageDiscountAdjustment], - [Symbol, Orb::Models::Plan::Adjustment::UsageDiscountAdjustment], - [Symbol, Orb::Models::Plan::Adjustment::MinimumAdjustment], - [Symbol, Orb::Models::Plan::Adjustment::MaximumAdjustment] + [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment], + [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment], + [Symbol, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment], + [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment], + [Symbol, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment] ] ) end diff --git a/rbi/lib/orb/models/subscription.rbi b/rbi/lib/orb/models/subscription.rbi index f6602658..99fc5583 100644 --- a/rbi/lib/orb/models/subscription.rbi +++ b/rbi/lib/orb/models/subscription.rbi @@ -191,11 +191,11 @@ module Orb 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 + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -214,7 +214,7 @@ module Orb params( 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 + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -229,7 +229,7 @@ module Orb { 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 + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -243,16 +243,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -265,25 +262,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -292,11 +292,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -304,22 +304,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -329,9 +329,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -339,12 +339,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -353,9 +353,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -365,7 +365,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -378,23 +378,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -402,10 +402,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -416,9 +416,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -426,7 +426,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -493,7 +493,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -559,15 +559,24 @@ module Orb [ [ Symbol, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::Subscription::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], - [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::UsageDiscountAdjustment], - [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::MinimumAdjustment], - [Symbol, Orb::Models::Subscription::AdjustmentInterval::Adjustment::MaximumAdjustment] + [ + Symbol, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + ], + [ + Symbol, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + ], + [ + Symbol, + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment + ] ] ) end diff --git a/rbi/lib/orb/models/subscription_cancel_response.rbi b/rbi/lib/orb/models/subscription_cancel_response.rbi index 03623a00..9ef2aa69 100644 --- a/rbi/lib/orb/models/subscription_cancel_response.rbi +++ b/rbi/lib/orb/models/subscription_cancel_response.rbi @@ -189,7 +189,7 @@ module Orb 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 + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -208,7 +208,7 @@ module Orb params( 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 + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -223,7 +223,7 @@ module Orb { 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 + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -237,16 +237,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -259,25 +256,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -286,11 +286,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -298,22 +298,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -323,9 +323,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -333,12 +333,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -347,9 +347,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -359,7 +359,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -372,23 +372,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -396,10 +396,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -410,9 +410,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -420,7 +420,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -487,7 +487,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -553,23 +553,23 @@ module Orb [ [ Symbol, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ], [ Symbol, - Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ] ] ) diff --git a/rbi/lib/orb/models/subscription_create_response.rbi b/rbi/lib/orb/models/subscription_create_response.rbi index 5744c4b6..27ab5d69 100644 --- a/rbi/lib/orb/models/subscription_create_response.rbi +++ b/rbi/lib/orb/models/subscription_create_response.rbi @@ -189,7 +189,7 @@ module Orb 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 + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -208,7 +208,7 @@ module Orb params( 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 + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -223,7 +223,7 @@ module Orb { 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 + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -237,16 +237,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -259,25 +256,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -286,11 +286,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -298,22 +298,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -323,9 +323,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -333,12 +333,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -347,9 +347,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -359,7 +359,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -372,23 +372,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -396,10 +396,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -410,9 +410,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -420,7 +420,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -487,7 +487,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -553,23 +553,23 @@ module Orb [ [ Symbol, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ], [ Symbol, - Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ] ] ) diff --git a/rbi/lib/orb/models/subscription_price_intervals_response.rbi b/rbi/lib/orb/models/subscription_price_intervals_response.rbi index e6a90be3..f397113f 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_response.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_response.rbi @@ -187,7 +187,7 @@ module Orb sig do 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 + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -206,7 +206,7 @@ module Orb params( 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 + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -221,7 +221,7 @@ module Orb { 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 + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -235,16 +235,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -257,25 +254,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -284,11 +284,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -296,22 +296,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -321,9 +321,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -331,12 +331,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -345,9 +345,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -357,7 +357,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -370,23 +370,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -394,10 +394,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -408,9 +408,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -418,7 +418,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -485,7 +485,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -551,23 +551,23 @@ module Orb [ [ Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ], [ Symbol, - Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ] ] ) 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 c69e7fc4..a8eb9d3c 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi @@ -187,7 +187,7 @@ module Orb sig do 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 + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -206,7 +206,7 @@ module Orb params( 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 + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -221,7 +221,7 @@ module Orb { 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 + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -235,16 +235,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -257,25 +254,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -284,11 +284,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -296,22 +296,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -321,9 +321,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -331,12 +331,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -345,9 +345,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -357,7 +357,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -370,23 +370,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -394,10 +394,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -408,9 +408,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -418,7 +418,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -485,7 +485,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -551,23 +551,23 @@ module Orb [ [ Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ], [ Symbol, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ] ] ) diff --git a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi index c2507c6d..129de5d6 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi @@ -187,7 +187,7 @@ module Orb sig do 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 + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -206,7 +206,7 @@ module Orb params( 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 + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -221,7 +221,7 @@ module Orb { 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 + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -235,16 +235,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -257,25 +254,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -284,11 +284,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -296,22 +296,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -321,9 +321,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -331,12 +331,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -345,9 +345,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -357,7 +357,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -370,23 +370,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -394,10 +394,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -408,9 +408,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -418,7 +418,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -485,7 +485,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -551,23 +551,23 @@ module Orb [ [ Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ], [ Symbol, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ] ] ) diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi index 814f8329..d648380f 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi @@ -191,7 +191,7 @@ module Orb sig do 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 + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -210,7 +210,7 @@ module Orb params( 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 + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -225,7 +225,7 @@ module Orb { 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 + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -239,16 +239,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -261,25 +258,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -288,11 +288,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -300,22 +300,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -325,9 +325,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -335,12 +335,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -349,9 +349,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -361,7 +361,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -374,23 +374,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -398,10 +398,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -412,9 +412,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -422,7 +422,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -489,7 +489,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -555,23 +555,23 @@ module Orb [ [ Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ] ] ) 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 98dfc6ac..7bb79f4d 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 @@ -201,7 +201,7 @@ module Orb sig do 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 + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -220,7 +220,7 @@ module Orb params( 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 + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -235,7 +235,7 @@ module Orb { 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 + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -249,16 +249,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -271,25 +268,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -298,11 +298,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -310,22 +310,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -335,9 +335,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -345,12 +345,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -359,9 +359,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -371,7 +371,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -384,23 +384,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -408,10 +408,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -422,9 +422,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -432,7 +432,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -499,7 +499,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -565,23 +565,23 @@ module Orb [ [ Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ] ] ) 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 5b19f325..1741efce 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 @@ -199,7 +199,7 @@ module Orb sig do 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 + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -218,7 +218,7 @@ module Orb params( 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 + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -233,7 +233,7 @@ module Orb { 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 + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -247,16 +247,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -269,25 +266,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -296,11 +296,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -308,22 +308,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -333,9 +333,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -343,12 +343,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -357,9 +357,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -369,7 +369,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -382,23 +382,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -406,10 +406,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -420,9 +420,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -430,7 +430,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -497,7 +497,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -563,23 +563,23 @@ module Orb [ [ Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ], [ Symbol, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ] ] ) 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 bd30b88b..f9985aa4 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 @@ -191,7 +191,7 @@ module Orb sig do 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 + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -210,7 +210,7 @@ module Orb params( 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 + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -225,7 +225,7 @@ module Orb { 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 + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -239,16 +239,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -261,25 +258,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -288,11 +288,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -300,22 +300,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -325,9 +325,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -335,12 +335,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -349,9 +349,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -361,7 +361,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -374,23 +374,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -398,10 +398,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -412,9 +412,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -422,7 +422,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -489,7 +489,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -555,23 +555,23 @@ module Orb [ [ Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ], [ Symbol, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ] ] ) diff --git a/rbi/lib/orb/models/subscription_update_trial_response.rbi b/rbi/lib/orb/models/subscription_update_trial_response.rbi index 08e8e2b3..74ac8665 100644 --- a/rbi/lib/orb/models/subscription_update_trial_response.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_response.rbi @@ -187,7 +187,7 @@ module Orb sig do 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 + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ) ) end @@ -206,7 +206,7 @@ module Orb params( 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 + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -221,7 +221,7 @@ module Orb { 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 + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ), applies_to_price_interval_ids: T::Array[String], end_date: T.nilable(Time), @@ -235,16 +235,13 @@ module Orb class Adjustment < Orb::Union abstract! - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type - sig { returns(String) } - attr_accessor :amount_discount - sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids @@ -257,25 +254,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :reason + sig { returns(Float) } + attr_accessor :usage_discount + sig do params( id: String, - 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), + usage_discount: Float, adjustment_type: Symbol ).void end def initialize( id:, - amount_discount:, applies_to_price_ids:, is_invoice_level:, plan_phase_order:, reason:, - adjustment_type: :amount_discount + usage_discount:, + adjustment_type: :usage_discount ) end @@ -284,11 +284,11 @@ module Orb { 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) + reason: T.nilable(String), + usage_discount: Float } ) end @@ -296,22 +296,22 @@ module Orb end end - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id sig { returns(Symbol) } attr_accessor :adjustment_type + sig { returns(String) } + attr_accessor :amount_discount + sig { returns(T::Array[String]) } attr_accessor :applies_to_price_ids sig { returns(T::Boolean) } attr_accessor :is_invoice_level - sig { returns(Float) } - attr_accessor :percentage_discount - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -321,9 +321,9 @@ module Orb sig do params( id: String, + amount_discount: String, 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), adjustment_type: Symbol @@ -331,12 +331,12 @@ module Orb end def initialize( id:, + amount_discount:, applies_to_price_ids:, is_invoice_level:, - percentage_discount:, plan_phase_order:, reason:, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) end @@ -345,9 +345,9 @@ module Orb { id: String, adjustment_type: Symbol, + amount_discount: String, 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) } @@ -357,7 +357,7 @@ module Orb end end - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -370,23 +370,23 @@ module Orb sig { returns(T::Boolean) } attr_accessor :is_invoice_level + sig { returns(Float) } + attr_accessor :percentage_discount + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig { returns(T.nilable(String)) } attr_accessor :reason - sig { returns(Float) } - attr_accessor :usage_discount - sig do params( id: String, 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), - usage_discount: Float, adjustment_type: Symbol ).void end @@ -394,10 +394,10 @@ module Orb id:, applies_to_price_ids:, is_invoice_level:, + percentage_discount:, plan_phase_order:, reason:, - usage_discount:, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) end @@ -408,9 +408,9 @@ module Orb 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), - usage_discount: Float + reason: T.nilable(String) } ) end @@ -418,7 +418,7 @@ module Orb end end - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -485,7 +485,7 @@ module Orb end end - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } attr_accessor :id @@ -551,23 +551,23 @@ module Orb [ [ Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::AmountDiscountAdjustment + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PercentageDiscountAdjustment + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::UsageDiscountAdjustment + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment ], [ Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MinimumAdjustment + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment ], [ Symbol, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::MaximumAdjustment + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment ] ] ) diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index 44232c5d..55cdb2fa 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.3" + VERSION = "0.1.0-alpha.4" end diff --git a/sig/orb/base_client.rbs b/sig/orb/base_client.rbs index b85b4275..64d838dd 100644 --- a/sig/orb/base_client.rbs +++ b/sig/orb/base_client.rbs @@ -3,23 +3,23 @@ module Orb type request = { method: Symbol, - path: String | Array[String], - query: Hash[String, (Array[String] | String)?]?, - headers: Hash[String, String?]?, + path: String | ::Array[String], + query: ::Hash[String, (::Array[String] | String)?]?, + headers: ::Hash[String, String?]?, body: top?, unwrap: Symbol?, page: Class?, model: Orb::Converter::input?, options: (Orb::RequestOptions | Orb::request_options - | Hash[Symbol, top])? + | ::Hash[Symbol, top])? } type normalized_request = { method: Symbol, url: URI::Generic, - headers: Hash[String, String], + headers: ::Hash[String, String], body: top, max_retries: Integer, timeout: Float @@ -38,11 +38,11 @@ module Orb max_retries: Integer, initial_retry_delay: Float, max_retry_delay: Float, - headers: Hash[String, String?], + headers: ::Hash[String, String?], idempotency_header: String? ) -> void - private def auth_headers: -> Hash[String, String] + private def auth_headers: -> ::Hash[String, String] private def generate_idempotency_key: -> String @@ -53,11 +53,11 @@ module Orb private def should_retry?: ( Integer status, - headers: Hash[String, String] + headers: ::Hash[String, String] ) -> bool private def retry_delay: ( - Hash[String, String] headers, + ::Hash[String, String] headers, retry_count: Integer ) -> Float @@ -82,16 +82,16 @@ module Orb def request: ( Symbol method, - String | Array[String] path, - query: Hash[String, (Array[String] | String)?]?, - headers: Hash[String, String?]?, + String | ::Array[String] path, + query: ::Hash[String, (::Array[String] | String)?]?, + headers: ::Hash[String, String?]?, body: top?, unwrap: Symbol?, page: Class?, model: Orb::Converter::input?, options: (Orb::RequestOptions | Orb::request_options - | Hash[Symbol, top])? + | ::Hash[Symbol, top])? ) -> top | (Orb::BaseClient::request req) -> top diff --git a/sig/orb/base_model.rbs b/sig/orb/base_model.rbs index 7b9a0991..94e5ccf3 100644 --- a/sig/orb/base_model.rbs +++ b/sig/orb/base_model.rbs @@ -62,7 +62,7 @@ module Orb class Enum extend Orb::Converter - def self.values: -> Array[(nil | bool | Integer | Float | Symbol)] + def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)] private def self.finalize!: -> void @@ -83,18 +83,18 @@ module Orb extend Orb::Extern extend Orb::Converter - private def self.known_variants: -> Array[[Symbol?, Proc]] + private def self.known_variants: -> ::Array[[Symbol?, Proc]] - def self.variants: -> Array[[Symbol?, top]] + def self.variants: -> ::Array[[Symbol?, top]] private def self.discriminator: (Symbol property) -> void private def self.variant: ( Symbol - | Hash[Symbol, top] + | ::Hash[Symbol, top] | ^-> Orb::Converter::input | Orb::Converter::input key, - ?Hash[Symbol, top] + ?::Hash[Symbol, top] | ^-> Orb::Converter::input | Orb::Converter::input spec ) -> void @@ -121,9 +121,9 @@ module Orb def ==: (top other) -> bool - def coerce: (Enumerable[top] | top value) -> (Array[top] | top) + def coerce: (Enumerable[top] | top value) -> (::Array[top] | top) - def dump: (Enumerable[top] | top value) -> (Array[top] | top) + def dump: (Enumerable[top] | top value) -> (::Array[top] | top) def try_strict_coerce: ( top value @@ -132,10 +132,10 @@ module Orb def item_type: -> Orb::Converter::input def initialize: ( - Hash[Symbol, top] + ::Hash[Symbol, top] | ^-> Orb::Converter::input | Orb::Converter::input type_info, - ?Hash[Symbol, top] spec + ?::Hash[Symbol, top] spec ) -> void end @@ -146,9 +146,9 @@ module Orb def ==: (top other) -> bool - def coerce: (Hash[top, top] | top value) -> (Hash[Symbol, top] | top) + def coerce: (::Hash[top, top] | top value) -> (::Hash[Symbol, top] | top) - def dump: (Hash[top, top] | top value) -> (Hash[Symbol, top] | top) + def dump: (::Hash[top, top] | top value) -> (::Hash[Symbol, top] | top) def try_strict_coerce: ( top value @@ -157,10 +157,10 @@ module Orb def item_type: -> Orb::Converter::input def initialize: ( - Hash[Symbol, top] + ::Hash[Symbol, top] | ^-> Orb::Converter::input | Orb::Converter::input type_info, - ?Hash[Symbol, top] spec + ?::Hash[Symbol, top] spec ) -> void end @@ -170,13 +170,13 @@ module Orb type known_field = { mode: (:coerce | :dump)?, required: bool } - def self.known_fields: -> Hash[Symbol, (Orb::BaseModel::known_field + def self.known_fields: -> ::Hash[Symbol, (Orb::BaseModel::known_field & { type_fn: (^-> Orb::Converter::input) })] - def self.fields: -> Hash[Symbol, (Orb::BaseModel::known_field + def self.fields: -> ::Hash[Symbol, (Orb::BaseModel::known_field & { type: Orb::Converter::input })] - def self.defaults: -> Hash[Symbol, (^-> Class)] + def self.defaults: -> ::Hash[Symbol, (^-> Class)] private def self.add_field: ( Symbol name_sym, @@ -189,23 +189,23 @@ module Orb } | ^-> Orb::Converter::input | Orb::Converter::input, - spec: Hash[Symbol, top] + spec: ::Hash[Symbol, top] ) -> void def self.required: ( Symbol name_sym, - Hash[Symbol, top] + ::Hash[Symbol, top] | ^-> Orb::Converter::input | Orb::Converter::input type_info, - ?Hash[Symbol, top] spec + ?::Hash[Symbol, top] spec ) -> void def self.optional: ( Symbol name_sym, - Hash[Symbol, top] + ::Hash[Symbol, top] | ^-> Orb::Converter::input | Orb::Converter::input type_info, - ?Hash[Symbol, top] spec + ?::Hash[Symbol, top] spec ) -> void private def self.request_only: { -> void } -> void @@ -215,10 +215,10 @@ module Orb def ==: (top other) -> bool def self.coerce: ( - Orb::BaseModel | Hash[top, top] | top value + Orb::BaseModel | ::Hash[top, top] | top value ) -> (instance | top) - def self.dump: (instance | top value) -> (Hash[top, top] | top) + def self.dump: (instance | top value) -> (::Hash[top, top] | top) def self.try_strict_coerce: ( top value @@ -226,13 +226,13 @@ module Orb def []: (Symbol key) -> top? - def to_h: -> Hash[Symbol, top] + def to_h: -> ::Hash[Symbol, top] alias to_hash to_h - def deconstruct_keys: (Array[Symbol]? keys) -> Hash[Symbol, top] + def deconstruct_keys: (::Array[Symbol]? keys) -> ::Hash[Symbol, top] - def initialize: (?Hash[Symbol, top] | self data) -> void + def initialize: (?::Hash[Symbol, top] | self data) -> void def to_s: -> String diff --git a/sig/orb/base_page.rbs b/sig/orb/base_page.rbs index 4e8fdc95..d91d5f57 100644 --- a/sig/orb/base_page.rbs +++ b/sig/orb/base_page.rbs @@ -13,7 +13,7 @@ module Orb def initialize: ( client: Orb::BaseClient, req: Orb::BaseClient::request, - headers: Hash[String, String], + headers: ::Hash[String, String], unwrapped: top ) -> void end diff --git a/sig/orb/client.rbs b/sig/orb/client.rbs index 8d0115bf..5607ce56 100644 --- a/sig/orb/client.rbs +++ b/sig/orb/client.rbs @@ -38,7 +38,7 @@ module Orb attr_reader dimensional_price_groups: Orb::Resources::DimensionalPriceGroups - private def auth_headers: -> Hash[String, String] + private def auth_headers: -> ::Hash[String, String] def initialize: ( base_url: String?, diff --git a/sig/orb/models/alert.rbs b/sig/orb/models/alert.rbs index 54b33e3a..b92bc8da 100644 --- a/sig/orb/models/alert.rbs +++ b/sig/orb/models/alert.rbs @@ -10,7 +10,7 @@ module Orb metric: Orb::Models::Alert::Metric?, plan: Orb::Models::Alert::Plan?, subscription: Orb::Models::Alert::Subscription?, - thresholds: Array[Orb::Models::Alert::Threshold]?, + thresholds: ::Array[Orb::Models::Alert::Threshold]?, type: Orb::Models::Alert::type_ } @@ -31,7 +31,7 @@ module Orb attr_accessor subscription: Orb::Models::Alert::Subscription? - attr_accessor thresholds: Array[Orb::Models::Alert::Threshold]? + attr_accessor thresholds: ::Array[Orb::Models::Alert::Threshold]? attr_accessor type: Orb::Models::Alert::type_ @@ -45,7 +45,7 @@ module Orb metric: Orb::Models::Alert::Metric?, plan: Orb::Models::Alert::Plan?, subscription: Orb::Models::Alert::Subscription?, - thresholds: Array[Orb::Models::Alert::Threshold]?, + thresholds: ::Array[Orb::Models::Alert::Threshold]?, type: Orb::Models::Alert::type_ ) -> void | (?Orb::Models::alert | Orb::BaseModel data) -> void @@ -145,7 +145,7 @@ module Orb CREDIT_BALANCE_DROPPED: :credit_balance_dropped CREDIT_BALANCE_RECOVERED: :credit_balance_recovered - def self.values: -> Array[Orb::Models::Alert::type_] + def self.values: -> ::Array[Orb::Models::Alert::type_] end end end diff --git a/sig/orb/models/alert_create_for_customer_params.rbs b/sig/orb/models/alert_create_for_customer_params.rbs index d003c9a7..884c8c99 100644 --- a/sig/orb/models/alert_create_for_customer_params.rbs +++ b/sig/orb/models/alert_create_for_customer_params.rbs @@ -4,7 +4,7 @@ module Orb { currency: String, type: Orb::Models::AlertCreateForCustomerParams::type_, - thresholds: Array[Orb::Models::AlertCreateForCustomerParams::Threshold]? + thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]? } & Orb::request_parameters @@ -16,13 +16,13 @@ module Orb attr_accessor type: Orb::Models::AlertCreateForCustomerParams::type_ - attr_accessor thresholds: Array[Orb::Models::AlertCreateForCustomerParams::Threshold]? + attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]? def initialize: ( currency: String, type: Orb::Models::AlertCreateForCustomerParams::type_, - thresholds: Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, + thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, request_options: Orb::request_opts ) -> void | ( @@ -45,7 +45,7 @@ module Orb CREDIT_BALANCE_DROPPED: :credit_balance_dropped CREDIT_BALANCE_RECOVERED: :credit_balance_recovered - def self.values: -> Array[Orb::Models::AlertCreateForCustomerParams::type_] + def self.values: -> ::Array[Orb::Models::AlertCreateForCustomerParams::type_] end type threshold = { value: Float } 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 408db8e8..df338a42 100644 --- a/sig/orb/models/alert_create_for_external_customer_params.rbs +++ b/sig/orb/models/alert_create_for_external_customer_params.rbs @@ -4,7 +4,7 @@ module Orb { currency: String, type: Orb::Models::AlertCreateForExternalCustomerParams::type_, - thresholds: Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]? + thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]? } & Orb::request_parameters @@ -16,13 +16,13 @@ module Orb attr_accessor type: Orb::Models::AlertCreateForExternalCustomerParams::type_ - attr_accessor thresholds: Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]? + attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]? def initialize: ( currency: String, type: Orb::Models::AlertCreateForExternalCustomerParams::type_, - thresholds: Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, + thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, request_options: Orb::request_opts ) -> void | ( @@ -46,7 +46,7 @@ module Orb CREDIT_BALANCE_DROPPED: :credit_balance_dropped CREDIT_BALANCE_RECOVERED: :credit_balance_recovered - def self.values: -> Array[Orb::Models::AlertCreateForExternalCustomerParams::type_] + def self.values: -> ::Array[Orb::Models::AlertCreateForExternalCustomerParams::type_] end type threshold = { value: Float } diff --git a/sig/orb/models/alert_create_for_subscription_params.rbs b/sig/orb/models/alert_create_for_subscription_params.rbs index 97f4dd30..230cf86c 100644 --- a/sig/orb/models/alert_create_for_subscription_params.rbs +++ b/sig/orb/models/alert_create_for_subscription_params.rbs @@ -2,7 +2,7 @@ module Orb module Models type alert_create_for_subscription_params = { - thresholds: Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], + thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], type: Orb::Models::AlertCreateForSubscriptionParams::type_, metric_id: String? } @@ -12,7 +12,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor thresholds: Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold] + attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold] attr_accessor type: Orb::Models::AlertCreateForSubscriptionParams::type_ @@ -20,7 +20,7 @@ module Orb def initialize: ( - thresholds: Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], + thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], type: Orb::Models::AlertCreateForSubscriptionParams::type_, metric_id: String?, request_options: Orb::request_opts @@ -61,7 +61,7 @@ module Orb CREDIT_BALANCE_DROPPED: :credit_balance_dropped CREDIT_BALANCE_RECOVERED: :credit_balance_recovered - def self.values: -> Array[Orb::Models::AlertCreateForSubscriptionParams::type_] + def self.values: -> ::Array[Orb::Models::AlertCreateForSubscriptionParams::type_] end end end diff --git a/sig/orb/models/alert_update_params.rbs b/sig/orb/models/alert_update_params.rbs index e662a200..04905921 100644 --- a/sig/orb/models/alert_update_params.rbs +++ b/sig/orb/models/alert_update_params.rbs @@ -1,18 +1,18 @@ module Orb module Models type alert_update_params = - { thresholds: Array[Orb::Models::AlertUpdateParams::Threshold] } + { thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold] } & Orb::request_parameters class AlertUpdateParams < Orb::BaseModel extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor thresholds: Array[Orb::Models::AlertUpdateParams::Threshold] + attr_accessor thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold] def initialize: ( - thresholds: Array[Orb::Models::AlertUpdateParams::Threshold], + thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], request_options: Orb::request_opts ) -> void | (?Orb::Models::alert_update_params | Orb::BaseModel data) -> void diff --git a/sig/orb/models/amount_discount.rbs b/sig/orb/models/amount_discount.rbs index 740ff77b..87e626d4 100644 --- a/sig/orb/models/amount_discount.rbs +++ b/sig/orb/models/amount_discount.rbs @@ -3,7 +3,7 @@ module Orb type amount_discount = { amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], discount_type: Orb::Models::AmountDiscount::discount_type, reason: String? } @@ -11,7 +11,7 @@ module Orb class AmountDiscount < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor discount_type: Orb::Models::AmountDiscount::discount_type @@ -20,7 +20,7 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], discount_type: Orb::Models::AmountDiscount::discount_type, reason: String? ) -> void @@ -33,7 +33,7 @@ module Orb class DiscountType < Orb::Enum AMOUNT: :amount - def self.values: -> Array[Orb::Models::AmountDiscount::discount_type] + def self.values: -> ::Array[Orb::Models::AmountDiscount::discount_type] end end end diff --git a/sig/orb/models/billable_metric.rbs b/sig/orb/models/billable_metric.rbs index 13b7553a..61d1c789 100644 --- a/sig/orb/models/billable_metric.rbs +++ b/sig/orb/models/billable_metric.rbs @@ -5,7 +5,7 @@ module Orb id: String, description: String?, item: Orb::Models::Item, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], name: String, status: Orb::Models::BillableMetric::status } @@ -17,7 +17,7 @@ module Orb attr_accessor item: Orb::Models::Item - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor name: String @@ -28,7 +28,7 @@ module Orb id: String, description: String?, item: Orb::Models::Item, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], name: String, status: Orb::Models::BillableMetric::status ) -> void @@ -43,7 +43,7 @@ module Orb DRAFT: :draft ARCHIVED: :archived - def self.values: -> Array[Orb::Models::BillableMetric::status] + def self.values: -> ::Array[Orb::Models::BillableMetric::status] end end end diff --git a/sig/orb/models/billing_cycle_relative_date.rbs b/sig/orb/models/billing_cycle_relative_date.rbs index 021915bd..fb4c5ff9 100644 --- a/sig/orb/models/billing_cycle_relative_date.rbs +++ b/sig/orb/models/billing_cycle_relative_date.rbs @@ -6,7 +6,7 @@ module Orb START_OF_TERM: :start_of_term END_OF_TERM: :end_of_term - def self.values: -> Array[Orb::Models::billing_cycle_relative_date] + def self.values: -> ::Array[Orb::Models::billing_cycle_relative_date] end end end diff --git a/sig/orb/models/credit_note.rbs b/sig/orb/models/credit_note.rbs index 086b1d97..2db890f9 100644 --- a/sig/orb/models/credit_note.rbs +++ b/sig/orb/models/credit_note.rbs @@ -8,7 +8,7 @@ module Orb credit_note_pdf: String?, customer: Orb::Models::CreditNote::Customer, invoice_id: String, - line_items: Array[Orb::Models::CreditNote::LineItem], + line_items: ::Array[Orb::Models::CreditNote::LineItem], maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment?, memo: String?, minimum_amount_refunded: String?, @@ -17,7 +17,7 @@ module Orb total: String, type: Orb::Models::CreditNote::type_, voided_at: Time?, - discounts: Array[Orb::Models::CreditNote::Discount] + discounts: ::Array[Orb::Models::CreditNote::Discount] } class CreditNote < Orb::BaseModel @@ -33,7 +33,7 @@ module Orb attr_accessor invoice_id: String - attr_accessor line_items: Array[Orb::Models::CreditNote::LineItem] + attr_accessor line_items: ::Array[Orb::Models::CreditNote::LineItem] attr_accessor maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment? @@ -51,9 +51,9 @@ module Orb attr_accessor voided_at: Time? - attr_reader discounts: Array[Orb::Models::CreditNote::Discount]? + attr_reader discounts: ::Array[Orb::Models::CreditNote::Discount]? - def discounts=: (Array[Orb::Models::CreditNote::Discount]) -> void + def discounts=: (::Array[Orb::Models::CreditNote::Discount]) -> void def initialize: ( @@ -63,7 +63,7 @@ module Orb credit_note_pdf: String?, customer: Orb::Models::CreditNote::Customer, invoice_id: String, - line_items: Array[Orb::Models::CreditNote::LineItem], + line_items: ::Array[Orb::Models::CreditNote::LineItem], maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment?, memo: String?, minimum_amount_refunded: String?, @@ -72,7 +72,7 @@ module Orb total: String, type: Orb::Models::CreditNote::type_, voided_at: Time?, - discounts: Array[Orb::Models::CreditNote::Discount] + discounts: ::Array[Orb::Models::CreditNote::Discount] ) -> void | (?Orb::Models::credit_note | Orb::BaseModel data) -> void @@ -99,8 +99,8 @@ module Orb name: String, quantity: Float?, subtotal: String, - tax_amounts: Array[Orb::Models::CreditNote::LineItem::TaxAmount], - discounts: Array[Orb::Models::CreditNote::LineItem::Discount] + tax_amounts: ::Array[Orb::Models::CreditNote::LineItem::TaxAmount], + discounts: ::Array[Orb::Models::CreditNote::LineItem::Discount] } class LineItem < Orb::BaseModel @@ -114,12 +114,12 @@ module Orb attr_accessor subtotal: String - attr_accessor tax_amounts: Array[Orb::Models::CreditNote::LineItem::TaxAmount] + attr_accessor tax_amounts: ::Array[Orb::Models::CreditNote::LineItem::TaxAmount] - attr_reader discounts: Array[Orb::Models::CreditNote::LineItem::Discount]? + attr_reader discounts: ::Array[Orb::Models::CreditNote::LineItem::Discount]? def discounts=: ( - Array[Orb::Models::CreditNote::LineItem::Discount] + ::Array[Orb::Models::CreditNote::LineItem::Discount] ) -> void def initialize: @@ -129,8 +129,8 @@ module Orb name: String, quantity: Float?, subtotal: String, - tax_amounts: Array[Orb::Models::CreditNote::LineItem::TaxAmount], - discounts: Array[Orb::Models::CreditNote::LineItem::Discount] + tax_amounts: ::Array[Orb::Models::CreditNote::LineItem::TaxAmount], + discounts: ::Array[Orb::Models::CreditNote::LineItem::Discount] ) -> void | (?Orb::Models::CreditNote::line_item | Orb::BaseModel data) -> void @@ -168,7 +168,7 @@ module Orb { id: String, amount_applied: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type, percentage_discount: Float, amount_discount: String?, @@ -180,7 +180,7 @@ module Orb attr_accessor amount_applied: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type @@ -194,7 +194,7 @@ module Orb ( id: String, amount_applied: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type, percentage_discount: Float, amount_discount: String?, @@ -212,7 +212,7 @@ module Orb PERCENTAGE: :percentage AMOUNT: :amount - def self.values: -> Array[Orb::Models::CreditNote::LineItem::Discount::discount_type] + def self.values: -> ::Array[Orb::Models::CreditNote::LineItem::Discount::discount_type] end end end @@ -222,7 +222,7 @@ module Orb amount_applied: String, discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type, percentage_discount: Float, - applies_to_prices: Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, + applies_to_prices: ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, reason: String? } @@ -233,7 +233,7 @@ module Orb attr_accessor percentage_discount: Float - attr_accessor applies_to_prices: Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]? + attr_accessor applies_to_prices: ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]? attr_accessor reason: String? @@ -242,7 +242,7 @@ module Orb amount_applied: String, discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type, percentage_discount: Float, - applies_to_prices: Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, + applies_to_prices: ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, reason: String? ) -> void | ( @@ -257,7 +257,7 @@ module Orb class DiscountType < Orb::Enum PERCENTAGE: :percentage - def self.values: -> Array[Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type] + def self.values: -> ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type] end type applies_to_price = { id: String, name: String } @@ -287,7 +287,7 @@ module Orb ORDER_CHANGE: :"Order change" PRODUCT_UNSATISFACTORY: :"Product unsatisfactory" - def self.values: -> Array[Orb::Models::CreditNote::reason] + def self.values: -> ::Array[Orb::Models::CreditNote::reason] end type type_ = :refund | :adjustment @@ -296,7 +296,7 @@ module Orb REFUND: :refund ADJUSTMENT: :adjustment - def self.values: -> Array[Orb::Models::CreditNote::type_] + def self.values: -> ::Array[Orb::Models::CreditNote::type_] end type discount = @@ -304,7 +304,7 @@ module Orb amount_applied: String, discount_type: Orb::Models::CreditNote::Discount::discount_type, percentage_discount: Float, - applies_to_prices: Array[Orb::Models::CreditNote::Discount::AppliesToPrice]?, + applies_to_prices: ::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]?, reason: String? } @@ -315,7 +315,7 @@ module Orb attr_accessor percentage_discount: Float - attr_accessor applies_to_prices: Array[Orb::Models::CreditNote::Discount::AppliesToPrice]? + attr_accessor applies_to_prices: ::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]? attr_accessor reason: String? @@ -324,7 +324,7 @@ module Orb amount_applied: String, discount_type: Orb::Models::CreditNote::Discount::discount_type, percentage_discount: Float, - applies_to_prices: Array[Orb::Models::CreditNote::Discount::AppliesToPrice]?, + applies_to_prices: ::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]?, reason: String? ) -> void | (?Orb::Models::CreditNote::discount | Orb::BaseModel data) -> void @@ -336,7 +336,7 @@ module Orb class DiscountType < Orb::Enum PERCENTAGE: :percentage - def self.values: -> Array[Orb::Models::CreditNote::Discount::discount_type] + def self.values: -> ::Array[Orb::Models::CreditNote::Discount::discount_type] end type applies_to_price = { id: String, name: String } diff --git a/sig/orb/models/credit_note_create_params.rbs b/sig/orb/models/credit_note_create_params.rbs index b8fa768d..77f15609 100644 --- a/sig/orb/models/credit_note_create_params.rbs +++ b/sig/orb/models/credit_note_create_params.rbs @@ -2,7 +2,7 @@ module Orb module Models type credit_note_create_params = { - line_items: Array[Orb::Models::CreditNoteCreateParams::LineItem], + line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], memo: String?, reason: Orb::Models::CreditNoteCreateParams::reason? } @@ -12,7 +12,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor line_items: Array[Orb::Models::CreditNoteCreateParams::LineItem] + attr_accessor line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem] attr_accessor memo: String? @@ -20,7 +20,7 @@ module Orb def initialize: ( - line_items: Array[Orb::Models::CreditNoteCreateParams::LineItem], + line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], memo: String?, reason: Orb::Models::CreditNoteCreateParams::reason?, request_options: Orb::request_opts @@ -57,7 +57,7 @@ module Orb ORDER_CHANGE: :order_change PRODUCT_UNSATISFACTORY: :product_unsatisfactory - def self.values: -> Array[Orb::Models::CreditNoteCreateParams::reason] + def self.values: -> ::Array[Orb::Models::CreditNoteCreateParams::reason] end end end diff --git a/sig/orb/models/customer.rbs b/sig/orb/models/customer.rbs index 44037b7d..dee9255a 100644 --- a/sig/orb/models/customer.rbs +++ b/sig/orb/models/customer.rbs @@ -3,7 +3,7 @@ module Orb type customer = { id: String, - additional_emails: Array[String], + additional_emails: ::Array[String], auto_collection: bool, balance: String, billing_address: Orb::Models::Customer::BillingAddress?, @@ -13,7 +13,7 @@ module Orb email_delivery: bool, exempt_from_automated_tax: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], name: String, payment_provider: Orb::Models::Customer::payment_provider?, payment_provider_id: String?, @@ -28,7 +28,7 @@ module Orb class Customer < Orb::BaseModel attr_accessor id: String - attr_accessor additional_emails: Array[String] + attr_accessor additional_emails: ::Array[String] attr_accessor auto_collection: bool @@ -48,7 +48,7 @@ module Orb attr_accessor external_customer_id: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor name: String @@ -71,7 +71,7 @@ module Orb def initialize: ( id: String, - additional_emails: Array[String], + additional_emails: ::Array[String], auto_collection: bool, balance: String, billing_address: Orb::Models::Customer::BillingAddress?, @@ -81,7 +81,7 @@ module Orb email_delivery: bool, exempt_from_automated_tax: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], name: String, payment_provider: Orb::Models::Customer::payment_provider?, payment_provider_id: String?, @@ -145,7 +145,7 @@ module Orb STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> Array[Orb::Models::Customer::payment_provider] + def self.values: -> ::Array[Orb::Models::Customer::payment_provider] end type shipping_address = @@ -371,7 +371,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> Array[Orb::Models::Customer::TaxID::country] + def self.values: -> ::Array[Orb::Models::Customer::TaxID::country] end type type_ = @@ -520,24 +520,24 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> Array[Orb::Models::Customer::TaxID::type_] + def self.values: -> ::Array[Orb::Models::Customer::TaxID::type_] end end type accounting_sync_configuration = { - accounting_providers: Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], + accounting_providers: ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], excluded: bool } class AccountingSyncConfiguration < Orb::BaseModel - attr_accessor accounting_providers: Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider] + attr_accessor accounting_providers: ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider] attr_accessor excluded: bool def initialize: ( - accounting_providers: Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], + accounting_providers: ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], excluded: bool ) -> void | ( @@ -576,7 +576,7 @@ module Orb QUICKBOOKS: :quickbooks NETSUITE: :netsuite - def self.values: -> Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type] + def self.values: -> ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type] end end end diff --git a/sig/orb/models/customer_create_params.rbs b/sig/orb/models/customer_create_params.rbs index 601440e0..facf8141 100644 --- a/sig/orb/models/customer_create_params.rbs +++ b/sig/orb/models/customer_create_params.rbs @@ -5,13 +5,13 @@ module Orb email: String, name: String, accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, - additional_emails: Array[String]?, + additional_emails: ::Array[String]?, auto_collection: bool?, billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, currency: String?, email_delivery: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, payment_provider: Orb::Models::CustomerCreateParams::payment_provider?, payment_provider_id: String?, reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration? - attr_accessor additional_emails: Array[String]? + attr_accessor additional_emails: ::Array[String]? attr_accessor auto_collection: bool? @@ -44,7 +44,7 @@ module Orb attr_accessor external_customer_id: String? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor payment_provider: Orb::Models::CustomerCreateParams::payment_provider? @@ -65,13 +65,13 @@ module Orb email: String, name: String, accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, - additional_emails: Array[String]?, + additional_emails: ::Array[String]?, auto_collection: bool?, billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, currency: String?, email_delivery: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, payment_provider: Orb::Models::CustomerCreateParams::payment_provider?, payment_provider_id: String?, reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration?, @@ -87,18 +87,18 @@ module Orb type accounting_sync_configuration = { - accounting_providers: Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, + accounting_providers: ::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, excluded: bool? } class AccountingSyncConfiguration < Orb::BaseModel - attr_accessor accounting_providers: Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]? + attr_accessor accounting_providers: ::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]? attr_accessor excluded: bool? def initialize: ( - accounting_providers: Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, + accounting_providers: ::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, excluded: bool? ) -> void | ( @@ -177,7 +177,7 @@ module Orb STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> Array[Orb::Models::CustomerCreateParams::payment_provider] + def self.values: -> ::Array[Orb::Models::CustomerCreateParams::payment_provider] end type reporting_configuration = { exempt: bool } @@ -475,7 +475,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> Array[Orb::Models::CustomerCreateParams::TaxID::country] + def self.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::country] end type type_ = @@ -624,7 +624,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> Array[Orb::Models::CustomerCreateParams::TaxID::type_] + def self.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::type_] 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 3004c24f..06027f66 100644 --- a/sig/orb/models/customer_update_by_external_id_params.rbs +++ b/sig/orb/models/customer_update_by_external_id_params.rbs @@ -3,14 +3,14 @@ module Orb type customer_update_by_external_id_params = { accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, - additional_emails: Array[String]?, + additional_emails: ::Array[String]?, auto_collection: bool?, billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, currency: String?, email: String?, email_delivery: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, name: String?, payment_provider: Orb::Models::CustomerUpdateByExternalIDParams::payment_provider?, payment_provider_id: String?, @@ -27,7 +27,7 @@ module Orb attr_accessor accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration? - attr_accessor additional_emails: Array[String]? + attr_accessor additional_emails: ::Array[String]? attr_accessor auto_collection: bool? @@ -41,7 +41,7 @@ module Orb attr_accessor external_customer_id: String? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor name: String? @@ -60,14 +60,14 @@ module Orb def initialize: ( accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, - additional_emails: Array[String]?, + additional_emails: ::Array[String]?, auto_collection: bool?, billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, currency: String?, email: String?, email_delivery: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, name: String?, payment_provider: Orb::Models::CustomerUpdateByExternalIDParams::payment_provider?, payment_provider_id: String?, @@ -86,18 +86,18 @@ module Orb type accounting_sync_configuration = { - accounting_providers: Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, + accounting_providers: ::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, excluded: bool? } class AccountingSyncConfiguration < Orb::BaseModel - attr_accessor accounting_providers: Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]? + attr_accessor accounting_providers: ::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]? attr_accessor excluded: bool? def initialize: ( - accounting_providers: Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, + accounting_providers: ::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, excluded: bool? ) -> void | ( @@ -176,7 +176,7 @@ module Orb STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> Array[Orb::Models::CustomerUpdateByExternalIDParams::payment_provider] + def self.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::payment_provider] end type reporting_configuration = { exempt: bool } @@ -475,7 +475,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country] + def self.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country] end type type_ = @@ -624,7 +624,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_] + def self.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_] end end end diff --git a/sig/orb/models/customer_update_params.rbs b/sig/orb/models/customer_update_params.rbs index e7f84b5d..9f5ea7aa 100644 --- a/sig/orb/models/customer_update_params.rbs +++ b/sig/orb/models/customer_update_params.rbs @@ -3,14 +3,14 @@ module Orb type customer_update_params = { accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, - additional_emails: Array[String]?, + additional_emails: ::Array[String]?, auto_collection: bool?, billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, currency: String?, email: String?, email_delivery: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, name: String?, payment_provider: Orb::Models::CustomerUpdateParams::payment_provider?, payment_provider_id: String?, @@ -27,7 +27,7 @@ module Orb attr_accessor accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration? - attr_accessor additional_emails: Array[String]? + attr_accessor additional_emails: ::Array[String]? attr_accessor auto_collection: bool? @@ -41,7 +41,7 @@ module Orb attr_accessor external_customer_id: String? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor name: String? @@ -60,14 +60,14 @@ module Orb def initialize: ( accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, - additional_emails: Array[String]?, + additional_emails: ::Array[String]?, auto_collection: bool?, billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, currency: String?, email: String?, email_delivery: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, name: String?, payment_provider: Orb::Models::CustomerUpdateParams::payment_provider?, payment_provider_id: String?, @@ -83,18 +83,18 @@ module Orb type accounting_sync_configuration = { - accounting_providers: Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, + accounting_providers: ::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, excluded: bool? } class AccountingSyncConfiguration < Orb::BaseModel - attr_accessor accounting_providers: Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]? + attr_accessor accounting_providers: ::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]? attr_accessor excluded: bool? def initialize: ( - accounting_providers: Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, + accounting_providers: ::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, excluded: bool? ) -> void | ( @@ -173,7 +173,7 @@ module Orb STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> Array[Orb::Models::CustomerUpdateParams::payment_provider] + def self.values: -> ::Array[Orb::Models::CustomerUpdateParams::payment_provider] end type reporting_configuration = { exempt: bool } @@ -471,7 +471,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> Array[Orb::Models::CustomerUpdateParams::TaxID::country] + def self.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::country] end type type_ = @@ -620,7 +620,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> Array[Orb::Models::CustomerUpdateParams::TaxID::type_] + def self.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::type_] end end end diff --git a/sig/orb/models/customers/balance_transaction_create_params.rbs b/sig/orb/models/customers/balance_transaction_create_params.rbs index 1cb2da78..87be227d 100644 --- a/sig/orb/models/customers/balance_transaction_create_params.rbs +++ b/sig/orb/models/customers/balance_transaction_create_params.rbs @@ -39,7 +39,7 @@ module Orb INCREMENT: :increment DECREMENT: :decrement - def self.values: -> Array[Orb::Models::Customers::BalanceTransactionCreateParams::type_] + def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateParams::type_] end end end diff --git a/sig/orb/models/customers/balance_transaction_create_response.rbs b/sig/orb/models/customers/balance_transaction_create_response.rbs index 29ef86d5..66650171 100644 --- a/sig/orb/models/customers/balance_transaction_create_response.rbs +++ b/sig/orb/models/customers/balance_transaction_create_response.rbs @@ -76,7 +76,7 @@ module Orb CREDIT_NOTE_VOIDED: :credit_note_voided OVERPAYMENT_REFUND: :overpayment_refund - def self.values: -> Array[Orb::Models::Customers::BalanceTransactionCreateResponse::action] + def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::action] end type credit_note = { id: String } @@ -115,7 +115,7 @@ module Orb INCREMENT: :increment DECREMENT: :decrement - def self.values: -> Array[Orb::Models::Customers::BalanceTransactionCreateResponse::type_] + def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::type_] 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 fd899192..e8818967 100644 --- a/sig/orb/models/customers/balance_transaction_list_response.rbs +++ b/sig/orb/models/customers/balance_transaction_list_response.rbs @@ -76,7 +76,7 @@ module Orb CREDIT_NOTE_VOIDED: :credit_note_voided OVERPAYMENT_REFUND: :overpayment_refund - def self.values: -> Array[Orb::Models::Customers::BalanceTransactionListResponse::action] + def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::action] end type credit_note = { id: String } @@ -115,7 +115,7 @@ module Orb INCREMENT: :increment DECREMENT: :decrement - def self.values: -> Array[Orb::Models::Customers::BalanceTransactionListResponse::type_] + def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::type_] end end end 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 b0c2579e..466574a9 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 @@ -43,7 +43,7 @@ module Orb PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> Array[Orb::Models::Customers::CostListByExternalIDParams::view_mode] + def self.values: -> ::Array[Orb::Models::Customers::CostListByExternalIDParams::view_mode] end end end 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 49e443ec..8db4f09d 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 @@ -3,15 +3,15 @@ module Orb module Customers type cost_list_by_external_id_response = { - data: Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] + data: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] } class CostListByExternalIDResponse < Orb::BaseModel - attr_accessor data: Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] + attr_accessor data: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] def initialize: ( - data: Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] + data: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] ) -> void | ( ?Orb::Models::Customers::cost_list_by_external_id_response @@ -22,7 +22,7 @@ module Orb type data = { - per_price_costs: Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], + per_price_costs: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], subtotal: String, timeframe_end: Time, timeframe_start: Time, @@ -30,7 +30,7 @@ module Orb } class Data < Orb::BaseModel - attr_accessor per_price_costs: Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost] + attr_accessor per_price_costs: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost] attr_accessor subtotal: String @@ -42,7 +42,7 @@ module Orb def initialize: ( - per_price_costs: Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], + per_price_costs: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], subtotal: String, timeframe_end: Time, timeframe_start: Time, diff --git a/sig/orb/models/customers/cost_list_params.rbs b/sig/orb/models/customers/cost_list_params.rbs index 555e6fa4..70d78545 100644 --- a/sig/orb/models/customers/cost_list_params.rbs +++ b/sig/orb/models/customers/cost_list_params.rbs @@ -42,7 +42,7 @@ module Orb PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> Array[Orb::Models::Customers::CostListParams::view_mode] + def self.values: -> ::Array[Orb::Models::Customers::CostListParams::view_mode] end end end diff --git a/sig/orb/models/customers/cost_list_response.rbs b/sig/orb/models/customers/cost_list_response.rbs index 9fdac34c..28065b43 100644 --- a/sig/orb/models/customers/cost_list_response.rbs +++ b/sig/orb/models/customers/cost_list_response.rbs @@ -2,13 +2,15 @@ module Orb module Models module Customers type cost_list_response = - { data: Array[Orb::Models::Customers::CostListResponse::Data] } + { data: ::Array[Orb::Models::Customers::CostListResponse::Data] } class CostListResponse < Orb::BaseModel - attr_accessor data: Array[Orb::Models::Customers::CostListResponse::Data] + attr_accessor data: ::Array[Orb::Models::Customers::CostListResponse::Data] def initialize: - (data: Array[Orb::Models::Customers::CostListResponse::Data]) -> void + ( + data: ::Array[Orb::Models::Customers::CostListResponse::Data] + ) -> void | ( ?Orb::Models::Customers::cost_list_response | Orb::BaseModel data ) -> void @@ -17,7 +19,7 @@ module Orb type data = { - per_price_costs: Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], + per_price_costs: ::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], subtotal: String, timeframe_end: Time, timeframe_start: Time, @@ -25,7 +27,7 @@ module Orb } class Data < Orb::BaseModel - attr_accessor per_price_costs: Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost] + attr_accessor per_price_costs: ::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost] attr_accessor subtotal: String @@ -37,7 +39,7 @@ module Orb def initialize: ( - per_price_costs: Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], + per_price_costs: ::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], subtotal: String, timeframe_end: Time, timeframe_start: Time, 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 449a5670..03447192 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 @@ -50,7 +50,7 @@ module Orb ACTIVE: :active PENDING_PAYMENT: :pending_payment - def self.values: -> Array[Orb::Models::Customers::CreditListByExternalIDResponse::status] + def self.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::status] end end end diff --git a/sig/orb/models/customers/credit_list_response.rbs b/sig/orb/models/customers/credit_list_response.rbs index a7555c75..29e70e1f 100644 --- a/sig/orb/models/customers/credit_list_response.rbs +++ b/sig/orb/models/customers/credit_list_response.rbs @@ -49,7 +49,7 @@ module Orb ACTIVE: :active PENDING_PAYMENT: :pending_payment - def self.values: -> Array[Orb::Models::Customers::CreditListResponse::status] + def self.values: -> ::Array[Orb::Models::Customers::CreditListResponse::status] end end end 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 03440f0a..d15854c1 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 @@ -11,7 +11,7 @@ module Orb effective_date: Time?, expiry_date: Time?, invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, per_unit_cost_basis: String?, target_expiry_date: Date, block_id: String, @@ -37,7 +37,7 @@ module Orb attr_accessor invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor per_unit_cost_basis: String? @@ -58,7 +58,7 @@ module Orb description: String?, effective_date: Time?, invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, per_unit_cost_basis: String?, void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason?, request_options: Orb::request_opts @@ -75,7 +75,7 @@ module Orb class EntryType < Orb::Enum AMENDMENT: :amendment - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type] end type invoice_settings = @@ -117,7 +117,7 @@ module Orb class VoidReason < Orb::Enum REFUND: :refund - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason] end end end 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 746e59b1..607e9452 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 @@ -25,7 +25,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status, entry_type: :increment, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -52,7 +52,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -68,7 +68,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :increment ) -> void @@ -126,7 +126,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status] end end @@ -143,7 +143,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status, entry_type: :decrement, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, event_id: String?, invoice_id: String?, @@ -173,7 +173,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -195,7 +195,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, event_id: String?, invoice_id: String?, @@ -256,7 +256,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status] end end @@ -273,7 +273,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, entry_type: :expiration_change, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time?, starting_balance: Float } @@ -301,7 +301,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor new_block_expiry_date: Time? @@ -319,7 +319,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time?, starting_balance: Float, entry_type: :expiration_change @@ -378,7 +378,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -395,7 +395,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, entry_type: :credit_block_expiry, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -422,7 +422,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -438,7 +438,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :credit_block_expiry ) -> void @@ -496,7 +496,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -513,7 +513,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status, entry_type: :void, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: String? @@ -542,7 +542,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -562,7 +562,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: String?, @@ -622,7 +622,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status] end end @@ -639,7 +639,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, entry_type: :void_initiated, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time, starting_balance: Float, void_amount: Float, @@ -669,7 +669,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor new_block_expiry_date: Time @@ -691,7 +691,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time, starting_balance: Float, void_amount: Float, @@ -752,7 +752,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -769,7 +769,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status, entry_type: :amendment, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -796,7 +796,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -812,7 +812,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :amendment ) -> void @@ -870,7 +870,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status] end end 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 19576b84..8755755c 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs @@ -11,7 +11,7 @@ module Orb effective_date: Time?, expiry_date: Time?, invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, per_unit_cost_basis: String?, target_expiry_date: Date, block_id: String, @@ -37,7 +37,7 @@ module Orb attr_accessor invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor per_unit_cost_basis: String? @@ -58,7 +58,7 @@ module Orb description: String?, effective_date: Time?, invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, per_unit_cost_basis: String?, void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason?, request_options: Orb::request_opts @@ -75,7 +75,7 @@ module Orb class EntryType < Orb::Enum AMENDMENT: :amendment - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type] end type invoice_settings = @@ -117,7 +117,7 @@ module Orb class VoidReason < Orb::Enum REFUND: :refund - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason] end end end 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 9245e40b..fb91936f 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs @@ -25,7 +25,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status, entry_type: :increment, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -52,7 +52,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -68,7 +68,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :increment ) -> void @@ -126,7 +126,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status] end end @@ -143,7 +143,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status, entry_type: :decrement, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, event_id: String?, invoice_id: String?, @@ -173,7 +173,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -195,7 +195,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, event_id: String?, invoice_id: String?, @@ -256,7 +256,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status] end end @@ -273,7 +273,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status, entry_type: :expiration_change, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time?, starting_balance: Float } @@ -301,7 +301,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor new_block_expiry_date: Time? @@ -319,7 +319,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time?, starting_balance: Float, entry_type: :expiration_change @@ -378,7 +378,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -395,7 +395,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status, entry_type: :credit_block_expiry, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -422,7 +422,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -438,7 +438,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :credit_block_expiry ) -> void @@ -496,7 +496,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -513,7 +513,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status, entry_type: :void, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: String? @@ -542,7 +542,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -562,7 +562,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: String?, @@ -622,7 +622,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status] end end @@ -639,7 +639,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status, entry_type: :void_initiated, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time, starting_balance: Float, void_amount: Float, @@ -669,7 +669,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor new_block_expiry_date: Time @@ -691,7 +691,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time, starting_balance: Float, void_amount: Float, @@ -752,7 +752,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -769,7 +769,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status, entry_type: :amendment, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -796,7 +796,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -812,7 +812,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :amendment ) -> void @@ -870,7 +870,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status] end end 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 8780ebfe..ef1d6714 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 @@ -70,7 +70,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status] end type entry_type = @@ -91,7 +91,7 @@ module Orb VOID_INITIATED: :void_initiated AMENDMENT: :amendment - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type] end end end 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 f7780770..26b23612 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 @@ -25,7 +25,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status, entry_type: :increment, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -52,7 +52,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -68,7 +68,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :increment ) -> void @@ -126,7 +126,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status] end end @@ -143,7 +143,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status, entry_type: :decrement, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, event_id: String?, invoice_id: String?, @@ -173,7 +173,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -195,7 +195,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, event_id: String?, invoice_id: String?, @@ -256,7 +256,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status] end end @@ -273,7 +273,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, entry_type: :expiration_change, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time?, starting_balance: Float } @@ -301,7 +301,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor new_block_expiry_date: Time? @@ -319,7 +319,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time?, starting_balance: Float, entry_type: :expiration_change @@ -378,7 +378,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -395,7 +395,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, entry_type: :credit_block_expiry, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -422,7 +422,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -438,7 +438,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :credit_block_expiry ) -> void @@ -496,7 +496,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -513,7 +513,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status, entry_type: :void, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: String? @@ -542,7 +542,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -562,7 +562,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: String?, @@ -622,7 +622,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status] end end @@ -639,7 +639,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, entry_type: :void_initiated, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time, starting_balance: Float, void_amount: Float, @@ -669,7 +669,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor new_block_expiry_date: Time @@ -691,7 +691,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time, starting_balance: Float, void_amount: Float, @@ -752,7 +752,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -769,7 +769,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status, entry_type: :amendment, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -796,7 +796,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -812,7 +812,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :amendment ) -> void @@ -870,7 +870,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status] end end diff --git a/sig/orb/models/customers/credits/ledger_list_params.rbs b/sig/orb/models/customers/credits/ledger_list_params.rbs index a9a70ca9..6ede7e04 100644 --- a/sig/orb/models/customers/credits/ledger_list_params.rbs +++ b/sig/orb/models/customers/credits/ledger_list_params.rbs @@ -70,7 +70,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListParams::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListParams::entry_status] end type entry_type = @@ -91,7 +91,7 @@ module Orb VOID_INITIATED: :void_initiated AMENDMENT: :amendment - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListParams::entry_type] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListParams::entry_type] end end end diff --git a/sig/orb/models/customers/credits/ledger_list_response.rbs b/sig/orb/models/customers/credits/ledger_list_response.rbs index c92b4b2b..0d139062 100644 --- a/sig/orb/models/customers/credits/ledger_list_response.rbs +++ b/sig/orb/models/customers/credits/ledger_list_response.rbs @@ -25,7 +25,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status, entry_type: :increment, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -52,7 +52,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -68,7 +68,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :increment ) -> void @@ -126,7 +126,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status] end end @@ -143,7 +143,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status, entry_type: :decrement, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, event_id: String?, invoice_id: String?, @@ -173,7 +173,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -195,7 +195,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, event_id: String?, invoice_id: String?, @@ -256,7 +256,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status] end end @@ -273,7 +273,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status, entry_type: :expiration_change, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time?, starting_balance: Float } @@ -301,7 +301,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor new_block_expiry_date: Time? @@ -319,7 +319,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time?, starting_balance: Float, entry_type: :expiration_change @@ -378,7 +378,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -395,7 +395,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status, entry_type: :credit_block_expiry, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -422,7 +422,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -438,7 +438,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :credit_block_expiry ) -> void @@ -496,7 +496,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -513,7 +513,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status, entry_type: :void, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: String? @@ -542,7 +542,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -562,7 +562,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, void_amount: Float, void_reason: String?, @@ -622,7 +622,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status] end end @@ -639,7 +639,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status, entry_type: :void_initiated, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time, starting_balance: Float, void_amount: Float, @@ -669,7 +669,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor new_block_expiry_date: Time @@ -691,7 +691,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], new_block_expiry_date: Time, starting_balance: Float, void_amount: Float, @@ -752,7 +752,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -769,7 +769,7 @@ module Orb entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status, entry_type: :amendment, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float } @@ -796,7 +796,7 @@ module Orb attr_accessor ledger_sequence_number: Integer - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor starting_balance: Float @@ -812,7 +812,7 @@ module Orb ending_balance: Float, entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status, ledger_sequence_number: Integer, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], starting_balance: Float, entry_type: :amendment ) -> void @@ -870,7 +870,7 @@ module Orb COMMITTED: :committed PENDING: :pending - def self.values: -> Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status] + def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status] end end 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 3591f5ca..74dfac48 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 @@ -90,7 +90,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit] + def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit] end end end 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 7094a0f2..7dc9d619 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 @@ -89,7 +89,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit] + def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit] end end end 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 8ac86869..eb38cab0 100644 --- a/sig/orb/models/customers/credits/top_up_create_params.rbs +++ b/sig/orb/models/customers/credits/top_up_create_params.rbs @@ -90,7 +90,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit] + def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit] end end end 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 e5f8d631..83746569 100644 --- a/sig/orb/models/customers/credits/top_up_create_response.rbs +++ b/sig/orb/models/customers/credits/top_up_create_response.rbs @@ -89,7 +89,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit] + def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit] 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 0ecb7b64..7532840e 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 @@ -89,7 +89,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit] + def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit] 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 9ca64a5f..c248ae16 100644 --- a/sig/orb/models/customers/credits/top_up_list_response.rbs +++ b/sig/orb/models/customers/credits/top_up_list_response.rbs @@ -89,7 +89,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit] + def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit] end end end diff --git a/sig/orb/models/dimensional_price_group.rbs b/sig/orb/models/dimensional_price_group.rbs index b9737745..23ef1e3a 100644 --- a/sig/orb/models/dimensional_price_group.rbs +++ b/sig/orb/models/dimensional_price_group.rbs @@ -4,9 +4,9 @@ module Orb { id: String, billable_metric_id: String, - dimensions: Array[String], + dimensions: ::Array[String], external_dimensional_price_group_id: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], name: String } @@ -15,11 +15,11 @@ module Orb attr_accessor billable_metric_id: String - attr_accessor dimensions: Array[String] + attr_accessor dimensions: ::Array[String] attr_accessor external_dimensional_price_group_id: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor name: String @@ -27,9 +27,9 @@ module Orb ( id: String, billable_metric_id: String, - dimensions: Array[String], + dimensions: ::Array[String], external_dimensional_price_group_id: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], name: String ) -> void | (?Orb::Models::dimensional_price_group | Orb::BaseModel data) -> void diff --git a/sig/orb/models/dimensional_price_group_create_params.rbs b/sig/orb/models/dimensional_price_group_create_params.rbs index cd6e8308..494c7f72 100644 --- a/sig/orb/models/dimensional_price_group_create_params.rbs +++ b/sig/orb/models/dimensional_price_group_create_params.rbs @@ -3,10 +3,10 @@ module Orb type dimensional_price_group_create_params = { billable_metric_id: String, - dimensions: Array[String], + dimensions: ::Array[String], name: String, external_dimensional_price_group_id: String?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters @@ -16,21 +16,21 @@ module Orb attr_accessor billable_metric_id: String - attr_accessor dimensions: Array[String] + attr_accessor dimensions: ::Array[String] attr_accessor name: String attr_accessor external_dimensional_price_group_id: String? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( billable_metric_id: String, - dimensions: Array[String], + dimensions: ::Array[String], name: String, external_dimensional_price_group_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> void | ( diff --git a/sig/orb/models/dimensional_price_groups.rbs b/sig/orb/models/dimensional_price_groups.rbs index 5657c445..68254693 100644 --- a/sig/orb/models/dimensional_price_groups.rbs +++ b/sig/orb/models/dimensional_price_groups.rbs @@ -2,18 +2,18 @@ module Orb module Models type dimensional_price_groups_api = { - data: Array[Orb::Models::DimensionalPriceGroup], + data: ::Array[Orb::Models::DimensionalPriceGroup], pagination_metadata: Orb::Models::PaginationMetadata } class DimensionalPriceGroupsAPI < Orb::BaseModel - attr_accessor data: Array[Orb::Models::DimensionalPriceGroup] + attr_accessor data: ::Array[Orb::Models::DimensionalPriceGroup] attr_accessor pagination_metadata: Orb::Models::PaginationMetadata def initialize: ( - data: Array[Orb::Models::DimensionalPriceGroup], + data: ::Array[Orb::Models::DimensionalPriceGroup], pagination_metadata: Orb::Models::PaginationMetadata ) -> void | ( diff --git a/sig/orb/models/discount.rbs b/sig/orb/models/discount.rbs index b62dbfe4..96a5d819 100644 --- a/sig/orb/models/discount.rbs +++ b/sig/orb/models/discount.rbs @@ -9,14 +9,14 @@ module Orb class Discount < Orb::Union type usage_discount = { - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], discount_type: :usage, usage_discount: Float, reason: String? } class UsageDiscount < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor discount_type: :usage @@ -26,7 +26,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, reason: String?, discount_type: :usage diff --git a/sig/orb/models/evaluate_price_group.rbs b/sig/orb/models/evaluate_price_group.rbs index eaa3091d..864a8d22 100644 --- a/sig/orb/models/evaluate_price_group.rbs +++ b/sig/orb/models/evaluate_price_group.rbs @@ -3,21 +3,21 @@ module Orb type evaluate_price_group = { amount: String, - grouping_values: Array[Orb::Models::EvaluatePriceGroup::grouping_value], + grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value], quantity: Float } class EvaluatePriceGroup < Orb::BaseModel attr_accessor amount: String - attr_accessor grouping_values: Array[Orb::Models::EvaluatePriceGroup::grouping_value] + attr_accessor grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value] attr_accessor quantity: Float def initialize: ( amount: String, - grouping_values: Array[Orb::Models::EvaluatePriceGroup::grouping_value], + grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value], quantity: Float ) -> void | (?Orb::Models::evaluate_price_group | Orb::BaseModel data) -> void diff --git a/sig/orb/models/event_ingest_params.rbs b/sig/orb/models/event_ingest_params.rbs index 22b3e044..98f6abdd 100644 --- a/sig/orb/models/event_ingest_params.rbs +++ b/sig/orb/models/event_ingest_params.rbs @@ -2,7 +2,7 @@ module Orb module Models type event_ingest_params = { - events: Array[Orb::Models::EventIngestParams::Event], + events: ::Array[Orb::Models::EventIngestParams::Event], backfill_id: String?, debug: bool } @@ -12,7 +12,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor events: Array[Orb::Models::EventIngestParams::Event] + attr_accessor events: ::Array[Orb::Models::EventIngestParams::Event] attr_accessor backfill_id: String? @@ -22,7 +22,7 @@ module Orb def initialize: ( - events: Array[Orb::Models::EventIngestParams::Event], + events: ::Array[Orb::Models::EventIngestParams::Event], backfill_id: String?, debug: bool, request_options: Orb::request_opts diff --git a/sig/orb/models/event_ingest_response.rbs b/sig/orb/models/event_ingest_response.rbs index 5fadc016..ac01c9e5 100644 --- a/sig/orb/models/event_ingest_response.rbs +++ b/sig/orb/models/event_ingest_response.rbs @@ -2,18 +2,18 @@ module Orb module Models type event_ingest_response = { - validation_failed: Array[Orb::Models::EventIngestResponse::ValidationFailed], + validation_failed: ::Array[Orb::Models::EventIngestResponse::ValidationFailed], debug: Orb::Models::EventIngestResponse::Debug? } class EventIngestResponse < Orb::BaseModel - attr_accessor validation_failed: Array[Orb::Models::EventIngestResponse::ValidationFailed] + attr_accessor validation_failed: ::Array[Orb::Models::EventIngestResponse::ValidationFailed] attr_accessor debug: Orb::Models::EventIngestResponse::Debug? def initialize: ( - validation_failed: Array[Orb::Models::EventIngestResponse::ValidationFailed], + validation_failed: ::Array[Orb::Models::EventIngestResponse::ValidationFailed], debug: Orb::Models::EventIngestResponse::Debug? ) -> void | (?Orb::Models::event_ingest_response | Orb::BaseModel data) -> void @@ -21,15 +21,15 @@ module Orb def to_hash: -> Orb::Models::event_ingest_response type validation_failed = - { idempotency_key: String, validation_errors: Array[String] } + { idempotency_key: String, validation_errors: ::Array[String] } class ValidationFailed < Orb::BaseModel attr_accessor idempotency_key: String - attr_accessor validation_errors: Array[String] + attr_accessor validation_errors: ::Array[String] def initialize: - (idempotency_key: String, validation_errors: Array[String]) -> void + (idempotency_key: String, validation_errors: ::Array[String]) -> void | ( ?Orb::Models::EventIngestResponse::validation_failed | Orb::BaseModel data @@ -38,15 +38,15 @@ module Orb def to_hash: -> Orb::Models::EventIngestResponse::validation_failed end - type debug = { duplicate: Array[String], ingested: Array[String] } + type debug = { duplicate: ::Array[String], ingested: ::Array[String] } class Debug < Orb::BaseModel - attr_accessor duplicate: Array[String] + attr_accessor duplicate: ::Array[String] - attr_accessor ingested: Array[String] + attr_accessor ingested: ::Array[String] def initialize: - (duplicate: Array[String], ingested: Array[String]) -> void + (duplicate: ::Array[String], ingested: ::Array[String]) -> void | ( ?Orb::Models::EventIngestResponse::debug | Orb::BaseModel data ) -> void diff --git a/sig/orb/models/event_search_params.rbs b/sig/orb/models/event_search_params.rbs index 56a047ad..26052744 100644 --- a/sig/orb/models/event_search_params.rbs +++ b/sig/orb/models/event_search_params.rbs @@ -1,14 +1,18 @@ module Orb module Models type event_search_params = - { event_ids: Array[String], timeframe_end: Time?, timeframe_start: Time? } + { + event_ids: ::Array[String], + timeframe_end: Time?, + timeframe_start: Time? + } & Orb::request_parameters class EventSearchParams < Orb::BaseModel extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor event_ids: Array[String] + attr_accessor event_ids: ::Array[String] attr_accessor timeframe_end: Time? @@ -16,7 +20,7 @@ module Orb def initialize: ( - event_ids: Array[String], + event_ids: ::Array[String], timeframe_end: Time?, timeframe_start: Time?, request_options: Orb::request_opts diff --git a/sig/orb/models/event_search_response.rbs b/sig/orb/models/event_search_response.rbs index eb6ed86e..2242d17f 100644 --- a/sig/orb/models/event_search_response.rbs +++ b/sig/orb/models/event_search_response.rbs @@ -1,13 +1,13 @@ module Orb module Models type event_search_response = - { data: Array[Orb::Models::EventSearchResponse::Data] } + { data: ::Array[Orb::Models::EventSearchResponse::Data] } class EventSearchResponse < Orb::BaseModel - attr_accessor data: Array[Orb::Models::EventSearchResponse::Data] + attr_accessor data: ::Array[Orb::Models::EventSearchResponse::Data] def initialize: - (data: Array[Orb::Models::EventSearchResponse::Data]) -> void + (data: ::Array[Orb::Models::EventSearchResponse::Data]) -> void | (?Orb::Models::event_search_response | Orb::BaseModel data) -> void def to_hash: -> Orb::Models::event_search_response diff --git a/sig/orb/models/events/backfill_close_response.rbs b/sig/orb/models/events/backfill_close_response.rbs index e5bc2016..a964fe00 100644 --- a/sig/orb/models/events/backfill_close_response.rbs +++ b/sig/orb/models/events/backfill_close_response.rbs @@ -8,6 +8,7 @@ module Orb created_at: Time, customer_id: String?, events_ingested: Integer, + replace_existing_events: bool, reverted_at: Time?, status: Orb::Models::Events::BackfillCloseResponse::status, timeframe_end: Time, @@ -26,6 +27,8 @@ module Orb attr_accessor events_ingested: Integer + attr_accessor replace_existing_events: bool + attr_accessor reverted_at: Time? attr_accessor status: Orb::Models::Events::BackfillCloseResponse::status @@ -43,6 +46,7 @@ module Orb created_at: Time, customer_id: String?, events_ingested: Integer, + replace_existing_events: bool, reverted_at: Time?, status: Orb::Models::Events::BackfillCloseResponse::status, timeframe_end: Time, @@ -63,7 +67,7 @@ module Orb PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> Array[Orb::Models::Events::BackfillCloseResponse::status] + def self.values: -> ::Array[Orb::Models::Events::BackfillCloseResponse::status] end end end diff --git a/sig/orb/models/events/backfill_create_response.rbs b/sig/orb/models/events/backfill_create_response.rbs index b49dfc72..1660a064 100644 --- a/sig/orb/models/events/backfill_create_response.rbs +++ b/sig/orb/models/events/backfill_create_response.rbs @@ -8,6 +8,7 @@ module Orb created_at: Time, customer_id: String?, events_ingested: Integer, + replace_existing_events: bool, reverted_at: Time?, status: Orb::Models::Events::BackfillCreateResponse::status, timeframe_end: Time, @@ -26,6 +27,8 @@ module Orb attr_accessor events_ingested: Integer + attr_accessor replace_existing_events: bool + attr_accessor reverted_at: Time? attr_accessor status: Orb::Models::Events::BackfillCreateResponse::status @@ -43,6 +46,7 @@ module Orb created_at: Time, customer_id: String?, events_ingested: Integer, + replace_existing_events: bool, reverted_at: Time?, status: Orb::Models::Events::BackfillCreateResponse::status, timeframe_end: Time, @@ -63,7 +67,7 @@ module Orb PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> Array[Orb::Models::Events::BackfillCreateResponse::status] + def self.values: -> ::Array[Orb::Models::Events::BackfillCreateResponse::status] end end end diff --git a/sig/orb/models/events/backfill_fetch_response.rbs b/sig/orb/models/events/backfill_fetch_response.rbs index fb25f8f1..f1f81b5b 100644 --- a/sig/orb/models/events/backfill_fetch_response.rbs +++ b/sig/orb/models/events/backfill_fetch_response.rbs @@ -8,6 +8,7 @@ module Orb created_at: Time, customer_id: String?, events_ingested: Integer, + replace_existing_events: bool, reverted_at: Time?, status: Orb::Models::Events::BackfillFetchResponse::status, timeframe_end: Time, @@ -26,6 +27,8 @@ module Orb attr_accessor events_ingested: Integer + attr_accessor replace_existing_events: bool + attr_accessor reverted_at: Time? attr_accessor status: Orb::Models::Events::BackfillFetchResponse::status @@ -43,6 +46,7 @@ module Orb created_at: Time, customer_id: String?, events_ingested: Integer, + replace_existing_events: bool, reverted_at: Time?, status: Orb::Models::Events::BackfillFetchResponse::status, timeframe_end: Time, @@ -63,7 +67,7 @@ module Orb PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> Array[Orb::Models::Events::BackfillFetchResponse::status] + def self.values: -> ::Array[Orb::Models::Events::BackfillFetchResponse::status] end end end diff --git a/sig/orb/models/events/backfill_list_response.rbs b/sig/orb/models/events/backfill_list_response.rbs index 39c71c80..751e66f8 100644 --- a/sig/orb/models/events/backfill_list_response.rbs +++ b/sig/orb/models/events/backfill_list_response.rbs @@ -8,6 +8,7 @@ module Orb created_at: Time, customer_id: String?, events_ingested: Integer, + replace_existing_events: bool, reverted_at: Time?, status: Orb::Models::Events::BackfillListResponse::status, timeframe_end: Time, @@ -26,6 +27,8 @@ module Orb attr_accessor events_ingested: Integer + attr_accessor replace_existing_events: bool + attr_accessor reverted_at: Time? attr_accessor status: Orb::Models::Events::BackfillListResponse::status @@ -43,6 +46,7 @@ module Orb created_at: Time, customer_id: String?, events_ingested: Integer, + replace_existing_events: bool, reverted_at: Time?, status: Orb::Models::Events::BackfillListResponse::status, timeframe_end: Time, @@ -63,7 +67,7 @@ module Orb PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> Array[Orb::Models::Events::BackfillListResponse::status] + def self.values: -> ::Array[Orb::Models::Events::BackfillListResponse::status] end end end diff --git a/sig/orb/models/events/backfill_revert_response.rbs b/sig/orb/models/events/backfill_revert_response.rbs index 095fc132..85f5b7b3 100644 --- a/sig/orb/models/events/backfill_revert_response.rbs +++ b/sig/orb/models/events/backfill_revert_response.rbs @@ -8,6 +8,7 @@ module Orb created_at: Time, customer_id: String?, events_ingested: Integer, + replace_existing_events: bool, reverted_at: Time?, status: Orb::Models::Events::BackfillRevertResponse::status, timeframe_end: Time, @@ -26,6 +27,8 @@ module Orb attr_accessor events_ingested: Integer + attr_accessor replace_existing_events: bool + attr_accessor reverted_at: Time? attr_accessor status: Orb::Models::Events::BackfillRevertResponse::status @@ -43,6 +46,7 @@ module Orb created_at: Time, customer_id: String?, events_ingested: Integer, + replace_existing_events: bool, reverted_at: Time?, status: Orb::Models::Events::BackfillRevertResponse::status, timeframe_end: Time, @@ -63,7 +67,7 @@ module Orb PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> Array[Orb::Models::Events::BackfillRevertResponse::status] + def self.values: -> ::Array[Orb::Models::Events::BackfillRevertResponse::status] end end end diff --git a/sig/orb/models/events/event_volumes.rbs b/sig/orb/models/events/event_volumes.rbs index 69ed493e..c7a6cfc9 100644 --- a/sig/orb/models/events/event_volumes.rbs +++ b/sig/orb/models/events/event_volumes.rbs @@ -5,13 +5,13 @@ module Orb module Events type event_volumes = - { data: Array[Orb::Models::Events::EventVolumes::Data] } + { data: ::Array[Orb::Models::Events::EventVolumes::Data] } class EventVolumes < Orb::BaseModel - attr_accessor data: Array[Orb::Models::Events::EventVolumes::Data] + attr_accessor data: ::Array[Orb::Models::Events::EventVolumes::Data] def initialize: - (data: Array[Orb::Models::Events::EventVolumes::Data]) -> void + (data: ::Array[Orb::Models::Events::EventVolumes::Data]) -> void | (?Orb::Models::Events::event_volumes | Orb::BaseModel data) -> void def to_hash: -> Orb::Models::Events::event_volumes diff --git a/sig/orb/models/invoice.rbs b/sig/orb/models/invoice.rbs index e2e86ff1..4fe100fe 100644 --- a/sig/orb/models/invoice.rbs +++ b/sig/orb/models/invoice.rbs @@ -7,13 +7,13 @@ module Orb auto_collection: Orb::Models::Invoice::AutoCollection, billing_address: Orb::Models::Invoice::BillingAddress?, created_at: Time, - credit_notes: Array[Orb::Models::Invoice::CreditNote], + credit_notes: ::Array[Orb::Models::Invoice::CreditNote], currency: String, customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: Array[Orb::Models::Invoice::CustomerBalanceTransaction], + customer_balance_transactions: ::Array[Orb::Models::Invoice::CustomerBalanceTransaction], customer_tax_id: Orb::Models::Invoice::CustomerTaxID?, discount: top, - discounts: Array[Orb::Models::invoice_level_discount], + discounts: ::Array[Orb::Models::invoice_level_discount], due_date: Time?, eligible_to_issue_at: Time?, hosted_invoice_url: String?, @@ -23,15 +23,15 @@ module Orb invoice_source: Orb::Models::Invoice::invoice_source, issue_failed_at: Time?, issued_at: Time?, - line_items: Array[Orb::Models::Invoice::LineItem], + line_items: ::Array[Orb::Models::Invoice::LineItem], maximum: Orb::Models::Invoice::Maximum?, maximum_amount: String?, memo: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Invoice::Minimum?, minimum_amount: String?, paid_at: Time?, - payment_attempts: Array[Orb::Models::Invoice::PaymentAttempt], + payment_attempts: ::Array[Orb::Models::Invoice::PaymentAttempt], payment_failed_at: Time?, payment_started_at: Time?, scheduled_issue_at: Time?, @@ -56,19 +56,19 @@ module Orb attr_accessor created_at: Time - attr_accessor credit_notes: Array[Orb::Models::Invoice::CreditNote] + attr_accessor credit_notes: ::Array[Orb::Models::Invoice::CreditNote] attr_accessor currency: String attr_accessor customer: Orb::Models::Invoice::Customer - attr_accessor customer_balance_transactions: Array[Orb::Models::Invoice::CustomerBalanceTransaction] + attr_accessor customer_balance_transactions: ::Array[Orb::Models::Invoice::CustomerBalanceTransaction] attr_accessor customer_tax_id: Orb::Models::Invoice::CustomerTaxID? attr_accessor discount: top - attr_accessor discounts: Array[Orb::Models::invoice_level_discount] + attr_accessor discounts: ::Array[Orb::Models::invoice_level_discount] attr_accessor due_date: Time? @@ -88,7 +88,7 @@ module Orb attr_accessor issued_at: Time? - attr_accessor line_items: Array[Orb::Models::Invoice::LineItem] + attr_accessor line_items: ::Array[Orb::Models::Invoice::LineItem] attr_accessor maximum: Orb::Models::Invoice::Maximum? @@ -96,7 +96,7 @@ module Orb attr_accessor memo: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Invoice::Minimum? @@ -104,7 +104,7 @@ module Orb attr_accessor paid_at: Time? - attr_accessor payment_attempts: Array[Orb::Models::Invoice::PaymentAttempt] + attr_accessor payment_attempts: ::Array[Orb::Models::Invoice::PaymentAttempt] attr_accessor payment_failed_at: Time? @@ -135,13 +135,13 @@ module Orb auto_collection: Orb::Models::Invoice::AutoCollection, billing_address: Orb::Models::Invoice::BillingAddress?, created_at: Time, - credit_notes: Array[Orb::Models::Invoice::CreditNote], + credit_notes: ::Array[Orb::Models::Invoice::CreditNote], currency: String, customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: Array[Orb::Models::Invoice::CustomerBalanceTransaction], + customer_balance_transactions: ::Array[Orb::Models::Invoice::CustomerBalanceTransaction], customer_tax_id: Orb::Models::Invoice::CustomerTaxID?, discount: top, - discounts: Array[Orb::Models::invoice_level_discount], + discounts: ::Array[Orb::Models::invoice_level_discount], due_date: Time?, eligible_to_issue_at: Time?, hosted_invoice_url: String?, @@ -151,15 +151,15 @@ module Orb invoice_source: Orb::Models::Invoice::invoice_source, issue_failed_at: Time?, issued_at: Time?, - line_items: Array[Orb::Models::Invoice::LineItem], + line_items: ::Array[Orb::Models::Invoice::LineItem], maximum: Orb::Models::Invoice::Maximum?, maximum_amount: String?, memo: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Invoice::Minimum?, minimum_amount: String?, paid_at: Time?, - payment_attempts: Array[Orb::Models::Invoice::PaymentAttempt], + payment_attempts: ::Array[Orb::Models::Invoice::PaymentAttempt], payment_failed_at: Time?, payment_started_at: Time?, scheduled_issue_at: Time?, @@ -376,7 +376,7 @@ module Orb CREDIT_NOTE_VOIDED: :credit_note_voided OVERPAYMENT_REFUND: :overpayment_refund - def self.values: -> Array[Orb::Models::Invoice::CustomerBalanceTransaction::action] + def self.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::action] end type credit_note = { id: String } @@ -415,7 +415,7 @@ module Orb INCREMENT: :increment DECREMENT: :decrement - def self.values: -> Array[Orb::Models::Invoice::CustomerBalanceTransaction::type_] + def self.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::type_] end end @@ -605,7 +605,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> Array[Orb::Models::Invoice::CustomerTaxID::country] + def self.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::country] end type type_ = @@ -754,7 +754,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> Array[Orb::Models::Invoice::CustomerTaxID::type_] + def self.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::type_] end end @@ -765,14 +765,14 @@ module Orb PARTIAL: :partial ONE_OFF: :one_off - def self.values: -> Array[Orb::Models::Invoice::invoice_source] + def self.values: -> ::Array[Orb::Models::Invoice::invoice_source] end type line_item = { id: String, adjusted_subtotal: String, - adjustments: Array[Orb::Models::Invoice::LineItem::adjustment], + adjustments: ::Array[Orb::Models::Invoice::LineItem::adjustment], amount: String, credits_applied: String, discount: Orb::Models::discount?, @@ -787,9 +787,9 @@ module Orb price: Orb::Models::price?, quantity: Float, start_date: Time, - sub_line_items: Array[Orb::Models::Invoice::LineItem::sub_line_item], + sub_line_items: ::Array[Orb::Models::Invoice::LineItem::sub_line_item], subtotal: String, - tax_amounts: Array[Orb::Models::Invoice::LineItem::TaxAmount] + tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount] } class LineItem < Orb::BaseModel @@ -797,7 +797,7 @@ module Orb attr_accessor adjusted_subtotal: String - attr_accessor adjustments: Array[Orb::Models::Invoice::LineItem::adjustment] + attr_accessor adjustments: ::Array[Orb::Models::Invoice::LineItem::adjustment] attr_accessor amount: String @@ -827,17 +827,17 @@ module Orb attr_accessor start_date: Time - attr_accessor sub_line_items: Array[Orb::Models::Invoice::LineItem::sub_line_item] + attr_accessor sub_line_items: ::Array[Orb::Models::Invoice::LineItem::sub_line_item] attr_accessor subtotal: String - attr_accessor tax_amounts: Array[Orb::Models::Invoice::LineItem::TaxAmount] + attr_accessor tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount] def initialize: ( id: String, adjusted_subtotal: String, - adjustments: Array[Orb::Models::Invoice::LineItem::adjustment], + adjustments: ::Array[Orb::Models::Invoice::LineItem::adjustment], amount: String, credits_applied: String, discount: Orb::Models::discount?, @@ -852,172 +852,174 @@ module Orb price: Orb::Models::price?, quantity: Float, start_date: Time, - sub_line_items: Array[Orb::Models::Invoice::LineItem::sub_line_item], + sub_line_items: ::Array[Orb::Models::Invoice::LineItem::sub_line_item], subtotal: String, - tax_amounts: Array[Orb::Models::Invoice::LineItem::TaxAmount] + tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount] ) -> void | (?Orb::Models::Invoice::line_item | Orb::BaseModel data) -> void def to_hash: -> Orb::Models::Invoice::line_item type adjustment = - 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 + Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment + | Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment + | Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment + | Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment + | Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type monetary_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class MonetaryUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount + attr_accessor adjustment_type: :usage_discount - attr_accessor amount_discount: String + attr_accessor amount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor plan_phase_order: Integer? - attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::Invoice::LineItem::Adjustment::amount_discount_adjustment + ?Orb::Models::Invoice::LineItem::Adjustment::monetary_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_usage_discount_adjustment end - type percentage_discount_adjustment = + type monetary_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class MonetaryAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor amount: String - attr_accessor is_invoice_level: bool + attr_accessor amount_discount: String - attr_accessor percentage_discount: Float + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor plan_phase_order: Integer? + attr_accessor is_invoice_level: bool attr_accessor reason: String? def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::Invoice::LineItem::Adjustment::percentage_discount_adjustment + ?Orb::Models::Invoice::LineItem::Adjustment::monetary_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_amount_discount_adjustment end - type usage_discount_adjustment = + type monetary_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + percentage_discount: Float, + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class MonetaryPercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount + + attr_accessor amount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor plan_phase_order: Integer? + attr_accessor percentage_discount: Float attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, + percentage_discount: Float, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::Invoice::LineItem::Adjustment::usage_discount_adjustment + ?Orb::Models::Invoice::LineItem::Adjustment::monetary_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_percentage_discount_adjustment end - type minimum_adjustment = + type monetary_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, - plan_phase_order: Integer?, reason: String? } - class MinimumAdjustment < Orb::BaseModel + class MonetaryMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor amount: String + + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -1025,87 +1027,85 @@ module Orb attr_accessor minimum_amount: String - attr_accessor plan_phase_order: Integer? - attr_accessor reason: String? def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, - plan_phase_order: Integer?, reason: String?, adjustment_type: :minimum ) -> void | ( - ?Orb::Models::Invoice::LineItem::Adjustment::minimum_adjustment + ?Orb::Models::Invoice::LineItem::Adjustment::monetary_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_minimum_adjustment end - type maximum_adjustment = + type monetary_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, - plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class MonetaryMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor amount: String + + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool attr_accessor maximum_amount: String - attr_accessor plan_phase_order: Integer? - attr_accessor reason: String? def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, - plan_phase_order: Integer?, reason: String?, adjustment_type: :maximum ) -> void | ( - ?Orb::Models::Invoice::LineItem::Adjustment::maximum_adjustment + ?Orb::Models::Invoice::LineItem::Adjustment::monetary_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment], [:amount_discount, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment], [:percentage_discount, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment], [:minimum, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment], [:maximum, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment]] end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -1116,16 +1116,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -1197,13 +1197,13 @@ module Orb def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::grouping end - type matrix_config = { dimension_values: Array[String?] } + type matrix_config = { dimension_values: ::Array[String?] } class MatrixConfig < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] def initialize: - (dimension_values: Array[String?]) -> void + (dimension_values: ::Array[String?]) -> void | ( ?Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::matrix_config | Orb::BaseModel data @@ -1379,30 +1379,36 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: - (applies_to_price_ids: Array[String], maximum_amount: String) -> void + ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void | (?Orb::Models::Invoice::maximum | Orb::BaseModel data) -> void def to_hash: -> Orb::Models::Invoice::maximum end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: - (applies_to_price_ids: Array[String], minimum_amount: String) -> void + ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void | (?Orb::Models::Invoice::minimum | Orb::BaseModel data) -> void def to_hash: -> Orb::Models::Invoice::minimum @@ -1451,7 +1457,7 @@ module Orb class PaymentProvider < Orb::Enum STRIPE: :stripe - def self.values: -> Array[Orb::Models::Invoice::PaymentAttempt::payment_provider] + def self.values: -> ::Array[Orb::Models::Invoice::PaymentAttempt::payment_provider] end end @@ -1503,7 +1509,7 @@ module Orb VOID: :void DRAFT: :draft - def self.values: -> Array[Orb::Models::Invoice::status] + def self.values: -> ::Array[Orb::Models::Invoice::status] end type subscription = { id: String } diff --git a/sig/orb/models/invoice_create_params.rbs b/sig/orb/models/invoice_create_params.rbs index 527575d5..e9e01bf5 100644 --- a/sig/orb/models/invoice_create_params.rbs +++ b/sig/orb/models/invoice_create_params.rbs @@ -4,13 +4,13 @@ module Orb { currency: String, invoice_date: Time, - line_items: Array[Orb::Models::InvoiceCreateParams::LineItem], + line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], net_terms: Integer, customer_id: String?, discount: Orb::Models::discount?, external_customer_id: String?, memo: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, will_auto_issue: bool } & Orb::request_parameters @@ -23,7 +23,7 @@ module Orb attr_accessor invoice_date: Time - attr_accessor line_items: Array[Orb::Models::InvoiceCreateParams::LineItem] + attr_accessor line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem] attr_accessor net_terms: Integer @@ -35,7 +35,7 @@ module Orb attr_accessor memo: String? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_reader will_auto_issue: bool? @@ -45,13 +45,13 @@ module Orb ( currency: String, invoice_date: Time, - line_items: Array[Orb::Models::InvoiceCreateParams::LineItem], + line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], net_terms: Integer, customer_id: String?, discount: Orb::Models::discount?, external_customer_id: String?, memo: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, will_auto_issue: bool, request_options: Orb::request_opts ) -> void @@ -106,7 +106,7 @@ module Orb class ModelType < Orb::Enum UNIT: :unit - def self.values: -> Array[Orb::Models::InvoiceCreateParams::LineItem::model_type] + def self.values: -> ::Array[Orb::Models::InvoiceCreateParams::LineItem::model_type] end type unit_config = { unit_amount: String } diff --git a/sig/orb/models/invoice_fetch_upcoming_response.rbs b/sig/orb/models/invoice_fetch_upcoming_response.rbs index bc8f22f3..e2ffbe1c 100644 --- a/sig/orb/models/invoice_fetch_upcoming_response.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_response.rbs @@ -7,13 +7,13 @@ module Orb auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, billing_address: Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress?, created_at: Time, - credit_notes: Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], + credit_notes: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], currency: String, customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, - customer_balance_transactions: Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], + customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], customer_tax_id: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID?, discount: top, - discounts: Array[Orb::Models::invoice_level_discount], + discounts: ::Array[Orb::Models::invoice_level_discount], due_date: Time?, eligible_to_issue_at: Time?, hosted_invoice_url: String?, @@ -22,15 +22,15 @@ module Orb invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::invoice_source, issue_failed_at: Time?, issued_at: Time?, - line_items: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], + line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], maximum: Orb::Models::InvoiceFetchUpcomingResponse::Maximum?, maximum_amount: String?, memo: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::InvoiceFetchUpcomingResponse::Minimum?, minimum_amount: String?, paid_at: Time?, - payment_attempts: Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], + payment_attempts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], payment_failed_at: Time?, payment_started_at: Time?, scheduled_issue_at: Time?, @@ -56,19 +56,19 @@ module Orb attr_accessor created_at: Time - attr_accessor credit_notes: Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote] + attr_accessor credit_notes: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote] attr_accessor currency: String attr_accessor customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer - attr_accessor customer_balance_transactions: Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction] + attr_accessor customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction] attr_accessor customer_tax_id: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID? attr_accessor discount: top - attr_accessor discounts: Array[Orb::Models::invoice_level_discount] + attr_accessor discounts: ::Array[Orb::Models::invoice_level_discount] attr_accessor due_date: Time? @@ -86,7 +86,7 @@ module Orb attr_accessor issued_at: Time? - attr_accessor line_items: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem] + attr_accessor line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem] attr_accessor maximum: Orb::Models::InvoiceFetchUpcomingResponse::Maximum? @@ -94,7 +94,7 @@ module Orb attr_accessor memo: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::InvoiceFetchUpcomingResponse::Minimum? @@ -102,7 +102,7 @@ module Orb attr_accessor paid_at: Time? - attr_accessor payment_attempts: Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt] + attr_accessor payment_attempts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt] attr_accessor payment_failed_at: Time? @@ -135,13 +135,13 @@ module Orb auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, billing_address: Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress?, created_at: Time, - credit_notes: Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], + credit_notes: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], currency: String, customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, - customer_balance_transactions: Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], + customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], customer_tax_id: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID?, discount: top, - discounts: Array[Orb::Models::invoice_level_discount], + discounts: ::Array[Orb::Models::invoice_level_discount], due_date: Time?, eligible_to_issue_at: Time?, hosted_invoice_url: String?, @@ -150,15 +150,15 @@ module Orb invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::invoice_source, issue_failed_at: Time?, issued_at: Time?, - line_items: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], + line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], maximum: Orb::Models::InvoiceFetchUpcomingResponse::Maximum?, maximum_amount: String?, memo: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::InvoiceFetchUpcomingResponse::Minimum?, minimum_amount: String?, paid_at: Time?, - payment_attempts: Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], + payment_attempts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], payment_failed_at: Time?, payment_started_at: Time?, scheduled_issue_at: Time?, @@ -386,7 +386,7 @@ module Orb CREDIT_NOTE_VOIDED: :credit_note_voided OVERPAYMENT_REFUND: :overpayment_refund - def self.values: -> Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action] + def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action] end type credit_note = { id: String } @@ -425,7 +425,7 @@ module Orb INCREMENT: :increment DECREMENT: :decrement - def self.values: -> Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_] + def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_] end end @@ -616,7 +616,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country] + def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country] end type type_ = @@ -765,7 +765,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_] + def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_] end end @@ -776,14 +776,14 @@ module Orb PARTIAL: :partial ONE_OFF: :one_off - def self.values: -> Array[Orb::Models::InvoiceFetchUpcomingResponse::invoice_source] + def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::invoice_source] end type line_item = { id: String, adjusted_subtotal: String, - adjustments: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment], + adjustments: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment], amount: String, credits_applied: String, discount: Orb::Models::discount?, @@ -798,9 +798,9 @@ module Orb price: Orb::Models::price?, quantity: Float, start_date: Time, - sub_line_items: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item], + sub_line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item], subtotal: String, - tax_amounts: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] + tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] } class LineItem < Orb::BaseModel @@ -808,7 +808,7 @@ module Orb attr_accessor adjusted_subtotal: String - attr_accessor adjustments: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment] + attr_accessor adjustments: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment] attr_accessor amount: String @@ -838,17 +838,17 @@ module Orb attr_accessor start_date: Time - attr_accessor sub_line_items: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item] + attr_accessor sub_line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item] attr_accessor subtotal: String - attr_accessor tax_amounts: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] + attr_accessor tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] def initialize: ( id: String, adjusted_subtotal: String, - adjustments: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment], + adjustments: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment], amount: String, credits_applied: String, discount: Orb::Models::discount?, @@ -863,9 +863,9 @@ module Orb price: Orb::Models::price?, quantity: Float, start_date: Time, - sub_line_items: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item], + sub_line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item], subtotal: String, - tax_amounts: Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] + tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount] ) -> void | ( ?Orb::Models::InvoiceFetchUpcomingResponse::line_item @@ -875,163 +875,165 @@ module Orb def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::line_item type adjustment = - 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 + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment + | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment + | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment + | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment + | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type monetary_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class MonetaryUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount + attr_accessor adjustment_type: :usage_discount - attr_accessor amount_discount: String + attr_accessor amount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor plan_phase_order: Integer? - attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::amount_discount_adjustment + ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_usage_discount_adjustment end - type percentage_discount_adjustment = + type monetary_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class MonetaryAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor amount: String - attr_accessor is_invoice_level: bool + attr_accessor amount_discount: String - attr_accessor percentage_discount: Float + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor plan_phase_order: Integer? + attr_accessor is_invoice_level: bool attr_accessor reason: String? def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::percentage_discount_adjustment + ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_amount_discount_adjustment end - type usage_discount_adjustment = + type monetary_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + percentage_discount: Float, + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class MonetaryPercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount + + attr_accessor amount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor plan_phase_order: Integer? + attr_accessor percentage_discount: Float attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, + percentage_discount: Float, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::usage_discount_adjustment + ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_percentage_discount_adjustment end - type minimum_adjustment = + type monetary_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, - plan_phase_order: Integer?, reason: String? } - class MinimumAdjustment < Orb::BaseModel + class MonetaryMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor amount: String + + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -1039,87 +1041,85 @@ module Orb attr_accessor minimum_amount: String - attr_accessor plan_phase_order: Integer? - attr_accessor reason: String? def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, - plan_phase_order: Integer?, reason: String?, adjustment_type: :minimum ) -> void | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::minimum_adjustment + ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_minimum_adjustment end - type maximum_adjustment = + type monetary_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, - plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class MonetaryMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor amount: String + + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool attr_accessor maximum_amount: String - attr_accessor plan_phase_order: Integer? - attr_accessor reason: String? def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, - plan_phase_order: Integer?, reason: String?, adjustment_type: :maximum ) -> void | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::maximum_adjustment + ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment], [:amount_discount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment], [:percentage_discount, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment], [:minimum, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment], [:maximum, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment]] end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -1131,16 +1131,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -1213,13 +1213,13 @@ module Orb def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::grouping end - type matrix_config = { dimension_values: Array[String?] } + type matrix_config = { dimension_values: ::Array[String?] } class MatrixConfig < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] def initialize: - (dimension_values: Array[String?]) -> void + (dimension_values: ::Array[String?]) -> void | ( ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::matrix_config | Orb::BaseModel data @@ -1396,15 +1396,18 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: - (applies_to_price_ids: Array[String], maximum_amount: String) -> void + ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void | ( ?Orb::Models::InvoiceFetchUpcomingResponse::maximum | Orb::BaseModel data @@ -1414,15 +1417,18 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: - (applies_to_price_ids: Array[String], minimum_amount: String) -> void + ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void | ( ?Orb::Models::InvoiceFetchUpcomingResponse::minimum | Orb::BaseModel data @@ -1475,7 +1481,7 @@ module Orb class PaymentProvider < Orb::Enum STRIPE: :stripe - def self.values: -> Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider] + def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider] end end @@ -1528,7 +1534,7 @@ module Orb VOID: :void DRAFT: :draft - def self.values: -> Array[Orb::Models::InvoiceFetchUpcomingResponse::status] + def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::status] end type subscription = { id: String } diff --git a/sig/orb/models/invoice_line_item_create_response.rbs b/sig/orb/models/invoice_line_item_create_response.rbs index bdfe4290..05481db3 100644 --- a/sig/orb/models/invoice_line_item_create_response.rbs +++ b/sig/orb/models/invoice_line_item_create_response.rbs @@ -4,7 +4,7 @@ module Orb { id: String, adjusted_subtotal: String, - adjustments: Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment], + adjustments: ::Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment], amount: String, credits_applied: String, discount: Orb::Models::discount?, @@ -19,9 +19,9 @@ module Orb price: Orb::Models::price?, quantity: Float, start_date: Time, - sub_line_items: Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item], + sub_line_items: ::Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item], subtotal: String, - tax_amounts: Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] + tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] } class InvoiceLineItemCreateResponse < Orb::BaseModel @@ -29,7 +29,7 @@ module Orb attr_accessor adjusted_subtotal: String - attr_accessor adjustments: Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment] + attr_accessor adjustments: ::Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment] attr_accessor amount: String @@ -59,17 +59,17 @@ module Orb attr_accessor start_date: Time - attr_accessor sub_line_items: Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item] + attr_accessor sub_line_items: ::Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item] attr_accessor subtotal: String - attr_accessor tax_amounts: Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] + attr_accessor tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] def initialize: ( id: String, adjusted_subtotal: String, - adjustments: Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment], + adjustments: ::Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment], amount: String, credits_applied: String, discount: Orb::Models::discount?, @@ -84,9 +84,9 @@ module Orb price: Orb::Models::price?, quantity: Float, start_date: Time, - sub_line_items: Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item], + sub_line_items: ::Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item], subtotal: String, - tax_amounts: Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] + tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount] ) -> void | ( ?Orb::Models::invoice_line_item_create_response | Orb::BaseModel data @@ -95,163 +95,165 @@ module Orb def to_hash: -> Orb::Models::invoice_line_item_create_response type adjustment = - 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 + Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment + | Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment + | Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment + | Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment + | Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type monetary_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class MonetaryUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount + attr_accessor adjustment_type: :usage_discount - attr_accessor amount_discount: String + attr_accessor amount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor plan_phase_order: Integer? - attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::amount_discount_adjustment + ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_usage_discount_adjustment end - type percentage_discount_adjustment = + type monetary_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class MonetaryAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor amount: String - attr_accessor is_invoice_level: bool + attr_accessor amount_discount: String - attr_accessor percentage_discount: Float + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor plan_phase_order: Integer? + attr_accessor is_invoice_level: bool attr_accessor reason: String? def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::percentage_discount_adjustment + ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_amount_discount_adjustment end - type usage_discount_adjustment = + type monetary_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + percentage_discount: Float, + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class MonetaryPercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount + + attr_accessor amount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor plan_phase_order: Integer? + attr_accessor percentage_discount: Float attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - plan_phase_order: Integer?, + percentage_discount: Float, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::usage_discount_adjustment + ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_percentage_discount_adjustment end - type minimum_adjustment = + type monetary_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, - plan_phase_order: Integer?, reason: String? } - class MinimumAdjustment < Orb::BaseModel + class MonetaryMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor amount: String + + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -259,86 +261,87 @@ module Orb attr_accessor minimum_amount: String - attr_accessor plan_phase_order: Integer? - attr_accessor reason: String? def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, - plan_phase_order: Integer?, reason: String?, adjustment_type: :minimum ) -> void | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::minimum_adjustment + ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_minimum_adjustment end - type maximum_adjustment = + type monetary_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, - plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class MonetaryMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor amount: String + + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool attr_accessor maximum_amount: String - attr_accessor plan_phase_order: Integer? - attr_accessor reason: String? def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, - plan_phase_order: Integer?, reason: String?, adjustment_type: :maximum ) -> void | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::maximum_adjustment + ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment], [:amount_discount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment], [:percentage_discount, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment], [:minimum, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment], [:maximum, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment]] end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: - (applies_to_price_ids: Array[String], maximum_amount: String) -> void + ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void | ( ?Orb::Models::InvoiceLineItemCreateResponse::maximum | Orb::BaseModel data @@ -348,15 +351,18 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: - (applies_to_price_ids: Array[String], minimum_amount: String) -> void + ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void | ( ?Orb::Models::InvoiceLineItemCreateResponse::minimum | Orb::BaseModel data @@ -427,13 +433,13 @@ module Orb def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::grouping end - type matrix_config = { dimension_values: Array[String?] } + type matrix_config = { dimension_values: ::Array[String?] } class MatrixConfig < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] def initialize: - (dimension_values: Array[String?]) -> void + (dimension_values: ::Array[String?]) -> void | ( ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::matrix_config | Orb::BaseModel data diff --git a/sig/orb/models/invoice_list_params.rbs b/sig/orb/models/invoice_list_params.rbs index 9e322ce1..886b29a9 100644 --- a/sig/orb/models/invoice_list_params.rbs +++ b/sig/orb/models/invoice_list_params.rbs @@ -19,7 +19,7 @@ module Orb invoice_date_lte: Time?, is_recurring: bool?, limit: Integer, - status: Array[Orb::Models::InvoiceListParams::status]?, + status: ::Array[Orb::Models::InvoiceListParams::status]?, subscription_id: String? } & Orb::request_parameters @@ -64,7 +64,7 @@ module Orb def limit=: (Integer) -> void - attr_accessor status: Array[Orb::Models::InvoiceListParams::status]? + attr_accessor status: ::Array[Orb::Models::InvoiceListParams::status]? attr_accessor subscription_id: String? @@ -87,7 +87,7 @@ module Orb invoice_date_lte: Time?, is_recurring: bool?, limit: Integer, - status: Array[Orb::Models::InvoiceListParams::status]?, + status: ::Array[Orb::Models::InvoiceListParams::status]?, subscription_id: String?, request_options: Orb::request_opts ) -> void @@ -101,7 +101,7 @@ module Orb DUE_DATE: :due_date INVOICE_DATE: :invoice_date - def self.values: -> Array[Orb::Models::InvoiceListParams::date_type] + def self.values: -> ::Array[Orb::Models::InvoiceListParams::date_type] end type status = :draft | :issued | :paid | :synced | :void @@ -113,7 +113,7 @@ module Orb SYNCED: :synced VOID: :void - def self.values: -> Array[Orb::Models::InvoiceListParams::status] + def self.values: -> ::Array[Orb::Models::InvoiceListParams::status] end end end diff --git a/sig/orb/models/invoice_update_params.rbs b/sig/orb/models/invoice_update_params.rbs index dd826c5c..14ff624a 100644 --- a/sig/orb/models/invoice_update_params.rbs +++ b/sig/orb/models/invoice_update_params.rbs @@ -1,17 +1,17 @@ module Orb module Models type invoice_update_params = - { metadata: Hash[Symbol, String?]? } & Orb::request_parameters + { metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters class InvoiceUpdateParams < Orb::BaseModel extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> void | (?Orb::Models::invoice_update_params | Orb::BaseModel data) -> void diff --git a/sig/orb/models/item.rbs b/sig/orb/models/item.rbs index 29309cdb..d7ad1b56 100644 --- a/sig/orb/models/item.rbs +++ b/sig/orb/models/item.rbs @@ -4,7 +4,7 @@ module Orb { id: String, created_at: Time, - external_connections: Array[Orb::Models::Item::ExternalConnection], + external_connections: ::Array[Orb::Models::Item::ExternalConnection], name: String } @@ -13,7 +13,7 @@ module Orb attr_accessor created_at: Time - attr_accessor external_connections: Array[Orb::Models::Item::ExternalConnection] + attr_accessor external_connections: ::Array[Orb::Models::Item::ExternalConnection] attr_accessor name: String @@ -21,7 +21,7 @@ module Orb ( id: String, created_at: Time, - external_connections: Array[Orb::Models::Item::ExternalConnection], + external_connections: ::Array[Orb::Models::Item::ExternalConnection], name: String ) -> void | (?Orb::Models::item | Orb::BaseModel data) -> void @@ -68,7 +68,7 @@ module Orb AVALARA: :avalara ANROK: :anrok - def self.values: -> Array[Orb::Models::Item::ExternalConnection::external_connection_name] + def self.values: -> ::Array[Orb::Models::Item::ExternalConnection::external_connection_name] end end end diff --git a/sig/orb/models/item_update_params.rbs b/sig/orb/models/item_update_params.rbs index a86b8115..ba3f721a 100644 --- a/sig/orb/models/item_update_params.rbs +++ b/sig/orb/models/item_update_params.rbs @@ -2,7 +2,7 @@ module Orb module Models type item_update_params = { - external_connections: Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, + external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, name: String? } & Orb::request_parameters @@ -11,13 +11,13 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor external_connections: Array[Orb::Models::ItemUpdateParams::ExternalConnection]? + attr_accessor external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]? attr_accessor name: String? def initialize: ( - external_connections: Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, + external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, name: String?, request_options: Orb::request_opts ) -> void @@ -66,7 +66,7 @@ module Orb AVALARA: :avalara ANROK: :anrok - def self.values: -> Array[Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name] + def self.values: -> ::Array[Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name] end end end diff --git a/sig/orb/models/metric_create_params.rbs b/sig/orb/models/metric_create_params.rbs index 260e6bed..ea1f8a58 100644 --- a/sig/orb/models/metric_create_params.rbs +++ b/sig/orb/models/metric_create_params.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, name: String, sql: String, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters @@ -22,7 +22,7 @@ module Orb attr_accessor sql: String - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -30,7 +30,7 @@ module Orb item_id: String, name: String, sql: String, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> void | (?Orb::Models::metric_create_params | Orb::BaseModel data) -> void diff --git a/sig/orb/models/metric_update_params.rbs b/sig/orb/models/metric_update_params.rbs index f511b3d9..56424be6 100644 --- a/sig/orb/models/metric_update_params.rbs +++ b/sig/orb/models/metric_update_params.rbs @@ -1,17 +1,17 @@ module Orb module Models type metric_update_params = - { metadata: Hash[Symbol, String?]? } & Orb::request_parameters + { metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters class MetricUpdateParams < Orb::BaseModel extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> void | (?Orb::Models::metric_update_params | Orb::BaseModel data) -> void diff --git a/sig/orb/models/percentage_discount.rbs b/sig/orb/models/percentage_discount.rbs index f4335143..da2b8dbe 100644 --- a/sig/orb/models/percentage_discount.rbs +++ b/sig/orb/models/percentage_discount.rbs @@ -2,14 +2,14 @@ module Orb module Models type percentage_discount = { - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], discount_type: Orb::Models::PercentageDiscount::discount_type, percentage_discount: Float, reason: String? } class PercentageDiscount < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor discount_type: Orb::Models::PercentageDiscount::discount_type @@ -19,7 +19,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], discount_type: Orb::Models::PercentageDiscount::discount_type, percentage_discount: Float, reason: String? @@ -33,7 +33,7 @@ module Orb class DiscountType < Orb::Enum PERCENTAGE: :percentage - def self.values: -> Array[Orb::Models::PercentageDiscount::discount_type] + def self.values: -> ::Array[Orb::Models::PercentageDiscount::discount_type] end end end diff --git a/sig/orb/models/plan.rbs b/sig/orb/models/plan.rbs index ff47adb7..c624a14c 100644 --- a/sig/orb/models/plan.rbs +++ b/sig/orb/models/plan.rbs @@ -3,7 +3,7 @@ module Orb type plan = { id: String, - adjustments: Array[Orb::Models::Plan::adjustment], + adjustments: ::Array[Orb::Models::Plan::adjustment], base_plan: Orb::Models::Plan::BasePlan?, base_plan_id: String?, created_at: Time, @@ -15,13 +15,13 @@ module Orb invoicing_currency: String, maximum: Orb::Models::Plan::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Plan::Minimum?, minimum_amount: String?, name: String, net_terms: Integer?, - plan_phases: Array[Orb::Models::Plan::PlanPhase]?, - prices: Array[Orb::Models::price], + plan_phases: ::Array[Orb::Models::Plan::PlanPhase]?, + prices: ::Array[Orb::Models::price], product: Orb::Models::Plan::Product, status: Orb::Models::Plan::status, trial_config: Orb::Models::Plan::TrialConfig, @@ -31,7 +31,7 @@ module Orb class Plan < Orb::BaseModel attr_accessor id: String - attr_accessor adjustments: Array[Orb::Models::Plan::adjustment] + attr_accessor adjustments: ::Array[Orb::Models::Plan::adjustment] attr_accessor base_plan: Orb::Models::Plan::BasePlan? @@ -55,7 +55,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Plan::Minimum? @@ -65,9 +65,9 @@ module Orb attr_accessor net_terms: Integer? - attr_accessor plan_phases: Array[Orb::Models::Plan::PlanPhase]? + attr_accessor plan_phases: ::Array[Orb::Models::Plan::PlanPhase]? - attr_accessor prices: Array[Orb::Models::price] + attr_accessor prices: ::Array[Orb::Models::price] attr_accessor product: Orb::Models::Plan::Product @@ -80,7 +80,7 @@ module Orb def initialize: ( id: String, - adjustments: Array[Orb::Models::Plan::adjustment], + adjustments: ::Array[Orb::Models::Plan::adjustment], base_plan: Orb::Models::Plan::BasePlan?, base_plan_id: String?, created_at: Time, @@ -92,13 +92,13 @@ module Orb invoicing_currency: String, maximum: Orb::Models::Plan::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Plan::Minimum?, minimum_amount: String?, name: String, net_terms: Integer?, - plan_phases: Array[Orb::Models::Plan::PlanPhase]?, - prices: Array[Orb::Models::price], + plan_phases: ::Array[Orb::Models::Plan::PlanPhase]?, + prices: ::Array[Orb::Models::price], product: Orb::Models::Plan::Product, status: Orb::Models::Plan::status, trial_config: Orb::Models::Plan::TrialConfig, @@ -109,32 +109,30 @@ module Orb def to_hash: -> Orb::Models::plan type adjustment = - 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 + Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -142,45 +140,47 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::Plan::Adjustment::amount_discount_adjustment + ?Orb::Models::Plan::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Plan::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor amount_discount: String - attr_accessor is_invoice_level: bool + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor percentage_discount: Float + attr_accessor is_invoice_level: bool attr_accessor plan_phase_order: Integer? @@ -189,70 +189,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::Plan::Adjustment::percentage_discount_adjustment + ?Orb::Models::Plan::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Plan::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::Plan::Adjustment::usage_discount_adjustment + ?Orb::Models::Plan::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Plan::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -260,12 +260,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -280,7 +280,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -289,30 +289,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::Plan::Adjustment::minimum_adjustment + ?Orb::Models::Plan::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Plan::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -325,7 +325,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -333,14 +333,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::Plan::Adjustment::maximum_adjustment + ?Orb::Models::Plan::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Plan::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::Plan::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::Plan::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment]] end type base_plan = { id: String?, external_plan_id: String?, name: String? } @@ -360,30 +360,36 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: - (applies_to_price_ids: Array[String], maximum_amount: String) -> void + ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void | (?Orb::Models::Plan::maximum | Orb::BaseModel data) -> void def to_hash: -> Orb::Models::Plan::maximum end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: - (applies_to_price_ids: Array[String], minimum_amount: String) -> void + ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void | (?Orb::Models::Plan::minimum | Orb::BaseModel data) -> void def to_hash: -> Orb::Models::Plan::minimum @@ -455,20 +461,20 @@ module Orb SEMI_ANNUAL: :semi_annual ANNUAL: :annual - def self.values: -> Array[Orb::Models::Plan::PlanPhase::duration_unit] + def self.values: -> ::Array[Orb::Models::Plan::PlanPhase::duration_unit] end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -479,16 +485,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -522,7 +528,7 @@ module Orb ARCHIVED: :archived DRAFT: :draft - def self.values: -> Array[Orb::Models::Plan::status] + def self.values: -> ::Array[Orb::Models::Plan::status] end type trial_config = @@ -550,7 +556,7 @@ module Orb class TrialPeriodUnit < Orb::Enum DAYS: :days - def self.values: -> Array[Orb::Models::Plan::TrialConfig::trial_period_unit] + def self.values: -> ::Array[Orb::Models::Plan::TrialConfig::trial_period_unit] end end end diff --git a/sig/orb/models/plan_create_params.rbs b/sig/orb/models/plan_create_params.rbs index a66a1add..0d509cdd 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -4,10 +4,10 @@ module Orb { currency: String, name: String, - prices: Array[Orb::Models::PlanCreateParams::price], + prices: ::Array[Orb::Models::PlanCreateParams::price], default_invoice_memo: String?, external_plan_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, net_terms: Integer?, status: Orb::Models::PlanCreateParams::status } @@ -21,13 +21,13 @@ module Orb attr_accessor name: String - attr_accessor prices: Array[Orb::Models::PlanCreateParams::price] + attr_accessor prices: ::Array[Orb::Models::PlanCreateParams::price] attr_accessor default_invoice_memo: String? attr_accessor external_plan_id: String? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor net_terms: Integer? @@ -39,10 +39,10 @@ module Orb ( currency: String, name: String, - prices: Array[Orb::Models::PlanCreateParams::price], + prices: ::Array[Orb::Models::PlanCreateParams::price], default_invoice_memo: String?, external_plan_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, net_terms: Integer?, status: Orb::Models::PlanCreateParams::status, request_options: Orb::request_opts @@ -94,7 +94,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanUnitPrice < Orb::BaseModel @@ -126,7 +126,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -143,7 +143,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :unit ) -> void | ( @@ -164,7 +164,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -211,7 +211,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -244,7 +244,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -265,7 +265,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanPackagePrice < Orb::BaseModel @@ -297,7 +297,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -314,7 +314,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :package ) -> void | ( @@ -335,7 +335,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence] end type package_config = @@ -385,7 +385,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -418,7 +418,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -439,7 +439,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanMatrixPrice < Orb::BaseModel @@ -471,7 +471,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -488,7 +488,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :matrix ) -> void | ( @@ -509,28 +509,28 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence] end type matrix_config = { default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::BaseModel attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] ) -> void | ( ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::matrix_config @@ -540,15 +540,18 @@ module Orb def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::matrix_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: - (dimension_values: Array[String?], unit_amount: String) -> void + ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void | ( ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::matrix_value | Orb::BaseModel data @@ -587,7 +590,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -620,7 +623,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -641,7 +644,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanTieredPrice < Orb::BaseModel @@ -673,7 +676,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -690,7 +693,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered ) -> void | ( @@ -711,20 +714,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence] end type tiered_config = { - tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] } class TieredConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] ) -> void | ( ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::tiered_config @@ -787,7 +790,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -820,7 +823,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -841,7 +844,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanTieredBpsPrice < Orb::BaseModel @@ -873,7 +876,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -890,7 +893,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered_bps ) -> void | ( @@ -911,20 +914,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence] end type tiered_bps_config = { - tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] ) -> void | ( ?Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::tiered_bps_config @@ -995,7 +998,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1028,7 +1031,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1049,7 +1052,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanBpsPrice < Orb::BaseModel @@ -1081,7 +1084,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -1098,7 +1101,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :bps ) -> void | ( @@ -1136,7 +1139,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence] end type billing_cycle_configuration = @@ -1168,7 +1171,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1201,7 +1204,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1222,7 +1225,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanBulkBpsPrice < Orb::BaseModel @@ -1254,7 +1257,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -1271,7 +1274,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :bulk_bps ) -> void | ( @@ -1283,15 +1286,15 @@ module Orb type bulk_bps_config = { - tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] ) -> void | ( ?Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::bulk_bps_config @@ -1336,7 +1339,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1368,7 +1371,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1401,7 +1404,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1422,7 +1425,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanBulkPrice < Orb::BaseModel @@ -1454,7 +1457,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -1471,7 +1474,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :bulk ) -> void | ( @@ -1483,15 +1486,15 @@ module Orb type bulk_config = { - tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] } class BulkConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] ) -> void | ( ?Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::bulk_config @@ -1529,7 +1532,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence] end type billing_cycle_configuration = @@ -1561,7 +1564,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -1594,7 +1597,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1605,7 +1608,7 @@ module Orb item_id: String, model_type: :threshold_total_amount, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -1615,7 +1618,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanThresholdTotalAmountPrice < Orb::BaseModel @@ -1627,7 +1630,7 @@ module Orb attr_accessor name: String - attr_accessor threshold_total_amount_config: Hash[Symbol, top] + attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -1647,14 +1650,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence, item_id: String, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -1664,7 +1667,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :threshold_total_amount ) -> void | ( @@ -1685,7 +1688,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -1717,7 +1720,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -1750,7 +1753,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1761,7 +1764,7 @@ module Orb item_id: String, model_type: :tiered_package, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration?, @@ -1771,7 +1774,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanTieredPackagePrice < Orb::BaseModel @@ -1783,7 +1786,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_config: Hash[Symbol, top] + attr_accessor tiered_package_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -1803,14 +1806,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence, item_id: String, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration?, @@ -1820,7 +1823,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered_package ) -> void | ( @@ -1841,7 +1844,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -1873,7 +1876,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -1906,7 +1909,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1917,7 +1920,7 @@ module Orb item_id: String, model_type: :tiered_with_minimum, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -1927,7 +1930,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanTieredWithMinimumPrice < Orb::BaseModel @@ -1939,7 +1942,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -1959,14 +1962,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence, item_id: String, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -1976,7 +1979,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered_with_minimum ) -> void | ( @@ -1997,7 +2000,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2029,7 +2032,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2062,7 +2065,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2073,7 +2076,7 @@ module Orb item_id: String, model_type: :unit_with_percent, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration?, @@ -2083,7 +2086,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanUnitWithPercentPrice < Orb::BaseModel @@ -2095,7 +2098,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_percent_config: Hash[Symbol, top] + attr_accessor unit_with_percent_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2115,14 +2118,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence, item_id: String, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration?, @@ -2132,7 +2135,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :unit_with_percent ) -> void | ( @@ -2153,7 +2156,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -2185,7 +2188,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -2218,7 +2221,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2229,7 +2232,7 @@ module Orb item_id: String, model_type: :package_with_allocation, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -2239,7 +2242,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanPackageWithAllocationPrice < Orb::BaseModel @@ -2251,7 +2254,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: Hash[Symbol, top] + attr_accessor package_with_allocation_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2271,14 +2274,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence, item_id: String, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -2288,7 +2291,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :package_with_allocation ) -> void | ( @@ -2309,7 +2312,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2341,7 +2344,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2374,7 +2377,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2385,7 +2388,7 @@ module Orb item_id: String, model_type: :tiered_with_proration, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration?, @@ -2395,7 +2398,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanTierWithProrationPrice < Orb::BaseModel @@ -2407,7 +2410,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_proration_config: Hash[Symbol, top] + attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2427,14 +2430,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence, item_id: String, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration?, @@ -2444,7 +2447,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered_with_proration ) -> void | ( @@ -2465,7 +2468,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -2497,7 +2500,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2530,7 +2533,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2541,7 +2544,7 @@ module Orb item_id: String, model_type: :unit_with_proration, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration?, @@ -2551,7 +2554,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanUnitWithProrationPrice < Orb::BaseModel @@ -2563,7 +2566,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_proration_config: Hash[Symbol, top] + attr_accessor unit_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2583,14 +2586,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence, item_id: String, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration?, @@ -2600,7 +2603,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :unit_with_proration ) -> void | ( @@ -2621,7 +2624,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -2653,7 +2656,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2686,7 +2689,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2694,7 +2697,7 @@ module Orb type new_plan_grouped_allocation_price = { cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, @@ -2707,13 +2710,13 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanGroupedAllocationPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence - attr_accessor grouped_allocation_config: Hash[Symbol, top] + attr_accessor grouped_allocation_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -2739,12 +2742,12 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -2756,7 +2759,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :grouped_allocation ) -> void | ( @@ -2777,7 +2780,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2809,7 +2812,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2842,7 +2845,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2850,7 +2853,7 @@ module Orb type new_plan_grouped_with_prorated_minimum_price = { cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, @@ -2863,13 +2866,13 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanGroupedWithProratedMinimumPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence - attr_accessor grouped_with_prorated_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -2895,12 +2898,12 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -2912,7 +2915,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :grouped_with_prorated_minimum ) -> void | ( @@ -2933,7 +2936,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2965,7 +2968,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2998,7 +3001,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3006,7 +3009,7 @@ module Orb type new_plan_grouped_with_metered_minimum_price = { cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_metered_minimum, name: String, @@ -3019,13 +3022,13 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanGroupedWithMeteredMinimumPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence - attr_accessor grouped_with_metered_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -3051,12 +3054,12 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -3068,7 +3071,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :grouped_with_metered_minimum ) -> void | ( @@ -3089,7 +3092,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3121,7 +3124,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3154,7 +3157,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3163,7 +3166,7 @@ module Orb { cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence, item_id: String, - matrix_with_display_name_config: Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], model_type: :matrix_with_display_name, name: String, billable_metric_id: String?, @@ -3175,7 +3178,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanMatrixWithDisplayNamePrice < Orb::BaseModel @@ -3183,7 +3186,7 @@ module Orb attr_accessor item_id: String - attr_accessor matrix_with_display_name_config: Hash[Symbol, top] + attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top] attr_accessor model_type: :matrix_with_display_name @@ -3207,13 +3210,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence, item_id: String, - matrix_with_display_name_config: Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], name: String, billable_metric_id: String?, billed_in_advance: bool?, @@ -3224,7 +3227,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :matrix_with_display_name ) -> void | ( @@ -3245,7 +3248,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -3277,7 +3280,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -3310,14 +3313,14 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end type new_plan_bulk_with_proration_price = { - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence, item_id: String, model_type: :bulk_with_proration, @@ -3331,11 +3334,11 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanBulkWithProrationPrice < Orb::BaseModel - attr_accessor bulk_with_proration_config: Hash[Symbol, top] + attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence @@ -3363,11 +3366,11 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence, item_id: String, name: String, @@ -3380,7 +3383,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :bulk_with_proration ) -> void | ( @@ -3401,7 +3404,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3433,7 +3436,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3466,7 +3469,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3474,7 +3477,7 @@ module Orb type new_plan_grouped_tiered_package_price = { cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_tiered_package, name: String, @@ -3487,13 +3490,13 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanGroupedTieredPackagePrice < Orb::BaseModel attr_accessor cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence - attr_accessor grouped_tiered_package_config: Hash[Symbol, top] + attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -3519,12 +3522,12 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -3536,7 +3539,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :grouped_tiered_package ) -> void | ( @@ -3557,7 +3560,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -3589,7 +3592,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -3622,7 +3625,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3631,7 +3634,7 @@ module Orb { cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence, item_id: String, - max_group_tiered_package_config: Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], model_type: :max_group_tiered_package, name: String, billable_metric_id: String?, @@ -3643,7 +3646,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanMaxGroupTieredPackagePrice < Orb::BaseModel @@ -3651,7 +3654,7 @@ module Orb attr_accessor item_id: String - attr_accessor max_group_tiered_package_config: Hash[Symbol, top] + attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top] attr_accessor model_type: :max_group_tiered_package @@ -3675,13 +3678,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence, item_id: String, - max_group_tiered_package_config: Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], name: String, billable_metric_id: String?, billed_in_advance: bool?, @@ -3692,7 +3695,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :max_group_tiered_package ) -> void | ( @@ -3713,7 +3716,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -3745,7 +3748,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -3778,7 +3781,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3789,7 +3792,7 @@ module Orb item_id: String, model_type: :scalable_matrix_with_unit_pricing, name: String, - scalable_matrix_with_unit_pricing_config: Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, @@ -3799,7 +3802,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanScalableMatrixWithUnitPricingPrice < Orb::BaseModel @@ -3811,7 +3814,7 @@ module Orb attr_accessor name: String - attr_accessor scalable_matrix_with_unit_pricing_config: Hash[Symbol, top] + attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -3831,14 +3834,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence, item_id: String, name: String, - scalable_matrix_with_unit_pricing_config: Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, @@ -3848,7 +3851,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :scalable_matrix_with_unit_pricing ) -> void | ( @@ -3869,7 +3872,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -3901,7 +3904,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -3934,7 +3937,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3945,7 +3948,7 @@ module Orb item_id: String, model_type: :scalable_matrix_with_tiered_pricing, name: String, - scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, @@ -3955,7 +3958,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewPlanScalableMatrixWithTieredPricingPrice < Orb::BaseModel @@ -3967,7 +3970,7 @@ module Orb attr_accessor name: String - attr_accessor scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top] + attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -3987,14 +3990,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence, item_id: String, name: String, - scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, @@ -4004,7 +4007,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :scalable_matrix_with_tiered_pricing ) -> void | ( @@ -4025,7 +4028,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -4057,7 +4060,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -4090,7 +4093,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4104,7 +4107,7 @@ module Orb ACTIVE: :active DRAFT: :draft - def self.values: -> Array[Orb::Models::PlanCreateParams::status] + def self.values: -> ::Array[Orb::Models::PlanCreateParams::status] end end end diff --git a/sig/orb/models/plan_list_params.rbs b/sig/orb/models/plan_list_params.rbs index 90a213ff..0527982e 100644 --- a/sig/orb/models/plan_list_params.rbs +++ b/sig/orb/models/plan_list_params.rbs @@ -56,7 +56,7 @@ module Orb ARCHIVED: :archived DRAFT: :draft - def self.values: -> Array[Orb::Models::PlanListParams::status] + def self.values: -> ::Array[Orb::Models::PlanListParams::status] end end end diff --git a/sig/orb/models/plan_update_params.rbs b/sig/orb/models/plan_update_params.rbs index 1f26547b..0e7a5172 100644 --- a/sig/orb/models/plan_update_params.rbs +++ b/sig/orb/models/plan_update_params.rbs @@ -1,7 +1,7 @@ module Orb module Models type plan_update_params = - { external_plan_id: String?, metadata: Hash[Symbol, String?]? } + { external_plan_id: String?, metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters class PlanUpdateParams < Orb::BaseModel @@ -10,12 +10,12 @@ module Orb attr_accessor external_plan_id: String? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( external_plan_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> void | (?Orb::Models::plan_update_params | Orb::BaseModel data) -> void 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 4a383c53..9ea9e594 100644 --- a/sig/orb/models/plans/external_plan_id_update_params.rbs +++ b/sig/orb/models/plans/external_plan_id_update_params.rbs @@ -2,7 +2,7 @@ module Orb module Models module Plans type external_plan_id_update_params = - { external_plan_id: String?, metadata: Hash[Symbol, String?]? } + { external_plan_id: String?, metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters class ExternalPlanIDUpdateParams < Orb::BaseModel @@ -11,12 +11,12 @@ module Orb attr_accessor external_plan_id: String? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( external_plan_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> void | ( diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index 10a21c8b..801dcb50 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -47,7 +47,7 @@ module Orb item: Orb::Models::Price::UnitPrice::Item, maximum: Orb::Models::Price::UnitPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::UnitPrice::Minimum?, minimum_amount: String?, model_type: :unit, @@ -89,7 +89,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::UnitPrice::Minimum? @@ -124,7 +124,7 @@ module Orb item: Orb::Models::Price::UnitPrice::Item, maximum: Orb::Models::Price::UnitPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::UnitPrice::Minimum?, minimum_amount: String?, name: String, @@ -182,7 +182,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -197,7 +197,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::UnitPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::UnitPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -246,7 +246,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -267,16 +267,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -287,16 +287,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -312,7 +312,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::UnitPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::UnitPrice::price_type] end type unit_config = { unit_amount: String } @@ -331,18 +331,18 @@ module Orb type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -371,7 +371,7 @@ module Orb item: Orb::Models::Price::PackagePrice::Item, maximum: Orb::Models::Price::PackagePrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::PackagePrice::Minimum?, minimum_amount: String?, model_type: :package, @@ -413,7 +413,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::PackagePrice::Minimum? @@ -448,7 +448,7 @@ module Orb item: Orb::Models::Price::PackagePrice::Item, maximum: Orb::Models::Price::PackagePrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::PackagePrice::Minimum?, minimum_amount: String?, name: String, @@ -506,7 +506,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -521,7 +521,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::PackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::PackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -570,7 +570,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -591,16 +591,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -611,16 +611,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -653,23 +653,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::PackagePrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::PackagePrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -699,7 +699,7 @@ module Orb matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, maximum: Orb::Models::Price::MatrixPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::MatrixPrice::Minimum?, minimum_amount: String?, model_type: :matrix, @@ -742,7 +742,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::MatrixPrice::Minimum? @@ -776,7 +776,7 @@ module Orb matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, maximum: Orb::Models::Price::MatrixPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::MatrixPrice::Minimum?, minimum_amount: String?, name: String, @@ -833,7 +833,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -848,7 +848,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::MatrixPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -897,7 +897,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -920,22 +920,22 @@ module Orb type matrix_config = { default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::BaseModel attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] ) -> void | ( ?Orb::Models::Price::MatrixPrice::matrix_config @@ -945,15 +945,15 @@ module Orb def to_hash: -> Orb::Models::Price::MatrixPrice::matrix_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: - (dimension_values: Array[String?], unit_amount: String) -> void + (dimension_values: ::Array[String?], unit_amount: String) -> void | ( ?Orb::Models::Price::MatrixPrice::MatrixConfig::matrix_value | Orb::BaseModel data @@ -964,16 +964,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -984,16 +984,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -1009,23 +1009,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::MatrixPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -1054,7 +1054,7 @@ module Orb item: Orb::Models::Price::TieredPrice::Item, maximum: Orb::Models::Price::TieredPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredPrice::Minimum?, minimum_amount: String?, model_type: :tiered, @@ -1096,7 +1096,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::TieredPrice::Minimum? @@ -1131,7 +1131,7 @@ module Orb item: Orb::Models::Price::TieredPrice::Item, maximum: Orb::Models::Price::TieredPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredPrice::Minimum?, minimum_amount: String?, name: String, @@ -1189,7 +1189,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -1204,7 +1204,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::TieredPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::TieredPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1253,7 +1253,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -1274,16 +1274,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -1294,16 +1294,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -1319,18 +1319,20 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::TieredPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::TieredPrice::price_type] end type tiered_config = - { tiers: Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] } + { + tiers: ::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] + } class TieredConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] ) -> void | ( ?Orb::Models::Price::TieredPrice::tiered_config @@ -1366,18 +1368,18 @@ module Orb type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -1406,7 +1408,7 @@ module Orb item: Orb::Models::Price::TieredBpsPrice::Item, maximum: Orb::Models::Price::TieredBpsPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredBpsPrice::Minimum?, minimum_amount: String?, model_type: :tiered_bps, @@ -1448,7 +1450,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::TieredBpsPrice::Minimum? @@ -1483,7 +1485,7 @@ module Orb item: Orb::Models::Price::TieredBpsPrice::Item, maximum: Orb::Models::Price::TieredBpsPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredBpsPrice::Minimum?, minimum_amount: String?, name: String, @@ -1543,7 +1545,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1558,7 +1560,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::TieredBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1607,7 +1609,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -1628,16 +1630,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -1648,16 +1650,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -1673,20 +1675,20 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::TieredBpsPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::price_type] end type tiered_bps_config = { - tiers: Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] ) -> void | ( ?Orb::Models::Price::TieredBpsPrice::tiered_bps_config @@ -1730,18 +1732,18 @@ module Orb type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -1771,7 +1773,7 @@ module Orb item: Orb::Models::Price::BpsPrice::Item, maximum: Orb::Models::Price::BpsPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::BpsPrice::Minimum?, minimum_amount: String?, model_type: :bps, @@ -1814,7 +1816,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::BpsPrice::Minimum? @@ -1848,7 +1850,7 @@ module Orb item: Orb::Models::Price::BpsPrice::Item, maximum: Orb::Models::Price::BpsPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::BpsPrice::Minimum?, minimum_amount: String?, name: String, @@ -1905,7 +1907,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1936,7 +1938,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::BpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::BpsPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1985,7 +1987,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -2006,16 +2008,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -2026,16 +2028,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -2051,23 +2053,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::BpsPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::BpsPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -2097,7 +2099,7 @@ module Orb item: Orb::Models::Price::BulkBpsPrice::Item, maximum: Orb::Models::Price::BulkBpsPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::BulkBpsPrice::Minimum?, minimum_amount: String?, model_type: :bulk_bps, @@ -2140,7 +2142,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::BulkBpsPrice::Minimum? @@ -2174,7 +2176,7 @@ module Orb item: Orb::Models::Price::BulkBpsPrice::Item, maximum: Orb::Models::Price::BulkBpsPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::BulkBpsPrice::Minimum?, minimum_amount: String?, name: String, @@ -2231,21 +2233,21 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit] end end type bulk_bps_config = { - tiers: Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] ) -> void | ( ?Orb::Models::Price::BulkBpsPrice::bulk_bps_config @@ -2290,7 +2292,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::BulkBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2339,7 +2341,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -2360,16 +2362,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -2380,16 +2382,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -2405,23 +2407,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::BulkBpsPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -2451,7 +2453,7 @@ module Orb item: Orb::Models::Price::BulkPrice::Item, maximum: Orb::Models::Price::BulkPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::BulkPrice::Minimum?, minimum_amount: String?, model_type: :bulk, @@ -2494,7 +2496,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::BulkPrice::Minimum? @@ -2528,7 +2530,7 @@ module Orb item: Orb::Models::Price::BulkPrice::Item, maximum: Orb::Models::Price::BulkPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::BulkPrice::Minimum?, minimum_amount: String?, name: String, @@ -2585,19 +2587,19 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit] end end type bulk_config = - { tiers: Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] } + { tiers: ::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] } class BulkConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] ) -> void | ( ?Orb::Models::Price::BulkPrice::bulk_config | Orb::BaseModel data @@ -2634,7 +2636,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::BulkPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::BulkPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2683,7 +2685,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -2704,16 +2706,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -2724,16 +2726,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -2749,23 +2751,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::BulkPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::BulkPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -2794,14 +2796,14 @@ module Orb item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, maximum: Orb::Models::Price::ThresholdTotalAmountPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::ThresholdTotalAmountPrice::Minimum?, minimum_amount: String?, model_type: :threshold_total_amount, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::ThresholdTotalAmountPrice::price_type, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration? } @@ -2836,7 +2838,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::ThresholdTotalAmountPrice::Minimum? @@ -2850,7 +2852,7 @@ module Orb attr_accessor price_type: Orb::Models::Price::ThresholdTotalAmountPrice::price_type - attr_accessor threshold_total_amount_config: Hash[Symbol, top] + attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] attr_accessor dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration? @@ -2871,13 +2873,13 @@ module Orb item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, maximum: Orb::Models::Price::ThresholdTotalAmountPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::ThresholdTotalAmountPrice::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::ThresholdTotalAmountPrice::price_type, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration?, model_type: :threshold_total_amount ) -> void @@ -2932,7 +2934,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -2947,7 +2949,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::ThresholdTotalAmountPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2996,7 +2998,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3018,16 +3020,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -3039,16 +3041,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -3065,23 +3067,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::ThresholdTotalAmountPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -3110,14 +3112,14 @@ module Orb item: Orb::Models::Price::TieredPackagePrice::Item, maximum: Orb::Models::Price::TieredPackagePrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredPackagePrice::Minimum?, minimum_amount: String?, model_type: :tiered_package, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredPackagePrice::price_type, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration? } @@ -3152,7 +3154,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::TieredPackagePrice::Minimum? @@ -3166,7 +3168,7 @@ module Orb attr_accessor price_type: Orb::Models::Price::TieredPackagePrice::price_type - attr_accessor tiered_package_config: Hash[Symbol, top] + attr_accessor tiered_package_config: ::Hash[Symbol, top] attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration? @@ -3187,13 +3189,13 @@ module Orb item: Orb::Models::Price::TieredPackagePrice::Item, maximum: Orb::Models::Price::TieredPackagePrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredPackagePrice::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredPackagePrice::price_type, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration?, model_type: :tiered_package ) -> void @@ -3247,7 +3249,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -3262,7 +3264,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::TieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3311,7 +3313,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3333,16 +3335,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -3354,16 +3356,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -3380,23 +3382,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::TieredPackagePrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -3421,12 +3423,12 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_tiered_config: Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::GroupedTieredPrice::Item, maximum: Orb::Models::Price::GroupedTieredPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::GroupedTieredPrice::Minimum?, minimum_amount: String?, model_type: :grouped_tiered, @@ -3459,7 +3461,7 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_tiered_config: Hash[Symbol, top] + attr_accessor grouped_tiered_config: ::Hash[Symbol, top] attr_accessor invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration? @@ -3469,7 +3471,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::GroupedTieredPrice::Minimum? @@ -3498,12 +3500,12 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_tiered_config: Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::GroupedTieredPrice::Item, maximum: Orb::Models::Price::GroupedTieredPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::GroupedTieredPrice::Minimum?, minimum_amount: String?, name: String, @@ -3562,7 +3564,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -3577,7 +3579,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::GroupedTieredPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3626,7 +3628,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3648,16 +3650,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -3669,16 +3671,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -3695,23 +3697,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::GroupedTieredPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -3740,14 +3742,14 @@ module Orb item: Orb::Models::Price::TieredWithMinimumPrice::Item, maximum: Orb::Models::Price::TieredWithMinimumPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredWithMinimumPrice::Minimum?, minimum_amount: String?, model_type: :tiered_with_minimum, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredWithMinimumPrice::price_type, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration? } @@ -3782,7 +3784,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::TieredWithMinimumPrice::Minimum? @@ -3796,7 +3798,7 @@ module Orb attr_accessor price_type: Orb::Models::Price::TieredWithMinimumPrice::price_type - attr_accessor tiered_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration? @@ -3817,13 +3819,13 @@ module Orb item: Orb::Models::Price::TieredWithMinimumPrice::Item, maximum: Orb::Models::Price::TieredWithMinimumPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredWithMinimumPrice::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredWithMinimumPrice::price_type, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration?, model_type: :tiered_with_minimum ) -> void @@ -3877,7 +3879,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3892,7 +3894,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::TieredWithMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3941,7 +3943,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3963,16 +3965,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -3984,16 +3986,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -4010,23 +4012,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::TieredWithMinimumPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -4055,14 +4057,14 @@ module Orb item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, maximum: Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum?, minimum_amount: String?, model_type: :tiered_package_with_minimum, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::price_type, - tiered_package_with_minimum_config: Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration? } @@ -4097,7 +4099,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum? @@ -4111,7 +4113,7 @@ module Orb attr_accessor price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::price_type - attr_accessor tiered_package_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_package_with_minimum_config: ::Hash[Symbol, top] attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration? @@ -4132,13 +4134,13 @@ module Orb item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, maximum: Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::price_type, - tiered_package_with_minimum_config: Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration?, model_type: :tiered_package_with_minimum ) -> void @@ -4193,7 +4195,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -4208,7 +4210,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::TieredPackageWithMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4257,7 +4259,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -4279,16 +4281,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -4300,16 +4302,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -4326,23 +4328,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::TieredPackageWithMinimumPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -4371,12 +4373,12 @@ module Orb item: Orb::Models::Price::PackageWithAllocationPrice::Item, maximum: Orb::Models::Price::PackageWithAllocationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::PackageWithAllocationPrice::Minimum?, minimum_amount: String?, model_type: :package_with_allocation, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], plan_phase_order: Integer?, price_type: Orb::Models::Price::PackageWithAllocationPrice::price_type, dimensional_price_configuration: Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration? @@ -4413,7 +4415,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::PackageWithAllocationPrice::Minimum? @@ -4423,7 +4425,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: Hash[Symbol, top] + attr_accessor package_with_allocation_config: ::Hash[Symbol, top] attr_accessor plan_phase_order: Integer? @@ -4448,11 +4450,11 @@ module Orb item: Orb::Models::Price::PackageWithAllocationPrice::Item, maximum: Orb::Models::Price::PackageWithAllocationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::PackageWithAllocationPrice::Minimum?, minimum_amount: String?, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], plan_phase_order: Integer?, price_type: Orb::Models::Price::PackageWithAllocationPrice::price_type, dimensional_price_configuration: Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration?, @@ -4509,7 +4511,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -4524,7 +4526,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::PackageWithAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4573,7 +4575,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -4595,16 +4597,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -4616,16 +4618,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -4642,23 +4644,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::PackageWithAllocationPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -4687,14 +4689,14 @@ module Orb item: Orb::Models::Price::UnitWithPercentPrice::Item, maximum: Orb::Models::Price::UnitWithPercentPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::UnitWithPercentPrice::Minimum?, minimum_amount: String?, model_type: :unit_with_percent, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::UnitWithPercentPrice::price_type, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration? } @@ -4729,7 +4731,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::UnitWithPercentPrice::Minimum? @@ -4743,7 +4745,7 @@ module Orb attr_accessor price_type: Orb::Models::Price::UnitWithPercentPrice::price_type - attr_accessor unit_with_percent_config: Hash[Symbol, top] + attr_accessor unit_with_percent_config: ::Hash[Symbol, top] attr_accessor dimensional_price_configuration: Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration? @@ -4764,13 +4766,13 @@ module Orb item: Orb::Models::Price::UnitWithPercentPrice::Item, maximum: Orb::Models::Price::UnitWithPercentPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::UnitWithPercentPrice::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::UnitWithPercentPrice::price_type, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration?, model_type: :unit_with_percent ) -> void @@ -4824,7 +4826,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -4839,7 +4841,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::UnitWithPercentPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4888,7 +4890,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -4910,16 +4912,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -4931,16 +4933,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -4957,23 +4959,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::UnitWithPercentPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -5003,7 +5005,7 @@ module Orb matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, maximum: Orb::Models::Price::MatrixWithAllocationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::MatrixWithAllocationPrice::Minimum?, minimum_amount: String?, model_type: :matrix_with_allocation, @@ -5046,7 +5048,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::MatrixWithAllocationPrice::Minimum? @@ -5080,7 +5082,7 @@ module Orb matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, maximum: Orb::Models::Price::MatrixWithAllocationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::MatrixWithAllocationPrice::Minimum?, minimum_amount: String?, name: String, @@ -5140,7 +5142,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -5155,7 +5157,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::MatrixWithAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5204,7 +5206,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -5229,8 +5231,8 @@ module Orb { allocation: Float, default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] } class MatrixWithAllocationConfig < Orb::BaseModel @@ -5238,16 +5240,16 @@ module Orb attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] def initialize: ( allocation: Float, default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] ) -> void | ( ?Orb::Models::Price::MatrixWithAllocationPrice::matrix_with_allocation_config @@ -5257,15 +5259,15 @@ module Orb def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::matrix_with_allocation_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: - (dimension_values: Array[String?], unit_amount: String) -> void + (dimension_values: ::Array[String?], unit_amount: String) -> void | ( ?Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value | Orb::BaseModel data @@ -5276,16 +5278,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -5297,16 +5299,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -5323,23 +5325,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::MatrixWithAllocationPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -5368,14 +5370,14 @@ module Orb item: Orb::Models::Price::TieredWithProrationPrice::Item, maximum: Orb::Models::Price::TieredWithProrationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredWithProrationPrice::Minimum?, minimum_amount: String?, model_type: :tiered_with_proration, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredWithProrationPrice::price_type, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration? } @@ -5410,7 +5412,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::TieredWithProrationPrice::Minimum? @@ -5424,7 +5426,7 @@ module Orb attr_accessor price_type: Orb::Models::Price::TieredWithProrationPrice::price_type - attr_accessor tiered_with_proration_config: Hash[Symbol, top] + attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration? @@ -5445,13 +5447,13 @@ module Orb item: Orb::Models::Price::TieredWithProrationPrice::Item, maximum: Orb::Models::Price::TieredWithProrationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::TieredWithProrationPrice::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredWithProrationPrice::price_type, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration?, model_type: :tiered_with_proration ) -> void @@ -5506,7 +5508,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -5521,7 +5523,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::TieredWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5570,7 +5572,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -5592,16 +5594,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -5613,16 +5615,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -5639,23 +5641,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::TieredWithProrationPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -5684,14 +5686,14 @@ module Orb item: Orb::Models::Price::UnitWithProrationPrice::Item, maximum: Orb::Models::Price::UnitWithProrationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::UnitWithProrationPrice::Minimum?, minimum_amount: String?, model_type: :unit_with_proration, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::UnitWithProrationPrice::price_type, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration? } @@ -5726,7 +5728,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::UnitWithProrationPrice::Minimum? @@ -5740,7 +5742,7 @@ module Orb attr_accessor price_type: Orb::Models::Price::UnitWithProrationPrice::price_type - attr_accessor unit_with_proration_config: Hash[Symbol, top] + attr_accessor unit_with_proration_config: ::Hash[Symbol, top] attr_accessor dimensional_price_configuration: Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration? @@ -5761,13 +5763,13 @@ module Orb item: Orb::Models::Price::UnitWithProrationPrice::Item, maximum: Orb::Models::Price::UnitWithProrationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::UnitWithProrationPrice::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::UnitWithProrationPrice::price_type, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration?, model_type: :unit_with_proration ) -> void @@ -5821,7 +5823,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -5836,7 +5838,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::UnitWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5885,7 +5887,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -5907,16 +5909,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -5928,16 +5930,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -5954,23 +5956,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::UnitWithProrationPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -5995,12 +5997,12 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::GroupedAllocationPrice::Item, maximum: Orb::Models::Price::GroupedAllocationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::GroupedAllocationPrice::Minimum?, minimum_amount: String?, model_type: :grouped_allocation, @@ -6033,7 +6035,7 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_allocation_config: Hash[Symbol, top] + attr_accessor grouped_allocation_config: ::Hash[Symbol, top] attr_accessor invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration? @@ -6043,7 +6045,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::GroupedAllocationPrice::Minimum? @@ -6072,12 +6074,12 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::GroupedAllocationPrice::Item, maximum: Orb::Models::Price::GroupedAllocationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::GroupedAllocationPrice::Minimum?, minimum_amount: String?, name: String, @@ -6136,7 +6138,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -6151,7 +6153,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::GroupedAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6200,7 +6202,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -6222,16 +6224,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -6243,16 +6245,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -6269,23 +6271,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::GroupedAllocationPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -6310,12 +6312,12 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, maximum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum?, minimum_amount: String?, model_type: :grouped_with_prorated_minimum, @@ -6348,7 +6350,7 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_with_prorated_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] attr_accessor invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration? @@ -6358,7 +6360,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum? @@ -6387,12 +6389,12 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, maximum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum?, minimum_amount: String?, name: String, @@ -6452,7 +6454,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -6467,7 +6469,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6516,7 +6518,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -6538,16 +6540,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -6559,16 +6561,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -6585,23 +6587,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -6626,12 +6628,12 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_metered_minimum_config: Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, maximum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum?, minimum_amount: String?, model_type: :grouped_with_metered_minimum, @@ -6664,7 +6666,7 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_with_metered_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] attr_accessor invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration? @@ -6674,7 +6676,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum? @@ -6703,12 +6705,12 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_metered_minimum_config: Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, maximum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum?, minimum_amount: String?, name: String, @@ -6768,7 +6770,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -6783,7 +6785,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6832,7 +6834,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -6854,16 +6856,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -6875,16 +6877,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -6901,23 +6903,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -6944,10 +6946,10 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, - matrix_with_display_name_config: Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], maximum: Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum?, minimum_amount: String?, model_type: :matrix_with_display_name, @@ -6984,13 +6986,13 @@ module Orb attr_accessor item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item - attr_accessor matrix_with_display_name_config: Hash[Symbol, top] + attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top] attr_accessor maximum: Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum? attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum? @@ -7021,10 +7023,10 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, - matrix_with_display_name_config: Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], maximum: Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum?, minimum_amount: String?, name: String, @@ -7084,7 +7086,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -7099,7 +7101,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::MatrixWithDisplayNamePrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7148,7 +7150,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -7170,16 +7172,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -7191,16 +7193,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -7217,23 +7219,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::MatrixWithDisplayNamePrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -7250,7 +7252,7 @@ module Orb id: String, billable_metric: Orb::Models::Price::BulkWithProrationPrice::BillableMetric?, billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::Price::BulkWithProrationPrice::cadence, conversion_rate: Float?, created_at: Time, @@ -7263,7 +7265,7 @@ module Orb item: Orb::Models::Price::BulkWithProrationPrice::Item, maximum: Orb::Models::Price::BulkWithProrationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::BulkWithProrationPrice::Minimum?, minimum_amount: String?, model_type: :bulk_with_proration, @@ -7280,7 +7282,7 @@ module Orb attr_accessor billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration - attr_accessor bulk_with_proration_config: Hash[Symbol, top] + attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] attr_accessor cadence: Orb::Models::Price::BulkWithProrationPrice::cadence @@ -7306,7 +7308,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::BulkWithProrationPrice::Minimum? @@ -7327,7 +7329,7 @@ module Orb id: String, billable_metric: Orb::Models::Price::BulkWithProrationPrice::BillableMetric?, billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::Price::BulkWithProrationPrice::cadence, conversion_rate: Float?, created_at: Time, @@ -7340,7 +7342,7 @@ module Orb item: Orb::Models::Price::BulkWithProrationPrice::Item, maximum: Orb::Models::Price::BulkWithProrationPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::BulkWithProrationPrice::Minimum?, minimum_amount: String?, name: String, @@ -7399,7 +7401,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7414,7 +7416,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::BulkWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7463,7 +7465,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -7485,16 +7487,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -7506,16 +7508,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -7532,23 +7534,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::BulkWithProrationPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -7573,12 +7575,12 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_tiered_package_config: Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::GroupedTieredPackagePrice::Item, maximum: Orb::Models::Price::GroupedTieredPackagePrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::GroupedTieredPackagePrice::Minimum?, minimum_amount: String?, model_type: :grouped_tiered_package, @@ -7611,7 +7613,7 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_tiered_package_config: Hash[Symbol, top] + attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] attr_accessor invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration? @@ -7621,7 +7623,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::GroupedTieredPackagePrice::Minimum? @@ -7650,12 +7652,12 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_tiered_package_config: Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::GroupedTieredPackagePrice::Item, maximum: Orb::Models::Price::GroupedTieredPackagePrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::GroupedTieredPackagePrice::Minimum?, minimum_amount: String?, name: String, @@ -7715,7 +7717,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -7730,7 +7732,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::GroupedTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7779,7 +7781,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -7801,16 +7803,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -7822,16 +7824,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -7848,23 +7850,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::GroupedTieredPackagePrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -7891,10 +7893,10 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, - max_group_tiered_package_config: Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], maximum: Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum?, minimum_amount: String?, model_type: :max_group_tiered_package, @@ -7931,13 +7933,13 @@ module Orb attr_accessor item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item - attr_accessor max_group_tiered_package_config: Hash[Symbol, top] + attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top] attr_accessor maximum: Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum? attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum? @@ -7968,10 +7970,10 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, - max_group_tiered_package_config: Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], maximum: Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum?, minimum_amount: String?, name: String, @@ -8031,7 +8033,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -8046,7 +8048,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::MaxGroupTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -8095,7 +8097,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -8117,16 +8119,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -8138,16 +8140,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -8164,23 +8166,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::MaxGroupTieredPackagePrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -8209,14 +8211,14 @@ module Orb item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, maximum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum?, minimum_amount: String?, model_type: :scalable_matrix_with_unit_pricing, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type, - scalable_matrix_with_unit_pricing_config: Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration? } @@ -8251,7 +8253,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum? @@ -8265,7 +8267,7 @@ module Orb attr_accessor price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type - attr_accessor scalable_matrix_with_unit_pricing_config: Hash[Symbol, top] + attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top] attr_accessor dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration? @@ -8286,13 +8288,13 @@ module Orb item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, maximum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type, - scalable_matrix_with_unit_pricing_config: Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration?, model_type: :scalable_matrix_with_unit_pricing ) -> void @@ -8347,7 +8349,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -8362,7 +8364,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -8411,7 +8413,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -8433,16 +8435,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -8454,16 +8456,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -8480,23 +8482,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( @@ -8525,14 +8527,14 @@ module Orb item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, maximum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum?, minimum_amount: String?, model_type: :scalable_matrix_with_tiered_pricing, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type, - scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration? } @@ -8567,7 +8569,7 @@ module Orb attr_accessor maximum_amount: String? - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] attr_accessor minimum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum? @@ -8581,7 +8583,7 @@ module Orb attr_accessor price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type - attr_accessor scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top] + attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] attr_accessor dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration? @@ -8602,13 +8604,13 @@ module Orb item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, maximum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum?, maximum_amount: String?, - metadata: Hash[Symbol, String], + metadata: ::Hash[Symbol, String], minimum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum?, minimum_amount: String?, name: String, plan_phase_order: Integer?, price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type, - scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration?, model_type: :scalable_matrix_with_tiered_pricing ) -> void @@ -8663,7 +8665,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -8678,7 +8680,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::cadence] + def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -8727,7 +8729,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -8749,16 +8751,16 @@ module Orb end type maximum = - { applies_to_price_ids: Array[String], maximum_amount: String } + { applies_to_price_ids: ::Array[String], maximum_amount: String } class Maximum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String ) -> void | ( @@ -8770,16 +8772,16 @@ module Orb end type minimum = - { applies_to_price_ids: Array[String], minimum_amount: String } + { applies_to_price_ids: ::Array[String], minimum_amount: String } class Minimum < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor minimum_amount: String def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], minimum_amount: String ) -> void | ( @@ -8796,23 +8798,23 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type] + def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type] end type dimensional_price_configuration = { - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String } class DimensionalPriceConfiguration < Orb::BaseModel - attr_accessor dimension_values: Array[String] + attr_accessor dimension_values: ::Array[String] attr_accessor dimensional_price_group_id: String def initialize: ( - dimension_values: Array[String], + dimension_values: ::Array[String], dimensional_price_group_id: String ) -> void | ( diff --git a/sig/orb/models/price_create_params.rbs b/sig/orb/models/price_create_params.rbs index 48defa26..94faf001 100644 --- a/sig/orb/models/price_create_params.rbs +++ b/sig/orb/models/price_create_params.rbs @@ -16,7 +16,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, package_config: Orb::Models::PriceCreateParams::PackageConfig, matrix_config: Orb::Models::PriceCreateParams::MatrixConfig, matrix_with_allocation_config: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, @@ -25,24 +25,24 @@ module Orb bps_config: Orb::Models::PriceCreateParams::BpsConfig, bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, bulk_config: Orb::Models::PriceCreateParams::BulkConfig, - threshold_total_amount_config: Hash[Symbol, top], - tiered_package_config: Hash[Symbol, top], - grouped_tiered_config: Hash[Symbol, top], - max_group_tiered_package_config: Hash[Symbol, top], - tiered_with_minimum_config: Hash[Symbol, top], - package_with_allocation_config: Hash[Symbol, top], - tiered_package_with_minimum_config: Hash[Symbol, top], - unit_with_percent_config: Hash[Symbol, top], - tiered_with_proration_config: Hash[Symbol, top], - unit_with_proration_config: Hash[Symbol, top], - grouped_allocation_config: Hash[Symbol, top], - grouped_with_prorated_minimum_config: Hash[Symbol, top], - grouped_with_metered_minimum_config: Hash[Symbol, top], - matrix_with_display_name_config: Hash[Symbol, top], - bulk_with_proration_config: Hash[Symbol, top], - grouped_tiered_package_config: Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top] + threshold_total_amount_config: ::Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] } & Orb::request_parameters @@ -78,7 +78,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor package_config: Orb::Models::PriceCreateParams::PackageConfig @@ -96,41 +96,41 @@ module Orb attr_accessor bulk_config: Orb::Models::PriceCreateParams::BulkConfig - attr_accessor threshold_total_amount_config: Hash[Symbol, top] + attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] - attr_accessor tiered_package_config: Hash[Symbol, top] + attr_accessor tiered_package_config: ::Hash[Symbol, top] - attr_accessor grouped_tiered_config: Hash[Symbol, top] + attr_accessor grouped_tiered_config: ::Hash[Symbol, top] - attr_accessor max_group_tiered_package_config: Hash[Symbol, top] + attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top] - attr_accessor tiered_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] - attr_accessor package_with_allocation_config: Hash[Symbol, top] + attr_accessor package_with_allocation_config: ::Hash[Symbol, top] - attr_accessor tiered_package_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_package_with_minimum_config: ::Hash[Symbol, top] - attr_accessor unit_with_percent_config: Hash[Symbol, top] + attr_accessor unit_with_percent_config: ::Hash[Symbol, top] - attr_accessor tiered_with_proration_config: Hash[Symbol, top] + attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] - attr_accessor unit_with_proration_config: Hash[Symbol, top] + attr_accessor unit_with_proration_config: ::Hash[Symbol, top] - attr_accessor grouped_allocation_config: Hash[Symbol, top] + attr_accessor grouped_allocation_config: ::Hash[Symbol, top] - attr_accessor grouped_with_prorated_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] - attr_accessor grouped_with_metered_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] - attr_accessor matrix_with_display_name_config: Hash[Symbol, top] + attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top] - attr_accessor bulk_with_proration_config: Hash[Symbol, top] + attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] - attr_accessor grouped_tiered_package_config: Hash[Symbol, top] + attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] - attr_accessor scalable_matrix_with_unit_pricing_config: Hash[Symbol, top] + attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top] - attr_accessor scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top] + attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] def initialize: ( @@ -148,24 +148,24 @@ module Orb bps_config: Orb::Models::PriceCreateParams::BpsConfig, bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, bulk_config: Orb::Models::PriceCreateParams::BulkConfig, - threshold_total_amount_config: Hash[Symbol, top], - tiered_package_config: Hash[Symbol, top], - grouped_tiered_config: Hash[Symbol, top], - max_group_tiered_package_config: Hash[Symbol, top], - tiered_with_minimum_config: Hash[Symbol, top], - package_with_allocation_config: Hash[Symbol, top], - tiered_package_with_minimum_config: Hash[Symbol, top], - unit_with_percent_config: Hash[Symbol, top], - tiered_with_proration_config: Hash[Symbol, top], - unit_with_proration_config: Hash[Symbol, top], - grouped_allocation_config: Hash[Symbol, top], - grouped_with_prorated_minimum_config: Hash[Symbol, top], - grouped_with_metered_minimum_config: Hash[Symbol, top], - matrix_with_display_name_config: Hash[Symbol, top], - bulk_with_proration_config: Hash[Symbol, top], - grouped_tiered_package_config: Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, @@ -174,7 +174,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> void | (?Orb::Models::price_create_params | Orb::BaseModel data) -> void @@ -192,7 +192,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::PriceCreateParams::cadence] + def self.values: -> ::Array[Orb::Models::PriceCreateParams::cadence] end type model_type = :scalable_matrix_with_tiered_pricing @@ -200,7 +200,7 @@ module Orb class ModelType < Orb::Enum SCALABLE_MATRIX_WITH_TIERED_PRICING: :scalable_matrix_with_tiered_pricing - def self.values: -> Array[Orb::Models::PriceCreateParams::model_type] + def self.values: -> ::Array[Orb::Models::PriceCreateParams::model_type] end type unit_config = { unit_amount: String } @@ -246,7 +246,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit] end end @@ -279,7 +279,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit] end end @@ -303,22 +303,22 @@ module Orb type matrix_config = { default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::BaseModel attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] ) -> void | ( ?Orb::Models::PriceCreateParams::matrix_config | Orb::BaseModel data @@ -327,15 +327,15 @@ module Orb def to_hash: -> Orb::Models::PriceCreateParams::matrix_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: - (dimension_values: Array[String?], unit_amount: String) -> void + (dimension_values: ::Array[String?], unit_amount: String) -> void | ( ?Orb::Models::PriceCreateParams::MatrixConfig::matrix_value | Orb::BaseModel data @@ -349,8 +349,8 @@ module Orb { allocation: Float, default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] } class MatrixWithAllocationConfig < Orb::BaseModel @@ -358,16 +358,16 @@ module Orb attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] def initialize: ( allocation: Float, default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] ) -> void | ( ?Orb::Models::PriceCreateParams::matrix_with_allocation_config @@ -377,15 +377,15 @@ module Orb def to_hash: -> Orb::Models::PriceCreateParams::matrix_with_allocation_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: - (dimension_values: Array[String?], unit_amount: String) -> void + (dimension_values: ::Array[String?], unit_amount: String) -> void | ( ?Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::matrix_value | Orb::BaseModel data @@ -396,14 +396,14 @@ module Orb end type tiered_config = - { tiers: Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] } + { tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] } class TieredConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] + tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] ) -> void | ( ?Orb::Models::PriceCreateParams::tiered_config | Orb::BaseModel data @@ -433,14 +433,16 @@ module Orb end type tiered_bps_config = - { tiers: Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] } + { + tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] + } class TieredBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] ) -> void | ( ?Orb::Models::PriceCreateParams::tiered_bps_config @@ -499,14 +501,14 @@ module Orb end type bulk_bps_config = - { tiers: Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] } + { tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] ) -> void | ( ?Orb::Models::PriceCreateParams::bulk_bps_config @@ -541,14 +543,14 @@ module Orb end type bulk_config = - { tiers: Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] } + { tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] } class BulkConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] + tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] ) -> void | ( ?Orb::Models::PriceCreateParams::bulk_config | Orb::BaseModel data diff --git a/sig/orb/models/price_evaluate_params.rbs b/sig/orb/models/price_evaluate_params.rbs index e5ecdab8..7d6f2c52 100644 --- a/sig/orb/models/price_evaluate_params.rbs +++ b/sig/orb/models/price_evaluate_params.rbs @@ -7,7 +7,7 @@ module Orb customer_id: String?, external_customer_id: String?, filter: String?, - grouping_keys: Array[String] + grouping_keys: ::Array[String] } & Orb::request_parameters @@ -25,9 +25,9 @@ module Orb attr_accessor filter: String? - attr_reader grouping_keys: Array[String]? + attr_reader grouping_keys: ::Array[String]? - def grouping_keys=: (Array[String]) -> void + def grouping_keys=: (::Array[String]) -> void def initialize: ( @@ -36,7 +36,7 @@ module Orb customer_id: String?, external_customer_id: String?, filter: String?, - grouping_keys: Array[String], + grouping_keys: ::Array[String], request_options: Orb::request_opts ) -> void | (?Orb::Models::price_evaluate_params | Orb::BaseModel data) -> void diff --git a/sig/orb/models/price_evaluate_response.rbs b/sig/orb/models/price_evaluate_response.rbs index 6c4decbc..be91ac13 100644 --- a/sig/orb/models/price_evaluate_response.rbs +++ b/sig/orb/models/price_evaluate_response.rbs @@ -1,13 +1,13 @@ module Orb module Models type price_evaluate_response = - { data: Array[Orb::Models::EvaluatePriceGroup] } + { data: ::Array[Orb::Models::EvaluatePriceGroup] } class PriceEvaluateResponse < Orb::BaseModel - attr_accessor data: Array[Orb::Models::EvaluatePriceGroup] + attr_accessor data: ::Array[Orb::Models::EvaluatePriceGroup] def initialize: - (data: Array[Orb::Models::EvaluatePriceGroup]) -> void + (data: ::Array[Orb::Models::EvaluatePriceGroup]) -> void | (?Orb::Models::price_evaluate_response | Orb::BaseModel data) -> void def to_hash: -> Orb::Models::price_evaluate_response diff --git a/sig/orb/models/price_update_params.rbs b/sig/orb/models/price_update_params.rbs index 7bec31c8..08aa69fc 100644 --- a/sig/orb/models/price_update_params.rbs +++ b/sig/orb/models/price_update_params.rbs @@ -1,17 +1,17 @@ module Orb module Models type price_update_params = - { metadata: Hash[Symbol, String?]? } & Orb::request_parameters + { metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters class PriceUpdateParams < Orb::BaseModel extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> void | (?Orb::Models::price_update_params | Orb::BaseModel data) -> void 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 2fa964c1..23895fcb 100644 --- a/sig/orb/models/prices/external_price_id_update_params.rbs +++ b/sig/orb/models/prices/external_price_id_update_params.rbs @@ -2,17 +2,17 @@ module Orb module Models module Prices type external_price_id_update_params = - { metadata: Hash[Symbol, String?]? } & Orb::request_parameters + { metadata: ::Hash[Symbol, String?]? } & Orb::request_parameters class ExternalPriceIDUpdateParams < Orb::BaseModel extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> void | ( diff --git a/sig/orb/models/subscription.rbs b/sig/orb/models/subscription.rbs index eb3da63e..0ca41072 100644 --- a/sig/orb/models/subscription.rbs +++ b/sig/orb/models/subscription.rbs @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::Subscription::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::Subscription::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::Subscription::discount_interval], + discount_intervals: ::Array[Orb::Models::Subscription::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::Subscription::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::Subscription::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::Subscription::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::Subscription::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::Subscription::PriceInterval], + price_intervals: ::Array[Orb::Models::Subscription::PriceInterval], redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon?, start_date: Time, status: Orb::Models::Subscription::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::Subscription::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::Subscription::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::Subscription::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::Subscription::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::Subscription::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::Subscription::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::Subscription::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::Subscription::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::Subscription::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::Subscription::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::Subscription::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::Subscription::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::Subscription::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::Subscription::discount_interval], + discount_intervals: ::Array[Orb::Models::Subscription::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::Subscription::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::Subscription::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::Subscription::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::Subscription::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::Subscription::PriceInterval], + price_intervals: ::Array[Orb::Models::Subscription::PriceInterval], redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon?, start_date: Time, status: Orb::Models::Subscription::status, @@ -116,7 +116,7 @@ module Orb { id: String, adjustment: Orb::Models::Subscription::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -126,7 +126,7 @@ module Orb attr_accessor adjustment: Orb::Models::Subscription::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -136,7 +136,7 @@ module Orb ( id: String, adjustment: Orb::Models::Subscription::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -148,32 +148,30 @@ module Orb def to_hash: -> Orb::Models::Subscription::adjustment_interval type adjustment = - 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 + Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -181,46 +179,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -228,70 +228,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -299,12 +299,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -319,7 +319,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -328,30 +328,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -364,7 +364,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -372,14 +372,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -412,8 +412,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -422,9 +422,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -435,8 +435,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -451,8 +451,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -460,9 +460,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -474,8 +474,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -491,8 +491,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -500,9 +500,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -514,8 +514,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -561,17 +561,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -581,8 +581,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -596,17 +596,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -616,8 +616,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -636,7 +636,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -652,7 +652,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -665,7 +665,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -722,7 +722,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::Subscription::status] + def self.values: -> ::Array[Orb::Models::Subscription::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_cancel_params.rbs b/sig/orb/models/subscription_cancel_params.rbs index 185db643..d3a5aff4 100644 --- a/sig/orb/models/subscription_cancel_params.rbs +++ b/sig/orb/models/subscription_cancel_params.rbs @@ -35,7 +35,7 @@ module Orb IMMEDIATE: :immediate REQUESTED_DATE: :requested_date - def self.values: -> Array[Orb::Models::SubscriptionCancelParams::cancel_option] + def self.values: -> ::Array[Orb::Models::SubscriptionCancelParams::cancel_option] end end end diff --git a/sig/orb/models/subscription_cancel_response.rbs b/sig/orb/models/subscription_cancel_response.rbs index 862f1b48..6af9ab13 100644 --- a/sig/orb/models/subscription_cancel_response.rbs +++ b/sig/orb/models/subscription_cancel_response.rbs @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionCancelResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionCancelResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionCancelResponse::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::SubscriptionCancelResponse::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::SubscriptionCancelResponse::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::SubscriptionCancelResponse::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionCancelResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionCancelResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionCancelResponse::status, @@ -118,7 +118,7 @@ module Orb { id: String, adjustment: Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -128,7 +128,7 @@ module Orb attr_accessor adjustment: Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -138,7 +138,7 @@ module Orb ( id: String, adjustment: Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -150,32 +150,30 @@ module Orb def to_hash: -> Orb::Models::SubscriptionCancelResponse::adjustment_interval type adjustment = - 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 + Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -183,46 +181,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -230,70 +230,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -301,12 +301,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -321,7 +321,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -330,30 +330,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -366,7 +366,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -374,14 +374,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -414,8 +414,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -424,9 +424,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -437,8 +437,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -453,8 +453,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -462,9 +462,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -476,8 +476,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -493,8 +493,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -502,9 +502,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -516,8 +516,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -563,17 +563,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -583,8 +583,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -599,17 +599,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -619,8 +619,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -640,7 +640,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -656,7 +656,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -669,7 +669,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -728,7 +728,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionCancelResponse::status] + def self.values: -> ::Array[Orb::Models::SubscriptionCancelResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index 49f2e3f7..bb35ec07 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -2,8 +2,8 @@ module Orb module Models type subscription_create_params = { - add_adjustments: Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, - add_prices: Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, + add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, + add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, align_billing_with_subscription_start_date: bool, auto_collection: bool?, aws_region: String?, @@ -20,16 +20,16 @@ module Orb filter: String?, initial_phase_order: Integer?, invoicing_threshold: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, net_terms: Integer?, per_credit_overage_amount: Float?, plan_id: String?, plan_version_number: Integer?, - price_overrides: Array[top]?, - remove_adjustments: Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, - remove_prices: Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, - replace_adjustments: Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, - replace_prices: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, + price_overrides: ::Array[top]?, + remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, + remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, + replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, + replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, start_date: Time?, trial_duration_days: Integer? } @@ -39,9 +39,9 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_accessor add_adjustments: Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]? + attr_accessor add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]? - attr_accessor add_prices: Array[Orb::Models::SubscriptionCreateParams::AddPrice]? + attr_accessor add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]? attr_reader align_billing_with_subscription_start_date: bool? @@ -77,7 +77,7 @@ module Orb attr_accessor invoicing_threshold: String? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor net_terms: Integer? @@ -87,15 +87,15 @@ module Orb attr_accessor plan_version_number: Integer? - attr_accessor price_overrides: Array[top]? + attr_accessor price_overrides: ::Array[top]? - attr_accessor remove_adjustments: Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]? + attr_accessor remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]? - attr_accessor remove_prices: Array[Orb::Models::SubscriptionCreateParams::RemovePrice]? + attr_accessor remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]? - attr_accessor replace_adjustments: Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]? + attr_accessor replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]? - attr_accessor replace_prices: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]? + attr_accessor replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]? attr_accessor start_date: Time? @@ -103,8 +103,8 @@ module Orb def initialize: ( - add_adjustments: Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, - add_prices: Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, + add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, + add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, align_billing_with_subscription_start_date: bool, auto_collection: bool?, aws_region: String?, @@ -121,16 +121,16 @@ module Orb filter: String?, initial_phase_order: Integer?, invoicing_threshold: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, net_terms: Integer?, per_credit_overage_amount: Float?, plan_id: String?, plan_version_number: Integer?, - price_overrides: Array[top]?, - remove_adjustments: Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, - remove_prices: Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, - replace_adjustments: Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, - replace_prices: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, + price_overrides: ::Array[top]?, + remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, + remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, + replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, + replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, start_date: Time?, trial_duration_days: Integer?, request_options: Orb::request_opts @@ -183,7 +183,7 @@ module Orb type new_percentage_discount = { adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], percentage_discount: Float, is_invoice_level: bool } @@ -191,7 +191,7 @@ module Orb class NewPercentageDiscount < Orb::BaseModel attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor percentage_discount: Float @@ -201,7 +201,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], percentage_discount: Float, is_invoice_level: bool, adjustment_type: :percentage_discount @@ -217,7 +217,7 @@ module Orb type new_usage_discount = { adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, is_invoice_level: bool } @@ -225,7 +225,7 @@ module Orb class NewUsageDiscount < Orb::BaseModel attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor usage_discount: Float @@ -235,7 +235,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, is_invoice_level: bool, adjustment_type: :usage_discount @@ -252,7 +252,7 @@ module Orb { adjustment_type: :amount_discount, amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool } @@ -261,7 +261,7 @@ module Orb attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_reader is_invoice_level: bool? @@ -270,7 +270,7 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, adjustment_type: :amount_discount ) -> void @@ -285,7 +285,7 @@ module Orb type new_minimum = { adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], item_id: String, minimum_amount: String, is_invoice_level: bool @@ -294,7 +294,7 @@ module Orb class NewMinimum < Orb::BaseModel attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor item_id: String @@ -306,7 +306,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], item_id: String, minimum_amount: String, is_invoice_level: bool, @@ -323,7 +323,7 @@ module Orb type new_maximum = { adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String, is_invoice_level: bool } @@ -331,7 +331,7 @@ module Orb class NewMaximum < Orb::BaseModel attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String @@ -341,7 +341,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String, is_invoice_level: bool, adjustment_type: :maximum @@ -360,7 +360,7 @@ module Orb type add_price = { - discounts: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]?, + discounts: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]?, end_date: Time?, external_price_id: String?, maximum_amount: String?, @@ -372,7 +372,7 @@ module Orb } class AddPrice < Orb::BaseModel - attr_accessor discounts: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]? + attr_accessor discounts: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]? attr_accessor end_date: Time? @@ -392,7 +392,7 @@ module Orb def initialize: ( - discounts: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]?, + discounts: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]?, end_date: Time?, external_price_id: String?, maximum_amount: String?, @@ -447,7 +447,7 @@ module Orb USAGE: :usage AMOUNT: :amount - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type] end end @@ -488,7 +488,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -521,7 +521,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -540,7 +540,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit ) -> void @@ -567,7 +567,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -614,7 +614,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -647,7 +647,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -668,7 +668,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -701,7 +701,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -720,7 +720,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :package ) -> void @@ -747,7 +747,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -797,7 +797,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -830,7 +830,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -851,7 +851,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -884,7 +884,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -903,7 +903,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :matrix ) -> void @@ -930,28 +930,28 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = { default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::BaseModel attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] ) -> void | ( ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -961,16 +961,16 @@ module Orb def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: ( - dimension_values: Array[String?], + dimension_values: ::Array[String?], unit_amount: String ) -> void | ( @@ -1011,7 +1011,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -1044,7 +1044,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1065,7 +1065,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -1098,7 +1098,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -1117,7 +1117,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered ) -> void @@ -1144,20 +1144,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = { - tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] } class TieredConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -1220,7 +1220,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -1253,7 +1253,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1274,7 +1274,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -1307,7 +1307,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -1326,7 +1326,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_bps ) -> void @@ -1353,20 +1353,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = { - tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -1437,7 +1437,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1470,7 +1470,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1491,7 +1491,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -1524,7 +1524,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -1543,7 +1543,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bps ) -> void @@ -1587,7 +1587,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -1619,7 +1619,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1652,7 +1652,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1673,7 +1673,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -1706,7 +1706,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -1725,7 +1725,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk_bps ) -> void @@ -1738,15 +1738,15 @@ module Orb type bulk_bps_config = { - tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -1800,7 +1800,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1832,7 +1832,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1865,7 +1865,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1886,7 +1886,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -1919,7 +1919,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -1938,7 +1938,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk ) -> void @@ -1951,15 +1951,15 @@ module Orb type bulk_config = { - tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] } class BulkConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -2002,7 +2002,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -2034,7 +2034,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -2067,7 +2067,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2078,7 +2078,7 @@ module Orb item_id: String, model_type: :threshold_total_amount, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -2088,7 +2088,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2101,7 +2101,7 @@ module Orb attr_accessor name: String - attr_accessor threshold_total_amount_config: Hash[Symbol, top] + attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2121,7 +2121,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2130,7 +2130,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, item_id: String, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -2140,7 +2140,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :threshold_total_amount ) -> void @@ -2167,7 +2167,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -2199,7 +2199,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -2232,7 +2232,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2243,7 +2243,7 @@ module Orb item_id: String, model_type: :tiered_package, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, @@ -2253,7 +2253,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2266,7 +2266,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_config: Hash[Symbol, top] + attr_accessor tiered_package_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2286,7 +2286,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2295,7 +2295,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence, item_id: String, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, @@ -2305,7 +2305,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_package ) -> void @@ -2332,7 +2332,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2364,7 +2364,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2397,7 +2397,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2408,7 +2408,7 @@ module Orb item_id: String, model_type: :tiered_with_minimum, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -2418,7 +2418,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2431,7 +2431,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2451,7 +2451,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2460,7 +2460,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, item_id: String, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -2470,7 +2470,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_with_minimum ) -> void @@ -2497,7 +2497,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2529,7 +2529,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2562,7 +2562,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2573,7 +2573,7 @@ module Orb item_id: String, model_type: :unit_with_percent, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, @@ -2583,7 +2583,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2596,7 +2596,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_percent_config: Hash[Symbol, top] + attr_accessor unit_with_percent_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2616,7 +2616,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2625,7 +2625,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, item_id: String, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, @@ -2635,7 +2635,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit_with_percent ) -> void @@ -2662,7 +2662,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -2694,7 +2694,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -2727,7 +2727,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2738,7 +2738,7 @@ module Orb item_id: String, model_type: :package_with_allocation, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -2748,7 +2748,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2761,7 +2761,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: Hash[Symbol, top] + attr_accessor package_with_allocation_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2781,7 +2781,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2790,7 +2790,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, item_id: String, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -2800,7 +2800,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :package_with_allocation ) -> void @@ -2827,7 +2827,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2859,7 +2859,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2892,7 +2892,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2903,7 +2903,7 @@ module Orb item_id: String, model_type: :tiered_with_proration, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, @@ -2913,7 +2913,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2926,7 +2926,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_proration_config: Hash[Symbol, top] + attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2946,7 +2946,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2955,7 +2955,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence, item_id: String, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, @@ -2965,7 +2965,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_with_proration ) -> void @@ -2992,7 +2992,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3024,7 +3024,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3057,7 +3057,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3068,7 +3068,7 @@ module Orb item_id: String, model_type: :unit_with_proration, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, @@ -3078,7 +3078,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -3091,7 +3091,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_proration_config: Hash[Symbol, top] + attr_accessor unit_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -3111,7 +3111,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -3120,7 +3120,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, item_id: String, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, @@ -3130,7 +3130,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit_with_proration ) -> void @@ -3157,7 +3157,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3189,7 +3189,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3222,7 +3222,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3230,7 +3230,7 @@ module Orb type new_subscription_grouped_allocation_price = { cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, @@ -3243,14 +3243,14 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence - attr_accessor grouped_allocation_config: Hash[Symbol, top] + attr_accessor grouped_allocation_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -3276,14 +3276,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -3295,7 +3295,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :grouped_allocation ) -> void @@ -3322,7 +3322,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -3354,7 +3354,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3387,7 +3387,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3395,7 +3395,7 @@ module Orb type new_subscription_grouped_with_prorated_minimum_price = { cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, @@ -3408,14 +3408,14 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence - attr_accessor grouped_with_prorated_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -3441,14 +3441,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -3460,7 +3460,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :grouped_with_prorated_minimum ) -> void @@ -3487,7 +3487,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3519,7 +3519,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3552,14 +3552,14 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end type new_subscription_bulk_with_proration_price = { - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, model_type: :bulk_with_proration, @@ -3573,12 +3573,12 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel - attr_accessor bulk_with_proration_config: Hash[Symbol, top] + attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence @@ -3606,13 +3606,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, name: String, @@ -3625,7 +3625,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk_with_proration ) -> void @@ -3652,7 +3652,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3684,7 +3684,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3717,7 +3717,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3753,7 +3753,7 @@ module Orb AWS: :aws AZURE: :azure - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::external_marketplace] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::external_marketplace] end type remove_adjustment = { adjustment_id: String } @@ -3822,7 +3822,7 @@ module Orb type new_percentage_discount = { adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], percentage_discount: Float, is_invoice_level: bool } @@ -3830,7 +3830,7 @@ module Orb class NewPercentageDiscount < Orb::BaseModel attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor percentage_discount: Float @@ -3840,7 +3840,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], percentage_discount: Float, is_invoice_level: bool, adjustment_type: :percentage_discount @@ -3856,7 +3856,7 @@ module Orb type new_usage_discount = { adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, is_invoice_level: bool } @@ -3864,7 +3864,7 @@ module Orb class NewUsageDiscount < Orb::BaseModel attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor usage_discount: Float @@ -3874,7 +3874,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, is_invoice_level: bool, adjustment_type: :usage_discount @@ -3891,7 +3891,7 @@ module Orb { adjustment_type: :amount_discount, amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool } @@ -3900,7 +3900,7 @@ module Orb attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_reader is_invoice_level: bool? @@ -3909,7 +3909,7 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, adjustment_type: :amount_discount ) -> void @@ -3924,7 +3924,7 @@ module Orb type new_minimum = { adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], item_id: String, minimum_amount: String, is_invoice_level: bool @@ -3933,7 +3933,7 @@ module Orb class NewMinimum < Orb::BaseModel attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor item_id: String @@ -3945,7 +3945,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], item_id: String, minimum_amount: String, is_invoice_level: bool, @@ -3962,7 +3962,7 @@ module Orb type new_maximum = { adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String, is_invoice_level: bool } @@ -3970,7 +3970,7 @@ module Orb class NewMaximum < Orb::BaseModel attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String @@ -3980,7 +3980,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String, is_invoice_level: bool, adjustment_type: :maximum @@ -4000,7 +4000,7 @@ module Orb type replace_price = { replaces_price_id: String, - discounts: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]?, + discounts: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]?, external_price_id: String?, fixed_price_quantity: Float?, maximum_amount: String?, @@ -4012,7 +4012,7 @@ module Orb class ReplacePrice < Orb::BaseModel attr_accessor replaces_price_id: String - attr_accessor discounts: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]? + attr_accessor discounts: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]? attr_accessor external_price_id: String? @@ -4029,7 +4029,7 @@ module Orb def initialize: ( replaces_price_id: String, - discounts: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]?, + discounts: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]?, external_price_id: String?, fixed_price_quantity: Float?, maximum_amount: String?, @@ -4082,7 +4082,7 @@ module Orb USAGE: :usage AMOUNT: :amount - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type] end end @@ -4123,7 +4123,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -4156,7 +4156,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -4175,7 +4175,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit ) -> void @@ -4202,7 +4202,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -4249,7 +4249,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -4282,7 +4282,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4303,7 +4303,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -4336,7 +4336,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -4355,7 +4355,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :package ) -> void @@ -4382,7 +4382,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -4432,7 +4432,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4465,7 +4465,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4486,7 +4486,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -4519,7 +4519,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -4538,7 +4538,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :matrix ) -> void @@ -4565,28 +4565,28 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = { default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::BaseModel attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] ) -> void | ( ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -4596,16 +4596,16 @@ module Orb def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: ( - dimension_values: Array[String?], + dimension_values: ::Array[String?], unit_amount: String ) -> void | ( @@ -4646,7 +4646,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -4679,7 +4679,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4700,7 +4700,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -4733,7 +4733,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -4752,7 +4752,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered ) -> void @@ -4779,20 +4779,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = { - tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] } class TieredConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -4855,7 +4855,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -4888,7 +4888,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4909,7 +4909,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -4942,7 +4942,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -4961,7 +4961,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_bps ) -> void @@ -4988,20 +4988,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = { - tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -5072,7 +5072,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -5105,7 +5105,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5126,7 +5126,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -5159,7 +5159,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -5178,7 +5178,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bps ) -> void @@ -5222,7 +5222,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -5254,7 +5254,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -5287,7 +5287,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5308,7 +5308,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -5341,7 +5341,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -5360,7 +5360,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk_bps ) -> void @@ -5373,15 +5373,15 @@ module Orb type bulk_bps_config = { - tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -5435,7 +5435,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -5467,7 +5467,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -5500,7 +5500,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5521,7 +5521,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -5554,7 +5554,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -5573,7 +5573,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk ) -> void @@ -5586,15 +5586,15 @@ module Orb type bulk_config = { - tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] } class BulkConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -5637,7 +5637,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -5669,7 +5669,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -5702,7 +5702,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5713,7 +5713,7 @@ module Orb item_id: String, model_type: :threshold_total_amount, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -5723,7 +5723,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -5736,7 +5736,7 @@ module Orb attr_accessor name: String - attr_accessor threshold_total_amount_config: Hash[Symbol, top] + attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -5756,7 +5756,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -5765,7 +5765,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, item_id: String, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -5775,7 +5775,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :threshold_total_amount ) -> void @@ -5802,7 +5802,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -5834,7 +5834,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -5867,7 +5867,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5878,7 +5878,7 @@ module Orb item_id: String, model_type: :tiered_package, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, @@ -5888,7 +5888,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -5901,7 +5901,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_config: Hash[Symbol, top] + attr_accessor tiered_package_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -5921,7 +5921,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -5930,7 +5930,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence, item_id: String, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, @@ -5940,7 +5940,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_package ) -> void @@ -5967,7 +5967,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -5999,7 +5999,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -6032,7 +6032,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6043,7 +6043,7 @@ module Orb item_id: String, model_type: :tiered_with_minimum, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -6053,7 +6053,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -6066,7 +6066,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -6086,7 +6086,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -6095,7 +6095,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, item_id: String, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -6105,7 +6105,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_with_minimum ) -> void @@ -6132,7 +6132,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -6164,7 +6164,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -6197,7 +6197,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6208,7 +6208,7 @@ module Orb item_id: String, model_type: :unit_with_percent, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, @@ -6218,7 +6218,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -6231,7 +6231,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_percent_config: Hash[Symbol, top] + attr_accessor unit_with_percent_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -6251,7 +6251,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -6260,7 +6260,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, item_id: String, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, @@ -6270,7 +6270,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit_with_percent ) -> void @@ -6297,7 +6297,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -6329,7 +6329,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -6362,7 +6362,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6373,7 +6373,7 @@ module Orb item_id: String, model_type: :package_with_allocation, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -6383,7 +6383,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -6396,7 +6396,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: Hash[Symbol, top] + attr_accessor package_with_allocation_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -6416,7 +6416,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -6425,7 +6425,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, item_id: String, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -6435,7 +6435,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :package_with_allocation ) -> void @@ -6462,7 +6462,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -6494,7 +6494,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -6527,7 +6527,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6538,7 +6538,7 @@ module Orb item_id: String, model_type: :tiered_with_proration, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, @@ -6548,7 +6548,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -6561,7 +6561,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_proration_config: Hash[Symbol, top] + attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -6581,7 +6581,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -6590,7 +6590,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence, item_id: String, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, @@ -6600,7 +6600,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_with_proration ) -> void @@ -6627,7 +6627,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -6659,7 +6659,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -6692,7 +6692,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6703,7 +6703,7 @@ module Orb item_id: String, model_type: :unit_with_proration, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, @@ -6713,7 +6713,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -6726,7 +6726,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_proration_config: Hash[Symbol, top] + attr_accessor unit_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -6746,7 +6746,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -6755,7 +6755,7 @@ module Orb cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, item_id: String, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, @@ -6765,7 +6765,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit_with_proration ) -> void @@ -6792,7 +6792,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -6824,7 +6824,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -6857,7 +6857,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6865,7 +6865,7 @@ module Orb type new_subscription_grouped_allocation_price = { cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, @@ -6878,14 +6878,14 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence - attr_accessor grouped_allocation_config: Hash[Symbol, top] + attr_accessor grouped_allocation_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -6911,14 +6911,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -6930,7 +6930,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :grouped_allocation ) -> void @@ -6957,7 +6957,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -6989,7 +6989,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7022,7 +7022,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7030,7 +7030,7 @@ module Orb type new_subscription_grouped_with_prorated_minimum_price = { cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, @@ -7043,14 +7043,14 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence - attr_accessor grouped_with_prorated_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -7076,14 +7076,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -7095,7 +7095,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :grouped_with_prorated_minimum ) -> void @@ -7122,7 +7122,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -7154,7 +7154,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -7187,14 +7187,14 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end type new_subscription_bulk_with_proration_price = { - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, model_type: :bulk_with_proration, @@ -7208,12 +7208,12 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel - attr_accessor bulk_with_proration_config: Hash[Symbol, top] + attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence @@ -7241,13 +7241,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, name: String, @@ -7260,7 +7260,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk_with_proration ) -> void @@ -7287,7 +7287,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -7319,7 +7319,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7352,7 +7352,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end diff --git a/sig/orb/models/subscription_create_response.rbs b/sig/orb/models/subscription_create_response.rbs index 8b1ffdbc..634fe6f6 100644 --- a/sig/orb/models/subscription_create_response.rbs +++ b/sig/orb/models/subscription_create_response.rbs @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionCreateResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionCreateResponse::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::SubscriptionCreateResponse::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::SubscriptionCreateResponse::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionCreateResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionCreateResponse::status, @@ -118,7 +118,7 @@ module Orb { id: String, adjustment: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -128,7 +128,7 @@ module Orb attr_accessor adjustment: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -138,7 +138,7 @@ module Orb ( id: String, adjustment: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -150,32 +150,30 @@ module Orb def to_hash: -> Orb::Models::SubscriptionCreateResponse::adjustment_interval type adjustment = - 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 + Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -183,46 +181,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -230,70 +230,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -301,12 +301,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -321,7 +321,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -330,30 +330,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -366,7 +366,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -374,14 +374,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -414,8 +414,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -424,9 +424,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -437,8 +437,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -453,8 +453,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -462,9 +462,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -476,8 +476,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -493,8 +493,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -502,9 +502,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -516,8 +516,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -563,17 +563,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -583,8 +583,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -599,17 +599,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -619,8 +619,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -640,7 +640,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -656,7 +656,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -669,7 +669,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -728,7 +728,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionCreateResponse::status] + def self.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_fetch_costs_params.rbs b/sig/orb/models/subscription_fetch_costs_params.rbs index 49ecb487..2c6dd039 100644 --- a/sig/orb/models/subscription_fetch_costs_params.rbs +++ b/sig/orb/models/subscription_fetch_costs_params.rbs @@ -41,7 +41,7 @@ module Orb PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> Array[Orb::Models::SubscriptionFetchCostsParams::view_mode] + def self.values: -> ::Array[Orb::Models::SubscriptionFetchCostsParams::view_mode] end end end diff --git a/sig/orb/models/subscription_fetch_costs_response.rbs b/sig/orb/models/subscription_fetch_costs_response.rbs index d1855b72..e22b9abe 100644 --- a/sig/orb/models/subscription_fetch_costs_response.rbs +++ b/sig/orb/models/subscription_fetch_costs_response.rbs @@ -1,13 +1,15 @@ module Orb module Models type subscription_fetch_costs_response = - { data: Array[Orb::Models::SubscriptionFetchCostsResponse::Data] } + { data: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] } class SubscriptionFetchCostsResponse < Orb::BaseModel - attr_accessor data: Array[Orb::Models::SubscriptionFetchCostsResponse::Data] + attr_accessor data: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] def initialize: - (data: Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) -> void + ( + data: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] + ) -> void | ( ?Orb::Models::subscription_fetch_costs_response | Orb::BaseModel data ) -> void @@ -16,7 +18,7 @@ module Orb type data = { - per_price_costs: Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], + per_price_costs: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], subtotal: String, timeframe_end: Time, timeframe_start: Time, @@ -24,7 +26,7 @@ module Orb } class Data < Orb::BaseModel - attr_accessor per_price_costs: Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost] + attr_accessor per_price_costs: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost] attr_accessor subtotal: String @@ -36,7 +38,7 @@ module Orb def initialize: ( - per_price_costs: Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], + per_price_costs: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], subtotal: String, timeframe_end: Time, timeframe_start: Time, diff --git a/sig/orb/models/subscription_fetch_usage_params.rbs b/sig/orb/models/subscription_fetch_usage_params.rbs index 84464d77..4201d5ed 100644 --- a/sig/orb/models/subscription_fetch_usage_params.rbs +++ b/sig/orb/models/subscription_fetch_usage_params.rbs @@ -64,7 +64,7 @@ module Orb class Granularity < Orb::Enum DAY: :day - def self.values: -> Array[Orb::Models::SubscriptionFetchUsageParams::granularity] + def self.values: -> ::Array[Orb::Models::SubscriptionFetchUsageParams::granularity] end type view_mode = :periodic | :cumulative @@ -73,7 +73,7 @@ module Orb PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> Array[Orb::Models::SubscriptionFetchUsageParams::view_mode] + def self.values: -> ::Array[Orb::Models::SubscriptionFetchUsageParams::view_mode] end end end diff --git a/sig/orb/models/subscription_list_params.rbs b/sig/orb/models/subscription_list_params.rbs index 121f9f8b..56142419 100644 --- a/sig/orb/models/subscription_list_params.rbs +++ b/sig/orb/models/subscription_list_params.rbs @@ -7,7 +7,7 @@ module Orb created_at_lt: Time?, created_at_lte: Time?, cursor: String?, - customer_id: Array[String]?, + customer_id: ::Array[String]?, external_customer_id: String?, limit: Integer, status: Orb::Models::SubscriptionListParams::status? @@ -28,7 +28,7 @@ module Orb attr_accessor cursor: String? - attr_accessor customer_id: Array[String]? + attr_accessor customer_id: ::Array[String]? attr_accessor external_customer_id: String? @@ -45,7 +45,7 @@ module Orb created_at_lt: Time?, created_at_lte: Time?, cursor: String?, - customer_id: Array[String]?, + customer_id: ::Array[String]?, external_customer_id: String?, limit: Integer, status: Orb::Models::SubscriptionListParams::status?, @@ -62,7 +62,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionListParams::status] + def self.values: -> ::Array[Orb::Models::SubscriptionListParams::status] end end end diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index ac1db556..3a50b5d8 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -2,10 +2,10 @@ module Orb module Models type subscription_price_intervals_params = { - add: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], - edit: Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] + add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], + add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], + edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] } & Orb::request_parameters @@ -13,36 +13,36 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - attr_reader add: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]? + attr_reader add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]? def add=: ( - Array[Orb::Models::SubscriptionPriceIntervalsParams::Add] + ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add] ) -> void - attr_reader add_adjustments: Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]? + attr_reader add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]? def add_adjustments=: ( - Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment] + ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment] ) -> void - attr_reader edit: Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]? + attr_reader edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]? def edit=: ( - Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit] + ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit] ) -> void - attr_reader edit_adjustments: Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]? + attr_reader edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]? def edit_adjustments=: ( - Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] + ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] ) -> void def initialize: ( - add: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], - edit: Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], + add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], + add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], + edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], request_options: Orb::request_opts ) -> void | ( @@ -56,10 +56,10 @@ module Orb { start_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::start_date, allocation_price: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice?, - discounts: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]?, + discounts: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]?, end_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::end_date?, external_price_id: String?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, maximum_amount: Float?, minimum_amount: Float?, price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?, @@ -71,13 +71,13 @@ module Orb attr_accessor allocation_price: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice? - attr_accessor discounts: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]? + attr_accessor discounts: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]? attr_accessor end_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::end_date? attr_accessor external_price_id: String? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]? attr_accessor maximum_amount: Float? @@ -91,10 +91,10 @@ module Orb ( start_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::start_date, allocation_price: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice?, - discounts: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]?, + discounts: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]?, end_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::end_date?, external_price_id: String?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, maximum_amount: Float?, minimum_amount: Float?, price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?, @@ -155,7 +155,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence] end end @@ -292,7 +292,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingUnitPrice < Orb::BaseModel @@ -324,7 +324,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -341,7 +341,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :unit ) -> void | ( @@ -367,7 +367,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -414,7 +414,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -447,7 +447,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -468,7 +468,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingPackagePrice < Orb::BaseModel @@ -500,7 +500,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -517,7 +517,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :package ) -> void | ( @@ -543,7 +543,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::cadence] end type package_config = @@ -593,7 +593,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -626,7 +626,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -647,7 +647,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingMatrixPrice < Orb::BaseModel @@ -679,7 +679,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -696,7 +696,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :matrix ) -> void | ( @@ -722,28 +722,28 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::cadence] end type matrix_config = { default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::BaseModel attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] ) -> void | ( ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::matrix_config @@ -753,16 +753,16 @@ module Orb def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::matrix_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: ( - dimension_values: Array[String?], + dimension_values: ::Array[String?], unit_amount: String ) -> void | ( @@ -803,7 +803,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -836,7 +836,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -857,7 +857,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingMatrixWithAllocationPrice < Orb::BaseModel @@ -889,7 +889,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -906,7 +906,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :matrix_with_allocation ) -> void | ( @@ -932,15 +932,15 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::cadence] end type matrix_with_allocation_config = { allocation: Float, default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] } class MatrixWithAllocationConfig < Orb::BaseModel @@ -948,16 +948,16 @@ module Orb attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] def initialize: ( allocation: Float, default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] ) -> void | ( ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::matrix_with_allocation_config @@ -967,16 +967,16 @@ module Orb def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::matrix_with_allocation_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: ( - dimension_values: Array[String?], + dimension_values: ::Array[String?], unit_amount: String ) -> void | ( @@ -1017,7 +1017,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -1050,7 +1050,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1071,7 +1071,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingTieredPrice < Orb::BaseModel @@ -1103,7 +1103,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -1120,7 +1120,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered ) -> void | ( @@ -1146,20 +1146,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::cadence] end type tiered_config = { - tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] } class TieredConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::tiered_config @@ -1222,7 +1222,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -1255,7 +1255,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1276,7 +1276,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingTieredBpsPrice < Orb::BaseModel @@ -1308,7 +1308,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -1325,7 +1325,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered_bps ) -> void | ( @@ -1351,20 +1351,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::cadence] end type tiered_bps_config = { - tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::tiered_bps_config @@ -1435,7 +1435,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1468,7 +1468,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1489,7 +1489,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingBpsPrice < Orb::BaseModel @@ -1521,7 +1521,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -1538,7 +1538,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :bps ) -> void | ( @@ -1581,7 +1581,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::cadence] end type billing_cycle_configuration = @@ -1613,7 +1613,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1646,7 +1646,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1667,7 +1667,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingBulkBpsPrice < Orb::BaseModel @@ -1699,7 +1699,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -1716,7 +1716,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :bulk_bps ) -> void | ( @@ -1728,15 +1728,15 @@ module Orb type bulk_bps_config = { - tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::bulk_bps_config @@ -1790,7 +1790,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1822,7 +1822,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1855,7 +1855,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1876,7 +1876,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingBulkPrice < Orb::BaseModel @@ -1908,7 +1908,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -1925,7 +1925,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :bulk ) -> void | ( @@ -1937,15 +1937,15 @@ module Orb type bulk_config = { - tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] } class BulkConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::bulk_config @@ -1988,7 +1988,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::cadence] end type billing_cycle_configuration = @@ -2020,7 +2020,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -2053,7 +2053,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2065,7 +2065,7 @@ module Orb item_id: String, model_type: :threshold_total_amount, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -2074,7 +2074,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingThresholdTotalAmountPrice < Orb::BaseModel @@ -2088,7 +2088,7 @@ module Orb attr_accessor name: String - attr_accessor threshold_total_amount_config: Hash[Symbol, top] + attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2106,7 +2106,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -2114,7 +2114,7 @@ module Orb currency: String, item_id: String, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -2123,7 +2123,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :threshold_total_amount ) -> void | ( @@ -2149,7 +2149,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -2181,7 +2181,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -2214,7 +2214,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2226,7 +2226,7 @@ module Orb item_id: String, model_type: :tiered_package, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration?, @@ -2235,7 +2235,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingTieredPackagePrice < Orb::BaseModel @@ -2249,7 +2249,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_config: Hash[Symbol, top] + attr_accessor tiered_package_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2267,7 +2267,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -2275,7 +2275,7 @@ module Orb currency: String, item_id: String, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration?, @@ -2284,7 +2284,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered_package ) -> void | ( @@ -2310,7 +2310,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2342,7 +2342,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2375,7 +2375,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2384,7 +2384,7 @@ module Orb { cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::cadence, currency: String, - grouped_tiered_config: Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_tiered, name: String, @@ -2396,7 +2396,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingGroupedTieredPrice < Orb::BaseModel @@ -2404,7 +2404,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_tiered_config: Hash[Symbol, top] + attr_accessor grouped_tiered_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -2428,13 +2428,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::cadence, currency: String, - grouped_tiered_config: Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -2445,7 +2445,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :grouped_tiered ) -> void | ( @@ -2471,7 +2471,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::cadence] end type billing_cycle_configuration = @@ -2503,7 +2503,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -2536,7 +2536,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2546,7 +2546,7 @@ module Orb cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence, currency: String, item_id: String, - max_group_tiered_package_config: Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], model_type: :max_group_tiered_package, name: String, billable_metric_id: String?, @@ -2557,7 +2557,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingMaxGroupTieredPackagePrice < Orb::BaseModel @@ -2567,7 +2567,7 @@ module Orb attr_accessor item_id: String - attr_accessor max_group_tiered_package_config: Hash[Symbol, top] + attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top] attr_accessor model_type: :max_group_tiered_package @@ -2589,14 +2589,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence, currency: String, item_id: String, - max_group_tiered_package_config: Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], name: String, billable_metric_id: String?, billed_in_advance: bool?, @@ -2606,7 +2606,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :max_group_tiered_package ) -> void | ( @@ -2632,7 +2632,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2664,7 +2664,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2697,7 +2697,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2709,7 +2709,7 @@ module Orb item_id: String, model_type: :tiered_with_minimum, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -2718,7 +2718,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingTieredWithMinimumPrice < Orb::BaseModel @@ -2732,7 +2732,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2750,7 +2750,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -2758,7 +2758,7 @@ module Orb currency: String, item_id: String, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -2767,7 +2767,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered_with_minimum ) -> void | ( @@ -2793,7 +2793,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2825,7 +2825,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2858,7 +2858,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2870,7 +2870,7 @@ module Orb item_id: String, model_type: :package_with_allocation, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -2879,7 +2879,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingPackageWithAllocationPrice < Orb::BaseModel @@ -2893,7 +2893,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: Hash[Symbol, top] + attr_accessor package_with_allocation_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2911,7 +2911,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -2919,7 +2919,7 @@ module Orb currency: String, item_id: String, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -2928,7 +2928,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :package_with_allocation ) -> void | ( @@ -2954,7 +2954,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2986,7 +2986,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3019,7 +3019,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3031,7 +3031,7 @@ module Orb item_id: String, model_type: :tiered_package_with_minimum, name: String, - tiered_package_with_minimum_config: Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration?, @@ -3040,7 +3040,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingTieredPackageWithMinimumPrice < Orb::BaseModel @@ -3054,7 +3054,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_package_with_minimum_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -3072,7 +3072,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -3080,7 +3080,7 @@ module Orb currency: String, item_id: String, name: String, - tiered_package_with_minimum_config: Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration?, @@ -3089,7 +3089,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered_package_with_minimum ) -> void | ( @@ -3115,7 +3115,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3147,7 +3147,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3180,7 +3180,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3192,7 +3192,7 @@ module Orb item_id: String, model_type: :unit_with_percent, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration?, @@ -3201,7 +3201,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingUnitWithPercentPrice < Orb::BaseModel @@ -3215,7 +3215,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_percent_config: Hash[Symbol, top] + attr_accessor unit_with_percent_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -3233,7 +3233,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -3241,7 +3241,7 @@ module Orb currency: String, item_id: String, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration?, @@ -3250,7 +3250,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :unit_with_percent ) -> void | ( @@ -3276,7 +3276,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -3308,7 +3308,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -3341,7 +3341,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3353,7 +3353,7 @@ module Orb item_id: String, model_type: :tiered_with_proration, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration?, @@ -3362,7 +3362,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingTieredWithProrationPrice < Orb::BaseModel @@ -3376,7 +3376,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_proration_config: Hash[Symbol, top] + attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -3394,7 +3394,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -3402,7 +3402,7 @@ module Orb currency: String, item_id: String, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration?, @@ -3411,7 +3411,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :tiered_with_proration ) -> void | ( @@ -3437,7 +3437,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3469,7 +3469,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3502,7 +3502,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3514,7 +3514,7 @@ module Orb item_id: String, model_type: :unit_with_proration, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration?, @@ -3523,7 +3523,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingUnitWithProrationPrice < Orb::BaseModel @@ -3537,7 +3537,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_proration_config: Hash[Symbol, top] + attr_accessor unit_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -3555,7 +3555,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -3563,7 +3563,7 @@ module Orb currency: String, item_id: String, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration?, @@ -3572,7 +3572,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :unit_with_proration ) -> void | ( @@ -3598,7 +3598,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3630,7 +3630,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3663,7 +3663,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3672,7 +3672,7 @@ module Orb { cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::cadence, currency: String, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, @@ -3684,7 +3684,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingGroupedAllocationPrice < Orb::BaseModel @@ -3692,7 +3692,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_allocation_config: Hash[Symbol, top] + attr_accessor grouped_allocation_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -3716,13 +3716,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::cadence, currency: String, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -3733,7 +3733,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :grouped_allocation ) -> void | ( @@ -3759,7 +3759,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -3791,7 +3791,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3824,7 +3824,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3833,7 +3833,7 @@ module Orb { cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence, currency: String, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, @@ -3845,7 +3845,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingGroupedWithProratedMinimumPrice < Orb::BaseModel @@ -3853,7 +3853,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_with_prorated_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -3877,13 +3877,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence, currency: String, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -3894,7 +3894,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :grouped_with_prorated_minimum ) -> void | ( @@ -3920,7 +3920,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3952,7 +3952,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3985,7 +3985,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3994,7 +3994,7 @@ module Orb { cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence, currency: String, - grouped_with_metered_minimum_config: Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_metered_minimum, name: String, @@ -4006,7 +4006,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingGroupedWithMeteredMinimumPrice < Orb::BaseModel @@ -4014,7 +4014,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_with_metered_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -4038,13 +4038,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence, currency: String, - grouped_with_metered_minimum_config: Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -4055,7 +4055,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :grouped_with_metered_minimum ) -> void | ( @@ -4081,7 +4081,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -4113,7 +4113,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -4146,7 +4146,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4156,7 +4156,7 @@ module Orb cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence, currency: String, item_id: String, - matrix_with_display_name_config: Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], model_type: :matrix_with_display_name, name: String, billable_metric_id: String?, @@ -4167,7 +4167,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingMatrixWithDisplayNamePrice < Orb::BaseModel @@ -4177,7 +4177,7 @@ module Orb attr_accessor item_id: String - attr_accessor matrix_with_display_name_config: Hash[Symbol, top] + attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top] attr_accessor model_type: :matrix_with_display_name @@ -4199,14 +4199,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence, currency: String, item_id: String, - matrix_with_display_name_config: Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], name: String, billable_metric_id: String?, billed_in_advance: bool?, @@ -4216,7 +4216,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :matrix_with_display_name ) -> void | ( @@ -4242,7 +4242,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -4274,7 +4274,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -4307,14 +4307,14 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end type new_floating_bulk_with_proration_price = { - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence, currency: String, item_id: String, @@ -4328,11 +4328,11 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingBulkWithProrationPrice < Orb::BaseModel - attr_accessor bulk_with_proration_config: Hash[Symbol, top] + attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence @@ -4360,11 +4360,11 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence, currency: String, item_id: String, @@ -4377,7 +4377,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :bulk_with_proration ) -> void | ( @@ -4403,7 +4403,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -4435,7 +4435,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -4468,7 +4468,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4477,7 +4477,7 @@ module Orb { cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence, currency: String, - grouped_tiered_package_config: Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_tiered_package, name: String, @@ -4489,7 +4489,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingGroupedTieredPackagePrice < Orb::BaseModel @@ -4497,7 +4497,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_tiered_package_config: Hash[Symbol, top] + attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -4521,13 +4521,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence, currency: String, - grouped_tiered_package_config: Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -4538,7 +4538,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :grouped_tiered_package ) -> void | ( @@ -4564,7 +4564,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -4596,7 +4596,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4629,7 +4629,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4641,7 +4641,7 @@ module Orb item_id: String, model_type: :scalable_matrix_with_unit_pricing, name: String, - scalable_matrix_with_unit_pricing_config: Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, @@ -4650,7 +4650,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::BaseModel @@ -4664,7 +4664,7 @@ module Orb attr_accessor name: String - attr_accessor scalable_matrix_with_unit_pricing_config: Hash[Symbol, top] + attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -4682,7 +4682,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -4690,7 +4690,7 @@ module Orb currency: String, item_id: String, name: String, - scalable_matrix_with_unit_pricing_config: Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, @@ -4699,7 +4699,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :scalable_matrix_with_unit_pricing ) -> void | ( @@ -4725,7 +4725,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -4757,7 +4757,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -4790,7 +4790,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4802,7 +4802,7 @@ module Orb item_id: String, model_type: :scalable_matrix_with_tiered_pricing, name: String, - scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, @@ -4811,7 +4811,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]? + metadata: ::Hash[Symbol, String?]? } class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::BaseModel @@ -4825,7 +4825,7 @@ module Orb attr_accessor name: String - attr_accessor scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top] + attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -4843,7 +4843,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( @@ -4851,7 +4851,7 @@ module Orb currency: String, item_id: String, name: String, - scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, @@ -4860,7 +4860,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, model_type: :scalable_matrix_with_tiered_pricing ) -> void | ( @@ -4886,7 +4886,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -4918,7 +4918,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -4951,7 +4951,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4998,7 +4998,7 @@ module Orb type new_percentage_discount = { adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], percentage_discount: Float, is_invoice_level: bool } @@ -5006,7 +5006,7 @@ module Orb class NewPercentageDiscount < Orb::BaseModel attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor percentage_discount: Float @@ -5016,7 +5016,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], percentage_discount: Float, is_invoice_level: bool, adjustment_type: :percentage_discount @@ -5032,7 +5032,7 @@ module Orb type new_usage_discount = { adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, is_invoice_level: bool } @@ -5040,7 +5040,7 @@ module Orb class NewUsageDiscount < Orb::BaseModel attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor usage_discount: Float @@ -5050,7 +5050,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, is_invoice_level: bool, adjustment_type: :usage_discount @@ -5067,7 +5067,7 @@ module Orb { adjustment_type: :amount_discount, amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool } @@ -5076,7 +5076,7 @@ module Orb attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_reader is_invoice_level: bool? @@ -5085,7 +5085,7 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, adjustment_type: :amount_discount ) -> void @@ -5100,7 +5100,7 @@ module Orb type new_minimum = { adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], item_id: String, minimum_amount: String, is_invoice_level: bool @@ -5109,7 +5109,7 @@ module Orb class NewMinimum < Orb::BaseModel attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor item_id: String @@ -5121,7 +5121,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], item_id: String, minimum_amount: String, is_invoice_level: bool, @@ -5138,7 +5138,7 @@ module Orb type new_maximum = { adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String, is_invoice_level: bool } @@ -5146,7 +5146,7 @@ module Orb class NewMaximum < Orb::BaseModel attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String @@ -5156,7 +5156,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String, is_invoice_level: bool, adjustment_type: :maximum @@ -5190,7 +5190,7 @@ module Orb price_interval_id: String, billing_cycle_day: Integer?, end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date } @@ -5201,7 +5201,7 @@ module Orb attr_accessor end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]? attr_reader start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date? @@ -5214,7 +5214,7 @@ module Orb price_interval_id: String, billing_cycle_day: Integer?, end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date ) -> void | ( diff --git a/sig/orb/models/subscription_price_intervals_response.rbs b/sig/orb/models/subscription_price_intervals_response.rbs index 7de0d248..04ed1336 100644 --- a/sig/orb/models/subscription_price_intervals_response.rbs +++ b/sig/orb/models/subscription_price_intervals_response.rbs @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionPriceIntervalsResponse::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionPriceIntervalsResponse::status, @@ -119,7 +119,7 @@ module Orb { id: String, adjustment: Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -129,7 +129,7 @@ module Orb attr_accessor adjustment: Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -139,7 +139,7 @@ module Orb ( id: String, adjustment: Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -151,32 +151,30 @@ module Orb def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::adjustment_interval type adjustment = - 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 + Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -184,46 +182,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -231,70 +231,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -302,12 +302,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -322,7 +322,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -331,30 +331,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -367,7 +367,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -375,14 +375,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -415,8 +415,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -425,9 +425,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -438,8 +438,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -454,8 +454,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -463,9 +463,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -477,8 +477,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -494,8 +494,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -503,9 +503,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -517,8 +517,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -564,17 +564,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -584,8 +584,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -600,17 +600,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -620,8 +620,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -641,7 +641,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -657,7 +657,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -670,7 +670,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -729,7 +729,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionPriceIntervalsResponse::status] + def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index 514b60cf..423972f8 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -3,8 +3,8 @@ module Orb type subscription_schedule_plan_change_params = { change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option, - add_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, - add_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, + add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, + add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, align_billing_with_plan_change_date: bool?, auto_collection: bool?, billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, @@ -21,11 +21,11 @@ module Orb per_credit_overage_amount: Float?, plan_id: String?, plan_version_number: Integer?, - price_overrides: Array[top]?, - remove_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, - remove_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, - replace_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, - replace_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, + price_overrides: ::Array[top]?, + remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, + remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, + replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, + replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, trial_duration_days: Integer? } & Orb::request_parameters @@ -36,9 +36,9 @@ module Orb attr_accessor change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option - attr_accessor add_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]? + attr_accessor add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]? - attr_accessor add_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]? + attr_accessor add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]? attr_accessor align_billing_with_plan_change_date: bool? @@ -72,23 +72,23 @@ module Orb attr_accessor plan_version_number: Integer? - attr_accessor price_overrides: Array[top]? + attr_accessor price_overrides: ::Array[top]? - attr_accessor remove_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]? + attr_accessor remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]? - attr_accessor remove_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]? + attr_accessor remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]? - attr_accessor replace_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]? + attr_accessor replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]? - attr_accessor replace_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]? + attr_accessor replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]? attr_accessor trial_duration_days: Integer? def initialize: ( change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option, - add_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, - add_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, + add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, + add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, align_billing_with_plan_change_date: bool?, auto_collection: bool?, billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, @@ -105,11 +105,11 @@ module Orb per_credit_overage_amount: Float?, plan_id: String?, plan_version_number: Integer?, - price_overrides: Array[top]?, - remove_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, - remove_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, - replace_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, - replace_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, + price_overrides: ::Array[top]?, + remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, + remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, + replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, + replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, trial_duration_days: Integer?, request_options: Orb::request_opts ) -> void @@ -128,7 +128,7 @@ module Orb END_OF_SUBSCRIPTION_TERM: :end_of_subscription_term IMMEDIATE: :immediate - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::change_option] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::change_option] end type add_adjustment = @@ -173,7 +173,7 @@ module Orb type new_percentage_discount = { adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], percentage_discount: Float, is_invoice_level: bool } @@ -181,7 +181,7 @@ module Orb class NewPercentageDiscount < Orb::BaseModel attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor percentage_discount: Float @@ -191,7 +191,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], percentage_discount: Float, is_invoice_level: bool, adjustment_type: :percentage_discount @@ -207,7 +207,7 @@ module Orb type new_usage_discount = { adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, is_invoice_level: bool } @@ -215,7 +215,7 @@ module Orb class NewUsageDiscount < Orb::BaseModel attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor usage_discount: Float @@ -225,7 +225,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, is_invoice_level: bool, adjustment_type: :usage_discount @@ -242,7 +242,7 @@ module Orb { adjustment_type: :amount_discount, amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool } @@ -251,7 +251,7 @@ module Orb attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_reader is_invoice_level: bool? @@ -260,7 +260,7 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, adjustment_type: :amount_discount ) -> void @@ -275,7 +275,7 @@ module Orb type new_minimum = { adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], item_id: String, minimum_amount: String, is_invoice_level: bool @@ -284,7 +284,7 @@ module Orb class NewMinimum < Orb::BaseModel attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor item_id: String @@ -296,7 +296,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], item_id: String, minimum_amount: String, is_invoice_level: bool, @@ -313,7 +313,7 @@ module Orb type new_maximum = { adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String, is_invoice_level: bool } @@ -321,7 +321,7 @@ module Orb class NewMaximum < Orb::BaseModel attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String @@ -331,7 +331,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String, is_invoice_level: bool, adjustment_type: :maximum @@ -350,7 +350,7 @@ module Orb type add_price = { - discounts: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]?, + discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]?, end_date: Time?, external_price_id: String?, maximum_amount: String?, @@ -362,7 +362,7 @@ module Orb } class AddPrice < Orb::BaseModel - attr_accessor discounts: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]? + attr_accessor discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]? attr_accessor end_date: Time? @@ -382,7 +382,7 @@ module Orb def initialize: ( - discounts: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]?, + discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]?, end_date: Time?, external_price_id: String?, maximum_amount: String?, @@ -437,7 +437,7 @@ module Orb USAGE: :usage AMOUNT: :amount - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type] end end @@ -478,7 +478,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -511,7 +511,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -530,7 +530,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit ) -> void @@ -557,7 +557,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -604,7 +604,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -637,7 +637,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -658,7 +658,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -691,7 +691,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -710,7 +710,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :package ) -> void @@ -737,7 +737,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -787,7 +787,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -820,7 +820,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -841,7 +841,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -874,7 +874,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -893,7 +893,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :matrix ) -> void @@ -920,28 +920,28 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = { default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::BaseModel attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] ) -> void | ( ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -951,16 +951,16 @@ module Orb def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: ( - dimension_values: Array[String?], + dimension_values: ::Array[String?], unit_amount: String ) -> void | ( @@ -1001,7 +1001,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -1034,7 +1034,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1055,7 +1055,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -1088,7 +1088,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -1107,7 +1107,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered ) -> void @@ -1134,20 +1134,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = { - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] } class TieredConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -1210,7 +1210,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -1243,7 +1243,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1264,7 +1264,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -1297,7 +1297,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -1316,7 +1316,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_bps ) -> void @@ -1343,20 +1343,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = { - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -1427,7 +1427,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1460,7 +1460,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1481,7 +1481,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -1514,7 +1514,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -1533,7 +1533,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bps ) -> void @@ -1577,7 +1577,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -1609,7 +1609,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1642,7 +1642,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1663,7 +1663,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -1696,7 +1696,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -1715,7 +1715,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk_bps ) -> void @@ -1728,15 +1728,15 @@ module Orb type bulk_bps_config = { - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -1790,7 +1790,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1822,7 +1822,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1855,7 +1855,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1876,7 +1876,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -1909,7 +1909,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -1928,7 +1928,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk ) -> void @@ -1941,15 +1941,15 @@ module Orb type bulk_config = { - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] } class BulkConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -1992,7 +1992,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -2024,7 +2024,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -2057,7 +2057,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2068,7 +2068,7 @@ module Orb item_id: String, model_type: :threshold_total_amount, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -2078,7 +2078,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2091,7 +2091,7 @@ module Orb attr_accessor name: String - attr_accessor threshold_total_amount_config: Hash[Symbol, top] + attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2111,7 +2111,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2120,7 +2120,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, item_id: String, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -2130,7 +2130,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :threshold_total_amount ) -> void @@ -2157,7 +2157,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -2189,7 +2189,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -2222,7 +2222,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2233,7 +2233,7 @@ module Orb item_id: String, model_type: :tiered_package, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, @@ -2243,7 +2243,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2256,7 +2256,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_config: Hash[Symbol, top] + attr_accessor tiered_package_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2276,7 +2276,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2285,7 +2285,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence, item_id: String, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, @@ -2295,7 +2295,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_package ) -> void @@ -2322,7 +2322,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2354,7 +2354,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2387,7 +2387,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2398,7 +2398,7 @@ module Orb item_id: String, model_type: :tiered_with_minimum, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -2408,7 +2408,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2421,7 +2421,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2441,7 +2441,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2450,7 +2450,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, item_id: String, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -2460,7 +2460,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_with_minimum ) -> void @@ -2487,7 +2487,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2519,7 +2519,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2552,7 +2552,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2563,7 +2563,7 @@ module Orb item_id: String, model_type: :unit_with_percent, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, @@ -2573,7 +2573,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2586,7 +2586,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_percent_config: Hash[Symbol, top] + attr_accessor unit_with_percent_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2606,7 +2606,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2615,7 +2615,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, item_id: String, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, @@ -2625,7 +2625,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit_with_percent ) -> void @@ -2652,7 +2652,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -2684,7 +2684,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -2717,7 +2717,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2728,7 +2728,7 @@ module Orb item_id: String, model_type: :package_with_allocation, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -2738,7 +2738,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2751,7 +2751,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: Hash[Symbol, top] + attr_accessor package_with_allocation_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2771,7 +2771,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2780,7 +2780,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, item_id: String, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -2790,7 +2790,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :package_with_allocation ) -> void @@ -2817,7 +2817,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2849,7 +2849,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2882,7 +2882,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2893,7 +2893,7 @@ module Orb item_id: String, model_type: :tiered_with_proration, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, @@ -2903,7 +2903,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -2916,7 +2916,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_proration_config: Hash[Symbol, top] + attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -2936,7 +2936,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -2945,7 +2945,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence, item_id: String, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, @@ -2955,7 +2955,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_with_proration ) -> void @@ -2982,7 +2982,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3014,7 +3014,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3047,7 +3047,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3058,7 +3058,7 @@ module Orb item_id: String, model_type: :unit_with_proration, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, @@ -3068,7 +3068,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -3081,7 +3081,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_proration_config: Hash[Symbol, top] + attr_accessor unit_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -3101,7 +3101,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -3110,7 +3110,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, item_id: String, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, @@ -3120,7 +3120,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit_with_proration ) -> void @@ -3147,7 +3147,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3179,7 +3179,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3212,7 +3212,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3220,7 +3220,7 @@ module Orb type new_subscription_grouped_allocation_price = { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, @@ -3233,14 +3233,14 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence - attr_accessor grouped_allocation_config: Hash[Symbol, top] + attr_accessor grouped_allocation_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -3266,14 +3266,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -3285,7 +3285,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :grouped_allocation ) -> void @@ -3312,7 +3312,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -3344,7 +3344,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3377,7 +3377,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3385,7 +3385,7 @@ module Orb type new_subscription_grouped_with_prorated_minimum_price = { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, @@ -3398,14 +3398,14 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence - attr_accessor grouped_with_prorated_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -3431,14 +3431,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -3450,7 +3450,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :grouped_with_prorated_minimum ) -> void @@ -3477,7 +3477,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3509,7 +3509,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3542,14 +3542,14 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end type new_subscription_bulk_with_proration_price = { - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, model_type: :bulk_with_proration, @@ -3563,12 +3563,12 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel - attr_accessor bulk_with_proration_config: Hash[Symbol, top] + attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence @@ -3596,13 +3596,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, name: String, @@ -3615,7 +3615,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk_with_proration ) -> void @@ -3642,7 +3642,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3674,7 +3674,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3707,7 +3707,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3724,7 +3724,7 @@ module Orb PLAN_CHANGE_DATE: :plan_change_date START_OF_MONTH: :start_of_month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment] end type billing_cycle_anchor_configuration = @@ -3813,7 +3813,7 @@ module Orb type new_percentage_discount = { adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], percentage_discount: Float, is_invoice_level: bool } @@ -3821,7 +3821,7 @@ module Orb class NewPercentageDiscount < Orb::BaseModel attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor percentage_discount: Float @@ -3831,7 +3831,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], percentage_discount: Float, is_invoice_level: bool, adjustment_type: :percentage_discount @@ -3847,7 +3847,7 @@ module Orb type new_usage_discount = { adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, is_invoice_level: bool } @@ -3855,7 +3855,7 @@ module Orb class NewUsageDiscount < Orb::BaseModel attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor usage_discount: Float @@ -3865,7 +3865,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], usage_discount: Float, is_invoice_level: bool, adjustment_type: :usage_discount @@ -3882,7 +3882,7 @@ module Orb { adjustment_type: :amount_discount, amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool } @@ -3891,7 +3891,7 @@ module Orb attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_reader is_invoice_level: bool? @@ -3900,7 +3900,7 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, adjustment_type: :amount_discount ) -> void @@ -3915,7 +3915,7 @@ module Orb type new_minimum = { adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], item_id: String, minimum_amount: String, is_invoice_level: bool @@ -3924,7 +3924,7 @@ module Orb class NewMinimum < Orb::BaseModel attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor item_id: String @@ -3936,7 +3936,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], item_id: String, minimum_amount: String, is_invoice_level: bool, @@ -3953,7 +3953,7 @@ module Orb type new_maximum = { adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String, is_invoice_level: bool } @@ -3961,7 +3961,7 @@ module Orb class NewMaximum < Orb::BaseModel attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor maximum_amount: String @@ -3971,7 +3971,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], maximum_amount: String, is_invoice_level: bool, adjustment_type: :maximum @@ -3991,7 +3991,7 @@ module Orb type replace_price = { replaces_price_id: String, - discounts: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, + discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, external_price_id: String?, fixed_price_quantity: Float?, maximum_amount: String?, @@ -4003,7 +4003,7 @@ module Orb class ReplacePrice < Orb::BaseModel attr_accessor replaces_price_id: String - attr_accessor discounts: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]? + attr_accessor discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]? attr_accessor external_price_id: String? @@ -4020,7 +4020,7 @@ module Orb def initialize: ( replaces_price_id: String, - discounts: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, + discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, external_price_id: String?, fixed_price_quantity: Float?, maximum_amount: String?, @@ -4073,7 +4073,7 @@ module Orb USAGE: :usage AMOUNT: :amount - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type] end end @@ -4114,7 +4114,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -4147,7 +4147,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -4166,7 +4166,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit ) -> void @@ -4193,7 +4193,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -4240,7 +4240,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -4273,7 +4273,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4294,7 +4294,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -4327,7 +4327,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -4346,7 +4346,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :package ) -> void @@ -4373,7 +4373,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -4423,7 +4423,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4456,7 +4456,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4477,7 +4477,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -4510,7 +4510,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -4529,7 +4529,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :matrix ) -> void @@ -4556,28 +4556,28 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = { default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] } class MatrixConfig < Orb::BaseModel attr_accessor default_unit_amount: String - attr_accessor dimensions: Array[String?] + attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] def initialize: ( default_unit_amount: String, - dimensions: Array[String?], - matrix_values: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] ) -> void | ( ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -4587,16 +4587,16 @@ module Orb def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config type matrix_value = - { dimension_values: Array[String?], unit_amount: String } + { dimension_values: ::Array[String?], unit_amount: String } class MatrixValue < Orb::BaseModel - attr_accessor dimension_values: Array[String?] + attr_accessor dimension_values: ::Array[String?] attr_accessor unit_amount: String def initialize: ( - dimension_values: Array[String?], + dimension_values: ::Array[String?], unit_amount: String ) -> void | ( @@ -4637,7 +4637,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -4670,7 +4670,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4691,7 +4691,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -4724,7 +4724,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -4743,7 +4743,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered ) -> void @@ -4770,20 +4770,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = { - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] } class TieredConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -4846,7 +4846,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -4879,7 +4879,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4900,7 +4900,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -4933,7 +4933,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -4952,7 +4952,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_bps ) -> void @@ -4979,20 +4979,20 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = { - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] } class TieredBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -5063,7 +5063,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -5096,7 +5096,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5117,7 +5117,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -5150,7 +5150,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -5169,7 +5169,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bps ) -> void @@ -5213,7 +5213,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -5245,7 +5245,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -5278,7 +5278,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5299,7 +5299,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -5332,7 +5332,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -5351,7 +5351,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk_bps ) -> void @@ -5364,15 +5364,15 @@ module Orb type bulk_bps_config = { - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] } class BulkBpsConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -5426,7 +5426,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -5458,7 +5458,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -5491,7 +5491,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5512,7 +5512,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -5545,7 +5545,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -5564,7 +5564,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk ) -> void @@ -5577,15 +5577,15 @@ module Orb type bulk_config = { - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] } class BulkConfig < Orb::BaseModel - attr_accessor tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] def initialize: ( - tiers: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) -> void | ( ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -5628,7 +5628,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -5660,7 +5660,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -5693,7 +5693,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5704,7 +5704,7 @@ module Orb item_id: String, model_type: :threshold_total_amount, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -5714,7 +5714,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -5727,7 +5727,7 @@ module Orb attr_accessor name: String - attr_accessor threshold_total_amount_config: Hash[Symbol, top] + attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -5747,7 +5747,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -5756,7 +5756,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, item_id: String, name: String, - threshold_total_amount_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, @@ -5766,7 +5766,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :threshold_total_amount ) -> void @@ -5793,7 +5793,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -5825,7 +5825,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -5858,7 +5858,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5869,7 +5869,7 @@ module Orb item_id: String, model_type: :tiered_package, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, @@ -5879,7 +5879,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -5892,7 +5892,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_config: Hash[Symbol, top] + attr_accessor tiered_package_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -5912,7 +5912,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -5921,7 +5921,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence, item_id: String, name: String, - tiered_package_config: Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, @@ -5931,7 +5931,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_package ) -> void @@ -5958,7 +5958,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -5990,7 +5990,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -6023,7 +6023,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6034,7 +6034,7 @@ module Orb item_id: String, model_type: :tiered_with_minimum, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -6044,7 +6044,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -6057,7 +6057,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_minimum_config: Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -6077,7 +6077,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -6086,7 +6086,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, item_id: String, name: String, - tiered_with_minimum_config: Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, @@ -6096,7 +6096,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_with_minimum ) -> void @@ -6123,7 +6123,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -6155,7 +6155,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -6188,7 +6188,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6199,7 +6199,7 @@ module Orb item_id: String, model_type: :unit_with_percent, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, @@ -6209,7 +6209,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -6222,7 +6222,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_percent_config: Hash[Symbol, top] + attr_accessor unit_with_percent_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -6242,7 +6242,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -6251,7 +6251,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, item_id: String, name: String, - unit_with_percent_config: Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, @@ -6261,7 +6261,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit_with_percent ) -> void @@ -6288,7 +6288,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -6320,7 +6320,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -6353,7 +6353,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6364,7 +6364,7 @@ module Orb item_id: String, model_type: :package_with_allocation, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -6374,7 +6374,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -6387,7 +6387,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: Hash[Symbol, top] + attr_accessor package_with_allocation_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -6407,7 +6407,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -6416,7 +6416,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, item_id: String, name: String, - package_with_allocation_config: Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, @@ -6426,7 +6426,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :package_with_allocation ) -> void @@ -6453,7 +6453,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -6485,7 +6485,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -6518,7 +6518,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6529,7 +6529,7 @@ module Orb item_id: String, model_type: :tiered_with_proration, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, @@ -6539,7 +6539,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -6552,7 +6552,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_proration_config: Hash[Symbol, top] + attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -6572,7 +6572,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -6581,7 +6581,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence, item_id: String, name: String, - tiered_with_proration_config: Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, @@ -6591,7 +6591,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :tiered_with_proration ) -> void @@ -6618,7 +6618,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -6650,7 +6650,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -6683,7 +6683,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6694,7 +6694,7 @@ module Orb item_id: String, model_type: :unit_with_proration, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, @@ -6704,7 +6704,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } @@ -6717,7 +6717,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_proration_config: Hash[Symbol, top] + attr_accessor unit_with_proration_config: ::Hash[Symbol, top] attr_accessor billable_metric_id: String? @@ -6737,7 +6737,7 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? @@ -6746,7 +6746,7 @@ module Orb cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, item_id: String, name: String, - unit_with_proration_config: Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, @@ -6756,7 +6756,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :unit_with_proration ) -> void @@ -6783,7 +6783,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -6815,7 +6815,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -6848,7 +6848,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6856,7 +6856,7 @@ module Orb type new_subscription_grouped_allocation_price = { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_allocation, name: String, @@ -6869,14 +6869,14 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence - attr_accessor grouped_allocation_config: Hash[Symbol, top] + attr_accessor grouped_allocation_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -6902,14 +6902,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -6921,7 +6921,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :grouped_allocation ) -> void @@ -6948,7 +6948,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -6980,7 +6980,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7013,7 +7013,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7021,7 +7021,7 @@ module Orb type new_subscription_grouped_with_prorated_minimum_price = { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, model_type: :grouped_with_prorated_minimum, name: String, @@ -7034,14 +7034,14 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence - attr_accessor grouped_with_prorated_minimum_config: Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] attr_accessor item_id: String @@ -7067,14 +7067,14 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], item_id: String, name: String, billable_metric_id: String?, @@ -7086,7 +7086,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :grouped_with_prorated_minimum ) -> void @@ -7113,7 +7113,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -7145,7 +7145,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -7178,14 +7178,14 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end type new_subscription_bulk_with_proration_price = { - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, model_type: :bulk_with_proration, @@ -7199,12 +7199,12 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String? } class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel - attr_accessor bulk_with_proration_config: Hash[Symbol, top] + attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence @@ -7232,13 +7232,13 @@ module Orb attr_accessor invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor reference_id: String? def initialize: ( - bulk_with_proration_config: Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, name: String, @@ -7251,7 +7251,7 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, reference_id: String?, model_type: :bulk_with_proration ) -> void @@ -7278,7 +7278,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -7310,7 +7310,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7343,7 +7343,7 @@ module Orb DAY: :day MONTH: :month - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end diff --git a/sig/orb/models/subscription_schedule_plan_change_response.rbs b/sig/orb/models/subscription_schedule_plan_change_response.rbs index 28a638de..4618b0bb 100644 --- a/sig/orb/models/subscription_schedule_plan_change_response.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_response.rbs @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionSchedulePlanChangeResponse::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionSchedulePlanChangeResponse::status, @@ -119,7 +119,7 @@ module Orb { id: String, adjustment: Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -129,7 +129,7 @@ module Orb attr_accessor adjustment: Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -139,7 +139,7 @@ module Orb ( id: String, adjustment: Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -151,32 +151,30 @@ module Orb def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::adjustment_interval type adjustment = - 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 + Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -184,46 +182,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -231,70 +231,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -302,12 +302,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -322,7 +322,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -331,30 +331,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -367,7 +367,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -375,14 +375,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -415,8 +415,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -425,9 +425,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -438,8 +438,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -454,8 +454,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -463,9 +463,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -477,8 +477,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -494,8 +494,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -503,9 +503,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -517,8 +517,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -564,17 +564,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -584,8 +584,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -600,17 +600,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -620,8 +620,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -641,7 +641,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -657,7 +657,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -670,7 +670,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -729,7 +729,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::status] + def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_trigger_phase_response.rbs b/sig/orb/models/subscription_trigger_phase_response.rbs index 661024be..22bdd2f4 100644 --- a/sig/orb/models/subscription_trigger_phase_response.rbs +++ b/sig/orb/models/subscription_trigger_phase_response.rbs @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionTriggerPhaseResponse::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionTriggerPhaseResponse::status, @@ -119,7 +119,7 @@ module Orb { id: String, adjustment: Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -129,7 +129,7 @@ module Orb attr_accessor adjustment: Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -139,7 +139,7 @@ module Orb ( id: String, adjustment: Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -151,32 +151,30 @@ module Orb def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::adjustment_interval type adjustment = - 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 + Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -184,46 +182,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -231,70 +231,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -302,12 +302,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -322,7 +322,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -331,30 +331,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -367,7 +367,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -375,14 +375,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -415,8 +415,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -425,9 +425,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -438,8 +438,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -454,8 +454,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -463,9 +463,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -477,8 +477,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -494,8 +494,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -503,9 +503,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -517,8 +517,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -564,17 +564,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -584,8 +584,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -600,17 +600,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -620,8 +620,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -641,7 +641,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -657,7 +657,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -670,7 +670,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -729,7 +729,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionTriggerPhaseResponse::status] + def self.values: -> ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_unschedule_cancellation_response.rbs b/sig/orb/models/subscription_unschedule_cancellation_response.rbs index c1e566d1..532cd240 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_response.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_response.rbs @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionUnscheduleCancellationResponse::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionUnscheduleCancellationResponse::status, @@ -119,7 +119,7 @@ module Orb { id: String, adjustment: Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -129,7 +129,7 @@ module Orb attr_accessor adjustment: Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -139,7 +139,7 @@ module Orb ( id: String, adjustment: Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -151,32 +151,30 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::adjustment_interval type adjustment = - 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 + Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -184,46 +182,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -231,70 +231,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -302,12 +302,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -322,7 +322,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -331,30 +331,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -367,7 +367,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -375,14 +375,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -415,8 +415,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -425,9 +425,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -438,8 +438,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -454,8 +454,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -463,9 +463,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -477,8 +477,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -494,8 +494,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -503,9 +503,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -517,8 +517,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -564,17 +564,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -584,8 +584,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -600,17 +600,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -620,8 +620,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -641,7 +641,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -657,7 +657,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -670,7 +670,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -729,7 +729,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::status] + def self.values: -> ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::status] end type trial_info = { end_date: Time? } 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 374101a5..8e97c721 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 @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status, @@ -119,7 +119,7 @@ module Orb { id: String, adjustment: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -129,7 +129,7 @@ module Orb attr_accessor adjustment: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -139,7 +139,7 @@ module Orb ( id: String, adjustment: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -151,32 +151,30 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::adjustment_interval type adjustment = - 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 + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -184,46 +182,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -231,70 +231,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -302,12 +302,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -322,7 +322,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -331,30 +331,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -367,7 +367,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -375,14 +375,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -415,8 +415,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -425,9 +425,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -438,8 +438,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -454,8 +454,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -463,9 +463,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -477,8 +477,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -494,8 +494,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -503,9 +503,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -517,8 +517,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -564,17 +564,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -584,8 +584,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -600,17 +600,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -620,8 +620,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -641,7 +641,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -657,7 +657,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -670,7 +670,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -729,7 +729,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status] + def self.values: -> ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status] end type trial_info = { end_date: Time? } 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 de5aa1fd..f211a888 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status, @@ -119,7 +119,7 @@ module Orb { id: String, adjustment: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -129,7 +129,7 @@ module Orb attr_accessor adjustment: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -139,7 +139,7 @@ module Orb ( id: String, adjustment: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -151,32 +151,30 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::adjustment_interval type adjustment = - 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 + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -184,46 +182,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -231,70 +231,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -302,12 +302,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -322,7 +322,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -331,30 +331,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -367,7 +367,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -375,14 +375,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -415,8 +415,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -425,9 +425,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -438,8 +438,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -454,8 +454,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -463,9 +463,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -477,8 +477,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -494,8 +494,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -503,9 +503,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -517,8 +517,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -564,17 +564,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -584,8 +584,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -600,17 +600,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -620,8 +620,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -641,7 +641,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -657,7 +657,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -670,7 +670,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -729,7 +729,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status] + def self.values: -> ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status] end type trial_info = { end_date: Time? } 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 d1a1055f..c1be00f8 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs @@ -47,7 +47,7 @@ module Orb UPCOMING_INVOICE: :upcoming_invoice EFFECTIVE_DATE: :effective_date - def self.values: -> Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option] + def self.values: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option] end end end 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 38ef1649..7abc3515 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status, @@ -119,7 +119,7 @@ module Orb { id: String, adjustment: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -129,7 +129,7 @@ module Orb attr_accessor adjustment: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -139,7 +139,7 @@ module Orb ( id: String, adjustment: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -151,32 +151,30 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::adjustment_interval type adjustment = - 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 + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -184,46 +182,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -231,70 +231,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -302,12 +302,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -322,7 +322,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -331,30 +331,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -367,7 +367,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -375,14 +375,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -415,8 +415,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -425,9 +425,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -438,8 +438,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -454,8 +454,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -463,9 +463,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -477,8 +477,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -494,8 +494,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -503,9 +503,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -517,8 +517,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -564,17 +564,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -584,8 +584,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -600,17 +600,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -620,8 +620,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -641,7 +641,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -657,7 +657,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -670,7 +670,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -729,7 +729,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status] + def self.values: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_update_params.rbs b/sig/orb/models/subscription_update_params.rbs index 0b6c4db0..add6de05 100644 --- a/sig/orb/models/subscription_update_params.rbs +++ b/sig/orb/models/subscription_update_params.rbs @@ -5,7 +5,7 @@ module Orb auto_collection: bool?, default_invoice_memo: String?, invoicing_threshold: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, net_terms: Integer? } & Orb::request_parameters @@ -20,7 +20,7 @@ module Orb attr_accessor invoicing_threshold: String? - attr_accessor metadata: Hash[Symbol, String?]? + attr_accessor metadata: ::Hash[Symbol, String?]? attr_accessor net_terms: Integer? @@ -29,7 +29,7 @@ module Orb auto_collection: bool?, default_invoice_memo: String?, invoicing_threshold: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, net_terms: Integer?, request_options: Orb::request_opts ) -> void diff --git a/sig/orb/models/subscription_update_trial_params.rbs b/sig/orb/models/subscription_update_trial_params.rbs index d9de684d..d3e49015 100644 --- a/sig/orb/models/subscription_update_trial_params.rbs +++ b/sig/orb/models/subscription_update_trial_params.rbs @@ -39,7 +39,7 @@ module Orb class UnionMember1 < Orb::Enum IMMEDIATE: :immediate - def self.values: -> Array[Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::union_member1] + def self.values: -> ::Array[Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::union_member1] end private def self.variants: -> [[nil, Time], [nil, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::union_member1]] diff --git a/sig/orb/models/subscription_update_trial_response.rbs b/sig/orb/models/subscription_update_trial_response.rbs index f185e5a4..38d4104f 100644 --- a/sig/orb/models/subscription_update_trial_response.rbs +++ b/sig/orb/models/subscription_update_trial_response.rbs @@ -4,7 +4,7 @@ module Orb { id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -13,16 +13,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionUpdateTrialResponse::status, @@ -34,7 +34,7 @@ module Orb attr_accessor active_plan_phase_order: Integer? - attr_accessor adjustment_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval] + attr_accessor adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval] attr_accessor auto_collection: bool? @@ -52,25 +52,25 @@ module Orb attr_accessor default_invoice_memo: String? - attr_accessor discount_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval] + attr_accessor discount_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval] attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule] + attr_accessor fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule] attr_accessor invoicing_threshold: String? - attr_accessor maximum_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval] + attr_accessor maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval] - attr_accessor metadata: Hash[Symbol, String] + attr_accessor metadata: ::Hash[Symbol, String] - attr_accessor minimum_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval] + attr_accessor minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval] attr_accessor net_terms: Integer attr_accessor plan: Orb::Models::Plan - attr_accessor price_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval] + attr_accessor price_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval] attr_accessor redeemed_coupon: Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon? @@ -84,7 +84,7 @@ module Orb ( id: String, active_plan_phase_order: Integer?, - adjustment_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], + adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], auto_collection: bool?, billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, billing_cycle_day: Integer, @@ -93,16 +93,16 @@ module Orb current_billing_period_start_date: Time?, customer: Orb::Models::Customer, default_invoice_memo: String?, - discount_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval], + discount_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval], end_date: Time?, - fixed_fee_quantity_schedule: Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], invoicing_threshold: String?, - maximum_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], - metadata: Hash[Symbol, String], - minimum_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], + maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], net_terms: Integer, plan: Orb::Models::Plan, - price_intervals: Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], + price_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], redeemed_coupon: Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon?, start_date: Time, status: Orb::Models::SubscriptionUpdateTrialResponse::status, @@ -118,7 +118,7 @@ module Orb { id: String, adjustment: Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time } @@ -128,7 +128,7 @@ module Orb attr_accessor adjustment: Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::adjustment - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -138,7 +138,7 @@ module Orb ( id: String, adjustment: Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time ) -> void @@ -150,32 +150,30 @@ module Orb def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::adjustment_interval type adjustment = - 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 + Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment + | Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment + | Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment + | Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment + | Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment class Adjustment < Orb::Union - type amount_discount_adjustment = + type plan_phase_usage_discount_adjustment = { id: String, - adjustment_type: :amount_discount, - amount_discount: String, - applies_to_price_ids: Array[String], + adjustment_type: :usage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, - reason: String? + reason: String?, + usage_discount: Float } - class AmountDiscountAdjustment < Orb::BaseModel + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :amount_discount - - attr_accessor amount_discount: String + attr_accessor adjustment_type: :usage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -183,46 +181,48 @@ module Orb attr_accessor reason: String? + attr_accessor usage_discount: Float + def initialize: ( id: String, - amount_discount: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, plan_phase_order: Integer?, reason: String?, - adjustment_type: :amount_discount + usage_discount: Float, + adjustment_type: :usage_discount ) -> void | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::amount_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end - type percentage_discount_adjustment = + type plan_phase_amount_discount_adjustment = { id: String, - adjustment_type: :percentage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :amount_discount, + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String? } - class PercentageDiscountAdjustment < Orb::BaseModel + class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :percentage_discount + attr_accessor adjustment_type: :amount_discount + + attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool - attr_accessor percentage_discount: Float - attr_accessor plan_phase_order: Integer? attr_accessor reason: String? @@ -230,70 +230,70 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + amount_discount: String, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, - percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - adjustment_type: :percentage_discount + adjustment_type: :amount_discount ) -> void | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::percentage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end - type usage_discount_adjustment = + type plan_phase_percentage_discount_adjustment = { id: String, - adjustment_type: :usage_discount, - applies_to_price_ids: Array[String], + adjustment_type: :percentage_discount, + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, - reason: String?, - usage_discount: Float + reason: String? } - class UsageDiscountAdjustment < Orb::BaseModel + class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel attr_accessor id: String - attr_accessor adjustment_type: :usage_discount + attr_accessor adjustment_type: :percentage_discount - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool + attr_accessor percentage_discount: Float + attr_accessor plan_phase_order: Integer? attr_accessor reason: String? - attr_accessor usage_discount: Float - def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, + percentage_discount: Float, plan_phase_order: Integer?, reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount + adjustment_type: :percentage_discount ) -> void | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::usage_discount_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end - type minimum_adjustment = + type plan_phase_minimum_adjustment = { id: String, adjustment_type: :minimum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -301,12 +301,12 @@ module Orb reason: String? } - class MinimumAdjustment < Orb::BaseModel + class PlanPhaseMinimumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :minimum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -321,7 +321,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, item_id: String, minimum_amount: String, @@ -330,30 +330,30 @@ module Orb adjustment_type: :minimum ) -> void | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::minimum_adjustment + ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::minimum_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end - type maximum_adjustment = + type plan_phase_maximum_adjustment = { id: String, adjustment_type: :maximum, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, reason: String? } - class MaximumAdjustment < Orb::BaseModel + class PlanPhaseMaximumAdjustment < Orb::BaseModel attr_accessor id: String attr_accessor adjustment_type: :maximum - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor is_invoice_level: bool @@ -366,7 +366,7 @@ module Orb def initialize: ( id: String, - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], is_invoice_level: bool, maximum_amount: String, plan_phase_order: Integer?, @@ -374,14 +374,14 @@ module Orb adjustment_type: :maximum ) -> void | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::maximum_adjustment + ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment | Orb::BaseModel data ) -> void - def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::maximum_adjustment + def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_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]] + private def self.variants: -> [[:usage_discount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment], [:amount_discount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment], [:percentage_discount, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment], [:minimum, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment], [:maximum, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment]] end end @@ -414,8 +414,8 @@ module Orb type amount_discount_interval = { amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :amount, end_date: Time?, start_date: Time @@ -424,9 +424,9 @@ module Orb class AmountDiscountInterval < Orb::BaseModel attr_accessor amount_discount: String - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :amount @@ -437,8 +437,8 @@ module Orb def initialize: ( amount_discount: String, - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, discount_type: :amount @@ -453,8 +453,8 @@ module Orb type percentage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :percentage, end_date: Time?, percentage_discount: Float, @@ -462,9 +462,9 @@ module Orb } class PercentageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :percentage @@ -476,8 +476,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, percentage_discount: Float, start_date: Time, @@ -493,8 +493,8 @@ module Orb type usage_discount_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], discount_type: :usage, end_date: Time?, start_date: Time, @@ -502,9 +502,9 @@ module Orb } class UsageDiscountInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor discount_type: :usage @@ -516,8 +516,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, start_date: Time, usage_discount: Float, @@ -563,17 +563,17 @@ module Orb type maximum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time } class MaximumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -583,8 +583,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, maximum_amount: String, start_date: Time @@ -599,17 +599,17 @@ module Orb type minimum_interval = { - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time } class MinimumInterval < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] - attr_accessor applies_to_price_interval_ids: Array[String] + attr_accessor applies_to_price_interval_ids: ::Array[String] attr_accessor end_date: Time? @@ -619,8 +619,8 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], - applies_to_price_interval_ids: Array[String], + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], end_date: Time?, minimum_amount: String, start_date: Time @@ -640,7 +640,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time } @@ -656,7 +656,7 @@ module Orb attr_accessor end_date: Time? - attr_accessor fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]? + attr_accessor fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]? attr_accessor price: Orb::Models::price @@ -669,7 +669,7 @@ module Orb current_billing_period_end_date: Time?, current_billing_period_start_date: Time?, end_date: Time?, - fixed_fee_quantity_transitions: Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]?, price: Orb::Models::price, start_date: Time ) -> void @@ -728,7 +728,7 @@ module Orb ENDED: :ended UPCOMING: :upcoming - def self.values: -> Array[Orb::Models::SubscriptionUpdateTrialResponse::status] + def self.values: -> ::Array[Orb::Models::SubscriptionUpdateTrialResponse::status] end type trial_info = { end_date: Time? } diff --git a/sig/orb/models/subscription_usage.rbs b/sig/orb/models/subscription_usage.rbs index 5a8b8570..26031eba 100644 --- a/sig/orb/models/subscription_usage.rbs +++ b/sig/orb/models/subscription_usage.rbs @@ -7,15 +7,15 @@ module Orb class SubscriptionUsage < Orb::Union type ungrouped_subscription_usage = { - data: Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] + data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] } class UngroupedSubscriptionUsage < Orb::BaseModel - attr_accessor data: Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] + attr_accessor data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] def initialize: ( - data: Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] + data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] ) -> void | ( ?Orb::Models::SubscriptionUsage::ungrouped_subscription_usage @@ -27,21 +27,21 @@ module Orb type data = { billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], + usage: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode } class Data < Orb::BaseModel attr_accessor billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric - attr_accessor usage: Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage] + attr_accessor usage: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage] attr_accessor view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode def initialize: ( billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], + usage: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode ) -> void | ( @@ -98,25 +98,25 @@ module Orb PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode] + def self.values: -> ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode] end end end type grouped_subscription_usage = { - data: Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], + data: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], pagination_metadata: Orb::Models::PaginationMetadata? } class GroupedSubscriptionUsage < Orb::BaseModel - attr_accessor data: Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data] + attr_accessor data: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data] attr_accessor pagination_metadata: Orb::Models::PaginationMetadata? def initialize: ( - data: Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], + data: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], pagination_metadata: Orb::Models::PaginationMetadata? ) -> void | ( @@ -130,7 +130,7 @@ module Orb { billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, - usage: Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], + usage: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode } @@ -139,7 +139,7 @@ module Orb attr_accessor metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup - attr_accessor usage: Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage] + attr_accessor usage: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage] attr_accessor view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode @@ -147,7 +147,7 @@ module Orb ( billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, - usage: Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], + usage: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode ) -> void | ( @@ -221,7 +221,7 @@ module Orb PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode] + def self.values: -> ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode] end end end diff --git a/sig/orb/models/subscriptions.rbs b/sig/orb/models/subscriptions.rbs index 7269d583..63b552cd 100644 --- a/sig/orb/models/subscriptions.rbs +++ b/sig/orb/models/subscriptions.rbs @@ -2,18 +2,18 @@ module Orb module Models type subscriptions_api = { - data: Array[Orb::Models::Subscription], + data: ::Array[Orb::Models::Subscription], pagination_metadata: Orb::Models::PaginationMetadata } class SubscriptionsAPI < Orb::BaseModel - attr_accessor data: Array[Orb::Models::Subscription] + attr_accessor data: ::Array[Orb::Models::Subscription] attr_accessor pagination_metadata: Orb::Models::PaginationMetadata def initialize: ( - data: Array[Orb::Models::Subscription], + data: ::Array[Orb::Models::Subscription], pagination_metadata: Orb::Models::PaginationMetadata ) -> void | (?Orb::Models::subscriptions_api | Orb::BaseModel data) -> void diff --git a/sig/orb/models/trial_discount.rbs b/sig/orb/models/trial_discount.rbs index 410736b8..fb697cfa 100644 --- a/sig/orb/models/trial_discount.rbs +++ b/sig/orb/models/trial_discount.rbs @@ -2,7 +2,7 @@ module Orb module Models type trial_discount = { - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], discount_type: Orb::Models::TrialDiscount::discount_type, reason: String?, trial_amount_discount: String?, @@ -10,7 +10,7 @@ module Orb } class TrialDiscount < Orb::BaseModel - attr_accessor applies_to_price_ids: Array[String] + attr_accessor applies_to_price_ids: ::Array[String] attr_accessor discount_type: Orb::Models::TrialDiscount::discount_type @@ -22,7 +22,7 @@ module Orb def initialize: ( - applies_to_price_ids: Array[String], + applies_to_price_ids: ::Array[String], discount_type: Orb::Models::TrialDiscount::discount_type, reason: String?, trial_amount_discount: String?, @@ -37,7 +37,7 @@ module Orb class DiscountType < Orb::Enum TRIAL: :trial - def self.values: -> Array[Orb::Models::TrialDiscount::discount_type] + def self.values: -> ::Array[Orb::Models::TrialDiscount::discount_type] end end end diff --git a/sig/orb/page.rbs b/sig/orb/page.rbs index 7c698f92..d2fa8907 100644 --- a/sig/orb/page.rbs +++ b/sig/orb/page.rbs @@ -2,15 +2,15 @@ module Orb class Page[Elem] include Orb::BasePage[Elem] - attr_accessor data: Array[Elem] + attr_accessor data: ::Array[Elem] attr_accessor pagination_metadata: PaginationMetadata def initialize: ( client: Orb::BaseClient, req: Orb::BaseClient::request, - headers: Hash[String, String], - unwrapped: Hash[Symbol, top] + headers: ::Hash[String, String], + unwrapped: ::Hash[Symbol, top] ) -> void type pagination_metadata = { has_more: bool, next_cursor: String? } diff --git a/sig/orb/request_options.rbs b/sig/orb/request_options.rbs index 3ad742fc..fd7e5314 100644 --- a/sig/orb/request_options.rbs +++ b/sig/orb/request_options.rbs @@ -1,6 +1,6 @@ module Orb type request_opts = - Orb::RequestOptions | Orb::request_options | Hash[Symbol, top] + Orb::RequestOptions | Orb::request_options | ::Hash[Symbol, top] type request_parameters = { request_options: Orb::request_opts } @@ -8,30 +8,30 @@ module Orb attr_accessor request_options: Orb::request_opts module Converter - def dump_request: (top params) -> [top, Hash[Symbol, top]] + def dump_request: (top params) -> [top, ::Hash[Symbol, top]] end end type request_options = { idempotency_key: String?, - extra_query: Hash[String, (Array[String] | String)?]?, - extra_headers: Hash[String, String?]?, - extra_body: Hash[Symbol, top]?, + extra_query: ::Hash[String, (::Array[String] | String)?]?, + extra_headers: ::Hash[String, String?]?, + extra_body: ::Hash[Symbol, top]?, max_retries: Integer?, timeout: Float? } class RequestOptions < Orb::BaseModel - def self.validate!: (self | Hash[Symbol, top] opts) -> void + def self.validate!: (self | ::Hash[Symbol, top] opts) -> void attr_accessor idempotency_key: String? - attr_accessor extra_query: Hash[String, (Array[String] | String)?]? + attr_accessor extra_query: ::Hash[String, (::Array[String] | String)?]? - attr_accessor extra_headers: Hash[String, String?]? + attr_accessor extra_headers: ::Hash[String, String?]? - attr_accessor extra_body: Hash[Symbol, top]? + attr_accessor extra_body: ::Hash[Symbol, top]? attr_accessor max_retries: Integer? diff --git a/sig/orb/resources/alerts.rbs b/sig/orb/resources/alerts.rbs index 9de2eb82..b2751f80 100644 --- a/sig/orb/resources/alerts.rbs +++ b/sig/orb/resources/alerts.rbs @@ -4,7 +4,7 @@ module Orb def retrieve: ( String alert_id, - ?Orb::Models::AlertRetrieveParams | Hash[Symbol, top] params + ?Orb::Models::AlertRetrieveParams | ::Hash[Symbol, top] params ) -> Orb::Models::Alert | ( String alert_id, @@ -14,17 +14,17 @@ module Orb def update: ( String alert_configuration_id, - Orb::Models::AlertUpdateParams | Hash[Symbol, top] params + Orb::Models::AlertUpdateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Alert | ( String alert_configuration_id, - thresholds: Array[Orb::Models::AlertUpdateParams::Threshold], + thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], request_options: Orb::request_opts ) -> Orb::Models::Alert def list: ( - ?Orb::Models::AlertListParams | Hash[Symbol, top] params + ?Orb::Models::AlertListParams | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Alert] | ( created_at_gt: Time?, @@ -42,13 +42,13 @@ module Orb def create_for_customer: ( String customer_id, - Orb::Models::AlertCreateForCustomerParams | Hash[Symbol, top] params + Orb::Models::AlertCreateForCustomerParams | ::Hash[Symbol, top] params ) -> Orb::Models::Alert | ( String customer_id, currency: String, type: Orb::Models::AlertCreateForCustomerParams::type_, - thresholds: Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, + thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, request_options: Orb::request_opts ) -> Orb::Models::Alert @@ -56,13 +56,13 @@ module Orb ( String external_customer_id, Orb::Models::AlertCreateForExternalCustomerParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Alert | ( String external_customer_id, currency: String, type: Orb::Models::AlertCreateForExternalCustomerParams::type_, - thresholds: Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, + thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, request_options: Orb::request_opts ) -> Orb::Models::Alert @@ -70,11 +70,11 @@ module Orb ( String subscription_id, Orb::Models::AlertCreateForSubscriptionParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Alert | ( String subscription_id, - thresholds: Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], + thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], type: Orb::Models::AlertCreateForSubscriptionParams::type_, metric_id: String?, request_options: Orb::request_opts @@ -83,7 +83,7 @@ module Orb def disable: ( String alert_configuration_id, - ?Orb::Models::AlertDisableParams | Hash[Symbol, top] params + ?Orb::Models::AlertDisableParams | ::Hash[Symbol, top] params ) -> Orb::Models::Alert | ( String alert_configuration_id, @@ -94,7 +94,7 @@ module Orb def enable: ( String alert_configuration_id, - ?Orb::Models::AlertEnableParams | Hash[Symbol, top] params + ?Orb::Models::AlertEnableParams | ::Hash[Symbol, top] params ) -> Orb::Models::Alert | ( String alert_configuration_id, diff --git a/sig/orb/resources/coupons.rbs b/sig/orb/resources/coupons.rbs index a4611abf..d6448027 100644 --- a/sig/orb/resources/coupons.rbs +++ b/sig/orb/resources/coupons.rbs @@ -5,7 +5,7 @@ module Orb def create: ( - Orb::Models::CouponCreateParams | Hash[Symbol, top] params + Orb::Models::CouponCreateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Coupon | ( discount: Orb::Models::CouponCreateParams::discount, @@ -17,7 +17,7 @@ module Orb def list: ( - ?Orb::Models::CouponListParams | Hash[Symbol, top] params + ?Orb::Models::CouponListParams | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Coupon] | ( cursor: String?, @@ -30,7 +30,7 @@ module Orb def archive: ( String coupon_id, - ?Orb::Models::CouponArchiveParams | Hash[Symbol, top] params + ?Orb::Models::CouponArchiveParams | ::Hash[Symbol, top] params ) -> Orb::Models::Coupon | ( String coupon_id, @@ -40,7 +40,7 @@ module Orb def fetch: ( String coupon_id, - ?Orb::Models::CouponFetchParams | Hash[Symbol, top] params + ?Orb::Models::CouponFetchParams | ::Hash[Symbol, top] params ) -> Orb::Models::Coupon | ( String coupon_id, diff --git a/sig/orb/resources/coupons/subscriptions.rbs b/sig/orb/resources/coupons/subscriptions.rbs index 0ffe226a..8cbb341f 100644 --- a/sig/orb/resources/coupons/subscriptions.rbs +++ b/sig/orb/resources/coupons/subscriptions.rbs @@ -6,7 +6,7 @@ module Orb ( String coupon_id, ?Orb::Models::Coupons::SubscriptionListParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Subscription] | ( String coupon_id, diff --git a/sig/orb/resources/credit_notes.rbs b/sig/orb/resources/credit_notes.rbs index 2d3b459d..6d858614 100644 --- a/sig/orb/resources/credit_notes.rbs +++ b/sig/orb/resources/credit_notes.rbs @@ -3,10 +3,10 @@ module Orb class CreditNotes def create: ( - Orb::Models::CreditNoteCreateParams | Hash[Symbol, top] params + Orb::Models::CreditNoteCreateParams | ::Hash[Symbol, top] params ) -> Orb::Models::CreditNote | ( - line_items: Array[Orb::Models::CreditNoteCreateParams::LineItem], + line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], memo: String?, reason: Orb::Models::CreditNoteCreateParams::reason?, request_options: Orb::request_opts @@ -14,7 +14,7 @@ module Orb def list: ( - ?Orb::Models::CreditNoteListParams | Hash[Symbol, top] params + ?Orb::Models::CreditNoteListParams | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::CreditNote] | ( cursor: String?, @@ -25,7 +25,7 @@ module Orb def fetch: ( String credit_note_id, - ?Orb::Models::CreditNoteFetchParams | Hash[Symbol, top] params + ?Orb::Models::CreditNoteFetchParams | ::Hash[Symbol, top] params ) -> Orb::Models::CreditNote | ( String credit_note_id, diff --git a/sig/orb/resources/customers.rbs b/sig/orb/resources/customers.rbs index e0b592b6..ef6509d0 100644 --- a/sig/orb/resources/customers.rbs +++ b/sig/orb/resources/customers.rbs @@ -9,19 +9,19 @@ module Orb def create: ( - Orb::Models::CustomerCreateParams | Hash[Symbol, top] params + Orb::Models::CustomerCreateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Customer | ( email: String, name: String, accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, - additional_emails: Array[String]?, + additional_emails: ::Array[String]?, auto_collection: bool?, billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, currency: String?, email_delivery: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, payment_provider: Orb::Models::CustomerCreateParams::payment_provider?, payment_provider_id: String?, reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration?, @@ -35,19 +35,19 @@ module Orb def update: ( String customer_id, - ?Orb::Models::CustomerUpdateParams | Hash[Symbol, top] params + ?Orb::Models::CustomerUpdateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Customer | ( String customer_id, accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, - additional_emails: Array[String]?, + additional_emails: ::Array[String]?, auto_collection: bool?, billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, currency: String?, email: String?, email_delivery: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, name: String?, payment_provider: Orb::Models::CustomerUpdateParams::payment_provider?, payment_provider_id: String?, @@ -60,7 +60,7 @@ module Orb def list: ( - ?Orb::Models::CustomerListParams | Hash[Symbol, top] params + ?Orb::Models::CustomerListParams | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Customer] | ( created_at_gt: Time?, @@ -75,14 +75,14 @@ module Orb def delete: ( String customer_id, - ?Orb::Models::CustomerDeleteParams | Hash[Symbol, top] params + ?Orb::Models::CustomerDeleteParams | ::Hash[Symbol, top] params ) -> nil | (String customer_id, request_options: Orb::request_opts) -> nil def fetch: ( String customer_id, - ?Orb::Models::CustomerFetchParams | Hash[Symbol, top] params + ?Orb::Models::CustomerFetchParams | ::Hash[Symbol, top] params ) -> Orb::Models::Customer | ( String customer_id, @@ -93,7 +93,7 @@ module Orb ( String external_customer_id, ?Orb::Models::CustomerFetchByExternalIDParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Customer | ( String external_customer_id, @@ -104,7 +104,7 @@ module Orb ( String external_customer_id, ?Orb::Models::CustomerSyncPaymentMethodsFromGatewayParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> nil | ( String external_customer_id, @@ -115,7 +115,7 @@ module Orb ( String customer_id, ?Orb::Models::CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> nil | (String customer_id, request_options: Orb::request_opts) -> nil @@ -123,19 +123,19 @@ module Orb ( String id, ?Orb::Models::CustomerUpdateByExternalIDParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Customer | ( String id, accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, - additional_emails: Array[String]?, + additional_emails: ::Array[String]?, auto_collection: bool?, billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, currency: String?, email: String?, email_delivery: bool?, external_customer_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, name: String?, payment_provider: Orb::Models::CustomerUpdateByExternalIDParams::payment_provider?, payment_provider_id: String?, diff --git a/sig/orb/resources/customers/balance_transactions.rbs b/sig/orb/resources/customers/balance_transactions.rbs index 15bbe83a..85137425 100644 --- a/sig/orb/resources/customers/balance_transactions.rbs +++ b/sig/orb/resources/customers/balance_transactions.rbs @@ -6,7 +6,7 @@ module Orb ( String customer_id, Orb::Models::Customers::BalanceTransactionCreateParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Customers::BalanceTransactionCreateResponse | ( String customer_id, @@ -20,7 +20,7 @@ module Orb ( String customer_id, ?Orb::Models::Customers::BalanceTransactionListParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse] | ( String customer_id, diff --git a/sig/orb/resources/customers/costs.rbs b/sig/orb/resources/customers/costs.rbs index 62f813ac..4242762a 100644 --- a/sig/orb/resources/customers/costs.rbs +++ b/sig/orb/resources/customers/costs.rbs @@ -5,7 +5,7 @@ module Orb def list: ( String customer_id, - ?Orb::Models::Customers::CostListParams | Hash[Symbol, top] params + ?Orb::Models::Customers::CostListParams | ::Hash[Symbol, top] params ) -> Orb::Models::Customers::CostListResponse | ( String customer_id, @@ -20,7 +20,7 @@ module Orb ( String external_customer_id, ?Orb::Models::Customers::CostListByExternalIDParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Customers::CostListByExternalIDResponse | ( String external_customer_id, diff --git a/sig/orb/resources/customers/credits.rbs b/sig/orb/resources/customers/credits.rbs index ed1c5b06..db420ffd 100644 --- a/sig/orb/resources/customers/credits.rbs +++ b/sig/orb/resources/customers/credits.rbs @@ -9,7 +9,8 @@ module Orb def list: ( String customer_id, - ?Orb::Models::Customers::CreditListParams | Hash[Symbol, top] params + ?Orb::Models::Customers::CreditListParams + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Customers::CreditListResponse] | ( String customer_id, @@ -24,7 +25,7 @@ module Orb ( String external_customer_id, ?Orb::Models::Customers::CreditListByExternalIDParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse] | ( String external_customer_id, diff --git a/sig/orb/resources/customers/credits/ledger.rbs b/sig/orb/resources/customers/credits/ledger.rbs index ff5c5acf..683d6179 100644 --- a/sig/orb/resources/customers/credits/ledger.rbs +++ b/sig/orb/resources/customers/credits/ledger.rbs @@ -7,7 +7,7 @@ module Orb ( String customer_id, ?Orb::Models::Customers::Credits::LedgerListParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_response] | ( String customer_id, @@ -28,7 +28,7 @@ module Orb ( String customer_id, Orb::Models::Customers::Credits::LedgerCreateEntryParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Customers::Credits::ledger_create_entry_response | ( String customer_id, @@ -41,7 +41,7 @@ module Orb description: String?, effective_date: Time?, invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, per_unit_cost_basis: String?, void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason?, request_options: Orb::request_opts @@ -51,7 +51,7 @@ module Orb ( String external_customer_id, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_response | ( String external_customer_id, @@ -64,7 +64,7 @@ module Orb description: String?, effective_date: Time?, invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, per_unit_cost_basis: String?, void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason?, request_options: Orb::request_opts @@ -74,7 +74,7 @@ module Orb ( String external_customer_id, ?Orb::Models::Customers::Credits::LedgerListByExternalIDParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_by_external_id_response] | ( String external_customer_id, diff --git a/sig/orb/resources/customers/credits/top_ups.rbs b/sig/orb/resources/customers/credits/top_ups.rbs index 9ce30d68..3d434d55 100644 --- a/sig/orb/resources/customers/credits/top_ups.rbs +++ b/sig/orb/resources/customers/credits/top_ups.rbs @@ -7,7 +7,7 @@ module Orb ( String customer_id, Orb::Models::Customers::Credits::TopUpCreateParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Customers::Credits::TopUpCreateResponse | ( String customer_id, @@ -25,7 +25,7 @@ module Orb ( String customer_id, ?Orb::Models::Customers::Credits::TopUpListParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse] | ( String customer_id, @@ -38,7 +38,7 @@ module Orb ( String top_up_id, Orb::Models::Customers::Credits::TopUpDeleteParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> nil | ( String top_up_id, @@ -50,7 +50,7 @@ module Orb ( String external_customer_id, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse | ( String external_customer_id, @@ -68,7 +68,7 @@ module Orb ( String top_up_id, Orb::Models::Customers::Credits::TopUpDeleteByExternalIDParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> nil | ( String top_up_id, @@ -80,7 +80,7 @@ module Orb ( String external_customer_id, ?Orb::Models::Customers::Credits::TopUpListByExternalIDParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse] | ( String external_customer_id, diff --git a/sig/orb/resources/dimensional_price_groups.rbs b/sig/orb/resources/dimensional_price_groups.rbs index 7be70a80..f797dda3 100644 --- a/sig/orb/resources/dimensional_price_groups.rbs +++ b/sig/orb/resources/dimensional_price_groups.rbs @@ -6,14 +6,14 @@ module Orb def create: ( Orb::Models::DimensionalPriceGroupCreateParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::DimensionalPriceGroup | ( billable_metric_id: String, - dimensions: Array[String], + dimensions: ::Array[String], name: String, external_dimensional_price_group_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> Orb::Models::DimensionalPriceGroup @@ -21,7 +21,7 @@ module Orb ( String dimensional_price_group_id, ?Orb::Models::DimensionalPriceGroupRetrieveParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::DimensionalPriceGroup | ( String dimensional_price_group_id, @@ -31,7 +31,7 @@ module Orb def list: ( ?Orb::Models::DimensionalPriceGroupListParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::DimensionalPriceGroup] | ( cursor: String?, diff --git a/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs b/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs index 310bef43..3fc65c2d 100644 --- a/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs +++ b/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs @@ -6,7 +6,7 @@ module Orb ( String external_dimensional_price_group_id, ?Orb::Models::DimensionalPriceGroups::ExternalDimensionalPriceGroupIDRetrieveParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::DimensionalPriceGroup | ( String external_dimensional_price_group_id, diff --git a/sig/orb/resources/events.rbs b/sig/orb/resources/events.rbs index ffcb433d..aa4949c2 100644 --- a/sig/orb/resources/events.rbs +++ b/sig/orb/resources/events.rbs @@ -8,7 +8,7 @@ module Orb def update: ( String event_id, - Orb::Models::EventUpdateParams | Hash[Symbol, top] params + Orb::Models::EventUpdateParams | ::Hash[Symbol, top] params ) -> Orb::Models::EventUpdateResponse | ( String event_id, @@ -23,7 +23,7 @@ module Orb def deprecate: ( String event_id, - ?Orb::Models::EventDeprecateParams | Hash[Symbol, top] params + ?Orb::Models::EventDeprecateParams | ::Hash[Symbol, top] params ) -> Orb::Models::EventDeprecateResponse | ( String event_id, @@ -32,10 +32,10 @@ module Orb def ingest: ( - Orb::Models::EventIngestParams | Hash[Symbol, top] params + Orb::Models::EventIngestParams | ::Hash[Symbol, top] params ) -> Orb::Models::EventIngestResponse | ( - events: Array[Orb::Models::EventIngestParams::Event], + events: ::Array[Orb::Models::EventIngestParams::Event], backfill_id: String?, debug: bool, request_options: Orb::request_opts @@ -43,10 +43,10 @@ module Orb def search: ( - Orb::Models::EventSearchParams | Hash[Symbol, top] params + Orb::Models::EventSearchParams | ::Hash[Symbol, top] params ) -> Orb::Models::EventSearchResponse | ( - event_ids: Array[String], + event_ids: ::Array[String], timeframe_end: Time?, timeframe_start: Time?, request_options: Orb::request_opts diff --git a/sig/orb/resources/events/backfills.rbs b/sig/orb/resources/events/backfills.rbs index 47a774f4..f6981101 100644 --- a/sig/orb/resources/events/backfills.rbs +++ b/sig/orb/resources/events/backfills.rbs @@ -4,7 +4,8 @@ module Orb class Backfills def create: ( - Orb::Models::Events::BackfillCreateParams | Hash[Symbol, top] params + Orb::Models::Events::BackfillCreateParams + | ::Hash[Symbol, top] params ) -> Orb::Models::Events::BackfillCreateResponse | ( timeframe_end: Time, @@ -19,7 +20,8 @@ module Orb def list: ( - ?Orb::Models::Events::BackfillListParams | Hash[Symbol, top] params + ?Orb::Models::Events::BackfillListParams + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Events::BackfillListResponse] | ( cursor: String?, @@ -30,7 +32,8 @@ module Orb def close: ( String backfill_id, - ?Orb::Models::Events::BackfillCloseParams | Hash[Symbol, top] params + ?Orb::Models::Events::BackfillCloseParams + | ::Hash[Symbol, top] params ) -> Orb::Models::Events::BackfillCloseResponse | ( String backfill_id, @@ -40,7 +43,8 @@ module Orb def fetch: ( String backfill_id, - ?Orb::Models::Events::BackfillFetchParams | Hash[Symbol, top] params + ?Orb::Models::Events::BackfillFetchParams + | ::Hash[Symbol, top] params ) -> Orb::Models::Events::BackfillFetchResponse | ( String backfill_id, @@ -51,7 +55,7 @@ module Orb ( String backfill_id, ?Orb::Models::Events::BackfillRevertParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Events::BackfillRevertResponse | ( String backfill_id, diff --git a/sig/orb/resources/events/volume.rbs b/sig/orb/resources/events/volume.rbs index ffba2743..108ebb1a 100644 --- a/sig/orb/resources/events/volume.rbs +++ b/sig/orb/resources/events/volume.rbs @@ -4,7 +4,7 @@ module Orb class Volume def list: ( - Orb::Models::Events::VolumeListParams | Hash[Symbol, top] params + Orb::Models::Events::VolumeListParams | ::Hash[Symbol, top] params ) -> Orb::Models::Events::EventVolumes | ( timeframe_start: Time, diff --git a/sig/orb/resources/invoice_line_items.rbs b/sig/orb/resources/invoice_line_items.rbs index 724b8182..eb30a766 100644 --- a/sig/orb/resources/invoice_line_items.rbs +++ b/sig/orb/resources/invoice_line_items.rbs @@ -3,7 +3,7 @@ module Orb class InvoiceLineItems def create: ( - Orb::Models::InvoiceLineItemCreateParams | Hash[Symbol, top] params + Orb::Models::InvoiceLineItemCreateParams | ::Hash[Symbol, top] params ) -> Orb::Models::InvoiceLineItemCreateResponse | ( amount: String, diff --git a/sig/orb/resources/invoices.rbs b/sig/orb/resources/invoices.rbs index c67cf40b..8bb2b29a 100644 --- a/sig/orb/resources/invoices.rbs +++ b/sig/orb/resources/invoices.rbs @@ -3,18 +3,18 @@ module Orb class Invoices def create: ( - Orb::Models::InvoiceCreateParams | Hash[Symbol, top] params + Orb::Models::InvoiceCreateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Invoice | ( currency: String, invoice_date: Time, - line_items: Array[Orb::Models::InvoiceCreateParams::LineItem], + line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], net_terms: Integer, customer_id: String?, discount: Orb::Models::discount?, external_customer_id: String?, memo: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, will_auto_issue: bool, request_options: Orb::request_opts ) -> Orb::Models::Invoice @@ -22,17 +22,17 @@ module Orb def update: ( String invoice_id, - ?Orb::Models::InvoiceUpdateParams | Hash[Symbol, top] params + ?Orb::Models::InvoiceUpdateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Invoice | ( String invoice_id, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> Orb::Models::Invoice def list: ( - ?Orb::Models::InvoiceListParams | Hash[Symbol, top] params + ?Orb::Models::InvoiceListParams | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Invoice] | ( amount: String?, @@ -52,7 +52,7 @@ module Orb invoice_date_lte: Time?, is_recurring: bool?, limit: Integer, - status: Array[Orb::Models::InvoiceListParams::status]?, + status: ::Array[Orb::Models::InvoiceListParams::status]?, subscription_id: String?, request_options: Orb::request_opts ) -> Orb::Page[Orb::Models::Invoice] @@ -60,7 +60,7 @@ module Orb def fetch: ( String invoice_id, - ?Orb::Models::InvoiceFetchParams | Hash[Symbol, top] params + ?Orb::Models::InvoiceFetchParams | ::Hash[Symbol, top] params ) -> Orb::Models::Invoice | ( String invoice_id, @@ -69,7 +69,7 @@ module Orb def fetch_upcoming: ( - Orb::Models::InvoiceFetchUpcomingParams | Hash[Symbol, top] params + Orb::Models::InvoiceFetchUpcomingParams | ::Hash[Symbol, top] params ) -> Orb::Models::InvoiceFetchUpcomingResponse | ( subscription_id: String, @@ -79,7 +79,7 @@ module Orb def issue: ( String invoice_id, - ?Orb::Models::InvoiceIssueParams | Hash[Symbol, top] params + ?Orb::Models::InvoiceIssueParams | ::Hash[Symbol, top] params ) -> Orb::Models::Invoice | ( String invoice_id, @@ -90,7 +90,7 @@ module Orb def mark_paid: ( String invoice_id, - Orb::Models::InvoiceMarkPaidParams | Hash[Symbol, top] params + Orb::Models::InvoiceMarkPaidParams | ::Hash[Symbol, top] params ) -> Orb::Models::Invoice | ( String invoice_id, @@ -103,7 +103,7 @@ module Orb def pay: ( String invoice_id, - ?Orb::Models::InvoicePayParams | Hash[Symbol, top] params + ?Orb::Models::InvoicePayParams | ::Hash[Symbol, top] params ) -> Orb::Models::Invoice | ( String invoice_id, @@ -113,7 +113,7 @@ module Orb def `void`: ( String invoice_id, - ?Orb::Models::InvoiceVoidParams | Hash[Symbol, top] params + ?Orb::Models::InvoiceVoidParams | ::Hash[Symbol, top] params ) -> Orb::Models::Invoice | ( String invoice_id, diff --git a/sig/orb/resources/items.rbs b/sig/orb/resources/items.rbs index f84c2851..9639ee71 100644 --- a/sig/orb/resources/items.rbs +++ b/sig/orb/resources/items.rbs @@ -3,7 +3,7 @@ module Orb class Items def create: ( - Orb::Models::ItemCreateParams | Hash[Symbol, top] params + Orb::Models::ItemCreateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Item | ( name: String, @@ -13,18 +13,18 @@ module Orb def update: ( String item_id, - ?Orb::Models::ItemUpdateParams | Hash[Symbol, top] params + ?Orb::Models::ItemUpdateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Item | ( String item_id, - external_connections: Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, + external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, name: String?, request_options: Orb::request_opts ) -> Orb::Models::Item def list: ( - ?Orb::Models::ItemListParams | Hash[Symbol, top] params + ?Orb::Models::ItemListParams | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Item] | ( cursor: String?, @@ -35,7 +35,7 @@ module Orb def fetch: ( String item_id, - ?Orb::Models::ItemFetchParams | Hash[Symbol, top] params + ?Orb::Models::ItemFetchParams | ::Hash[Symbol, top] params ) -> Orb::Models::Item | ( String item_id, diff --git a/sig/orb/resources/metrics.rbs b/sig/orb/resources/metrics.rbs index 6854849d..2054c10d 100644 --- a/sig/orb/resources/metrics.rbs +++ b/sig/orb/resources/metrics.rbs @@ -3,31 +3,31 @@ module Orb class Metrics def create: ( - Orb::Models::MetricCreateParams | Hash[Symbol, top] params + Orb::Models::MetricCreateParams | ::Hash[Symbol, top] params ) -> Orb::Models::BillableMetric | ( description: String?, item_id: String, name: String, sql: String, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> Orb::Models::BillableMetric def update: ( String metric_id, - ?Orb::Models::MetricUpdateParams | Hash[Symbol, top] params + ?Orb::Models::MetricUpdateParams | ::Hash[Symbol, top] params ) -> Orb::Models::BillableMetric | ( String metric_id, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> Orb::Models::BillableMetric def list: ( - ?Orb::Models::MetricListParams | Hash[Symbol, top] params + ?Orb::Models::MetricListParams | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::BillableMetric] | ( created_at_gt: Time?, @@ -42,7 +42,7 @@ module Orb def fetch: ( String metric_id, - ?Orb::Models::MetricFetchParams | Hash[Symbol, top] params + ?Orb::Models::MetricFetchParams | ::Hash[Symbol, top] params ) -> Orb::Models::BillableMetric | ( String metric_id, diff --git a/sig/orb/resources/plans.rbs b/sig/orb/resources/plans.rbs index 0701d874..c694f1f9 100644 --- a/sig/orb/resources/plans.rbs +++ b/sig/orb/resources/plans.rbs @@ -5,15 +5,15 @@ module Orb def create: ( - Orb::Models::PlanCreateParams | Hash[Symbol, top] params + Orb::Models::PlanCreateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Plan | ( currency: String, name: String, - prices: Array[Orb::Models::PlanCreateParams::price], + prices: ::Array[Orb::Models::PlanCreateParams::price], default_invoice_memo: String?, external_plan_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, net_terms: Integer?, status: Orb::Models::PlanCreateParams::status, request_options: Orb::request_opts @@ -22,18 +22,18 @@ module Orb def update: ( String plan_id, - ?Orb::Models::PlanUpdateParams | Hash[Symbol, top] params + ?Orb::Models::PlanUpdateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Plan | ( String plan_id, external_plan_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> Orb::Models::Plan def list: ( - ?Orb::Models::PlanListParams | Hash[Symbol, top] params + ?Orb::Models::PlanListParams | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Plan] | ( created_at_gt: Time?, @@ -49,7 +49,7 @@ module Orb def fetch: ( String plan_id, - ?Orb::Models::PlanFetchParams | Hash[Symbol, top] params + ?Orb::Models::PlanFetchParams | ::Hash[Symbol, top] params ) -> Orb::Models::Plan | ( String plan_id, diff --git a/sig/orb/resources/plans/external_plan_id.rbs b/sig/orb/resources/plans/external_plan_id.rbs index f6a65576..c292afc1 100644 --- a/sig/orb/resources/plans/external_plan_id.rbs +++ b/sig/orb/resources/plans/external_plan_id.rbs @@ -6,12 +6,12 @@ module Orb ( String other_external_plan_id, ?Orb::Models::Plans::ExternalPlanIDUpdateParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Plan | ( String other_external_plan_id, external_plan_id: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> Orb::Models::Plan @@ -19,7 +19,7 @@ module Orb ( String external_plan_id, ?Orb::Models::Plans::ExternalPlanIDFetchParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::Plan | ( String external_plan_id, diff --git a/sig/orb/resources/prices.rbs b/sig/orb/resources/prices.rbs index 48904f6c..906e7bb7 100644 --- a/sig/orb/resources/prices.rbs +++ b/sig/orb/resources/prices.rbs @@ -5,7 +5,7 @@ module Orb def create: ( - Orb::Models::PriceCreateParams | Hash[Symbol, top] params + Orb::Models::PriceCreateParams | ::Hash[Symbol, top] params ) -> Orb::Models::price | ( cadence: Orb::Models::PriceCreateParams::cadence, @@ -22,24 +22,24 @@ module Orb bps_config: Orb::Models::PriceCreateParams::BpsConfig, bulk_bps_config: Orb::Models::PriceCreateParams::BulkBpsConfig, bulk_config: Orb::Models::PriceCreateParams::BulkConfig, - threshold_total_amount_config: Hash[Symbol, top], - tiered_package_config: Hash[Symbol, top], - grouped_tiered_config: Hash[Symbol, top], - max_group_tiered_package_config: Hash[Symbol, top], - tiered_with_minimum_config: Hash[Symbol, top], - package_with_allocation_config: Hash[Symbol, top], - tiered_package_with_minimum_config: Hash[Symbol, top], - unit_with_percent_config: Hash[Symbol, top], - tiered_with_proration_config: Hash[Symbol, top], - unit_with_proration_config: Hash[Symbol, top], - grouped_allocation_config: Hash[Symbol, top], - grouped_with_prorated_minimum_config: Hash[Symbol, top], - grouped_with_metered_minimum_config: Hash[Symbol, top], - matrix_with_display_name_config: Hash[Symbol, top], - bulk_with_proration_config: Hash[Symbol, top], - grouped_tiered_package_config: Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: Hash[Symbol, top], + threshold_total_amount_config: ::Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, @@ -48,24 +48,24 @@ module Orb fixed_price_quantity: Float?, invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> Orb::Models::price def update: ( String price_id, - ?Orb::Models::PriceUpdateParams | Hash[Symbol, top] params + ?Orb::Models::PriceUpdateParams | ::Hash[Symbol, top] params ) -> Orb::Models::price | ( String price_id, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> Orb::Models::price def list: ( - ?Orb::Models::PriceListParams | Hash[Symbol, top] params + ?Orb::Models::PriceListParams | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::price] | ( cursor: String?, @@ -76,7 +76,7 @@ module Orb def evaluate: ( String price_id, - Orb::Models::PriceEvaluateParams | Hash[Symbol, top] params + Orb::Models::PriceEvaluateParams | ::Hash[Symbol, top] params ) -> Orb::Models::PriceEvaluateResponse | ( String price_id, @@ -85,14 +85,14 @@ module Orb customer_id: String?, external_customer_id: String?, filter: String?, - grouping_keys: Array[String], + grouping_keys: ::Array[String], request_options: Orb::request_opts ) -> Orb::Models::PriceEvaluateResponse def fetch: ( String price_id, - ?Orb::Models::PriceFetchParams | Hash[Symbol, top] params + ?Orb::Models::PriceFetchParams | ::Hash[Symbol, top] params ) -> Orb::Models::price | ( String price_id, diff --git a/sig/orb/resources/prices/external_price_id.rbs b/sig/orb/resources/prices/external_price_id.rbs index 24eeaff7..d09e564e 100644 --- a/sig/orb/resources/prices/external_price_id.rbs +++ b/sig/orb/resources/prices/external_price_id.rbs @@ -6,11 +6,11 @@ module Orb ( String external_price_id, ?Orb::Models::Prices::ExternalPriceIDUpdateParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::price | ( String external_price_id, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, request_options: Orb::request_opts ) -> Orb::Models::price @@ -18,7 +18,7 @@ module Orb ( String external_price_id, ?Orb::Models::Prices::ExternalPriceIDFetchParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::price | ( String external_price_id, diff --git a/sig/orb/resources/subscriptions.rbs b/sig/orb/resources/subscriptions.rbs index e30c1333..9d695f8b 100644 --- a/sig/orb/resources/subscriptions.rbs +++ b/sig/orb/resources/subscriptions.rbs @@ -3,11 +3,11 @@ module Orb class Subscriptions def create: ( - ?Orb::Models::SubscriptionCreateParams | Hash[Symbol, top] params + ?Orb::Models::SubscriptionCreateParams | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionCreateResponse | ( - add_adjustments: Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, - add_prices: Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, + add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, + add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, align_billing_with_subscription_start_date: bool, auto_collection: bool?, aws_region: String?, @@ -24,16 +24,16 @@ module Orb filter: String?, initial_phase_order: Integer?, invoicing_threshold: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, net_terms: Integer?, per_credit_overage_amount: Float?, plan_id: String?, plan_version_number: Integer?, - price_overrides: Array[top]?, - remove_adjustments: Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, - remove_prices: Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, - replace_adjustments: Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, - replace_prices: Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, + price_overrides: ::Array[top]?, + remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, + remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, + replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, + replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, start_date: Time?, trial_duration_days: Integer?, request_options: Orb::request_opts @@ -42,21 +42,21 @@ module Orb def update: ( String subscription_id, - ?Orb::Models::SubscriptionUpdateParams | Hash[Symbol, top] params + ?Orb::Models::SubscriptionUpdateParams | ::Hash[Symbol, top] params ) -> Orb::Models::Subscription | ( String subscription_id, auto_collection: bool?, default_invoice_memo: String?, invoicing_threshold: String?, - metadata: Hash[Symbol, String?]?, + metadata: ::Hash[Symbol, String?]?, net_terms: Integer?, request_options: Orb::request_opts ) -> Orb::Models::Subscription def list: ( - ?Orb::Models::SubscriptionListParams | Hash[Symbol, top] params + ?Orb::Models::SubscriptionListParams | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::Subscription] | ( created_at_gt: Time?, @@ -64,7 +64,7 @@ module Orb created_at_lt: Time?, created_at_lte: Time?, cursor: String?, - customer_id: Array[String]?, + customer_id: ::Array[String]?, external_customer_id: String?, limit: Integer, status: Orb::Models::SubscriptionListParams::status?, @@ -74,7 +74,7 @@ module Orb def cancel: ( String subscription_id, - Orb::Models::SubscriptionCancelParams | Hash[Symbol, top] params + Orb::Models::SubscriptionCancelParams | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionCancelResponse | ( String subscription_id, @@ -86,7 +86,7 @@ module Orb def fetch: ( String subscription_id, - ?Orb::Models::SubscriptionFetchParams | Hash[Symbol, top] params + ?Orb::Models::SubscriptionFetchParams | ::Hash[Symbol, top] params ) -> Orb::Models::Subscription | ( String subscription_id, @@ -96,7 +96,8 @@ module Orb def fetch_costs: ( String subscription_id, - ?Orb::Models::SubscriptionFetchCostsParams | Hash[Symbol, top] params + ?Orb::Models::SubscriptionFetchCostsParams + | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionFetchCostsResponse | ( String subscription_id, @@ -111,7 +112,7 @@ module Orb ( String subscription_id, ?Orb::Models::SubscriptionFetchScheduleParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse] | ( String subscription_id, @@ -127,7 +128,8 @@ module Orb def fetch_usage: ( String subscription_id, - ?Orb::Models::SubscriptionFetchUsageParams | Hash[Symbol, top] params + ?Orb::Models::SubscriptionFetchUsageParams + | ::Hash[Symbol, top] params ) -> Orb::Models::subscription_usage | ( String subscription_id, @@ -148,14 +150,14 @@ module Orb ( String subscription_id, ?Orb::Models::SubscriptionPriceIntervalsParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionPriceIntervalsResponse | ( String subscription_id, - add: Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], - edit: Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], + add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], + add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], + edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], request_options: Orb::request_opts ) -> Orb::Models::SubscriptionPriceIntervalsResponse @@ -163,13 +165,13 @@ module Orb ( String subscription_id, Orb::Models::SubscriptionSchedulePlanChangeParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionSchedulePlanChangeResponse | ( String subscription_id, change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option, - add_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, - add_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, + add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, + add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, align_billing_with_plan_change_date: bool?, auto_collection: bool?, billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, @@ -186,11 +188,11 @@ module Orb per_credit_overage_amount: Float?, plan_id: String?, plan_version_number: Integer?, - price_overrides: Array[top]?, - remove_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, - remove_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, - replace_adjustments: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, - replace_prices: Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, + price_overrides: ::Array[top]?, + remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, + remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, + replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, + replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, trial_duration_days: Integer?, request_options: Orb::request_opts ) -> Orb::Models::SubscriptionSchedulePlanChangeResponse @@ -199,7 +201,7 @@ module Orb ( String subscription_id, ?Orb::Models::SubscriptionTriggerPhaseParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionTriggerPhaseResponse | ( String subscription_id, @@ -211,7 +213,7 @@ module Orb ( String subscription_id, ?Orb::Models::SubscriptionUnscheduleCancellationParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionUnscheduleCancellationResponse | ( String subscription_id, @@ -222,7 +224,7 @@ module Orb ( String subscription_id, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse | ( String subscription_id, @@ -234,7 +236,7 @@ module Orb ( String subscription_id, ?Orb::Models::SubscriptionUnschedulePendingPlanChangesParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse | ( String subscription_id, @@ -245,7 +247,7 @@ module Orb ( String subscription_id, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams - | Hash[Symbol, top] params + | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse | ( String subscription_id, @@ -259,7 +261,8 @@ module Orb def update_trial: ( String subscription_id, - Orb::Models::SubscriptionUpdateTrialParams | Hash[Symbol, top] params + Orb::Models::SubscriptionUpdateTrialParams + | ::Hash[Symbol, top] params ) -> Orb::Models::SubscriptionUpdateTrialResponse | ( String subscription_id, diff --git a/sig/orb/resources/top_level.rbs b/sig/orb/resources/top_level.rbs index d37c9025..52df3370 100644 --- a/sig/orb/resources/top_level.rbs +++ b/sig/orb/resources/top_level.rbs @@ -3,7 +3,7 @@ module Orb class TopLevel def ping: ( - ?Orb::Models::TopLevelPingParams | Hash[Symbol, top] params + ?Orb::Models::TopLevelPingParams | ::Hash[Symbol, top] params ) -> Orb::Models::TopLevelPingResponse | ( request_options: Orb::request_opts diff --git a/sig/orb/util.rbs b/sig/orb/util.rbs index fd04457b..16584274 100644 --- a/sig/orb/util.rbs +++ b/sig/orb/util.rbs @@ -10,10 +10,10 @@ module Orb def self?.coerce_float: (top input) -> (Float | top) - def self?.coerce_hash: (top input) -> (Hash[top, top] | top) + def self?.coerce_hash: (top input) -> (::Hash[top, top] | top) def self?.suppress: ( - *Array[Exception] exceptions, + *::Array[Exception] exceptions, sentinel: top? ) { -> top? @@ -22,14 +22,14 @@ module Orb OMIT: top def self?.deep_merge: ( - *Array[top] values, + *::Array[top] values, sentinel: top?, concat: bool ) -> top def self?.dig: ( - Hash[Symbol, top] | Array[top] | top data, - (Symbol | Integer | Array[(Symbol | Integer)])? pick, + ::Hash[Symbol, top] | ::Array[top] | top data, + (Symbol | Integer | ::Array[(Symbol | Integer)])? pick, ?top? sentinel ) { -> top? @@ -37,7 +37,7 @@ module Orb def self?.uri_origin: (URI::Generic uri) -> String - def self?.interpolate_path: (String | Array[String] path) -> String + def self?.interpolate_path: (String | ::Array[String] path) -> String type parsed_uri = { @@ -45,7 +45,7 @@ module Orb host: String?, port: Integer?, path: String?, - query: Hash[String, Array[String]] + query: ::Hash[String, ::Array[String]] } def self?.parse_uri: (URI::Generic | String url) -> Orb::Util::parsed_uri @@ -57,17 +57,17 @@ module Orb Orb::Util::parsed_uri rhs ) -> URI::Generic - def self?.decode_query: (String? query) -> Hash[String, Array[String]] + def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]] def self?.encode_query: ( - Hash[String, (Array[String] | String)?] query + ::Hash[String, (::Array[String] | String)?] query ) -> String? def self?.normalized_headers: ( - *Array[Hash[String, (String | Integer)?]] headers - ) -> Hash[String, String] + *::Array[::Hash[String, (String | Integer)?]] headers + ) -> ::Hash[String, String] - def self?.encode_content: (Hash[String, String] headers, top body) -> top + def self?.encode_content: (::Hash[String, String] headers, top body) -> top def self?.decode_content: (top response, suppress_error: bool) -> top diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index 11891c0b..009a8e19 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.3" + VERSION: "0.1.0-alpha.4" end